Copilot Studio 项目上下文指南

帮助 Copilot Studio 子代理理解项目结构和 .mcs.yml 文件的组织方式。指南还说明如何使用架构查询脚本查找字段和类型,并在编写 YAML 前校验文件。

仓库
microsoft/skills-for-copilot-studio
仓库最近推送
Stars
496
Forks
105
Issues / PRs
32

安装方式

先用 Prompt 核对来源与依赖。也可切换到安装命令。

安装方式

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "int-project-context":https://skillpi.com/zh/skills/microsoft/int-project-context。安装前核对上游来源和版本:https://github.com/microsoft/skills-for-copilot-studio/blob/9c42d3a612c6e06389b6e5b4eed579aaed1a8b63/skills/int-project-context/SKILL.md。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

此命令从 GitHub 来源仓库获取指定技能。运行前请先查看源文件。

运行工具
npx skills add https://github.com/microsoft/skills-for-copilot-studio/tree/9c42d3a612c6e06389b6e5b4eed579aaed1a8b63/skills/int-project-context --skill int-project-context

完整包尚未通过归档与安全核验。

来源与配置

microsoft/skills-for-copilot-studio固定提交 9c42d3a612c6e06389b6e5b4eed579aaed1a8b63

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

帮助 Copilot Studio 子代理理解项目结构和 .mcs.yml 文件的组织方式。指南还说明如何使用架构查询脚本查找字段和类型,并在编写 YAML 前校验文件。

0 下载 0 分享点击

介绍来源: third_party · microsoft · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
来源文档未说明。
输入和输出
来源文档未说明。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

本站暂无可核验的版本文件清单。

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: int-project-context
description: >
  Shared project context for all Copilot Studio sub-agents. Provides project
  structure, schema lookup usage, and skill invocation guidance.
user-invocable: false

Copilot Studio — Shared Project Context

You are working inside a Copilot Studio agent project. All YAML files have the .mcs.yml extension.

Project Structure

<agent-dir>/           # Auto-discover via Glob: **/agent.mcs.yml
├── agent.mcs.yml      # Agent metadata (display name, schema version)
├── settings.mcs.yml   # Agent settings (schemaName, GenerativeActionsEnabled, instructions)
├── topics/            # Conversation topics (AdaptiveDialog YAML files)
├── actions/           # Connector-based actions (TaskDialog YAML files)
├── knowledge/         # Knowledge sources (KnowledgeSourceConfiguration YAML files)
├── variables/         # Global variables (GlobalVariableComponent YAML files)
└── agents/            # Child agents (AgentDialog YAML files, each in its own subfolder)

Schema Lookup Script

When you write new YAML files, be sure to use the schema lookup script to understand the schema, including mandatory fields, definitions, and references. The script is located at ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js, and you can use it in the terminal as follows:

node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js search trigger             # Search by keyword
node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js lookup SendActivity        # Look up a definition
node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js resolve AdaptiveDialog     # Resolve with $refs
node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js kinds                      # List all valid kind values
node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js summary Question           # Compact overview
node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js validate <file.yml>        # Validate a YAML file

If you already know the specific definition you want to look up, use lookup. If you want to explore the schema around a certain topic, use search or summary. Always check the schema before writing YAML to ensure you include all required fields and use valid values.

NEVER load the full schema file (reference/bot.schema.yaml-authoring.json) — it's too long. Always use the script above.

Connector Lookup Script

The connector lookup script is at ${CLAUDE_SKILL_DIR}/../../scripts/connector-lookup.bundle.js. Use it for any questions about connectors, actions, their inputs, and outputs:

node ${CLAUDE_SKILL_DIR}/../../scripts/connector-lookup.bundle.js list                                 # List all connectors with operation counts
node ${CLAUDE_SKILL_DIR}/../../scripts/connector-lookup.bundle.js operations <connector>               # List operations for a connector
node ${CLAUDE_SKILL_DIR}/../../scripts/connector-lookup.bundle.js operation <connector> <operationId>  # Full details of one operation (inputs/outputs)
node ${CLAUDE_SKILL_DIR}/../../scripts/connector-lookup.bundle.js search <keyword>                     # Search operations across all connectors

<connector> matches by API name (shared_office365) or partial display name (outlook).

When to use this: When you need to understand available connectors, what inputs/outputs an action has, or what operations are available. The action YAML files in the agent only show configured inputs — connector-lookup shows the full connector definition with all available inputs and outputs.

Skill-First Rule (VERY IMPORTANT)

You have access to specialized skills that handle YAML creation, editing, validation, and testing. ALWAYS invoke the matching skill instead of doing it manually. Skills contain correct templates, schema validation, and patterns. Doing it manually risks hallucinated kind: values, missing required fields, and broken YAML. Example skills include /copilot-studio:new-topic for creating new topics, /copilot-studio:add-action for adding connector actions and tools, and /copilot-studio:validate for validating YAML files.

If no skill matches, only then work manually — but always validate with /copilot-studio:validate afterward.

Key Conventions

  • Agent Discovery: NEVER hardcode agent names. Always Glob: **/agent.mcs.yml.
  • ID Generation: Random alphanumeric, 6-8 chars after prefix (e.g., sendMessage_g5Ls09).
  • Template _REPLACE: Always replace _REPLACE placeholder IDs with unique random IDs.
  • Power Fx: Expressions start with =. String interpolation uses {}. Only use supported functions (check int-reference skill).
  • Generative Orchestration: When GenerativeActionsEnabled: true, use topic inputs/outputs instead of hardcoded questions/messages.

