AGENT SKILL

智能体组件规格编写

component

帮助为智能体编写组件规格说明。

适用职业AI 工程师
使用场景智能体开发
License 许可
MIT
所属仓库
microsoft/vscode
最近更新
2026-11-15
Stars
★ 20w
Forks
4.4w

01 前言 Front Matter

name
component
description
Help author a component specification for an agent.
disable-model-invocation
true

03 SKILL.md 正文

<overview> Your goal is to create a component overview in markdown given the context provided by the user. The overview should include a brief description of the component, its main features, an architectural diagram and layout of important code files and their relationships. The purpose of this overview is to enable a developer to attach it to a feature request and ensure the agent has enough context to make correct code changes without breaking functionality. </overview>

<format>

[Component Name] Overview

Location: src/vs/[path/to/component] Type: [Service/Contribution/Extension/API/etc.] Layer (if applicable): [base/platform/editor/workbench/code/server]

Purpose

Brief description of what this component does and why it exists.

Scope

  • What functionality is included
  • What is explicitly out of scope
  • Integration points with other components

Architecture

High-Level Design

[Architectural diagram or description of key patterns used]

Key Classes & Interfaces

  • [ClassName]: Brief description of responsibility
  • [InterfaceName]: Purpose and main methods
  • [ServiceName]: Service responsibilities

Key Files

List all the key files and a brief description of their purpose:

  • src/vs/[path/to/component]/[filename.ts]: [Purpose and main exports]
  • src/vs/[path/to/component]/[service.ts]: [Service implementation details]
  • src/vs/[path/to/component]/[contribution.ts]: [Workbench contributions]

Development Guidelines

  • Reserve a section for any specific development practices or patterns relevant to this component. These will be edited by a developer or agent as needed.

</format>

<instructions>

  • Create a new overview file if one is not specified: .components/[component-name].md
  • Fill each section with component-specific details
  • Gather information from the attached context and use available tools if needed to complete your understanding
  • Ask the user for clarification if you cannot fill out a section with accurate information
  • Use complete file paths from repository root (e.g., src/vs/workbench/services/example/browser/exampleService.ts)
  • Keep descriptions concise but comprehensive
  • Use file references instead of code snippets when making references to code as otherwise the code may become outdated </instructions>

04 同仓库更多 Skills

microsoft
microsoft/vscode

vscode-ui

Present metrics, comparisons, tables, bar charts, and expandable details as native visuals inside an Agents window response. Use when numbers or a comparison are clearer shown than described. Not for diagrams, mockups, or standalone documents.

★ 20w
microsoft
microsoft/vscode

html-preview

Create visual reports, implementation plans, code-review explainers, comparisons, diagrams, and static UI mockups as inline HTML previews in the Agents window. Use when the user asks for visual or rendered output, not ordinary HTML code examples.

★ 20w
microsoft
microsoft/vscode

endgame-status

Report VS Code endgame status, focusing on test-plan progress, tester activity, release-branch PRs, and release-build availability.

★ 20w
microsoft
microsoft/vscode

sweeper-query

Answer natural-language questions about the VS Code Sweeper's published issue index (index-<name>.json for microsoft/vscode and the enrolled family repos) — which issues are agent-ready to implement or plan, what the sweeper proposed for an assignee or area, whether the sweeper knows a report as a duplicate, the highest-value open bugs in a lane — and, for one issue, the review's full record (evidence with file citations, fix brief, proposed comment). Use ONLY when the request explicitly names the sweeper — "sweeper", "vscodesweeper", "sweeper-query", a sweeper verdict, record, brief or index, an agent-ready issue — or asks what "the sweeper" found, proposed or knows. Do NOT use for general questions about issues, duplicates, priorities or ranking that do not mention the sweeper. Read-only; discovery only.

★ 20w
microsoft
microsoft/vscode

仓库技能与指令更新

update-skills

当在会话中发现重要经验教训时,创建或更新仓库技能与指令。当用户说"learn!"、识别出重要模式或陷阱,或需要为未来会话捕获可复用的领域知识时使用。

软件开发工程师插件与技能管理
★ 20w
microsoft
microsoft/vscode

Pull Request 更新与推送

update-pr

更新当前会话的拉取请求(Pull Request)。当用户希望把新变更推送到已有 PR 时使用。

软件开发工程师代码仓库协作管理
★ 20w