mcpbeat Sign in

Edit Triggers Agent Skill

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.

1k tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
386
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/microsoft/skills-for-copilot-studio --skill edit-triggers

What it tells the agent to use

found in the instruction text
Edit edits files in place

The instruction itself

11 sections, as written by the author

Edit Topic Triggers

Modify how a topic gets triggered: trigger phrases (triggerQueries) and model description (modelDescription).

Instructions

  • Auto-discover the agent directory:
   Glob: **/agent.mcs.yml

NEVER hardcode an agent name.

  • Find the target topic:
   Glob: <agent-dir>/topics/*.topic.mcs.yml

If $ARGUMENTS specifies a topic name, match it. Otherwise, list all topics and ask which one.

  • Read the topic file and identify what to change.
  • Check the agent's settings.mcs.yml for GenerativeActionsEnabled. This determines which trigger mechanism matters most.
  • Make the requested changes using the Edit tool.

Model Description (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
  ...

Best Practices for Model Description

  • Write a clear, specific sentence describing what the topic does and when it should be used
  • Focus on the user's intent: "Use this topic when the user asks for information about our perfumes" rather than "This topic sends a message"
  • Include key scenarios the topic covers: "This topic handles billing inquiries, refund requests, and payment issues"
  • Keep it concise but complete — the orchestrator reads this to decide routing
  • Avoid vague descriptions like "This topic handles requests" — be specific about *which* requests

Examples from Real Topics

# 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

When to Add/Edit Model Description

  • Always add a modelDescription to topics with OnRecognizedIntent when the agent has GenerativeActionsEnabled: true
  • Update it when the topic's purpose or scope changes
  • Topics with system triggers (OnError, OnUnknownIntent, OnConversationStart) don't need a modelDescription — they're triggered automatically

Trigger Phrases (triggerQueries)

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.

Operations

  • Add phrases: Append new entries to triggerQueries
  • Remove phrases: Delete entries from triggerQueries
  • Replace phrases: Swap old entries for new ones
  • Rewrite all: Replace the entire triggerQueries array

Best Practices for Trigger Phrases

  • Use 5-10 phrases per topic for good recognition
  • Cover synonyms and variations (e.g., "help", "assist", "support", "I need help")
  • Include different sentence structures (questions, statements, keywords)
  • Avoid overlap — don't use the same phrases in multiple topics
  • Keep phrases short and natural (how users actually type/speak)
  • Mix formal and informal phrasing

Example Structure

kind: 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

What This Skill Cannot Do

  • Cannot change the trigger type (e.g., from OnRecognizedIntent to OnConversationStart) — this requires recreating the topic.
  • Cannot add triggers to system topics that don't use OnRecognizedIntent.

Other skills for the same job

different authors, same section of the catalogue
Protocolsio Integration
by christophacham
×4

Integration with protocols.io API for managing scientific protocols. This skill should be used when working with protocols.io to search, create, update, or publish protocols; manage protocol steps and materials; handle discussions and comments; organize workspaces; upload and manage files; or integrate protocols.io functionality into workflows. Applicable for protocol discovery, collaborative protocol development, experiment tracking, lab protocol management, and scientific documentation.

16k tokens
Tailored Resume Generator
by frostant
×4

Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances

3k tokens
Excalidraw Diagram Generator
by github
vendor ×3

Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.

36k tokens scripts
Expo Dev Client
by openai
vendor ×3

Build and distribute Expo development clients locally or via TestFlight

961 tokens
Executing Plans
by ZhanlinCui
×3

Use when you have a written implementation plan to execute in a separate session with review checkpoints

542 tokens
Anndata
by christophacham
×3

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.

16k tokens
Benchling Integration
by christophacham
×3

Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.

14k tokens
Biopython
by christophacham
×3

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.

24k tokens

How to use it

Copy the folder

Take microsoft/edit-triggers from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

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.