Skip to content

Support generating agent files from repo conventions #20

@digitarald

Description

@digitarald

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:

  1. Pull conventions from the repo's existing copilot-instructions.md or from analysis
  2. Generate a code review agent tailored to the detected stack (TypeScript + Vitest conventions, Python + pytest conventions, etc.)
  3. Include appropriate tools, model, and handoffs frontmatter

This closes the loop: Primer checks for agents in readiness, and can now help you create them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions