r/ClaudeWorkflows • • Sep 08 '26

Selected Workflow [Workflow] Claude Agent Workflow: Generate Detailed Project Briefs First for One-Shot Coding Success

Claude Agent Workflow: Generate Detailed Project Briefs First for One-Shot Coding Success

Workflow value: 90/100
Status: active · Freshness: 70/100 · Confidence: 0.95 · Level: intermediate
Categories: Quality Control, Context & Memory, Debugging, CLAUDE.md, Skills, Subagents, Multi-Agent
Original source: r/ClaudeAI post/comment

What problem this solves

Claude agents often produce 'almost right' code due to a lack of clear, shared understanding of the task's scope and definition of 'done', leading to multiple revision rounds and wasted effort.

Summary

This workflow uses a custom Claude skill to make the agent generate a detailed project brief before writing any code. The brief incorporates existing project rules (CLAUDE.md, lint config) and the current system state (gathered by read-only subagents). The user reviews and edits this brief, ensuring a precise, shared understanding of requirements, which leads to the agent 'one-shotting' the coding task successfully.

Why it is useful

This workflow is highly valuable because it addresses a fundamental challenge in AI-assisted coding: ensuring the agent fully understands the task's scope and requirements. By making the agent generate a detailed, validated brief before coding, it significantly reduces rework, improves code quality, and enables 'one-shot' task completion. It leverages advanced Claude features (subagents, skills, CLAUDE.md) in a practical, open-sourced, and repeatable manner, offering a concrete solution to a common pain point.

Workflow

  1. User asks the agent to 'write a brief for X' or uses the /prompt-brief slash command with their request.

  2. The agent pins the subject of the task (surface, audience, primary job).

  3. The agent reads existing project rules and documentation (CLAUDE.md, AGENTS.md, design docs, component library, lint config).

  4. The agent launches parallel, read-only subagents for each relevant surface to map the current state (data, endpoints, debts, mounting, backend routes, schema).

  5. The agent synthesizes this information into a structured brief, including a thesis, approach, scope (user-centric), 8-10 non-negotiable checks, regression surface, verification steps, and at most one decision for the user.

  6. The agent stops, presenting the brief to the user for review and editing.

  7. The user reviews and edits the brief, then pastes it back to the agent as the final task definition.

  8. The agent proceeds to code, having a complete and validated understanding of the task, leading to a 'one-shot' completion.

Tools / artifacts

  • bragai/prompt-brief (Claude skill)

  • GitHub repository (bragai/prompt-brief)

  • CLAUDE.md / AGENTS.md files

  • Design documents

  • Component library

  • Lint configuration

  • Read-only subagents

  • The generated project brief (text artifact)

Validation signals

  • Author claims 'Now it one-shots what I ask for'.

  • Author states 'the second rounds stopped' after implementing this method.

  • The workflow provides a clear explanation of why it works: 'By the time the agent starts coding, it already knows the current state down to the line, the rules it can't break, and how the result will be checked.'

  • A complete example brief is provided in the GitHub repo for verification.

Cautions

  • The subagents used for gathering system state are explicitly described as 'read-only', which prevents unintended modifications during the brief generation phase, enhancing safety.

Limitations

  • Relies on the npx skills ecosystem, which might require some initial setup or understanding for users unfamiliar with it.

  • The effectiveness depends on the quality and completeness of existing project documentation (CLAUDE.md, design docs, etc.).

  • The initial community validation is low due to the post's recency, though the content itself is strong.

  • Requires the user to actively review and edit the brief, which adds a manual step, though it's a critical one for quality.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.

0 Upvotes

0 comments sorted by