Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

vscode-copilot-customizationVS Code GitHub Copilot customization 搜索

Agent Skill

vscode-copilot-customization 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

264

周安装

11

GitHub Stars

公开资料未说明

下载量

88
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vscode-copilot-customization(VS Code GitHub Copilot customization 搜索)
来源仓库:https://github.com/danielsitek/skills
仓库路径:skills/vscode-copilot-customization
安装命令:
npx skills add https://github.com/danielsitek/skills --skill vscode-copilot-customization
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/danielsitek/skills --skill vscode-copilot-customization

简介

vscode-copilot-customization 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词或任务场景快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

VS Code Copilot Customization

Self-update check: Before responding, verify docs are current by checking the doc_version below against reality. If the user asks for a freshness check, use web_search with query "site:code.visualstudio.com/docs/copilot/customization". Update the doc_version and any changed facts if you find discrepancies.
doc_version: "2025-03 (VS Code 1.102+)"
source_urls:
  - https://code.visualstudio.com/docs/copilot/customization/overview
  - https://code.visualstudio.com/docs/copilot/customization/custom-instructions
  - https://code.visualstudio.com/docs/copilot/customization/prompt-files
  - https://code.visualstudio.com/docs/copilot/customization/custom-agents
  - https://code.visualstudio.com/docs/copilot/customization/agent-skills
  - https://code.visualstudio.com/docs/copilot/customization/hooks
  - https://code.visualstudio.com/docs/copilot/customization/agent-plugins

Decision Matrix

Use this matrix to recommend the right customization type. Start here before writing anything.

ScenarioBest choice
Project-wide coding standards, always activecopilot-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 chatPrompt file (.prompt.md)
Specialized workflow with tool restrictions or model choiceCustom agent (.agent.md)
Portable capability reusable across projects + CLI + cloud agentsAgent skill (SKILL.md)
Auto-run commands at agent lifecycle points (format, lint, enforce)Hook (.json)
Bundle multiple customizations to share or distributeAgent 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

Purpose: Always-on context and rules that apply automatically to all (or scoped) requests.

Types

TypeFile / LocationScope
Workspace-wide (Copilot).github/copilot-instructions.mdAll requests in workspace
Workspace-wide (multi-agent)AGENTS.md anywhere in workspaceAll agents (Claude, Copilot, …)
File-scoped.github/instructions/*.instructions.mdFiles matching applyTo glob
User-levelVS Code user profileAll workspaces

Frontmatter (.instructions.md)

---
name: "React Standards"          # Optional – shown in UI
description: "React/TSX rules"   # Optional – describes scope
applyTo: "**/*.tsx"              # Glob – omit or use "**" for all files
---
For .claude/rules/*.md files (Claude Code format), use paths: ["**/*.ts"] instead of applyTo.

Template: project-wide

---
applyTo: "**"
---
# Project Coding Standards

## General
- Use TypeScript for all new code; strict mode enabled.
- Prefer functional patterns; avoid classes unless needed.
- Max line length: 100 chars. 2-space indentation.

## Naming
- PascalCase: components, interfaces, types, enums.
- camelCase: variables, functions, hooks.
- ALL_CAPS: constants.

## Error handling
- Use try/catch for all async operations.
- Always log errors with context (module + function name).

## Testing
- Jest + React Testing Library.
- One test file per module, co-located (`*.test.ts`).

Template: scoped (TypeScript only)

---
name: "TypeScript Standards"
applyTo: "**/*.ts,**/*.tsx"
---
# TypeScript Rules

- Enable `strictNullChecks` and `noImplicitAny`.
- Prefer `interface` over `type` for object shapes.
- Use `unknown` instead of `any` for external data.
- Always type function return values explicitly.

AI-assisted creation

/init                         → generate workspace-wide copilot-instructions.md
/create-instruction           → generate a targeted .instructions.md file

Key settings

"github.copilot.chat.codeGeneration.useInstructionFiles": true,
"chat.instructionsFilesLocations": {
  ".github/instructions": true
},
"chat.useAgentsMdFile": true

2. Prompt Files

Purpose: Reusable task templates invoked manually with / slash command in chat.

File extension: .prompt.md Location: .github/prompts/ (workspace) or user profile

Frontmatter reference

