new-topic
Skill486 starsChanged 8 months agoMITView on GitHub
Create a new Copilot Studio topic YAML file. Use when the user asks to create a new topic, conversation flow, or dialog for their agent.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- dougmotshell/mathematics-studiestheir own version, first seen Aug 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- dougmotshell/mathematics-studies★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- add-actionSkill
- 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
- run-evalSkill
- run-tests-kitSkill
- test-authSkill
- validateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 6 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
If multiple agents found, ask which one.
- Distinctive: line 31
If a template matches, use it as the starting point.
- Very specific: line 33
MANDATORY: Verify ALL
kind:values against the schema: before writing them: - Very specific: line 54
If using a template, replace ALL _REPLACE placeholders with unique IDs
- Distinctive: line 60
MANDATORY: Validate the generated file: after saving:
- Very specific: line 68
Read .mcs/conn.json to get connection details, then:
- Very specific: line 82
When the agent has GenerativeActionsEnabled: true in settings:
- Very specific: line 85
Place inputs at the AdaptiveDialog root level (NOT inside beginDialog):
- Very specific: line 103
Use Topic Outputs: instead of SendActivity for final results.
- Very specific: line 104
Use outputType at the root level and SetVariable to set output values — do NOT use TaskOutput (which is only valid in TaskDialog connector …
- Distinctive: line 125
Do NOT use SendActivity to show final outputs (rare exceptions: precise mid-flow messages).
- Distinctive: line 144
When a topic exists alongside other topics or other actions (i.e.
- Distinctive: line 155
Remove the topic entirely and tailor the action's input descriptions for the specific use case (simplest).
- Very specific: line 165
Type coercion to text: Use SetTextVariable instead of SetVariable to convert non-text types (Number, DateTime, etc.) to text via template …
≈ “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
Create New Topic
Generate a new Copilot Studio topic YAML file based on user requirements.
Instructions
- Auto-discover the agent directory:
If multiple agents found, ask which one. NEVER hardcode an agent name.Glob: **/agent.mcs.yml - Check for matching templates in
${CLAUDE_SKILL_DIR}/../../templates/topics/first:greeting.topic.mcs.yml— OnConversationStart greetingfallback.topic.mcs.yml— OnUnknownIntent fallback with escalationarithmeticsum.topic.mcs.yml— Topic with inputs/outputs and computationquestion-topic.topic.mcs.yml— Question with branching logicsearch-topic.topic.mcs.yml— Generative answers from knowledgeauth-topic.topic.mcs.yml— Authentication flowerror-handler.topic.mcs.yml— Error handlingdisambiguation.topic.mcs.yml— Multiple topics matched If a template matches, use it as the starting point.
- MANDATORY: Verify ALL
kind:values against the schema before writing them:
NEVER write anode ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js kinds # List all valid kind values node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js resolve AdaptiveDialog # Resolve trigger structure node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js resolve <TriggerType> # Resolve specific trigger node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js search <ActionKind> # Verify an action kind existskind:value you haven't verified exists in the schema. This is the #1 source of hallucination errors. Ifschema-lookup.bundle.js search <kind>returns no results, the kind does NOT exist — do not use it. - Determine the trigger type from the user's description:
OnRecognizedIntent— For topics triggered by user phrases (most common)OnConversationStart— For welcome/greeting topicsOnUnknownIntent— For fallback topicsOnEscalate— For escalation to human agentOnError— For error handling
- Generate the topic YAML with:
- A
# Name:comment at the top kind: AdaptiveDialog- Appropriate
beginDialogwith correct trigger - Unique IDs for ALL nodes (format:
<nodeType>_<6-8 random alphanumeric>) - If using a template, replace ALL
_REPLACEplaceholders with unique IDs
- A
- Check settings.mcs.yml for
GenerativeActionsEnabled. Read the agent'ssettings.mcs.ymlto check. - Save to the agent's
topics/<topic-name>.topic.mcs.ymldirectory MANDATORY: Validate the generated file after saving:
Step A: Schema validation — always run this first:
node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js validate <saved-file.yml>Step B: LSP-based validation — also run this if the agent has
.mcs/conn.json: Read.mcs/conn.jsonto get connection details, then:node ${CLAUDE_SKILL_DIR}/../../scripts/manage-agent.bundle.js validate \ --workspace "<path-to-agent-folder>" \ --tenant-id "<tenantId>" \ --environment-id "<envId>" \ --environment-url "<envUrl>" \ --agent-mgmt-url "<mgmtUrl>"Both validations are complementary: schema validation checks structural correctness (action kinds, property placement), while LSP validation checks Power Fx expressions, cross-file references, and environment-specific rules. If either fails, fix the issues before reporting success to the user.
Generative Orchestration Guidelines
When the agent has GenerativeActionsEnabled: true in settings:
Use Topic Inputs (AutomaticTaskInput) instead of Question nodes to auto-collect user info.
Place inputs at the AdaptiveDialog root level (NOT inside beginDialog):
kind: AdaptiveDialog
inputs: # <-- at AdaptiveDialog root, NOT inside beginDialog
- kind: AutomaticTaskInput
propertyName: userName
description: "The user's name"
entity: StringPrebuiltEntity
shouldPromptUser: true
beginDialog:
kind: OnRecognizedIntent
id: main
actions:
- ...- The orchestrator auto-collects inputs based on the description — no explicit Question node needed.
- Still use Question nodes when: conditional asks (ask X only if Y), or end-of-flow confirmations.
Use Topic Outputs instead of SendActivity for final results.
Use outputType at the root level and SetVariable to set output values — do NOT use TaskOutput (which is only valid in TaskDialog connector actions):
kind: AdaptiveDialog
inputs:
- ...
beginDialog:
kind: OnRecognizedIntent
id: main
actions:
- kind: SetVariable
id: setVar_abc123
variable: Topic.result
value: ="computed value"
outputType: # <-- at AdaptiveDialog root
properties:
result:
displayName: result
description: The computed result
type: String- The orchestrator generates the user-facing message from outputs.
- Do NOT use SendActivity to show final outputs (rare exceptions: precise mid-flow messages).
Include inputType/outputType schemas at the AdaptiveDialog root level when using inputs/outputs:
inputType:
properties:
userName:
displayName: userName
description: "The user's name"
type: String
outputType:
properties:
result:
displayName: result
type: StringTopic-Action Chaining Under Generative Orchestration
When a topic exists alongside other topics or other actions (i.e. TaskDialog), think carefully about the topic outputs — it directly affects whether the orchestrator will chain to an action.
Two scenarios:
- Topic is self-contained (e.g., reservation confirmation, calculation result): The topic does the work itself. It can gather the inputs too or just ask for those, but work is executed into the topic. In such case, output a confirmation/status message. The orchestrator treats the task as done or not, depending on the confirmation — this is correct.
- Topic gathers data for an action to consume (e.g., collecting a complaint that a Teams action should send, without manually calling the action into the topic): The topic output must be the data itself, not a confirmation. If you output "Your complaint has been sent!", the orchestrator assumes the job is done and will NOT invoke the action which means the complaint will never be sent. Instead, output the complaint text so the orchestrator can see there's an action to send it and feed it to such action.
Ask yourself: Does this topic complete the task on its own, or does it prepare data for an action/other topic? If the latter, output the data, not a status message.
Alternative approaches for data-gathering topics:
- Remove the topic entirely and tailor the action's input descriptions for the specific use case (simplest). Basically the action will gather the data directly via its inputs, no topic needed. Useful for simple data collection (i.e. one-shot).
- Use a global variable: the topic sets it (one-shot or by asking multiple questions and consolidating into the same variable via PowerFX), and the action's body references it via Power FX. This is more complex but can be useful for multi-turn data gathering that feeds somewhere else, especially if you need to do some logic on the data before sending it.
- Output the collected data in a topic output variable so the orchestrator can pass it to the next action/topic.
Power Fx Quick Reference
- Expressions start with
=:value: =Text(Topic.num1 + Topic.num2) - String interpolation uses
{}:activity: "Hello {Topic.UserName}" - Common functions:
Text(),Now(),IsBlank(),!IsBlank(),DateTimeFormat.UTC - Variable init:
variable: init:Topic.MyVar(first assignment usesinit:) - Type coercion to text: Use
SetTextVariableinstead ofSetVariableto convert non-text types (Number, DateTime, etc.) to text via template interpolation:value: "Guests: {Topic.NumberOfGuests}"
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.

