From claude-agent-dev
Structured discovery to prevent rework. Use for new product features or ambiguous requirements. Trigger on: 'let's build a feature', 'new feature', 'I want to implement', 'add X to', 'ambiguous design', 'unclear terminology', 'requirements discovery', 'brainstorming', 'stakeholder probe', 'glossary definition'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-agent-dev:brainstormingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Structured discovery to prevent rework. Always run for new features or ambiguous requirements.
Structured discovery to prevent rework. Always run for new features or ambiguous requirements.
Do not propose code, file changes, or a concrete implementation plan for a new feature or ambiguous request until Phase 6 produces an approved Design Brief. Sketching the approach in a doc is still Phase 4 — it still needs Phase 1 Discovery first. Does not apply to bug fixes, typos, or one-line config changes with no design space."This is too simple to need discovery" is the rationalization that defeats this skill most often: a request that looks trivial can still hide unstated stakeholders, terminology conflicts, or existing analogous code that Phase 1 would have surfaced. If a request truly has zero ambiguity and one obvious implementation, say so explicitly and name which step (Stakeholder Probe, Codebase Scan, Understanding Statement) you are skipping and why — never skip silently.
Default subagent type for every dispatch below: general-purpose. Type is only called out where it differs.
digraph brainstorming {
rankdir=TB;
node [shape=box, style=rounded, fontname="Helvetica"];
edge [fontname="Helvetica", fontsize=10];
ResumeCheck [label="0. Resume Check", shape=diamond];
Discovery [label="1. Discovery"];
DomainClarity [label="2. Domain Clarity"];
ExpertClarify [label="3. Expert Clarification"];
DesignProposal [label="4. Design Proposal"];
StructuredReview [label="5. Structured Review"];
DesignBrief [label="6. Design Brief"];
ResumeCheck -> Discovery [label="no match"];
ResumeCheck -> DomainClarity [label="resume at 2"];
ResumeCheck -> ExpertClarify [label="resume at 3"];
ResumeCheck -> DesignProposal [label="resume at 4"];
ResumeCheck -> StructuredReview [label="resume at 5"];
Discovery -> DomainClarity [label="ambiguous terms"];
Discovery -> ExpertClarify [label="needs clarification"];
Discovery -> DesignProposal [label="scope S, no unknowns"];
DomainClarity -> ExpertClarify;
ExpertClarify -> DesignProposal;
DesignProposal -> StructuredReview [label="flagged: scope L/XL,\nhigh risk, or attack surface"];
DesignProposal -> DesignBrief [label="not flagged"];
StructuredReview -> DesignBrief [label="approved"];
StructuredReview -> DesignProposal [label="rejected", style=dashed];
StructuredReview -> StructuredReview [label="revise", style=dotted];
}
Before Discovery, check for an in-progress session on this topic.
.brainstorm/*.memlog.md; match by the topic: frontmatter field against the current request. No match → proceed to Phase 1; no file is created yet..bak-<timestamp> suffix, proceed to Phase 1 fresh.status: abandoned in the frontmatter, stop..brainstorm/<topic-slug>.memlog.md at the end of Phase 1 (not before — short, never-interrupted sessions don't need one). After every phase completes or a gate resolves, append an entry and update the phase/status/updated frontmatter fields. Phase 5 reviewer returns are logged individually as each one returns, not batched — this is what makes mid-dispatch resume possible. Set status: done at the end of Phase 6.action: Stakeholder Probe
Identify the primary users and confirm via AskUserQuestion — the tool supplies a free-text "Other" automatically, so don't add one manually:
Skip this question entirely if the request already names a single unambiguous audience (e.g. "add an admin-only export button") — confirming the obvious wastes a turn.
references/codebase-scanner-prompt.md before dispatching.python '<skill-dir>/scripts/compress_report.py' — this becomes "the compressed scan report" used in Phase 4..brainstorm/<topic-slug>.memlog.md (see Phase 0) with the scope estimate, stakeholder choice, Understanding Statement, and Phase 5 flag state + reason.action: Define Term
For each ambiguous term, propose a definition via AskUserQuestion — the tool supplies a free-text "Other" automatically, so don't add one manually. Batch all ambiguous terms from this request into one AskUserQuestion call (one question per term, up to 4) instead of one round-trip per term:
glossary.md or CONTEXT.md, append the term there. If neither exists, create glossary.md at the project root — it is the canonical file for term definitions; CONTEXT.md is for architectural/contextual notes, not glossaries.Select 1-2 techniques (max 4 questions total):
Log: Append the techniques used and key answers to the session log.
references/design-proposer-prompt.md) with the compressed scan report and discovery findings.Runs only if the Phase 5 flag is set (canonical condition: Phase 1's Adaptive Routing), or the user explicitly asks to "stress test" or "review" the design.
Parallel Adversarial Loop: Reviewers run concurrently for objectivity and lower latency.
references/structured-review-prompt.md before dispatching. Spawn the Skeptic, Constraint Guardian, and User Advocate templates from that file as three parallel Agent() calls (contract shape: ../multi-agent-dispatch/references/subagent-contract.md). Each sees only the design and context packet — none sees the others' objections or your internal reasoning.
references/structured-review-prompt.md — discard wording/style objections rather than logging them.references/structured-review-prompt.md) with the original design, the revised design, and the full Response Log.APPROVED, REVISE (back to step 2), or REJECT (back to Phase 4).APPROVED.Produce mandatory markdown-kv brief and persist it:
Persist: Write the brief to docs/design/YYYY-MM-DD-<topic>-design.md in the target codebase (today's date, kebab-case topic slug). Present it in chat first — the file is a durable record for the planning handoff, not a substitute for the conversational approval.
Commit (ask first): Ask whether to commit the file. Default to not committing — this skill runs against arbitrary user codebases, and an uninvited commit is a bigger surprise than a leftover untracked file. Skip the question if the directory isn't a git repo.
Log: Append the final brief and set status: done in the session log's frontmatter.
next skills:
planning: To transform the design brief into a concrete implementation spec and task list.architecting: To refine boundaries or choose patterns if the design reveals structural complexity.npx claudepluginhub j0hanz/claude-agent-dev-pluginProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.