Problem
Primer checks for custom agents in readiness (custom-agents criterion) but has no way to generate them. A daily dev who wants to pass this criterion has to write .github/agents/*.agent.md files manually.
The existing generate command handles mcp and vscode configs. Agent files are a natural extension — they follow patterns that can be derived from copilot-instructions.md and repo analysis.
Suggestion
Add primer generate agents (or expand instructions --format agent) to generate .github/agents/code-review.agent.md files that:
- Pull conventions from the repo's existing
copilot-instructions.md or from analysis
- Generate a code review agent tailored to the detected stack (TypeScript + Vitest conventions, Python + pytest conventions, etc.)
- Include appropriate
tools, model, and handoffs frontmatter
This closes the loop: Primer checks for agents in readiness, and can now help you create them.
Problem
Primer checks for custom agents in readiness (
custom-agentscriterion) but has no way to generate them. A daily dev who wants to pass this criterion has to write.github/agents/*.agent.mdfiles manually.The existing
generatecommand handlesmcpandvscodeconfigs. Agent files are a natural extension — they follow patterns that can be derived fromcopilot-instructions.mdand repo analysis.Suggestion
Add
primer generate agents(or expandinstructions --format agent) to generate.github/agents/code-review.agent.mdfiles that:copilot-instructions.mdor from analysistools,model, andhandoffsfrontmatterThis closes the loop: Primer checks for agents in readiness, and can now help you create them.