Spec

From g2i-ai/agents · View interactive version

Spec is an AI agent skill from the GitHub repository g2i-ai/agents. Transform a product brief into a technical specification.

How to use this skill

Skill file

Spec

Invocation

This skill is performed in the Architect persona. If you are not already running as Architect (for example, the user invoked /spec directly), read subagents/architect.md and adopt its role guidance for the rest of this task. Stay in the current chat—do not delegate the skill itself to a subagent. You should, however, aggressively delegate codebase research to research subagents (see Codebase Discovery below) so that only their summarized findings—not raw file contents—land in this conversation.

Objective

Transform a product brief into a technical specification and save it to docs/specs/{project-name-slug}.md.

Instructions

  1. Explain the brief-to-spec transformation.
  2. Ask for the brief path and extract the goal, target users, constraints, and success metrics.
  3. Codebase discovery. Before asking the user technical questions, dispatch research subagents in parallel for each independent area the spec needs to ground itself in. Typical areas:

Each subagent prompt MUST request a structured summary, not file dumps. Require the subagent to return:

Treat the returned summaries as your working knowledge of the codebase. Only Read a file directly in this chat if a subagent summary is insufficient and you need a specific snippet to ground a decision in the spec. Inline Read/Grep is the exception, not the default.

  1. Ask focused technical discovery questions one at a time as needed, informed by the discovery findings:
  1. Read templates/tech-spec-template.md and follow its structure. Capture the discovery findings as compact citations (path and line range with a one-line note), not pasted source.
  2. Keep the testing plan at the requirements and assertions level, not the implementation level.
  3. Save the spec to docs/specs/{project-name-slug}.md.
  4. If the brief has a status field, update it from draft to completed.
  5. End with the spec path, the most important technical decisions, and the recommended next step: /tdd or /code.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.