Skip to content

GitHub Copilot guide

GitHub Copilot uses .github/copilot-instructions.md to customize AI behavior. spaget exports your configuration in this format.

GitHub Copilot reads a single instructions file from .github/copilot-instructions.md in your repository. This file contains project-specific guidance for the AI assistant.

  1. Open the visual builder
  2. Configure your agent with skills and rules
  3. Export as GitHub Copilot format
  4. Save the file to .github/copilot-instructions.md in your project

Copilot instructions work best when they’re focused and clear. Rather than lengthy explanations, use bullet points and short directives.

Copilot is primarily used for code completion, so instructions about coding style, patterns, and conventions have the biggest impact:

  • Naming conventions
  • Import patterns
  • Error handling approach
  • Preferred libraries