/max:write-prdfrom max
Transforms vague ideas into grounded PRDs through codebase exploration, Socratic interview, and ambiguity resolution. Useful for spec'ing features, planning from transcripts, or formalizing product requirements.
Ships in max. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn vague ideas into grounded PRDs. Not aspirational prose — a spec that captures what exists, what should exist, and everything an agent with zero prior context would need to execute without asking questions.
Inspired by Matt Pocock's write-a-prd and Ouroboros's specification-first workflow. Synthesizes codebase exploration, Socratic interview, and the grill-me ambiguity gate into a single skill.
Input: the conversation history, any context the caller has pre-loaded (e.g., bugbook:flow may pre-load project context pages before invoking), and whatever the user says.
Output: a markdown PRD with the structure below. Written to a destination the caller specifies, or default docs/prds/<slug>.md if invoked standalone. The PRD content also remains in the conversation so the caller can post-process it.
What this skill does NOT do: reach into Bugbook, Notion, Linear, or any external system directly. It only reads files on disk and context already in the conversation. Callers that want to persist the PRD to an external system (Bugbook page, GitHub issue, Linear ticket) do that themselves after this skill returns.
Composition chain: caller → write-prd → grill-me → ambiguity report → return PRD to caller.
Skip any phase that's already been done by a caller. For example, if bugbook:flow has already pulled Bugbook project context into the conversation, you don't need to re-explore that context.
Read what's already available before asking questions or exploring.
If the conversation is rich with context (transcript, detailed description), skip to Phase 3 — you don't need to ask the user to restate.
If the conversation is thin ("I want to add X"), ask ONE broad question: "Tell me the problem you're solving and any ideas you already have about the solution." Then wait.
Before writing a spec, understand what exists. This is what separates a grounded PRD from an aspirational one.
Ask the user: "What area of the codebase does this touch?" Accept a directory, a file list, or "not sure, help me find it".
Then read the relevant files. Look for:
@Observable, not @ObservableObject")This takes 5-10 minutes and prevents the #1 failure mode: specifying work that conflicts with how the codebase actually works.
Time budget: don't exhaustively map the codebase. Read 5-10 files max. If the scope is huge, ask the user which slice to explore first.
Now that you understand the problem and the existing code, interview the user to resolve what's unclear.
One question at a time. Provide your recommended answer alongside each question.
Walk down each branch of the design tree, resolving dependencies one-by-one. Target these categories:
Interview discipline:
Write the PRD using this structure. This format is Max Forsey's proven spec format; it emphasizes executable clarity over narrative polish.
# <Feature Name>
## Goals
<2-4 sentences. What we're trying to accomplish. Specific enough that "done" is distinguishable from "almost done".>
## Requirements
<Specific behaviors or capabilities that must exist when this is done. Be concrete —
"users can search transcripts with p95 latency under 100ms" not "improve search".>
- [ ] <requirement 1>
- [ ] <requirement 2>
- [ ] <requirement 3>
## Non-Goals
<What we're explicitly NOT doing. This prevents scope creep during execution. Be specific —
"not changing the data model", "not adding new navigation entries", "not handling offline mode".>
## Constraints
<Technical or design constraints discovered during codebase exploration. Things like:
"the editor uses a LazyVStack so virtualized blocks don't support X",
"the existing pattern uses @Observable, not @ObservableObject",
"all new .swift files must be added to Bugbook.xcodeproj/project.pbxproj".>
## Approach
<High-level implementation strategy. Which patterns to follow, which areas of the codebase
to modify, rough order of operations. Not pseudocode — just enough that an agent knows the direction.>
## Open Questions
<Anything unresolved. Tag each with who needs to answer:
- user decision — needs the user to pick
- needs exploration — needs more codebase investigation
- blocked on external — waiting on something outside our control.>
## Discoveries
<Initially empty. Populated by agents during execution as they find unexpected things.
This section is the knowledge loop — each entry includes date, ticket/context, what was found,
and implications for future work.>
Draft discipline:
A small feature PRD, for a hypothetical "add a Cmd+K shortcut to focus the search bar":
# Cmd+K focuses search bar
## Goals
Give the user a one-key way to jump to the search bar from anywhere in the app.
The existing path (click the search field in the sidebar) works but breaks flow
when the user is in the middle of a note. This removes the context switch.
## Requirements
- [ ] Pressing Cmd+K anywhere in the app focuses the search bar
- [ ] If the search bar isn't visible (sidebar collapsed), show the sidebar first, then focus
- [ ] The caret lands at the end of any existing search text (not selected, not cleared)
- [ ] Escape from the focused search bar returns focus to whatever had it before
- [ ] The shortcut is shown in the Help menu alongside other navigation shortcuts
## Non-Goals
- Not changing the search bar's visual appearance
- Not adding a command palette (this is just a focus shortcut, not Cmd+K as in VS Code's command menu)
- Not adding Cmd+K shortcuts for any other UI element — this PRD is for the search bar only
## Constraints
- Cmd+K is currently unbound in Bugbook per a grep of `KeyboardShortcuts` usage — no conflict
- Focus management in SwiftUI requires @FocusState at the parent view level; the search bar is a child of ContentView, so the @FocusState will live there
- The sidebar-collapsed case means we need to listen for the shortcut at a higher level than the sidebar itself — probably at ContentView
## Approach
1. Add a `@FocusState` for the search field in ContentView
2. Add a `.keyboardShortcut("k", modifiers: .command)` to a hidden button or on ContentView itself
3. In the handler, first ensure the sidebar is visible (check `sidebarVisibility` state), then set the focus state to `.searchField`
4. For the Escape return-focus behavior, track the previous focus on entry and restore on `.onSubmit` or escape
Follows the existing pattern in `TicketListView` where keyboard shortcuts are attached at the container level, not the input level.
## Open Questions
- Should Cmd+K also clear the current search, or preserve it? (user decision — default: preserve)
- Does the shortcut need to work when a modal sheet is open? (needs exploration of modal focus behavior)
## Discoveries
<empty — will be populated during execution>
Notice what's concrete in this PRD:
TicketListView)That's the target quality bar.
Before finalizing, invoke the grill-me skill in spec mode against the drafted PRD.
grill-me will:
If the ambiguity report is below threshold, proceed to Phase 6. If above, either iterate on the PRD until it passes or let the user override with "enough".
The ambiguity report gets appended to the PRD as a new section before output.
If max:grill-me is not available (e.g., invoked in an environment without the max plugin), fall back to a passive self-review: read the PRD aloud to yourself, flag anything vague, ask the user one clarifying round, and exit.
Write the PRD to the destination:
docs/prds/<slug>.md where <slug> is a kebab-case version of the feature name. Create the directory if needed.Print the final PRD path and the ambiguity report to the terminal:
✓ PRD written to docs/prds/sidebar-drag-fix.md
Ambiguity: 0.12 (below 0.2 spec threshold)
Return control to the caller.
When called by bugbook:flow:
bugbook:flow pre-loads Bugbook project context into the conversation (via bugbook search + bugbook context), then invokes max:write-prd. write-prd skips Phase 1's conversation scan (already done) and proceeds directly to Phase 2 exploration. After Phase 6, bugbook:flow captures the PRD content and writes it to a Bugbook project context page using bugbook page create.
When called standalone:
User says "write-prd" or "spec this out". write-prd runs all phases from scratch. Output goes to docs/prds/<slug>.md.
When called by another future orchestrator (e.g., Notion adapter):
Same contract. The caller pre-loads Notion page context into the conversation, invokes write-prd, and post-processes the output to a Notion page. write-prd doesn't know or care about Notion.
bugbook query or gh issue create, stop — that's the caller's job, not yours. You output markdown; the caller persists.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub max4c/skills --plugin max11 skills in this plugin
/cookoffAuto-grill a plan, spec, or ticket by running Claude and Codex as interrogator/answerer pairs instead of interviewing the user. Two modes — relay (iterative back-and-forth between Claude and Codex) and parallel (two swapped streams merged into one spec). Produces a pre-chewed artifact where the user only reviews the result, not sits through the interview. Use this skill whenever the user says "cookoff", "pre-grill this", "have codex grill it", "dual grill", "grill this without me", "run grill-me with codex", "cross-examine this plan", or wants the ambiguity-resolution work done autonomously before they review. Also use when the user has a plan/spec/PRD that would normally go through max:grill-me but explicitly wants to skip being interviewed themselves. Supports `--to-tickets` to emit the grilled spec as Dahso Agent Tickets ready for `/go`, and `--to-tickets --go` to chain straight to `dahso:go` without a review pause./design-interfaceExplore multiple radically different interface designs for a feature in parallel before committing to one. Uses parallel sub-agents to generate distinct approaches so you can compare tradeoffs rather than anchoring on the first idea. For UI/UX interface work specifically — not API interface design. Use when the user says "design-interface", "let's explore some designs for X", "what are the options for this screen", or before building any non-trivial UI./grill-meInterview the user relentlessly about a plan, spec, or ticket until every branch of the decision tree is resolved. Produces a per-dimension ambiguity report (Goals / Acceptance / Boundaries / Alternatives / Assumptions) and an aggregate gate. Use this skill whenever the user is drafting a spec, proposing a design, debating an approach, or describing work to hand off — even if they don't say "grill me". Explicit triggers include "grill me", "stress-test this", "am I missing anything", "what are the risks", or any time a non-trivial plan is being finalized. Also invoked as a subroutine by max:write-prd Phase 5, max:tech-spec Phase 6, max:improve-codebase Phase 5, bugbook:flow Phase 2d, bugbook:prep Phase 3, and bugbook:ticket Phase 2d./grill-with-docsA grilling session that stress-tests a plan against the project's documented domain model — sharpens fuzzy terminology, challenges it against the existing glossary, cross-references it with the code, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallize. The domain-aware variant of grill-me — use this instead when the repo has (or should have) a CONTEXT.md glossary or docs/adr/ decision records. Triggers include "grill with docs", "stress-test this against our domain model", "does this match our language", "check this against our glossary", "grill this and update the docs", or any time a non-trivial plan needs to be reconciled with the project's documented decisions./handoffCompact the current conversation into a handoff document so a fresh agent can pick up the work without re-deriving context. Writes a self-contained brief to the OS temp directory — what's been done, what's left, key decisions, gotchas, and which skills to invoke next. Use when the user says "handoff", "write a handoff", "hand this off", "compact this for a new session", "summarize this for another agent", "I'm running low on context", or is about to start a fresh session on the same work. Takes an optional argument describing what the next session will focus on./improve-codebaseArchitectural review and improvement proposals. Reads the codebase for structural opportunities — shallow modules that should be deepened, leaky abstractions, misplaced complexity — and proposes specific changes with tradeoffs. Uses a four-persona pass (Contrarian, Simplifier, Architect, Hacker) to stress-test proposals before presenting. Not a refactoring bot; it produces proposals, not commits. Use when the user says "improve-codebase", "architectural review", "where is this codebase weak", or before starting a big refactor.Other plugins' skills for the same job