---
name: "generate-component"      # Used as /generate-component slash command
description: "Scaffold a new React component with tests"
agent: "agent"                  # ask | agent | plan | <custom-agent-name>
model: "claude-sonnet-4-5"      # Optional – overrides model picker
tools:                          # Available tools for this prompt
  - "search/codebase"
  - "vscode/askQuestions"
  - "githubRepo"
mode: "agent"                   # Optional – ask | agent | plan
---

Template: component scaffolder

---
name: "new-component"
description: "Scaffold a React component with TypeScript, Tailwind, and tests"
agent: "agent"
tools: ["search/codebase", "vscode/askQuestions", "edit"]
---
# Generate React Component

Use #tool:vscode/askQuestions to ask for:
1. Component name (PascalCase)
2. Props interface (list prop names and types)
3. Should it be a Server Component? (yes/no)

Then generate:
- `src/components/<Name>/<Name>.tsx` – main component
- `src/components/<Name>/<Name>.test.tsx` – unit tests
- `src/components/<Name>/index.ts` – barrel export

Follow the coding standards in [copilot-instructions.md](../../.github/copilot-instructions.md).

Template: PR description generator

---
name: "pr-description"
description: "Generate a structured pull request description from staged changes"
agent: "ask"
tools: ["search/codebase"]
---
# Pull Request Description

Analyze the changes in the current branch and generate a PR description with these sections:

## Summary
Brief one-sentence description of what this PR does.

## Changes
- List each meaningful change as a bullet point.

## Testing
- How was this tested?
- Any edge cases covered?

## Screenshots
(if UI changes – note: add manually)

Using input variables

---
name: "api-endpoint"
description: "Generate a REST API endpoint"
---
Create a ${input:httpMethod:GET|POST|PUT|DELETE} endpoint at `${input:path:/api/resource}`.

Use Zod for input validation. Follow the patterns in [api-standards.md](../docs/api-standards.md).

AI-assisted creation

/create-prompt    → AI guides you through creating a prompt file

3. Custom Agents

Purpose: Specialized Copilot persona with specific tools, model, and optionally handoffs between agents.

File extension: .agent.md Location: .github/agents/ (workspace) or user profile

Migration note: .chatmode.md files (old format) should be renamed to .agent.md.

Frontmatter reference

---
name: "Planner"                  # Agent name shown in dropdown
description: "Generates implementation plans without writing code"
tools:                           # Whitelist of allowed tools
  - "search"
  - "fetch"
  - "githubRepo"
  - "usages"
model:                           # Tried in order (fallback chain)
  - "claude-opus-4-5 (copilot)"
  - "GPT-4o (copilot)"
target: "vscode"                 # vscode | github-copilot | omit for both
handoffs:                        # Suggested next-step buttons
  - label: "Start Implementation"
    agent: "agent"               # Built-in agent or custom agent name
    prompt: "Implement the plan above."
    send: false                  # true = auto-submit
hooks:                           # Agent-scoped hooks (runs only when this agent is active)
  PostToolUse:
    - type: "command"
      command: "echo 'Tool used'"
---

Template: Code Reviewer (read-only)

---
name: "Reviewer"
description: "Reviews code for quality, security, and best practices. Does NOT modify files."
tools:
  - "read"
  - "search"
  - "vscode/askQuestions"
  - "fetch"
model: "claude-opus-4-5 (copilot)"
---
# Code Reviewer

You are a senior engineer conducting a thorough code review. Your role is to **analyze only** – never make direct code changes.

## Review Checklist
- [ ] Code quality and readability
- [ ] Potential bugs or logic errors
- [ ] Security vulnerabilities (XSS, injection, auth issues)
- [ ] Performance considerations
- [ ] Test coverage gaps
- [ ] Adherence to [project standards](./../copilot-instructions.md)

## Output Format
Structure feedback with clear headings, code references (file + line number), and severity:
- 🔴 **Critical** – must fix before merge
- 🟡 **Warning** – should fix
- 🟢 **Suggestion** – optional improvement

Template: Planner (with handoff)

---
name: "Planner"
description: "Creates detailed implementation plans. Switches to implementation when ready."
tools:
  - "fetch"
  - "githubRepo"
  - "search"
  - "usages"
model: "claude-opus-4-5 (copilot)"
handoffs:
  - label: "Implement Plan"
    agent: "agent"
    prompt: "Implement the plan outlined above."
    send: false
