dx-toolkit / templates
Copilot instructions2 starsChanged 8 months agoMITView on GitHub
This is {{PROJECT_NAME}}. All skills and prompts are organized around a six-phase lifecycle:
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
The file
We split this copilot-instructions.md into the rules it gives an agent
12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
All skills and prompts are organized around a six-phase lifecycle:
- Very specific: line 40
Every agent must have a clear description for discovery
- Very specific: line 55
Use agent: "agent" to run in agent mode by default
- Very specific: line 61
Use applyTo globs for file-type-specific rules (e.g., /*.ts for TypeScript)
- Very specific: line 62
Use description (without applyTo) for on-demand, task-based instructions
- Distinctive: line 65
Keep instructions concise and actionable — they share context window space
- Distinctive: line 81
Keep checklists actionable with clear pass/fail criteria
- Distinctive: line 88
Keep hooks small, fast, and auditable
- Very specific: line 89
Use PreToolUse for guards and validation, PostToolUse for analysis and formatting
- Distinctive: line 94
Keep PRs focused: one concern per PR
- Distinctive: line 95
All tests must pass before merging
- Very specific: line 97
Use the PR template in .github/PULL_REQUEST_TEMPLATE.md
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repository-Wide Instructions for GitHub Copilot
About This Repository
<!-- TODO: Replace this placeholder with a description of your project.
Describe what it does, its architecture, and key technologies. -->This is {{PROJECT_NAME}}.
Development Lifecycle
All skills and prompts are organized around a six-phase lifecycle:
EXPLORE → OUTLINE → DEVELOP → CHECK → POLISH → LAUNCH| Phase | Command | What Happens |
| EXPLORE | /explore | Explore ideas, write specs, onboard to codebase |
| OUTLINE | /outline | Outline specs into ordered, verifiable tasks |
| DEVELOP | /develop | Develop in thin vertical slices |
| CHECK | /check | Debug failures, write regression tests |
| POLISH | /polish | Simplify code, optimize performance, audit security |
| LAUNCH | /launch | Version, document, deploy, monitor |
Code Conventions
<!-- TODO: Add your project's code conventions. Examples:
- Language and framework version requirements
- Naming conventions (files, functions, variables)
- File and folder organization rules
- Testing requirements and patterns
- Linting and formatting standards -->Agent Conventions
- Agent files live in
.github/agents/and use the.agent.mdextension - Agent names use kebab-case matching their filename (e.g.,
bug-fixer.agent.md→name: bug-fixer) - Every agent must have a clear
descriptionfor discovery - Agents use
tools: ["read", "edit", "search", "execute", "github/*"]unless they specifically need fewer tools - Agent prompts follow a Workflow → Constraints structure
- There are three categories of agents:
- General-purpose: bug-fixer, feature-implementer, refactorer, test-writer, docs-updater, docs-humanizer, security-fixer, performance-optimizer, dependency-updater
- Technology-specialized: domain-specific experts for various tech stacks
- Content-specialized: seo-writer, marketing-expert
Prompt Conventions
- Prompt files live in
.github/prompts/and use the.prompt.mdextension - Two categories of prompts:
- Lifecycle prompts: explore, outline, develop, check, polish, launch — map to the six development phases
- Task prompts: focused single-task prompts for specific operations
- Include a
descriptionfor discoverability via the/slash menu - Use
agent: "agent"to run in agent mode by default - Specify
toolsonly when the task needs specific tool access
Instruction Conventions
- Instruction files live in
.github/instructions/and use the.instructions.mdextension - Use
applyToglobs for file-type-specific rules (e.g.,**/*.tsfor TypeScript) - Use
description(withoutapplyTo) for on-demand, task-based instructions - Context mode instructions (
context-*.instructions.md) shift agent behavior for development, review, research, or debugging - One concern per file — don't mix testing rules with API design rules
- Keep instructions concise and actionable — they share context window space
Skill Conventions
- Skills live in
.github/skills/<skill-name>/SKILL.md - Skill folder name must match the
namefield in frontmatter - Skills include step-by-step procedures with templates
- Skills are self-contained — all necessary context is in the SKILL.md
- Required sections: Overview, When to Use, Process/Procedure
- Recommended sections: Common Rationalizations, Red Flags, Verification
Reference Conventions
- Reference checklists live in
.github/references/ - Available references: testing-patterns, security-checklist, performance-checklist, accessibility-checklist, mobile-checklist, api-patterns, error-handling-patterns, observability-checklist, monorepo-patterns, architecture-patterns
- Referenced by skills and prompts — not used standalone
- Keep checklists actionable with clear pass/fail criteria
Hook Conventions
- Hook configs live in
.github/hooks/*.json - Hook scripts live in
.github/hooks/scripts/ - Available hooks: format-on-edit, guard-protected-files, commit-message-validator, secret-scanner, console-log-detector, todo-tracker, file-size-limiter, test-companion-reminder, config-protector, large-dependency-guard
- Keep hooks small, fast, and auditable
- Use
PreToolUsefor guards and validation,PostToolUsefor analysis and formatting
PR Guidelines
- PRs should reference the issue they resolve with
Closes #N - Keep PRs focused: one concern per PR
- All tests must pass before merging
- Documentation must be updated if behavior changes
- Use the PR template in
.github/PULL_REQUEST_TEMPLATE.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

