Generates and maintains .github/copilot-instructions.md to ensure Copilot follows project-specific conventions.

Install

mkdir -p .claude/skills/setup-copilot && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15248" && unzip -o skill.zip -d .claude/skills/setup-copilot && rm skill.zip

Installs to .claude/skills/setup-copilot

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Setup GitHub Copilot instructions for a project. Use when: initializing copilot for a new repo, generating or updating .github/copilot-instructions.md, personalizing how Copilot responds, capturing project role/stack/conventions once to avoid repeating them every chat. Triggers: "setup copilot", "initialize copilot", "create copilot instructions", "update copilot instructions", "configure copilot", "personalize copilot", "build copilot-instructions.md", "help Copilot understand my project".
495 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Beginner

Key capabilities

  • Scan the repository for language and runtime signals
  • Identify framework usage and architecture patterns
  • Detect build and test commands from configuration files
  • Extract coding conventions from linters and documentation
  • Compose a `copilot-instructions.md` file with project context

How it works

This skill scans a repository to gather signals about its language, framework, architecture, and conventions, then generates a `copilot-instructions.md` file to provide persistent context for GitHub Copilot. For empty repos, it interviews the user for context.

Inputs & outputs

You give it
A GitHub repository or user-provided project context for an empty repo
You get back
A `copilot-instructions.md` file capturing project role, stack, architecture, commands, and conventions

When to use setup-copilot

  • Initialize Copilot for a new project
  • Update project conventions
  • Set architecture guidelines for AI
  • Personalize Copilot behavior

About this skill

Setup Copilot Instructions

Builds or regenerates .github/copilot-instructions.md — the persistent context file that shapes how GitHub Copilot responds across every chat in this workspace.

What It Produces

A copilot-instructions.md that captures:

  • Role & stack — what kind of project this is and what the agent should behave like
  • Architecture — key components, layers, service boundaries
  • Build & test commands — so agents can run them without asking
  • Conventions — patterns that differ from defaults (naming, error handling, logging, etc.)
  • Key doc links — pointers to deeper docs instead of duplicating content

Procedure

Step 1 — Scan the Repo

Run a broad, parallel scan to collect signals about the project. Look for:

