add-action
Skill486 starsChanged 8 months agoMITView on GitHub
Guide users through adding a new connector action to a Copilot Studio agent. Connector actions require UI-based connection setup, so this skill walks users through the Copilot Studio portal steps, then delegates to edit-action for YAML modifications.
In this repository30 other files it gives its agents.
- add-adaptive-cardSkill
- add-generative-answersSkill
- add-global-variableSkill
- add-knowledgeSkill
- add-nodeSkill
- add-other-agentsSkill
- analyze-evalsSkill
- chat-directlineSkill
- chat-sdkSkill
- chat-with-agentSkill
- clone-agentSkill
- create-eval-setSkill
- create-evalSkill
- detect-modeSkill
- directline-chatSkill
- edit-actionSkill
- edit-agentSkill
- edit-triggersSkill
- int-patternsSkill
- int-project-contextSkill
- int-referenceSkill
- list-kindsSkill
- list-topicsSkill
- lookup-schemaSkill
- manage-agentSkill
- new-topicSkill
- run-evalSkill
- run-tests-kitSkill
- test-authSkill
- validateSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
When the connector IS available, use the lookup tool to help the user before they go to the UI:
- Distinctive: line 36
Use these to help the user understand:
- Distinctive: line 74
If the action file is present, let the user know it was pulled successfully.
- Distinctive: line 86
If the user asks to add an MCP server action:
- Very specific: line 113
Use these alongside connector-lookup operation output to understand both the YAML structure and the full inputs/outputs for a specific …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Add Connector Action (Guide)
This skill guides users through adding a new connector action to their Copilot Studio agent. It does NOT write action YAML directly because connector actions require a connection reference that can only be created through the Copilot Studio UI.
Why This Is a Guide, Not a Generator
Connector actions need:
- A connection reference — an authenticated link to the external service (Teams, Outlook, SharePoint, etc.)
- The connection reference can only be created by the user authenticating in the Copilot Studio portal
- Once the action is added via the UI and pulled locally, the YAML can be edited with
/copilot-studio:edit-action
Connector Lookup
Help the user find the right connector and operation before they go to the UI. Use the connector lookup tool. Important: The connector lookup script only covers a subset of connectors (run list to see which ones). If the user's requested connector is not in the list, tell the user they need to find and add the connector action entirely through the Copilot Studio portal, then ask them to pull again the files locally. Once pulled, /copilot-studio:edit-action can still be used to customize the YAML.
When the connector IS available, use the lookup tool to help the user before they go to the UI:
node ${CLAUDE_SKILL_DIR}/../../scripts/connector-lookup.bundle.js list
node ${CLAUDE_SKILL_DIR}/../../scripts/connector-lookup.bundle.js operations <connector>
node ${CLAUDE_SKILL_DIR}/../../scripts/connector-lookup.bundle.js operation <connector> <operationId>
node ${CLAUDE_SKILL_DIR}/../../scripts/connector-lookup.bundle.js search <keyword><connector> matches by API name (shared_office365) or partial display name (outlook).
Use these to help the user understand:
- Which connector has the operation they need
- What the operation is called (so they can find it in the UI)
- What inputs and outputs it expects
Instructions
- Understand what the user wants — ask clarifying questions if the request is vague (e.g., "send a message" — Teams? Outlook? Slack?)
- Search for the operation using connector-lookup:
If no match, try broader terms. If the connector is not available in the lookup script at all after different tries, inform the user that this connector is not in the local reference and they will need to add the action through the Copilot Studio UI.node ${CLAUDE_SKILL_DIR}/../../scripts/connector-lookup.bundle.js search "<user's description>" - Show the operation details so the user knows exactly what to look for in the UI:
node ${CLAUDE_SKILL_DIR}/../../scripts/connector-lookup.bundle.js operation <connector> <operationId> Walk the user through the UI steps:
Here's how to add this action in Copilot Studio:
- Open Copilot Studio
- Navigate to your agent
- Go to Actions in the left sidebar
- Click + Add an action
- Search for "{operation displayName}" from the {connector displayName} connector
- Configure the connection (authenticate with your credentials)
- Save the action
Once saved, pull the updated agent files using the Copilot Studio VS Code Extension (Source Control → Pull).
- After the user confirms they've pulled, check for the new action file:
If the action file is present, let the user know it was pulled successfully.Glob: **/actions/*.mcs.yml Offer to edit the action — if the user wants to customize inputs, descriptions, or connection mode:
Would you like me to edit the action YAML? I can modify input descriptions, switch between automatic and manual inputs, change the connection mode, and more. Just say the word and I'll use
/copilot-studio:edit-action.
MCP Server Actions
MCP (Model Context Protocol) server actions use a different YAML structure than regular connector actions. They use InvokeExternalAgentTaskAction with ModelContextProtocolMetadata instead of InvokeConnectorTaskAction.
Like regular connector actions, MCP actions require a connection reference that can only be created through the Copilot Studio portal. This skill cannot create MCP connections — the user must add the MCP server through the UI first.
If the user asks to add an MCP server action:
MCP server actions require a connection to be set up in the Copilot Studio portal first — I can't create that from here.
Here's how to add it:
- Open Copilot Studio
- Navigate to your agent
- Go to Actions in the left sidebar
- Click + Add an action
- Search for the MCP server connector (e.g., "Microsoft Learn Docs MCP Server")
- Configure the connection (authenticate with your credentials)
- Save the action
Once saved, pull the updated agent files. I can then help you edit the action with
/copilot-studio:edit-action— for example, changing themodelDescriptionormodelDisplayName.
Key differences from regular connector actions: MCP actions do not use AutomaticTaskInput — the MCP protocol handles tool parameter discovery dynamically. However, ManualTaskInput entries are OK for passing context to the MCP server (e.g., user identity via Power Fx: value: =System.User.Email).
Structural Reference
For structural templates, see:
Read: ${CLAUDE_SKILL_DIR}/../../templates/actions/connector-action.mcs.yml
Read: ${CLAUDE_SKILL_DIR}/../../templates/actions/mcp-action.mcs.ymlUse these alongside connector-lookup operation output to understand both the YAML structure and the full inputs/outputs for a specific operation.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

