cowboylogic/ai-dev/copilot-instruction-creator
Claude Code and agent skill by cowboylogic/ai-dev
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Guide for creating custom instructions to tailor GitHub Copilot responses for personal, repository, or organization use. Use this when setting up Copilot customization for better responses.
Install
npx vskill@latest install cowboylogic/ai-dev/copilot-instruction-creatorSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as cowboylogic/ai-dev/copilot-instruction-creator.
Copilot Custom Instructions
This skill provides comprehensive guidance for creating custom instructions that tailor GitHub Copilot's responses to your personal preferences, team workflows, project requirements, or organization standards. Custom instructions help Copilot generate higher quality, more relevant responses without needing to repeat context in every interaction.
When to Use This Skill
Use this skill when:
- Setting up personal custom instructions for consistent Copilot behavior
- Creating repository-wide instructions for project-specific standards
- Developing organization-level instructions for company-wide preferences
- Configuring path-specific instructions for different file types or directories
- Optimizing Copilot responses for coding standards, frameworks, or workflows
- Ensuring consistent AI assistance across team members
Prerequisites
- Always check the latest GitHub documentation: <https://docs.github.com/en/copilot/concepts/prompting/response-customization>
- Access to GitHub Copilot (Pro, Pro+, Business, or Enterprise plan)
- Understanding of your project, team, or organization's needs
- Knowledge of the context where instructions will be applied
Latest Information Check
IMPORTANT: Before creating any custom instructions, always check the official GitHub documentation for the latest information: <https://docs.github.com/en/copilot/concepts/prompting/response-customization>
Key points from the latest documentation:
- Three types: Personal, Repository, and Organization instructions
- Repository instructions include repository-wide, path-specific, and agent instructions
- Precedence: Personal > Repository (path-specific, then repository-wide, then agent) > Organization
- All relevant instruction sets are sent to Copilot; precedence only decides conflicts between them
- Path-specific
.instructions.mdfiles require anapplyToglob in YAML frontmatter - Instructions should be short, self-contained statements
- Support varies by surface (GitHub.com, VS Code, JetBrains, Copilot CLI, and others) — check the support matrix
Instructions
Step 1: Determine Instruction Scope and Type
- Identify the scope: Personal, repository, or organization level?
- Choose instruction type:
- Personal: Individual preferences — Copilot Chat on GitHub.com, or
~/.copilot/copilot-instructions.mdand~/.copilot/instructions/**/*.instructions.mdfor the Copilot CLI - Repository-wide:
.github/copilot-instructions.mdfor entire repository - Path-specific:
.github/instructions/**/NAME.instructions.mdfor specific paths (requiresapplyTofrontmatter) - Agent instructions:
AGENTS.mdanywhere in the repository (the nearest one in the directory tree wins), or a singleCLAUDE.mdorGEMINI.mdat the repository root - Organization: Organization-wide settings (owners only, Copilot Business or Enterprise; GitHub.com Chat, code review, and cloud agent only)
- Assess requirements: What behaviors need to be customized?
Step 2: Analyze Context and Requirements
- Gather project information:
- Project purpose and goals
- Technology stack and frameworks
- Coding standards and conventions
- Team workflows and processes
- Identify pain points:
- Common Copilot suggestions that need correction
- Missing context that causes poor responses
- Inconsistent behavior across team members
- Define success criteria:
- What should Copilot always/never do?
- What standards must be followed?
- What context is always relevant?
Step 3: Structure Your Instructions
- Start with project overview:
``markdown # Project Overview This project is a [description]. It is built using [technologies] and uses [databases/frameworks]. ``
- Document folder structure:
```markdown ## Folder Structure
/src: Contains the source code for the [component]/tests: Contains test files/docs: Contains documentation
```
- Specify coding standards:
```markdown ## Coding Standards
- Use [naming convention] for variables/functions
- Follow [style guide] for formatting
- Use [patterns] for [specific cases]
```
- List libraries and frameworks:
```markdown ## Libraries and Frameworks
- [Library] v[version] for [purpose]
- [Framework] with [configuration]
```
Step 4: Write Effective Instructions
Guidelines for writing instructions:
- Keep statements short and self-contained
- Use natural language
- Focus on broadly applicable information
- Avoid conflicting instructions
- Test for effectiveness
Common instruction patterns:
- Language preferences:
Always respond in [language]. - Coding standards:
Use [convention] for [element]. - Framework usage:
Use [framework] with [library]. - Response style:
Be clear and concise. - Context requirements:
Always consider [requirement].
Step 5: Create the Instruction Files
For Repository Instructions
- Repository-wide instructions:
- Create
.github/copilot-instructions.md - Include all broadly applicable instructions
- Path-specific instructions:
- Create
.github/instructions/directory (subdirectories are allowed) - Add
NAME.instructions.mdfiles (e.g.,frontend.instructions.md) - Start each file with YAML frontmatter containing
applyTo— a glob, or comma-separated globs, matching the files the instructions cover. Without it, the file is never applied. - Optionally add
excludeAgent: "code-review"orexcludeAgent: "cloud-agent"to keep one of those agents from using the file
```markdown
applyTo: "/*.ts,/*.tsx"
Use strict TypeScript. Never use any. ```
- Agent instructions:
- Create
AGENTS.mdfiles anywhere in the repository — the nearest one in the directory tree takes precedence - Alternatively, use a single
CLAUDE.mdorGEMINI.mdat the repository root - Include agent-specific customizations
For Personal Instructions
- GitHub.com: In Copilot Chat, click your profile picture, select Personal instructions, enter your preferences, and save
- Copilot CLI: Create
~/.copilot/copilot-instructions.md, or modular~/.copilot/instructions/**/*.instructions.mdfiles matched byapplyTo - VS Code / JetBrains: Personal instructions live in the IDE's user profile — see the IDE's documentation
For Organization Instructions
- Organization owners only, for organizations with Copilot Business or Copilot Enterprise
- Go to organization Settings > Copilot > Custom instructions
- Enter instructions in the Preferences and instructions box and save
- Applies only to Copilot Chat, Copilot code review, and Copilot cloud agent on GitHub.com
Step 6: Test and Refine
- Test in different contexts:
- Try Copilot Chat with various queries
- Test in different files and scenarios
- Verify behavior across team members
- Monitor effectiveness:
- Check if responses follow instructions
- Identify areas needing clarification
- Gather feedback from team members
- Iterate and improve:
- Refine wording for clarity
- Add missing context
- Remove ineffective instructions
Step 7: Maintain and Update
- Regular review: Check instructions periodically
- Update with changes: Modify when project standards change
- Version control: Track changes to instruction files
- Team communication: Ensure team knows about updates
Examples
Example 1: Repository-Wide Instructions for a React Project
Create .github/copilot-instructions.md:
Example 2: Path-Specific Instructions for Tests
Create .github/instructions/tests.instructions.md:
Example 3: Personal Instructions
In Copilot Chat on GitHub.com (profile picture > Personal instructions):
Example 4: Organization Instructions
For organization owners (Copilot Business or Enterprise), in organization Settings > Copilot > Custom instructions:
Best Practices
Writing Effective Instructions
- Be specific: Use concrete examples rather than vague guidance
- Keep it concise: Short statements are more effective than long explanations
- Test thoroughly: Verify instructions work as intended
- Avoid conflicts: Ensure instructions don't contradict each other
- Update regularly: Review and update as project needs change
Repository Instructions
- Broad applicability: Focus on information relevant to most repository interactions
- Version control: Track instruction files in git
- Team alignment: Ensure instructions reflect team consensus
- Documentation: Reference instruction files in project README
Personal Instructions
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/copilot-instruction-creator/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cowboylogic/ai-dev/copilot-instruction-creator)