GitHub Copilot guide
GitHub Copilot uses .github/copilot-instructions.md to customize AI behavior. spaget exports your configuration in this format.
How Copilot instructions work
Section titled “How Copilot instructions work”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.
Building a Copilot agent in spaget
Section titled “Building a Copilot agent in spaget”- Open the visual builder
- Configure your agent with skills and rules
- Export as GitHub Copilot format
- Save the file to
.github/copilot-instructions.mdin your project
Copilot-specific tips
Section titled “Copilot-specific tips”Keep it concise
Section titled “Keep it concise”Copilot instructions work best when they’re focused and clear. Rather than lengthy explanations, use bullet points and short directives.
Focus on code style
Section titled “Focus on code style”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
Next steps
Section titled “Next steps”- Visual builder guide — Full guide to the builder interface
- Export format reference — Technical details on Copilot’s format