版本历史

  1. v1.0.11 GitHub ↗
    原版更新说明

    <!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### Bug Fixes * Fix release branch creation to target next week by @ChrisGarty in https://github.com/microsoft/skills-for-copilot-studio/pull/145 ### Infrastructure & Evals * Add lookup-schema eval test cases by @GiorgioUghini in https://github.com/microsoft/skills-for-copilot-studio/pull/121 ### Other Changes * Merge pull request #152 from microsoft/release/2026-W17 by @GiorgioUghini in https://github.com/microsoft/skills-for-copilot-studio/pull/153 * Updating knowledge-guide to fix incorrect content about SharePoint permissions by @lewisdoesdev in https://github.com/microsoft/skills-for-copilot-studio/pull/156 * Replace best-practices and known-issues with pattern library and Advisor agent by @adilei in https://github.com/microsoft/skills-for-copilot-studio/pull/159 * Update MCP action metadata by @GiorgioUghini in https://github.com/microsoft/skills-for-copilot-studio/pull/163 * Release/2026 w18 by @GiorgioUghini in https://github.com/microsoft/skills-for-copilot-studio/pull/164 * Add 7 new patterns to be used by the Advisor agent by @CATDAB in https://github.com/microsoft/skills-for-copilot-studio/pull/162 * feat: add Channel-Aware Behavior pattern by @Roelzz in https://github.com/microsoft/skills-for-copilot-studio/pull/166 * docs: add release branch workflow to release plan by @ChrisGarty in https://github.com/microsoft/skills-for-copilot-studio/pull/142 * Release 1.0.11 by @GiorgioUghini in https://github.com/microsoft/skills-for-copilot-studio/pull/167 ## New Contributors * @lewisdoesdev made their first contribution in https://github.com/microsoft/skills-for-copilot-studio/pull/156 * @Roelzz made their first contribution in https://github.com/microsoft/skills-for-copilot-studio/pull/166 **Full Changelog**: https://github.com/microsoft/skills-for-copilot-studio/compare/v1.0.9...v1.0.11

  2. v1.0.9 GitHub ↗
    原版更新说明

    <!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### New Features * feat: identify agent from Copilot Studio URL (--url flag) by @GiorgioUghini in https://github.com/microsoft/skills-for-copilot-studio/pull/149 ### Refactoring * Removing Best practices and moving to paterns & tips. by @ericsche in https://github.com/microsoft/skills-for-copilot-studio/pull/147 * Rationalize best-practice skill descriptions by @GiorgioUghini in https://github.com/microsoft/skills-for-copilot-studio/pull/150 ### Other Changes * Weekly release: 2026-W17 by @GiorgioUghini in https://github.com/microsoft/skills-for-copilot-studio/pull/152 **Full Changelog**: https://github.com/microsoft/skills-for-copilot-studio/compare/v1.0.8...v1.0.9

  3. v1.0.8 GitHub ↗
    原版更新说明

    <!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### New Features * SPO Action Guidance by @ericsche in https://github.com/microsoft/skills-for-copilot-studio/pull/137 * Add eval API harness and restructure test agent skills by @adilei in https://github.com/microsoft/skills-for-copilot-studio/pull/135 ### Documentation * docs: weekly release plan by @ChrisGarty in https://github.com/microsoft/skills-for-copilot-studio/pull/134 ### Other Changes * Add weekly release branch workflow by @adilei in https://github.com/microsoft/skills-for-copilot-studio/pull/139 * Move release branch cron to Thursday by @adilei in https://github.com/microsoft/skills-for-copilot-studio/pull/140 * Add eval API harness and test agent improvements by @adilei in https://github.com/microsoft/skills-for-copilot-studio/pull/141 * Add connection ID support for authenticated eval runs by @adilei in https://github.com/microsoft/skills-for-copilot-studio/pull/143 * release: v1.0.8 (2026-W16) by @ChrisGarty in https://github.com/microsoft/skills-for-copilot-studio/pull/144 **Full Changelog**: https://github.com/microsoft/skills-for-copilot-studio/compare/v1.0.7...v1.0.8

  4. v1.0.7 GitHub ↗
    原版更新说明

    First tagged release, establishing a baseline for the weekly release process. This release captures all functionality already on `main` as of 2026-04-07, including: - MCP server action support - Scenario-based eval framework with parallel execution - Cross-platform hook fixes (Windows/VS Code) - LSP-based YAML validation - Agent management (push/pull/clone) - Issue templates See [RELEASE_PLAN.md](https://github.com/microsoft/skills-for-copilot-studio/blob/cgarty/release-plan/RELEASE_PLAN.md) for the weekly release process going forward.

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自SKILLπ LAB 评测的质量报告。

场景价值75/100
评分依据

为 Copilot Studio 开发者提供清晰的项目结构指导

触发精准85/100
评分依据

触发词精准,明确针对 Copilot Studio 项目上下文需求

结构规范80/100
评分依据

文档结构清晰,分章节说明不同功能模块

执行可靠85/100
评分依据

提供了可靠的脚本路径和具体使用方法

证据可验 (前四项均值)81/100
计算方式

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

risk · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。