microsoft/edit-triggers
Modify topic triggers — trigger phrases and model description. Use when the user asks to add, remove, or change trigger phrases, or edit a topic's model description.
npx skills add https://github.com/microsoft/skills-for-copilot-studio --skill edit-triggers
Modify how a topic gets triggered: trigger phrases (triggerQueries) and model description (modelDescription).
Glob: **/agent.mcs.yml
NEVER hardcode an agent name.
Glob: <agent-dir>/topics/*.topic.mcs.yml
If $ARGUMENTS specifies a topic name, match it. Otherwise, list all topics and ask which one.
GenerativeActionsEnabled. This determines which trigger mechanism matters most.modelDescription)The modelDescription is a natural language description at the root of an AdaptiveDialog that tells the generative orchestrator when to route to this topic. When GenerativeActionsEnabled: true, this is the primary way the agent decides which topic to trigger — even more important than trigger phrases.
kind: AdaptiveDialog
modelDescription: This topic helps users order a pizza by collecting their preferred size, toppings, and delivery address.
beginDialog:
kind: OnRecognizedIntent
id: main
...
# Good — specific about what the topic does and when to use it
modelDescription: Use this topic when the user asks for help or needs assistance with something. Search the SharePoint knowledge base to find relevant information.
# Good — describes the full flow
modelDescription: This topic takes the user's favorite color, generates a word by concatenating the color with four random digits, and returns the generated word. If the color is white, it also provides information about the wavelength.
# Good — describes the computation
modelDescription: This sample topic performs the sum between the two numbers in input
modelDescription to topics with OnRecognizedIntent when the agent has GenerativeActionsEnabled: truemodelDescription — they're triggered automaticallytriggerQueries)Trigger phrases are used for intent recognition. They live inside beginDialog.intent.triggerQueries.
Only topics with OnRecognizedIntent triggers have editable trigger phrases. Other trigger types (OnConversationStart, OnUnknownIntent, etc.) are system-triggered and don't use phrases.
triggerQueriestriggerQueriestriggerQueries arraykind: AdaptiveDialog
modelDescription: This topic helps users with greeting and introduction.
beginDialog:
kind: OnRecognizedIntent
id: main
intent:
displayName: Greeting
triggerQueries:
- Hello
- Hi
- Hey
- Good morning
- Good afternoon
Take microsoft/edit-triggers from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.