Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

vscode-copilot-instructions

БесплатноБез исполняемых скриптовНе проверен

Expert guidance for creating VSCode Copilot custom instructions, prompt files, and AGENTS.md files. Use when user wants to create, modify, or understand…

diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Об этом скилле

VSCode Copilot Custom Instructions & Prompt Files

Expert guidance for creating and managing VSCode Copilot customization files including custom instructions, prompt files, and agent configurations.

When to Use This Skill

Activate this skill when:

  • Creating .github/copilot-instructions.md files
  • Building .instructions.md files with applyTo patterns
  • Setting up AGENTS.md configurations
  • Creating .prompt.md reusable prompts
  • Configuring YAML frontmatter for any of these file types
  • Understanding variable syntax (${variable})
  • Referencing tools (#tool:toolName) or files in instructions
  • Troubleshooting instruction file activation issues
  • Sharing custom instructions across teams or repositories

Quick Overview: File Types

1. .github/copilot-instructions.md

Always-on workspace instructions — Applied automatically to all chat requests in the workspace.

When to use: General coding guidelines, team conventions, project-specific rules that apply throughout the project.

Location: .github/copilot-instructions.md at workspace root

Example:

# Project Guidelines

- Use TypeScript for all new code
- Follow functional programming patterns
- Write tests using Jest
- API responses must use our standard error format

📄 Complete Guide: references/copilot-instructions-guide.md


2. .instructions.md Files

Conditional, targeted instructions — Apply to specific file types, locations, or tasks using applyTo glob patterns.

When to use: Language-specific guidelines, framework-specific patterns, file-type-specific rules.

Location: .github/instructions/ folder or user profile

Example:

---
name: python-coding-standards
description: Python coding standards and best practices
applyTo: "**/*.py"
---

# Python Standards

- Follow PEP 8 style guide
- Use type hints for all functions
- Write docstrings using Google style

📄 Complete Guide: references/instructions-files-guide.md


3. AGENTS.md File

Multi-agent workspace instructions — Useful when working with multiple AI agents, applied automatically like copilot-instructions.md.

When to use: When you work with multiple AI coding assistants and want unified instructions.

Location: Workspace root, or subfolders (experimental)

Example:

# Agent Guidelines

All agents working in this codebase must:

- Never modify files in the `legacy/` directory
- Always run tests before committing
- Use the project's error handling utilities

📄 Complete Guide: references/agents-md-guide.md


4. .prompt.md Files

Reusable, on-demand prompts — Triggered via /command in chat for specific development tasks.

When to use: Standardized workflows, code generation templates, review checklists, common development tasks.

Location: .github/prompts/ folder or user profile

Example:

---
name: create-react-component
description: Generate a React component with TypeScript and tests
argument-hint: component-name
agent: edit
---

# Create React Component

Create a new React component named ${input:componentName} with:

1. TypeScript interface for props
2. Function component implementation
3. Jest test file with basic tests
4. Storybook story file

Follow our component patterns in [docs/component-guidelines.md](docs/component-guidelines.md).

📄 Complete Guide: references/prompt-files-guide.md


Decision Tree: Which File Type?

Do you want instructions that apply automatically?
├─ YES → Always-on for entire workspace?
│   ├─ YES → Use .github/copilot-instructions.md
│   └─ NO → Apply to specific files/patterns?
│       └─ Use .instructions.md with applyTo pattern
│
└─ NO → Want to trigger on-demand?
    └─ Use .prompt.md file (invoked via /command)

Also consider: Use AGENTS.md if working with multiple AI agents simultaneously.


Common Elements Across All File Types

YAML Frontmatter (Optional but Recommended)

All file types support YAML frontmatter for metadata:

---
name: file-name-slug
description: What this file does
applyTo: "**/*.py"           # .instructions.md only
agent: edit                  # .prompt.md only
tools: [githubRepo, files]   # .prompt.md only
---

Variable Syntax

Reference dynamic values in file bodies:

- `${workspaceFolder}` — Workspace root path
- `${file}` — Currently open file path
- `${selection}` — Selected text
- `${input:variableName}` — User input from chat
- `${input:variableName:placeholder}` — With placeholder hint

📄 Complete Reference: references/variables-and-references.md

Tool References

Reference agent tools using special syntax:

Use #tool:githubRepo to search the repository.
U
Полный SKILL.md на GitHub

Установить vscode-copilot-instructions в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

FAQ

Что делает скилл vscode-copilot-instructions?

Expert guidance for creating VSCode Copilot custom instructions, prompt files, and AGENTS.md files. Use when user wants to create, modify, or understand .github/copilot-instructions.md, .instructions.md, AGENTS.md, or .prompt.md files. Includes YAML frontmatter structure, variable syntax, tool references, and best practices for each file type.

Как установить скилл vscode-copilot-instructions?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл vscode-copilot-instructions запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить vscode-copilot-instructions с