Vscode 代码规划
- 作者仓库星标 0
- 作者仓库 skills-registry
VS Code Copilot Customization
Decision Matrix
Use this matrix to recommend the right customization type. Always start here.
| Scenario | Best choice |
|---|---|
| Project-wide coding standards, always active | copilot-instructions.md |
| Rules only for specific file types / folders | *.instructions.md with applyTo |
| Works with multiple AI agents (Claude, Copilot, etc.) | AGENTS.md |
| Reusable task you invoke manually in chat | Prompt file (.prompt.md) |
| Specialized workflow with tool restrictions or model choice | Custom agent (.agent.md) |
| Portable capability reusable across projects + CLI + cloud agents | Agent skill (SKILL.md) |
| Auto-run commands at agent lifecycle points (format, lint, enforce) | Hook (.json) |
| Bundle multiple customizations to share or distribute | Agent plugin (plugin.json) |
Quick decision flow
Do you want it ON automatically for every request?
├─ YES → Instructions (.instructions.md / copilot-instructions.md / AGENTS.md)
└─ NO, I invoke it manually →
Does it need persistent persona, tool restrictions, or model choice?
├─ YES → Custom Agent (.agent.md)
└─ NO →
Is it a reusable multi-agent portable capability?
├─ YES → Agent Skill (SKILL.md)
└─ NO → Prompt File (.prompt.md)
Do you want to run shell commands around agent actions?
└─ YES → Hook (hooks/*.json)
Do you want to bundle everything for distribution?
└─ YES → Agent Plugin (plugin.json)
1. Custom Instructions
Always-on context and rules. Stored in .github/copilot-instructions.md (workspace-wide), AGENTS.md (multi-agent), or *.instructions.md (file-scoped via applyTo glob).
Read references/instructions.md when asked to create, write, or configure custom instructions.
2. Prompt Files
Reusable task templates invoked manually via / slash command. Stored in .github/prompts/*.prompt.md.
Read references/prompt-files.md when asked to create a prompt file or reusable chat task.
3. Custom Agents
Specialized Copilot persona with tool whitelist, model choice, and optional handoffs. Stored in .github/agents/*.agent.md.
Read references/custom-agents.md when asked to create a custom agent or chat mode.
4. Agent Skills
Portable, progressive-loading capabilities that work across VS Code, Copilot CLI, and cloud agents. Stored in .github/skills/<name>/SKILL.md.
Read references/agent-skills.md when asked to create a skill or when the user asks about SKILL.md format, frontmatter fields, or skill best practices.
5. Hooks
Shell commands triggered at agent lifecycle events (PostToolUse, Stop, etc.). Stored in .github/hooks/*.json.
Read references/hooks.md when asked to create a hook, set up auto-formatting, or run commands around agent actions.
6. Agent Plugins
Bundle skills, agents, hooks, and MCP servers for distribution. Defined in plugin.json.
Read references/plugins.md when asked to create, publish, or install an agent plugin.
File Locations Reference
| Type | Workspace location | User profile location |
|---|---|---|
| Always-on instructions (Copilot) | .github/copilot-instructions.md |
— |
| Always-on instructions (multi-agent) | AGENTS.md |
— |
| Targeted instructions | .github/instructions/*.instructions.md |
~/.vscode/instructions/ |
| Prompt files | .github/prompts/*.prompt.md |
~/.vscode/prompts/ |
| Custom agents | .github/agents/*.agent.md |
~/.vscode/agents/ |
| Agent skills | .github/skills/<name>/SKILL.md |
~/.vscode/skills/ |
| Hooks | .github/hooks/*.json |
~/.vscode/hooks/ |
| Claude Code agents | .claude/agents/*.md |
— |
| Claude Code rules | .claude/rules/*.md |
— |
AI Generation Commands
/init → workspace-wide copilot-instructions.md
/create-instruction → targeted .instructions.md
/create-prompt → .prompt.md file
/create-agent → .agent.md file
/create-skill → agent skill directory
/create-hook → hook JSON file
Open the Chat Customizations editor for a visual overview:
Command Palette → "Chat: Open Chat Customizations"
Reference files
references/instructions.md– Custom instructions templates and settingsreferences/prompt-files.md– Prompt file templates and input variablesreferences/custom-agents.md– Agent templates and handoff configurationreferences/agent-skills.md– Skill format, progressive loading, official docsreferences/hooks.md– Hook templates, events, naming conventionreferences/plugins.md– Plugin structure and distributionreferences/frontmatter-reference.md– Complete frontmatter field reference for all typesreferences/examples.md– Real-world examples organized by use case
<!-- tomevault:4.0:skill_md:2026-05-23 -->Source: danielsitek/skills — distributed by TomeVault.
- 流狐分类
- 通用
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Use this matrix to recommend the right customization type. Always start here. Scenario · Best choice Project-wide coding standards, always active · copilot-instructions.md
Quick decision flow
Always-on context and rules. Stored in .github/copilot-instructions.md (workspace-wide), AGENTS.md (multi-agent), or .instructions.md (file-scoped via applyTo glob). Read references/instructions.md when asked to create, write, or configure custom instructions.
Reusable task templates invoked manually via / slash command. Stored in .github/prompts/.prompt.md. Read references/prompt-files.md when asked to create a prompt file or reusable chat task.
Specialized Copilot persona with tool whitelist, model choice, and optional handoffs. Stored in .github/agents/.agent.md. Read references/custom-agents.md when asked to create a custom agent or chat mode.
Portable, progressive-loading capabilities that work across VS Code, Copilot CLI, and cloud agents. Stored in .github/skills/<name>/SKILL.md. Read references/agent-skills.md when asked to create a skill or when the user asks about SKILL.md format, frontmatter…
# VS Code Copilot Customization
## Decision Matrix
Use this matrix to recommend the right customization type. Always start here.
| Scenario | Best choice |
| ------------------------------------------------------------------- | ---------------------------------- |
| Project-wide coding standards, always active | `copilot-instructions.md` |
| Rules only for specific file types / folders | `*.instructions.md` with `applyTo` |
| Works with multiple AI agents (Claude, Copilot, etc.) | `AGENTS.md` |
| Reusable task you invoke manually in chat | Prompt file (`.prompt.md`) |
| Specialized workflow with tool restrictions or model choice | Custom agent (`.agent.md`) |
| Portable capability reusable across projects + CLI + cloud agents | Agent skill (`SKILL.md`) |
| Auto-run commands at agent lifecycle points (format, lint, enforce) | Hook (`.json`) |
| Bundle multiple customizations to share or distribute | Agent plugin (`plugin.json`) |
### Quick decision flow
```
Do you want it ON automatically for every request?
├─ YES → Instructions (.instructions.md / copilot-instructions.md / AGENTS.md)
└─ NO, I invoke it manually →
Does it need persistent persona, tool restrictions, or model choice?
├─ YES → Custom Agent (.agent.md)
└─ NO →
Is it a reusable multi-agent portable capability?
├─ YES → Agent Skill (SKILL.md)
└─ NO → Prompt File (.prompt.md)
Do you want to run shell commands around agent actions?
└─ YES → Hook (hooks/*.json)
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Decision Matrix → Quick decision flow → 1. Custom Instructions → 2. Prompt Files → 3. Custom Agents → 4. Agent Skills
要点 -> Chat Customizations editor · Use this matrix to recommend the right customization type. · Do you want to run shell commands around agent actions? · Do you want to bundle everything for distribution? · Always-on context and rules. · Read references/instructions.md when asked to create, write, or configure custom instructions. · Reusable task templates invoked manually via / slash command. · Read references/prompt-files.md when asked to create a prompt file or reusable chat task.
文件/命令 -> copilot-instructions.md · .instructions.md · applyTo · AGENTS.md · .prompt.md · .agent.md · .json · plugin.json
内容 SHA-256 -> 67d49b2219b6
原文结构
适用与边界
原文中的明确线索
copilot-instructions.md、.instructions.md、applyTo、AGENTS.md、.prompt.md、.agent.md、.json、plugin.json