Favicon of Detect Mode

Detect Mode Skill

AI Agent SkillJavaScriptOpen source

Detect a Copilot Studio agent's authentication mode (DirectLine vs M365) by querying Dataverse. Returns the mode and connection details needed to chat. Published by microsoft in skills-for-copilot-studio.

What is Detect Mode Skill?

Detect a Copilot Studio agent's authentication mode (DirectLine vs M365) by querying Dataverse. Returns the mode and connection details needed to chat. Published by microsoft in skills-for-copilot-studio. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.

Trust signal
95/100
Maintenance signal
90/100
Adoption signal
63/100

Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement.

Key capabilities

  • Includes SKILL.md support
  • Reusable instructions support
  • Developers using skills-for-copilot-studio

Technical details

Copy skill directory
  • Install or run with Copy skill directory

When to use Detect Mode Skill

  • Use it for developers using skills-for-copilot-studio.

Built with

JavaScriptCopy skill directory

Editorial notes

Source

  • Creator: microsoft
  • Repository: microsoft/skills-for-copilot-studio
  • Skill file: skills/detect-mode/SKILL.md

What it does

Detect a Copilot Studio agent's authentication mode (DirectLine vs M365) by querying Dataverse. Returns the mode and connection details needed to chat.

Skill instructions

Detect Agent Authentication Mode Query the Dataverse bots entity to determine whether the agent uses DirectLine (no auth / manual auth) or the Copilot Studio SDK (integrated auth / Entra ID SSO). Instructions 1. Run the detect-only command: bash node ${CLAUDESKILLDIR}/../../scripts/chat-with-agent.bundle.js --detect-only $ARGUMENTS If the agent is not at the project root, pass --agent-dir <path. 2. Parse the JSON output from stdout: DirectLine mode (authenticationmode 1 or 3) json { "status": "ok", "mode": "directline", "authenticationmode": 1, "tokenEndpoint": "https://...", "schemaName": "..." } The agent uses no authentication or manual authentication. No user credentials needed. The tokenEndpoint is ready to use with /copilot-studio:chat-directline. M365 mode (authenticationmode 2) json { "status": "ok", "mode": "m365", "authenticationmode": 2, "schemaName": "..." } The agent uses integrated authentication (Entra ID SSO). An App Registration Client ID is needed for /copilot-studio:

Explore related resources

Frequently asked questions

What is Detect Mode?

Detect Mode is a open-source AI agent skill with Copy skill directory. Detect a Copilot Studio agent's authentication mode (DirectLine vs M365) by querying Dataverse. Returns the mode and connection details needed to chat.

Who is Detect Mode best for?

Detect Mode is best for reusing agent instructions, scripts, and references.

How do I install Detect Mode?

Install or run Detect Mode using Copy skill directory. Check Detect Mode for the latest setup command.

Is Detect Mode actively maintained?

Detect Mode may need a closer maintenance check before production use.

Share:

Stars
354
Forks
73
Last commit
13 days ago
Repository age
6 months
License
MIT

Auto-fetched from GitHub.

Ad
Favicon

 

  
 

Similar to Detect Mode