---
# Planning Mode

You are in **planning mode**. Generate an implementation plan. Do **not** write or edit any code.

## Plan Structure

### Overview
Brief description of the feature or change.

### Files to create / modify
List each file with the reason.

### Implementation steps
Numbered steps in order. Include dependencies.

### Risks & open questions
Things to clarify before implementing.

### Estimated complexity
S / M / L / XL with reasoning.

AI-assisted creation

/create-agent     → AI generates a .agent.md file
/agents           → Open Configure Custom Agents menu

4. Agent Skills

Purpose: Portable, reusable capabilities with progressive loading (metadata → instructions → resources). Works across VS Code, Copilot CLI, and cloud agents.

Structure:

.github/skills/
└── skill-name/
    ├── SKILL.md          ← Required. Metadata + instructions.
    ├── scripts/          ← Executable scripts referenced from SKILL.md
    ├── references/       ← Docs, examples, large reference files
    └── assets/           ← Templates, fixtures

Frontmatter reference

---
name: "skill-name"               # Used as /skill-name slash command
description: >                   # CRITICAL: be specific about WHEN to use.
  Max 1024 chars. Include both what it does AND trigger contexts.
hint: "[file-path] [options]"    # Hint shown in chat input on invocation
showInSlashMenu: true            # false to hide from / menu (still auto-loads)
manualOnly: false                # true = only invocable via /skill-name
---

Progressive loading system

  1. Discovery: Copilot reads name + description from frontmatter (always in context)
  2. Instructions: SKILL.md body loaded when skill is relevant or explicitly invoked
  3. Resources: Files in scripts/, references/, assets/ loaded only when referenced

Template: test-writer skill

---
name: "test-writer"
description: >
  Guide for writing unit and integration tests with Jest and React Testing Library.
  Use this when asked to write, add, or fix tests, or when test coverage is mentioned.
hint: "[file to test] [test type: unit|integration]"
showInSlashMenu: true
manualOnly: false
---
# Test Writer

## When to use this skill
- Writing new unit tests for components or utilities
- Writing integration tests for API endpoints
- Fixing failing tests
- Improving test coverage

## Test setup
- Framework: Jest + React Testing Library
- Test files: co-located as `*.test.ts` or `*.test.tsx`
- Coverage threshold: 80% per module

## Writing unit tests

Follow the Arrange-Act-Assert pattern:

