Vibeleaderboard
← All Intel
Intel / blog

GitHub Copilot app for Beginners: How to teach Copilot about your codebase

Source
github.blog
Publisher
GitHub
Author
Christopher Harrison
Date

Context

A coding assistant needs a repository's conventions as well as the immediate task. GitHub's Copilot guide recommends storing recurring guidance in the project so developers need not explain it in every conversation. establish broad rules, while path-specific instructions add guidance for matching files.

Repeatable procedures belong in agent skills, which can bundle instructions with scripts and supporting resources. This separates a standing convention, such as how components should be organized, from a procedure, such as which checks to run after an interface change. The guide suggests starting with one convention the team keeps explaining.

Key takeaways · AI-distilled
  • Repository-wide rules go in .github/copilot-instructions.md, while path-specific files in .github/instructions use an applyTo field, so Copilot applies both the broad rules and the file-type guidance when it works on a matching file.
  • Project skills live in .github/skills, one subfolder each, with a whose description tells Copilot when to load it. GitHub's example quality-checks skill lists which scripts run tests and linting, what each checks, and how to troubleshoot common failures.
  • Custom agent profiles in .github/agents define a purpose, instructions, tools and project for recurring multi-file work. GitHub suggests them for tasks such as an accessibility review spanning components, templates, styles and interactions.
  • With the Playwright server configured, Copilot can open the application in a browser and interact with it, so it can check that an updated interface behaves as expected, not only that the code passes automated checks.
  • GitHub's advice is to start small: pick one convention you keep explaining, add it to .github/copilot-instructions.md, and see how Copilot applies it on the next task. The Awesome Copilot community collection offers ready-made instructions, skills and agents to review and adapt.
Terms in this piece · Glossary
  • Repository instructions — Versioned guidance that tells agents how a repository is structured and verified.
  • Model Context Protocol (MCP) — A published agreement for an AI application to discover what a separate program offers and ask it to run one of those offerings.
  • agent skill — A reusable instruction file that teaches an agent how to do one job well — the procedure, the tools, and what counts as done.
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source github.blog
Tools in this story
More from Christopher Harrison
Recommended reads