帮助你创建、修复和优化 VS Code 智能体定制文件与工作流配置
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "agent-customization" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/vscode/main/extensions/copilot/assets/prompts/skills/agent-customization/SKILL.md 2. 保存为 ~/.claude/skills/agent-customization/SKILL.md 3. 装好后重载技能,告诉我可以用了
请为我的 VS Code 项目创建一份 copilot-instructions.md,要求包含:TypeScript 优先、提交前必须运行测试、API 代码统一放在 src/api、回答尽量简洁,并说明这些规则适用于哪些文件。
一份结构清晰的定制指令文件,包含规则内容、适用范围和可直接保存的格式。
帮我检查为什么 .instructions.md 没有生效。请从 YAML frontmatter、applyTo 模式、文件命名、目录位置和规则冲突几个方面分析,并给出修复建议。
一份问题诊断结果,指出可能原因、优先修复项以及修改后的示例配置。
请为前端重构任务设计一个自定义 agent 模式,要求它先阅读组件目录,再识别重复逻辑,限制只改动 UI 层文件,并把输出分成计划、变更建议和风险提示。
一套可落地的 agent 定制方案,包含模式定义、工具限制、执行步骤和示例文件内容。
| Primitive | When to Use |
|---|---|
| agent instructions | Always-on, applies everywhere in the project |
| File Instructions | Explicit via applyTo patterns, or on-demand via description |
| MCP | Integrates external systems, APIs, or data |
| Hooks | Deterministic shell commands at agent lifecycle points (block tools, auto-format, inject context) |
| Custom Agents | Subagents for context isolation, or multi-stage workflows with tool restrictions |
| Prompts | Single focused task with parameterized inputs |
| Skills | On-demand workflow with bundled assets (scripts/templates) |
Consult the reference docs for templates, domain examples, advanced frontmatter options, asset organization, anti-patterns, and creation checklists. If the references are not enough, load the official documentation links for each primitive.
| Type | File | Location | Reference |
|---|---|---|---|
| agent instructions | copilot-instructions.md, AGENTS.md | .github/ or root | Link |
| File Instructions | *.instructions.md | .github/instructions/ | Link |
| Prompts | *.prompt.md | .github/prompts/ | Link |
| Hooks | *.json | .github/hooks/ | Link |
| Custom Agents | *.agent.md | .github/agents/ | Link |
| Skills | SKILL.md | .github/skills/<name>/, .agents/skills/<name>/, .claude/skills/<name>/ | Link |
User-level: {{VSCODE_USER_PROMPTS_FOLDER}}/ (*.prompt.md, *.instructions.md, *.agent.md; not skills)
Customizations roam with user's settings sync
If you need to explore or validate patterns in the codebase, use a read-only subagent. If the ask-questions tool is available, use it to interview the user and clarify requirements.
Follow these steps when creating any customization file.
Ask the user where they want the customization:
.github/ folder{{VSCODE_USER_PROMPTS_FOLDER}}/Use the Decision Flow above to select the appropriate file type based on the user's need.
Create the file directly at the appropriate path:
After creating:
--- markers)description is present and meaningfulInstructions vs Skill? Does this apply to most work, or specific tasks? Most → Instructions. Specific → Skill.
Skill vs Prompt? Both appear as slash commands in chat (type /). Multi-step workflow with bundled assets → Skill. Single focused task with inputs → Prompt.
Skill vs Custom Agent? Same capabilities for all steps → Skill. Need context isolation (subagent returns single output) or different tool restrictions per stage → Custom Agent.
Hooks vs Instructions? Instructions guide agent behavior (non-deterministic). Hooks enforce behavior via shell commands at lifecycle events like PreToolUse or PostToolUse — they can block operations, require approval, or run formatters deterministically. Hooks can be defined in standalone .json files (see hooks reference) or inline in custom agent frontmatter via the hooks attribute (see agents reference).
…
帮助开发者定位并读取 Code OSS 开发构建日志,快速排查运行与扩展问题。
帮助开发者新增、修改或审查 VS Code 配置策略,并生成平台相关产物。
帮助开发者验证 Azure DevOps 流水线改动,快速排查构建与 YAML 配置问题。
在隔离环境启动 VS Code OSS,便于联动自动化操作与多进程调试。
运行聊天性能基准与内存泄漏检查,定位聊天界面回归和性能问题。
帮助开发者创建和维护组件截图测试夹具,并优化组件的可测试性。
为 AI 编码助手生成或更新聊天定制配置文件,统一协作与开发体验
用于在聊天自定义编辑器中配置和管理智能体、技能、提示词及集成组件。
帮助用户创建或更新技能,扩展 Codex 的知识、流程与工具能力
帮助你创建、整理、校验并重构 AgentSkills 与 SKILL.md 技能文件。
帮助你把常用工作流程封装成可复用的 SKILL.md 技能模板
帮助开发者将指令文件、技能、代理和MCP配置迁移到Codex项目与全局文件。