describe('ComponentName', () => { it('should render correctly', () => { // Arrange const props = { ... };

// Act render(<Component {...props} />);

// Assert expect(screen.getByRole('button')).toBeInTheDocument(); }); });


See [test templates](https://github.com/danielsitek/skills/blob/HEAD/vscode-copilot-customization/./references/test-templates.md) for more patterns.

Key settings

"chat.agentSkillsLocations": [".github/skills"]

AI-assisted creation

/create-skill     → AI generates a skill directory with SKILL.md
/skills           → Open Configure Skills menu

5. Hooks

Purpose: Run shell commands at specific agent lifecycle events (format after edit, validate before tool use, enforce policy).

File format: .json Location: .github/hooks/*.json (workspace) or ~/.vscode/hooks/*.json (user)

Supported events

EventWhen it fires
PreToolUseBefore the agent calls any tool
PostToolUseAfter the agent calls any tool
SessionStartAt the start of an agent session
StopAt the end of an agent session
SubagentStartWhen a subagent is created
SubagentStopWhen a subagent completes

File naming convention

Always follow this convention. One file = one logical responsibility. Never name files after the project or create generic copilot.json.

FileEvents insidePurpose
post-tool.jsonPostToolUseFormat / lint after every tool call
session-end.jsonStopTypecheck / validate at end of session
pre-tool.jsonPreToolUseBlock dangerous operations before execution
subagent.jsonSubagentStart, SubagentStopSubagent monitoring

Rules:

  • Split by responsibility, not by event count. PostToolUse (formatting) and Stop (typecheck) serve different purposes → separate files.
  • Group related events in one file. SubagentStart + SubagentStop belong together → one file.
  • Never merge unrelated events into one file just to reduce file count.
  • Always use these exact filenames. Consistent names let users know what each file does without opening it.

Hook file format

{
  "hooks": {
    "PostToolUse": [
      {
        "type": "command",
        "command": "npx prettier --write \"$TOOL_INPUT_FILE_PATH\"",
        "windows": "npx prettier --write \"%TOOL_INPUT_FILE_PATH%\"",
        "timeout": 30
      }
    ]
  }
}
Compatibility: VS Code uses the same hook format as Claude Code and Copilot CLI. Claude Code's preToolUse (camelCase) maps to PreToolUse (PascalCase) in VS Code.

Template: post-tool.json (formatter)

Adapt the command to the project's formatter (Prettier, Biome, ESLint…). Detect from package.json devDependencies which formatter is in use — do not default to prettier if the project uses biome.

{
  "hooks": {
    "PostToolUse": [
      {
        "type": "command",
        "command": "test -f \"$TOOL_INPUT_FILE_PATH\" && npx prettier --write \"$TOOL_INPUT_FILE_PATH\" 2>/dev/null || true",
        "windows": "if exist \"%TOOL_INPUT_FILE_PATH%\" npx prettier --write \"%TOOL_INPUT_FILE_PATH%\" 2>nul",
        "timeout": 30
      }
    ]
  }
}

Template: session-end.json (typecheck / lint)

Use the package manager detected from the project (npm, bun, pnpm, yarn). Detect from package.json scripts which commands are available (typecheck, lint, check…).

{
  "hooks": {
    "Stop": [
      {
        "type": "command",
        "command": "npm run typecheck 2>&1 | tail -30",
        "timeout": 60
      }
    ]
  }
}

Template: pre-tool.json (policy enforcement)

{
  "hooks": {
    "PreToolUse": [
      {
        "type": "command",
        "command": "./scripts/validate-tool.sh",
        "timeout": 15
      }
    ]
  }
}

Security checklist

  • Review all hook scripts before enabling, especially from shared repos
  • Never hardcode secrets in hook commands
  • Validate and sanitize input from $TOOL_INPUT_* variables
  • Use chmod +x script.sh for shell scripts

AI-assisted creation

/create-hook     → AI generates a hook JSON file

After creating a hook file

Always run this step automatically after writing any hook JSON file. Use the script at scripts/ensure-hook-setting.js to verify (and if needed update) .vscode/settings.json:

node .github/skills/vscode-copilot-customization/scripts/ensure-hook-setting.js

The script:

  • Does nothing if chat.hookFilesLocations already contains ".github/hooks": true
  • Adds the entry if the key is missing
  • Merges the entry if the key exists but is missing ".github/hooks"
  • Creates .vscode/settings.json if the file doesn't exist yet
Do not tell the user to update settings.json manually — run the script instead.

Key settings (reference)

"chat.hookFilesLocations": {
  ".github/hooks": true
}

6. Agent Plugins

Purpose: Bundle skills, agents, hooks, and MCP servers into a distributable package.

File: plugin.json in plugin root Discovery: VS Code marketplaces (copilot-plugins repo, awesome-copilot repo, custom)

Structure

my-plugin/
├── plugin.json              ← Required metadata
├── skills/
│   └── my-skill/
│       └── SKILL.md
├── agents/
│   └── my-agent.agent.md
├── hooks/
│   └── post-edit.json
└── mcp/
    └── server-config.json

plugin.json template

{
  "name": "my-plugin",
  "displayName": "My Plugin",
  "version": "1.0.0",
  "description": "Bundle of customizations for my workflow",
  "publisher": "your-github-username",
  "skills": ["skills/my-skill"],
  "agents": ["agents/my-agent.agent.md"],
  "hooks": ["hooks/post-edit.json"],
  "mcpServers": []
}

Installing a plugin

// settings.json – add custom marketplace
"chat.plugins.marketplaces": ["owner/repo"],

// Or register a local plugin path
"chat.plugins.paths": ["/path/to/my-plugin"]

Key settings

"chat.plugins.enabled": true

File Locations Reference

TypeWorkspace locationUser 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

All types can be generated with AI assistance directly in chat:

/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 (Preview) for a visual overview:

Command Palette → "Chat: Open Chat Customizations"

Reference files

  • references/frontmatter-reference.md – Complete frontmatter field reference for all types
  • references/examples.md – Real-world examples organized by use case

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.04%
按下载量换算34

Claude

29.72%
按下载量换算26

Cursor

18.37%
按下载量换算16

Gemini CLI

10%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/danielsitek/skills --skill vscode-copilot-customization 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills