创建项目指令文件
create-instructions
为项目规则或约定创建指令文件(.instructions.md)。
- License 许可
- MIT
- 所属仓库
- microsoft/vscode
- 最近更新
- 2026-11-15
- Stars
- ★ 20w
- Forks
- 4.4w
01 前言 Front Matter
- name
- create-instructions
- description
- Create an instructions file (.instructions.md) for a project rule or convention.
- argument-hint
- What rule or convention to enforce?
- disable-model-invocation
- true
03 SKILL.md 正文
Related skill: agent-customization. Load and follow instructions.md for template and principles.
Guide the user to create an instructions file.
Extract from Conversation
First, review the conversation history. If the user has been correcting the agent's output or asking for specific patterns (e.g., "always use X", "never do Y", "follow this style"), generalize that into a persistent instruction. Extract:
- Corrections or preferences mentioned during the conversation
- Coding patterns the user enforced or requested
- Project-specific conventions referenced
Clarify if Needed
If no clear rule emerges from the conversation, clarify:
- Should this apply everywhere or only to specific files?
- Which technologies or file types are affected?
- Is this a hard rule or a preference?
Explore the codebase using subagents if you need more context.
Iterate
- Draft the instruction and save it.
- Identify the most ambiguous or weak parts and ask about those.
- Once finalized, summarize what the instruction enforces, suggest example prompts to see it in action, and propose related customizations to create next.
Remember to follow the agent-customization guidelines to create highly effective instructions.
04 同仓库更多 Skills
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.
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.
endgame-status
Report VS Code endgame status, focusing on test-plan progress, tester activity, release-branch PRs, and release-build availability.
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.
仓库技能与指令更新
update-skills
当在会话中发现重要经验教训时,创建或更新仓库技能与指令。当用户说"learn!"、识别出重要模式或陷阱,或需要为未来会话捕获可复用的领域知识时使用。
Pull Request 更新与推送
update-pr
更新当前会话的拉取请求(Pull Request)。当用户希望把新变更推送到已有 PR 时使用。