New Topic logo

New Topic

Organization
microsoft
new-topic

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.

Overview

Publishermicrosoft
Repositoryskills-for-copilot-studio
Skill namenew-topic
Stars
478
Forks
101
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by microsoft on GitHub. Read the source before you install it.

Installation

Install the New Topic AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/microsoft/skills-for-copilot-studio/tree/main/skills/new-topic
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/microsoft/skills-for-copilot-studio.git /tmp/skills-for-copilot-studio
mkdir -p .claude/skills
cp -r /tmp/skills-for-copilot-studio/skills/new-topic .claude/skills/new-topic
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable New Topic in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads New Topic on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so New Topic is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Create New Topic

Generate a new Copilot Studio topic YAML file based on user requirements.

Instructions

  1. Auto-discover the agent directory:

    Glob: **/agent.mcs.yml

    If multiple agents found, ask which one. NEVER hardcode an agent name.

  2. Check for matching templates in ${CLAUDE_SKILL_DIR}/../../templates/topics/ first:

    • greeting.topic.mcs.yml — OnConversationStart greeting
    • fallback.topic.mcs.yml — OnUnknownIntent fallback with escalation
    • arithmeticsum.topic.mcs.yml — Topic with inputs/outputs and computation
    • question-topic.topic.mcs.yml — Question with branching logic
    • search-topic.topic.mcs.yml — Generative answers from knowledge
    • auth-topic.topic.mcs.yml — Authentication flow
    • error-handler.topic.mcs.yml — Error handling
    • disambiguation.topic.mcs.yml — Multiple topics matched If a template matches, use it as the starting point.
  3. MANDATORY: Verify ALL kind: values against the schema before writing them:

    bash
    node ${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 exists

    NEVER write a kind: value you haven't verified exists in the schema. This is the #1 source of hallucination errors. If schema-lookup.bundle.js search <kind> returns no results, the kind does NOT exist — do not use it.

  4. Determine the trigger type from the user's description:

    • OnRecognizedIntent — For topics triggered by user phrases (most common)
    • OnConversationStart — For welcome/greeting topics
    • OnUnknownIntent — For fallback topics
    • OnEscalate — For escalation to human agent
    • OnError — For error handling
  5. Generate the topic YAML with:

    • A # Name: comment at the top
    • kind: AdaptiveDialog
    • Appropriate beginDialog with correct trigger
    • Unique IDs for ALL nodes (format: <nodeType>_<6-8 random alphanumeric>)
    • If using a template, replace ALL _REPLACE placeholders with unique IDs
  6. Check settings.mcs.yml for GenerativeActionsEnabled. Read the agent's settings.mcs.yml to check.

  7. Save to the agent's topics/<topic-name>.topic.mcs.yml directory

  8. MANDATORY: Validate the generated file after saving:

    Step A: Schema validation — always run this first:

    bash
    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.json to get connection details, then:

    bash
    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):

yaml
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):

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

yaml
inputType:
  properties:
    userName:
      displayName: userName
      description: "The user's name"
      type: String
outputType:
  properties:
    result:
      displayName: result
      type: String

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

  1. 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.

  2. 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 uses init:)
  • Type coercion to text: Use SetTextVariable instead of SetVariable to convert non-text types (Number, DateTime, etc.) to text via template interpolation: value: "Guests: {Topic.NumberOfGuests}"

Frequently asked questions

What does the New Topic AI skill do?

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.

Why use New Topic on TypingMind?

Because you install it once and use it with any model. New Topic is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install New Topic in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/microsoft/skills-for-copilot-studio/tree/main/skills/new-topic. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use New Topic?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with New Topic?

As many as you like. As long as a model supports skills, you can use New Topic with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the New Topic AI skill free?

Yes. It is published on GitHub by microsoft under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