SignalWhere to look
Language / runtimepackage.json, pyproject.toml, Cargo.toml, go.mod, *.csproj, Gemfile, pom.xml, build.gradle
FrameworkImports in entry-point files, config files (next.config.*, vite.config.*, fastapi, django, rails)
ArchitectureFolder structure, src/, app/, services/, packages/, monorepo markers
Build / test commandsMakefile, scripts field in package.json, CI config (.github/workflows/*.yml, Jenkinsfile)
Coding conventionseslint.config.*, .prettierrc, pyproject.toml [tool.ruff], CONTRIBUTING.md
Existing docsREADME.md, docs/, ADR-*.md
Existing instructions.github/copilot-instructions.md, .github/AGENTS.md

Note: Always ignore the .github/ folder during scanning — it contains default Copilot/agent setup boilerplate that is not specific to the project being set up.

If the repo is essentially empty (no code files, no config outside .github/, only .git/) → skip to Step 2 (Empty Repo). If the repo has content → skip to Step 3 (Generate).


Step 2 — Empty Repo Interview

The project is new. Ask the user these questions (can ask all at once):

I can see this repo is empty. To build useful Copilot instructions I need a bit of context:

1. What are you building? (e.g. REST API, web app, CLI tool, mobile app, data pipeline)
2. What language(s) and framework(s) are you planning to use?
3. What's your role on this project? (solo dev, tech lead, full-stack, backend, etc.)
4. Any strong preferences? (e.g. functional over OOP, strict typing, test-first, specific patterns)
5. Are there any agent tools or MCP integrations planned? (e.g. GitHub, databases, Jira)
6. Will this be a team repo shared with others, or personal?

Collect answers, then proceed to Step 3.


Step 3 — Generate copilot-instructions.md

Using the signals from Step 1 or answers from Step 2, compose the file following these rules:

Rules:

  • Include only sections that are meaningful for THIS project
  • Be concise and actionable — every line should guide behavior, not describe what the project does
  • Link to existing docs (See docs/TESTING.md) instead of duplicating them
  • Do NOT add linter-enforced conventions (Copilot cannot override tooling anyway)
  • Keep total file under ~150 lines

Use this structure (omit sections that don't apply):

# Project: <name>

## Role
<Describe what role the agent should adopt — e.g. "You are a senior backend engineer on a FastAPI service." This should reflect the user's own role and expectations.>

## Tech Stack
- Language: <...>
- Framework: <...>
- Runtime / infra: <...>
- Key libraries: <...>

## Architecture
<2–5 bullet points describing major layers, service boundaries, or module layout. Focus on "why" and non-obvious decisions.>

## Build & Test
```bash
# Install
<install command>

# Run locally
<run command>

# Test
<test command>

Conventions

<Non-obvious patterns specific to this project. Examples:> - Prefer <X> over <Y> for <reason> - All errors must be <logged/wrapped/re-raised> using <pattern> - File naming: <snake_case / kebab-case / etc.> - <Any other project-specific deviations from defaults>

Key Docs

Agent Notes

<Optional. Anything specific the agent must know:>

  • Always ask before touching <sensitive area>
  • Prefer editing existing files over creating new ones
  • <Team / repo-specific agent guidelines>

---

### Step 4 — Write and Confirm

1. Write the generated content to `.github/copilot-instructions.md`.
2. Show the user the file path and a brief summary of what was captured.
3. Ask: *"Does this look right? Anything to adjust — your role, missing conventions, or stack details?"*
4. Apply any corrections and confirm the final file.

---

### Step 5 — Suggest Next Steps

After the file is confirmed, suggest relevant follow-ups:

- **Agent-specific instructions** (`.github/instructions/`) — if the project uses specialized skills or agents
- **Custom agents** (`.github/agents/`) — if certain workflows would benefit from dedicated modes
- **Prompts** (`.github/prompts/`) — for repeatable task templates (e.g. code review, PR description)
- **Skills** (`.github/skills/`) — for on-demand multi-step workflows

---

## Quality Checklist

Before finishing, verify:
- [ ] File is at `.github/copilot-instructions.md` (not nested deeper)
- [ ] Role section accurately reflects the user's perspective
- [ ] Build & test commands were verified (or noted as approximate)
- [ ] Conventions are specific and actionable — not generic advice
- [ ] No section duplicates what a linter or existing doc already enforces
- [ ] File is under 150 lines

When not to use it

  • When the repository is essentially empty and no context can be inferred
  • When the `.github/` folder is being scanned for project-specific context
  • When adding linter-enforced conventions to `copilot-instructions.md`

Limitations

  • Always ignore the `.github/` folder during scanning
  • Do NOT add linter-enforced conventions
  • Keep total file under ~150 lines

How it compares

This skill automates the creation of a complete context file for AI assistance, ensuring consistent and relevant responses from Copilot without repetitive manual input.

Compared to similar skills

setup-copilot side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
setup-copilot (this skill)04moReviewBeginner
skill-development179moReviewIntermediate
command-development169moReviewIntermediate
korean-skill-creator89moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

skill-development

anthropics

This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.

17145

command-development

anthropics

This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.

16133

korean-skill-creator

clwmfksek

한글 기반 클로드 스킬 자동 생성 도구. 사용자가 "클로드 스킬을 만들어줘" 또는 "[요구사항] 스킬 만들어줘"라고 요청할 때 사용. Progressive disclosure 원칙을 따르는 한글 문서 구조(SKILL.md + references/)를 자동으로 생성하고, 실전 예시를 포함한 일관성 있는 스킬 템플릿을 제공.

8132

skill-forge

WilliamSaysX

Automated skill creation workshop with intelligent source detection, smart path management, and end-to-end workflow automation. This skill should be used when users want to create a new skill or convert external resources (GitHub repositories, online documentation, or local directories) into a skill. Automatically fetches, organizes, and packages skills with proactive cleanup management.

11115

svelte-expert

Raudbjorn

Expert Svelte/SvelteKit development assistant for building components, utilities, and applications. Use when creating Svelte components, SvelteKit applications, implementing reactive patterns, handling state management, working with stores, transitions, animations, or any Svelte/SvelteKit development task. Includes comprehensive documentation access, code validation with svelte-autofixer, and playground link generation.

11107

frontend-prompt-generator

gharam1234

Generate structured prompts for frontend development tasks following established patterns. Use when the user requests prompts for wireframes, UI implementation, data binding, or routing functionality in React/Next.js projects with specific formatting requirements (Cursor rules, file paths, test-driven development).

679

Search skills

Search the agent skills registry