discovery-catalog
Inventory the contents of this Discovery catalog repo. Lists publishers, agents, starter-kits, and the tools shipped under each agent. Use this skill whenever the user asks what's in the catalog, who publishes what, what agents/tools/starter-kits exist, lists or counts of any of those, "show me the catalog", "do we have an agent for X", "what starter kits do we have", "list the publishers", "list tools per agent", or any inventory/discovery question about repo-resident assets — even if the user doesn't explicitly say the word "list".
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 289
- Forks
- 101
01 前言 Front Matter
- name
- discovery-catalog
- description
- Inventory the contents of this Discovery catalog repo. Lists publishers, agents, starter-kits, and the tools shipped under each agent. Use this skill whenever the user asks what's in the catalog, who publishes what, what agents/tools/starter-kits exist, lists or counts of any of those, "show me the catalog", "do we have an agent for X", "what starter kits do we have", "list the publishers", "list tools per agent", or any inventory/discovery question about repo-resident assets — even if the user doesn't explicitly say the word "list".
- allowed-tools
- shell
02 资源文件 1
- 脚本scripts/discovery-catalog.ps118.7 KB
03 SKILL.md 正文
Discovery Catalog
Compatibility
This skill is read-only and runs on Windows, macOS, and Linux through PowerShell. PowerShell 7+ (pwsh) is recommended for consistent table rendering, though the dispatcher also works in Windows PowerShell 5.1 with less polished wrapping.
Overview
Read-only inventory of the Discovery catalog repo. One dispatcher script (scripts/discovery-catalog.ps1) supports list and item-inspection invocations:
| Invocation | What it lists |
|---|---|
discovery-catalog publishers |
Every publisher across agents/ and starter-kits/, with per-publisher agent and starter-kit counts |
discovery-catalog agents |
Every agent in the catalog (one row per agent folder name) |
discovery-catalog agents list-tools |
Every agent plus the tools shipped under each agent's tools/ folder |
discovery-catalog starter-kits |
Every starter kit (one row per kit folder name) |
discovery-catalog <agent-name> describe |
One agent with Name, Publisher, Version, HasTool, Description |
discovery-catalog <starterkit-name> describe |
One starter kit with Name, Publisher, Version, Category, AgentCount, Description |
discovery-catalog <agent-name> list-tools |
One agent with Agent, Publisher, Version, ToolCount, Tools, Description |
Repo layout the script handles
The catalog uses a flat layout — one folder per agent or starter kit directly under the parent directory:
| Asset | Path pattern | Display |
|---|---|---|
| Agent | agents/<agent-name>/ |
<agent-name> |
| Starter kit | starter-kits/<kit-name>/ |
<kit-name> |
| Tool under an agent | agents/<agent>/tools/<tool-name>/ |
<tool-name> |
Inclusion rules:
- An "agent" is any folder containing an
agent.yaml. - A "starter kit" is any folder containing a
kit.json. - Folders without those files (shared helpers, README-only directories) are silently skipped.
- The
agents/tmp/scratch directory used by the deployer skills is always skipped.
Publisher and party come from the asset's metadata, not from the folder location:
- For an agent:
metadata.yaml→publisher.name(publisher) andpublisher.party(1p/3p). - For a starter kit:
kit.json→author.name(publisher) and the top-levelpartyfield.
If publisher.name / author.name is missing, the publisher is reported as (unspecified).
When to Use
Use this skill whenever the user wants to know what is in the catalog. Trigger phrases include but are not limited to:
- "What agents are in this repo?" / "List the agents" / "Show me the catalog"
- "Who are the publishers?" / "Which partners have agents?"
- "What starter kits do we have?" / "List the starter-kits"
- "Show me agents with their tools" / "List tools per agent"
- "Do we have an agent for retrosynthesis?" (use
-Tag retrosynthesis) - "Which agents are missing a tool?" (use
-WithoutToolsOnly) - Before invoking
discovery-services-agent-deployer, when the user isn't sure of the exact agent folder name
Inputs
The skill is fully read-only and needs no Azure config. All inputs are positional or named parameters on scripts/discovery-catalog.ps1.
| Parameter | Position | Description | Default |
|---|---|---|---|
Command |
0 (mandatory) |
publishers, agents, starter-kits, or an agent/starter-kit name |
— |
SubCommand |
1 (optional) |
list-tools (with agents or <agent-name>) or describe (with <agent-name> / <starterkit-name>) |
empty |
-Format |
named | Table, Markdown, Json, or Plain |
Table |
-Publisher |
named | Filter by publisher name (case-insensitive). Applies to agents and starter-kits |
all |
-Tag |
named | Filter agents whose metadata.yaml includes this tag (agents only) |
all |
-WithToolsOnly |
named | Only show agents that ship a tools/ folder (agents only) |
off |
-WithoutToolsOnly |
named | Only show agents missing a tools/ folder (agents only) |
off |
Invalid combinations exit with a non-zero code and a friendly message (e.g. agents foo, publishers list-tools).
Process
Mapping /discovery-catalog ... requests to invocations
When the user types a slash-style invocation like /discovery-catalog publishers, run the dispatcher with the matching arguments:
| User says | Run |
|---|---|
/discovery-catalog publishers |
pwsh -NoProfile -ExecutionPolicy Bypass -File .github/skills/discovery-catalog/scripts/discovery-catalog.ps1 publishers |
/discovery-catalog agents |
... discovery-catalog.ps1 agents |
/discovery-catalog agents list-tools |
... discovery-catalog.ps1 agents list-tools |
/discovery-catalog starter-kits |
... discovery-catalog.ps1 starter-kits |
/discovery-catalog <agent-name> describe |
... discovery-catalog.ps1 <agent-name> describe |
/discovery-catalog <starterkit-name> describe |
... discovery-catalog.ps1 <starterkit-name> describe |
/discovery-catalog <agent-name> list-tools |
... discovery-catalog.ps1 <agent-name> list-tools |
Use -Format Table for all catalog responses. Only add -Format Markdown if the user explicitly asks for a paste-ready markdown table.
When the dispatcher output is long, gather the full result before replying; never mention internal transport details, truncation, temp files, or resource files to the user.
Always return the complete table for the requested command; do not shorten it to a partial list or a narrative summary.
In chat responses, present tabular results as Markdown tables for readability, while keeping the count anchor line (*_COUNT=) above the table.
How the dispatcher works (internal — for skill maintainers)
- Resolve repo root via
git rev-parse --show-toplevel. - Walk
agents/and/orstarter-kits/one level deep, skippingtmp/. - Inclusion: agent folders need
agent.yaml; starter-kit folders needkit.json. - For each entry, parse the appropriate metadata file:
- Agent:
metadata.yamlforname,version,description,tags, plus the nestedpublisher.nameandpublisher.party. - Starter kit:
kit.jsonforname,version,description,category,party,author.name, plus top-levelagentRefs; treat therole: primaryentry as the launch agent. - Tool (when
agents list-tools):tool.yamlforname; folder name as fallback.
- Agent:
- Apply filters:
-Publisher,-Tag,-WithToolsOnly,-WithoutToolsOnly. - Sort by name (and publisher where applicable).
- Render in the requested format.
The first line of Table and Markdown output is a deterministic count anchor (AGENT_COUNT=, PUBLISHER_COUNT=, STARTER_KIT_COUNT=) so callers can grep for it.
Output Format
discovery-catalog publishers
PUBLISHER_COUNT=2
Publisher Party AgentCount StarterKits
--------- ----- ---------- -----------
Contoso Legal Tech 3p 1 0
Microsoft 1p 41 2
discovery-catalog agents
AGENT_COUNT=41
Agent Publisher Party
---- --------- -----
aizynthfinder Microsoft 1p
online-researcher Microsoft 1p
...
discovery-catalog agents list-tools
AGENT_COUNT=41
Agent Publisher Tools
---- --------- -----
aizynthfinder Microsoft tools/aizynthfinder
bookshelf-researcher Microsoft (no tools)
...
discovery-catalog starter-kits
STARTER_KIT_COUNT=2
Starter-Kit Publisher Category
---- --------- --------
drug-discovery Microsoft Chemistry
protein-structure-analysis Microsoft Biology
discovery-catalog <agent-name> describe
Name Publisher Version HasTool Description
---- --------- ------- ------- -----------
aizynthfinder Microsoft 1.0.0 True Expert agent for retrosynthetic route planning using AiZynthFinder...
discovery-catalog <starterkit-name> describe
Name Publisher Version Category AgentCount Description
---- --------- ------- -------- ---------- -----------
drug-discovery Microsoft 1.0.0 Chemistry 5 Accelerate small-molecule drug discovery...
discovery-catalog <agent-name> list-tools
Agent Publisher Version ToolCount Tools Description
----- --------- ------- --------- ----- -----------
aizynthfinder Microsoft 1.0.0 1 aizynthFinder Expert agent for retrosynthetic route planning using AiZynthFinder...
Examples
Example 1: List publishers
User: "Who publishes agents in this repo?"
pwsh -NoProfile -ExecutionPolicy Bypass -File .github/skills/discovery-catalog/scripts/discovery-catalog.ps1 publishers
Example 2: List all agents
User: "What agents do we have?"
pwsh -NoProfile -ExecutionPolicy Bypass -File .github/skills/discovery-catalog/scripts/discovery-catalog.ps1 agents
Example 3: List agents with their tools
User: "Show me each agent and the tools it ships."
pwsh -NoProfile -ExecutionPolicy Bypass -File .github/skills/discovery-catalog/scripts/discovery-catalog.ps1 agents list-tools
Example 4: List starter kits
User: "What starter kits are available?"
pwsh -NoProfile -ExecutionPolicy Bypass -File .github/skills/discovery-catalog/scripts/discovery-catalog.ps1 starter-kits
Example 5: Describe a specific item
User: "Describe the drug-discovery starter kit"
pwsh -NoProfile -ExecutionPolicy Bypass -File .github/skills/discovery-catalog/scripts/discovery-catalog.ps1 drug-discovery describe
User: "Describe aizynthfinder"
pwsh -NoProfile -ExecutionPolicy Bypass -File .github/skills/discovery-catalog/scripts/discovery-catalog.ps1 aizynthfinder describe
Example 6: Show tools for one agent
User: "List tools for aizynthfinder"
pwsh -NoProfile -ExecutionPolicy Bypass -File .github/skills/discovery-catalog/scripts/discovery-catalog.ps1 aizynthfinder list-tools
Example 7: Filtered queries
User: "Which agents have a retrosynthesis tag?"
pwsh -NoProfile -ExecutionPolicy Bypass -File .github/skills/discovery-catalog/scripts/discovery-catalog.ps1 agents -Tag retrosynthesis
User: "Which agents don't have a tool yet?"
pwsh -NoProfile -ExecutionPolicy Bypass -File .github/skills/discovery-catalog/scripts/discovery-catalog.ps1 agents -WithoutToolsOnly
User: "Which agents are published by Microsoft?"
pwsh -NoProfile -ExecutionPolicy Bypass -File .github/skills/discovery-catalog/scripts/discovery-catalog.ps1 agents -Publisher Microsoft
Example 8: Markdown for a doc
User: "Give me a markdown table of all starter kits I can paste into a README."
pwsh -NoProfile -ExecutionPolicy Bypass -File .github/skills/discovery-catalog/scripts/discovery-catalog.ps1 starter-kits -Format Markdown
Guidelines
- Read-only: never writes to the repo or to Azure. Safe to run repeatedly.
- Display name is the folder name — agents and starter kits are shown by their flat-layout folder name; publisher is rendered as a separate column populated from
metadata.yaml/kit.json. - Folder names are globally unique in the flat layout, so
<agent-name>alone is enough to disambiguate. - Command examples use PowerShell 7+ (
pwsh) and work on Windows, macOS, and Linux when PowerShell is installed. - Always include the count anchor (
PUBLISHER_COUNT=,AGENT_COUNT=,STARTER_KIT_COUNT=) inTable/Markdownoutput so downstream automation has a deterministic anchor. - Prefer tabular output for every catalog query; do not use
JsonorPlainfor normal discovery responses. - Return the full table for the requested command; never replace rows with a summary, excerpt, or placeholder text.
- Render user-facing tables in Markdown so columns remain aligned in chat.
- Never narrate internal handling such as reading from a resource file or hitting a terminal output limit.
- Don't crash on missing metadata — entries with missing
metadata.yamlor unparseablekit.jsonare silently skipped (kits) or shown with empty fields (agents). Missingpublisher.nameis rendered as(unspecified). - Don't list
agents/tmp/— it's the scratch tree used by other skills (discovery-services-agent-deployer) and is gitignored. - PS 7+ recommended so
Format-Table -AutoSize -Wraprenders long descriptions cleanly. The script works in Windows PowerShell 5.1 too but wrapping is uglier. - Invalid subcommands exit with non-zero code and a friendly message — the dispatcher rejects e.g.
agents fooorpublishers list-tools.
04 同仓库更多 Skills
quickstart-runner
Follow a supplied full QuickStart Scenario guide and its exact input files from a fresh Discovery project. Use for run this QuickStart, BioPharma, SiPhy, CMS or Bookshelf setup. Check readiness, obtain separate setup and execution approvals, and validate actual outputs. Do not replace the guide with a generated profile or infer permission from examples.
token-estimator-mvp
Estimate AI planning ranges from a work description or explicitly authorized safe project context. Provides coarse class ranges or conditional planning bases without requiring token guesses.
build-research-paper
Cross-domain / Scientific writing and publication — Build beautifully-formatted, arxiv-ready research paper PDFs from a mix of hand-authored LaTeX and/or markdown + PNG figures, using `tectonic` (default) or `pandoc` (escape hatch). Captures the reusable pattern that research projects keep re-discovering: `report/main.tex` + `references.bib` + `generate_figures.py` + iterative feedback/response scaffolding, all buildable with a single command. WHEN: write a research paper, arxiv submission, prepub, generate PDF from markdown, LaTeX paper, build main.tex, journal manuscript, referee revision, response to referee, resubmission package, publication-quality figures, matplotlib publication style, tectonic build, pandoc build, generate arxiv-ready PDF, bibliography from BibTeX.
Discovery 示例智能体导入
add-example-agents
从公共的 microsoft/discovery GitHub 仓库将智能体添加到此工作区,方式可以是:(a) 本地方式,用于 Copilot 应用,为每个智能体生成一个 `.agent.md` 伴随文件(以便每个智能体都可通过 `runSubagent` 调用);(b) 通过 `UpsertAgent` 将上游最新来源的智能体添加到 Microsoft Discovery 项目(存在时绑定已有的工具 ARM 资源,缺失时先在 Azure 中构建、推送并注册这些资源);或 (c) 将已添加到本地 Copilot 应用的智能体(来源于其 `.github/agents/<name>.agent.md` 伴随文件;带工具的智能体还带有 `discovery_catalog/<name>/` 文件夹以及本地构建的工具容器,而无工具的智能体仅有伴随文件)提升到指定的 Microsoft Discovery 项目 + Azure,且不再从上游重新获取或刷新。用户每次运行只能从这三个目标中精确选择一个。适用场景:'添加 discovery 智能体''下载 discovery 智能体''安装所有 Microsoft discovery 智能体''从 microsoft/discovery 添加智能体''从 microsoft/discovery 创建 copilot 智能体''将 discovery 智能体部署到 Foundry''将 discovery 智能体部署到 Azure''将本地智能体提升到 Microsoft Discovery''将本地智能体及其容器推送到 Discovery 项目''将本地应用智能体复制到 Azure'。始终将上游仓库 `agents/<name>/` 下每个选中的子文件夹刷新到 `discovery_catalog/<name>/`,使本地目录保持最新(出现新智能体、显现已移除的智能体、应用更新后的内容)。判断智能体是否"已在本地添加"使用 `.github/agents/<name>.agent.md`(Copilot 伴随文件),而非 `discovery_catalog/` 文件夹。对于本地部署,每个生成的 `.agent.md` 都带有延迟的 Docker 引导前言,使智能体仅在首次使用且工具镜像不存在时才构建该镜像。对于 Discovery + Azure 部署,会针对工作区的资源组(RG)通过 `GetDiscoveryTool` 对每个声明的工具进行预检,并**在工具已存在时完全跳过 Docker 构建 / ACR 推送 / AcrPull RBAC**(这在 `mdqacr` 等注册表上的共享目录镜像中很常见);仅构建并注册实际缺失的工具。始终通过 `UpsertAgent` 在选定的 Discovery 项目中创建智能体,并轮询 `GetAgent` 直到 `provisioningState=Succeeded`(MCP 的 `GetAgentOperation` 工具在实践中会返回不透明错误;切勿依赖它)。所有 MCP 调用都通过嵌入在本 SKILL.md 中、并在步骤 4d 期间具体化为 `.vscode/` 的 PowerShell 脚本进行——该技能不依赖同级的辅助文件,也不依赖 VS Code MCP 运行时在会话中途浮现 `mcp_microsoft-dis_*` 工具。通过 `agents action=create` 进行的本地 Discovery 运行时注册是可选的,默认跳过。不要用于:运行已部署的智能体(使用 runSubagent),或编辑单个智能体的提示词(直接编辑 `agent.yaml`)。
Podman Containerfile 迁移
migrate-podman-containerfile
将 Podman Containerfile 迁移为 Discovery 目录要求的规范 Dockerfile。当 PR 未通过 POL-022 检查、某个工具包含 Containerfile 或 Dockerfile.in,或贡献者要求将 Podman 构建文件转换为 Docker 构建文件时使用。仅在迁移在机械上安全时直接创建 Dockerfile,并拒绝处理存在歧义的预处理或多文件构建。
Discovery 入门工具包部署
discovery-services-starter-kit-deployer
端到端部署 Discovery 目录中的入门工具包(starter-kit):验证 kit.json 中的 agentRefs、构建并部署每个引用的智能体工具、逐一部署每个引用的智能体,并汇总已部署的智能体/工具以及可直接提供给客户的示例提示词。当用户要求部署 Discovery 入门工具包,或部署 starter-kits/*/kit.json 中列出的所有智能体时使用此技能。