Copilot
Instructions
Available instructions
Name | Description | Instruction Name |
---|---|---|
Consolidated Instructions | General best practices in one file | - |
JavaScript/TypeScript | Scoped to JS/TS files | javascript |
Go | Scoped to Go files | go |
Kubernetes/Helm | Scoped to K8s YAML files | kubernetes |
GitHub Actions | Scoped to workflow files | github-actions |
Docker | Scoped to Dockerfiles | docker |
Bash/Shell | Scoped to shell scripts | shell |
TypeScript Monorepo | Scoped to TS monorepos | ts-monorepo |
General Development | Universal practices | general |
Usage
This collection follows GitHub's official Copilot instructions format with two approaches:
Option 1: Single File (Recommended for most projects)
sh
curl -fsSL "https://raw.githubusercontent.com/this-is-tobi/tools/main/copilot/copilot-instructions.md" \
-o ".github/copilot-instructions.md"
Option 2: Scoped Instructions (For complex multi-technology projects)
sh
# Create instructions directory
mkdir -p .github/instructions
# Copy specific instructions
INSTRUCTION_NAME="javascript" # or "go", "docker", "kubernetes", etc.
curl -fsSL "https://raw.githubusercontent.com/this-is-tobi/tools/main/copilot/instructions/$INSTRUCTION_NAME.instructions.md" \
-o ".github/instructions/$INSTRUCTION_NAME.instructions.md"
Features
- GitHub Official Format: Uses
.github/copilot-instructions.md
and.github/instructions/*.instructions.md
- Scoped Instructions: Technology-specific instructions with
applyTo
frontmatter - File Targeting: Instructions only apply to relevant file types
- Modular Design: Mix and match technologies as needed
- VS Code Compatible: Full support for advanced scoped instructions
Prompts
Name | Description | Prompt Name |
---|---|---|
Repository Review | Review a repository for code quality, security, and best practices | review |
Usage
sh
# Create instructions directory
mkdir -p .github/prompts
# Copy specific prompt
PROMPT_NAME="review" # or any other prompt name
curl -fsSL "https://raw.githubusercontent.com/this-is-tobi/tools/main/copilot/prompts/$PROMPT_NAME.md" \
-o ".github/prompts/$PROMPT_NAME.md"
Features
- GitHub Official Format: Uses
.github/prompts/<prompt_name>.md
- Comprehensive Review: In-depth analysis of code quality, security, performance, and more
- Detailed Checklist: Covers 19 critical areas of software development
- Actionable Feedback: Provides explanations and solutions for identified issues
- Customizable: Easily adapt the prompt to fit specific project needs