create-menu
Create the day's pre-made pizza menu: turn a project brief into a structured 8-section PRD with phased implementation guidance.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- create-menu
- model
- opus
- effort
- high
- triggers
- [ "/bytheslice:create-menu", "/create-menu", "create the menu", "plan the menu", "today's menu", "/bytheslice:write-prd", "/write-prd", "write a prd", "generate a prd", "create a prd", "write prd", "build a prd" ]
- description
- Create the day's pre-made pizza menu: turn a project brief into a structured 8-section PRD with phased implementation guidance.
- user-invocable
- true
02 资源文件 5
- 参考文档agents/brief-analyzer.md4.2 KB
- 参考文档agents/consistency-checker.md3.2 KB
- 参考文档agents/prd-reviewer.md5.7 KB
- 参考文档references/prd-template-v2.md7.1 KB
- 参考文档references/project-defaults.md8.0 KB
03 SKILL.md 正文
<!-- skills/create-menu/SKILL.md -->
<!-- Pizza-shop framing: pick the day's pre-made pies for the display tray (the PRD = the menu). PRD generator from a free-form brief; uses plan mode to resolve ambiguity before writing, and invokes prd-reviewer as its final step. -->
Create Menu: PRD Generator
Generate a complete, canonical PRD from a free-form project brief. This skill uses plan mode to resolve ambiguity before writing, and invokes prd-reviewer as its final step.
Mode detection
/create-menu is always standalone. It produces a single output artifact (docs/prd-<slug>.md) regardless of whether a master checklist already exists. No checklist coordination, no Prep-section interaction.
The PRD it produces feeds the next step (/cook-pizzas), but that handoff is a user action, not a skill-to-skill coordination.
Unattended runs (run.unattended: true)
When bytheslice.config.json sets run.unattended: true (/pizza-party does), nothing in this skill waits on a human; the operator accepted that risk by launching the run. Interactive behavior is unchanged when the key is absent.
- Read the order ticket first. Before Step 1, read
docs/pizza-party/order.md: its Brief is the project brief, and its Answers (host, database, auth, look, and the extra interview questions) answer every clarifying question they cover. - Anything the ticket does not cover takes the recommended option. Append one line per such pick to the ticket's "Decisions made without you" section (
- create-menu · <what was decided> · <why, in a clause>), never to Answers. The pick also lands in PRD Section 6 like any plan-mode answer. - Providers come only from the ticket. Host, database, auth and every other service are the ones the Answers name; a service the app needs that the ticket does not name gets a local option (see
project-defaults.md), recorded as a decision. - The reviewer loop never escalates. After 2
reviseiterations, keep the best draft, list every open reviewer item in Section 6 as[TBD-ASSUMPTION](or[TBD-DEFER]), and continue. Neverneeds_human.
Inputs
Collect before generating:
- Project brief (required): free-form description of the product: what it does, who it's for, why it exists.
- Uploaded specs (optional): any existing requirements docs, design specs, API docs, visual references.
- Brand assets (optional): logo, brand guide, color palette, typography references.
- Explicit overrides (optional): deliberate divergences from the default stack, architecture, or conventions.
Reference Files
Read both before entering plan mode:
| File | Used For |
|---|---|
| references/prd-template-v2.md | Section structure, headings, and prompts |
| references/project-defaults.md | Default tech stack, service categories (providers come from what the operator authorized), architecture conditional, token contract |
Step 1: Plan-Mode Question Gate (REQUIRED)
After reading the brief and any uploaded specs, MUST enter plan mode before generating any PRD content. Under run.unattended: true, skip plan mode and the prompts: resolve the same questions from the order ticket, then by recommended option, as in "Unattended runs" above.
Analyze the brief for ambiguities, then generate 3 to 7 clarifying questions. Do not generate more than 7. Cover only what is genuinely ambiguous after inference from context and defaults. Present questions ONE AT A TIME using ask_user_input_v0 (use single_select or multi_select where possible; avoid free-text when a choice set is realistic).
Always provide a recommended answer in available options.
Question topics to cover (only if ambiguous in the brief):
- Target users: who specifically will use this product? (if vague)
- Monetization model: free / subscription / one-time purchase / usage-based / not monetized? (if not stated)
- Scope edges: what is explicitly NOT in scope? (helps populate Section 7)
- Must-have vs nice-to-have: which features are required for launch vs Phase 2?
- Implied integrations: the brief implied [X] but didn't confirm, is it needed?
- Architecture signal: does this need any authenticated experience (auth, dashboard, admin, client portal)? (if unclear, needed for architecture conditional below)
- Any other ambiguity specific to this brief
All answers from plan mode populate Section 6 (Open Questions & Explicit Assumptions) of the PRD.
Step 2: Architecture Conditional Rule
Before writing Section 4 (Technical Architecture), evaluate the architecture type:
| Signal | Architecture |
|---|---|
| Marketing-only single site (no auth, no dashboard, no admin, no client portal) | Single Next.js app, NOT a monorepo |
| Marketing + any combination of: auth, admin panel, client dashboard, user portal | Turborepo monorepo |
Detection: read the brief and plan-mode answers. If unclear, surface this as a plan-mode question (see Step 1). Do not default to monorepo without signal.
This decision drives Section 4 content and the project-defaults.md architecture field.
Step 3: Brief Mapping Heuristic
When parsing the project brief, extract these signals and route them to the right sections:
| Signal in Brief | Routes To |
|---|---|
| Nouns (objects, records, things users interact with) | Section 2 (Functional Requirements), capabilities |
| Verbs (what users do) | Section 2 (Functional Requirements) |
| "For [audience]" or "[role] who needs..." | Section 1 (Problem & Users), user paragraph |
| "So that [outcome]" or "to [achieve X]" | Section 1 (Problem & Users), problem paragraph |
| "Without [thing]" or "instead of [alternative]" | Section 7 (Out of Scope) |
| "Connects to [service]" or "uses [provider]" | Section 2 implied integrations |
| "Must [perform/scale/comply]" | Section 3 (Non-Functional Requirements) |
| Time references ("first," "later," "eventually") | Section 6 (Open Questions, phasing assumptions) |
Step 4: Generation Workflow
- Read both reference files.
- Complete the plan-mode question gate (Step 1).
- Determine architecture type (Step 2).
- Apply the brief mapping heuristic (Step 3).
- Map the project brief to each template section (0 to 7).
- For every section not addressed by the brief:
- Apply defaults from
project-defaults.mdwhere applicable. - Mark unknown specifics with the tagged TBD convention (see below) rather than inventing them.
- When inferring, mark inline:
[Inferred: reasoning].
- Apply defaults from
- Run the Consistency Check (see below) before writing the file.
- Write the complete PRD as a single markdown file to
docs/prd-[project-slug].md. - Dispatch
bytheslice:prd-revieweras the final step: pass the draft PRD plus all source materials. - If reviewer returns
verdict: revise, apply suggestions and re-run the reviewer. Cap at 2 iterations. - If still
reviseafter 2 iterations, returnneeds_human: truewithhitl_category: prd_ambiguity. Underrun.unattended: true, instead keep the best draft, list the open items in Section 6, and continue. - End the response with a generation summary (see format below).
Tagged TBD Convention
Not all gaps are equal. Use these tags so downstream readers know what's urgent:
| Tag | Meaning | Example |
|---|---|---|
[TBD-BLOCKER] |
Must be resolved before Stage 1 work begins | [TBD-BLOCKER] auth model: SSO vs email/password |
[TBD-ASSUMPTION] |
Working assumption documented, validate during design | [TBD-ASSUMPTION] users will tolerate email-only login for MVP |
[TBD-DEFER] |
Can be resolved later in the project lifecycle | [TBD-DEFER] localization scope, English only at launch |
[Inferred: reason] |
Filled in based on context, flag for review | [Inferred: B2B SaaS based on "team workspace" language] |
Consistency Check
Before writing the file, verify:
- [ ] Every capability in Section 2 maps to at least one non-functional constraint in Section 3
- [ ] Every integration implied in Section 2 is accounted for in Section 4
- [ ] Every open question from plan-mode answers appears in Section 6
- [ ] Section 7 contains at least 2 explicit out-of-scope items
- [ ] Architecture choice in Section 4 matches the conditional rule (Step 2)
- [ ] Every
[TBD-BLOCKER]item is surfaced in Section 6
If any check fails, fix the gap before writing the file or explicitly flag it with a tagged TBD.
Output
- File:
docs/prd-[project-slug].md, ordocs/prd.mdif no slug is obvious. - Header: Two lines at top, (1) relative path, (2) one-line semantic description.
- Structure: Follow references/prd-template-v2.md exactly. All sections 0 to 7 must be present, even if sparse. Never omit a section.
Handling Missing Information
| Situation | Action |
|---|---|
| Tech stack not specified | Apply defaults from project-defaults.md |
| Integrations not mentioned | List only the categories the brief implies (database, auth, email, payments); name the provider the operator authorized, or tag it [TBD-ASSUMPTION] (unattended: the ticket's provider, else a local option, recorded). Never fill in a vendor nobody authorized |
| Data model not described | Enumerate entities implied by the brief; mark attributes [TBD-ASSUMPTION] |
| Personas vague | Draft 1 to 2 personas from context; mark with [Inferred: ...] |
| Auth model unspecified | Ask in plan-mode gate (affects architecture conditional) |
| Multi-tenancy unclear | Ask before generating; this affects schema and RLS design |
| Performance targets missing | Apply defaults from project-defaults.md NFR section |
| Out-of-scope not stated | Ask in plan-mode gate; ensure Section 7 is not empty |
prd-reviewer Integration
After writing the PRD, dispatch bytheslice:prd-reviewer (definition) with:
- The draft PRD file path
- All source materials: brief, uploaded specs, brand assets, API docs, visual references
- Plan-mode question answers
The reviewer returns a structured verdict. On verdict: revise, apply the suggested_revisions list and re-dispatch. Cap at 2 iterations. If still failing, set needs_human: true with hitl_category: prd_ambiguity and surface the specific blocking issues. Under run.unattended: true, keep the best draft (the one with the fewest open reviewer items), list each open item in Section 6, record one decision line in the ticket, and continue.
Generation Summary Format
After writing the PRD file and completing the review loop, end the response with:
## PRD Generation Summary
**Confirmed** (from brief, defaults, or plan-mode answers):
- ...
**Assumed** (inferred or working assumptions):
- ...
**Blocked** (TBD-BLOCKER items needing input):
- ...
**Reviewer result**: pass | revise (N iterations)
Completion Checklist
- [ ] Plan-mode gate completed (3 to 7 questions asked and answered; unattended: answered from the ticket or by recommended option, each pick recorded under "Decisions made without you")
- [ ] Architecture conditional evaluated and documented in Section 4
- [ ] All 8 sections (0 to 7) present in the output PRD
- [ ] No Linear references in output
- [ ] Consistency check passed (or gaps flagged with TBD tags)
- [ ]
prd-reviewerdispatched and returnedverdict: pass(or HITL surfaced after 2 iterations; unattended: open items listed in Section 6 and the run continued) - [ ] No host, database, auth, email or payments vendor appears in the PRD unless the operator authorized it
- [ ] PRD written to
docs/prd-[project-slug].md - [ ] Generation summary included in response
- [ ] Every checkbox in the output is a
- [ ]task-list item (no bare[ ]lines)
Handoff Contract
The PRD produced by this skill feeds downstream skills as follows:
| PRD Section | Feeds |
|---|---|
| Section 2 (Functional Requirements) | Drives feature stages in /cook-pizzas |
| Section 3 (Non-Functional Requirements) | Drives CI/CD scaffold gates + visual review checklist |
| Section 4 (Technical Architecture) | Drives monorepo decision + db-schema-foundation conditional |
| Section 5 (UX & Content Fundamentals) | Drives design-system gate input |
| Section 6 (Open Questions & Assumptions) | Drives phased-plan elicitation + HITL category 1 triggers |
| Section 7 (Out of Scope) | Guards every stage from scope creep, referenced throughout orchestration |
Pass the full PRD file path to /cook-pizzas after human review and sign-off (under run.unattended: true, the conductor passes it on directly).
04 同仓库更多 Skills
dashboard
Open the project's approved 3D kitchen in the native Browser pane with a verified localhost state connection, or with --lobby the machine-level lobby of every ByTheSlice project.
special-order
Cook a slice with the customer's specifications on the spot: add new features mid-flight to an existing project. Auto-detects project type and extends the master checklist with new stages.
setup-shop
Start the oven, check ingredients, prep the shop. Bootstrap a new project or configure ByTheSlice in an existing one. First-time install, system-wide config, or per-project setup.
set-display-case
Build the display case the pies will sit in, bootstrap your design system: tokens, Tailwind config, design rules, and the operator-only /library preview route. Run once before /sell-slice; also invocable standalone on any project.
sell-slice
Sell a customer their slice - the high-touch single-slice delivery loop. Execute one slice from your master checklist as an interactive spine (prep gate · recon · build-plan auth · /goal · branch) + Workflow A (produce) + library gate + Workflow B (verify-once). Run me repeatedly, one fresh chat per slice. For autonomous whole-pie baking use /sell-pie.
sell-pie
Bake a whole Pie autonomously - the v5 forefront delivery loop. A /loop-driven baker that drives ONE Pie (a coherent chapter, usually 3 to 8 slices) to "ready for review" without per-slice prompting; each slice runs the context-separated build→test→verify→fix Workflow, commits + pushes (no PR), and advances; when every slice is [x] it stops at the pie boundary and opens one PR via /box-it-up. Refuses flat v4 checklists (points you at /cook-pizzas --repie). For a continuous-review pie (review=continuous) it runs in high-touch /sell-slice mode. Opt-in merge-per-slice delivery (delivery.mode, or an explicit autonomous-delivery run instruction) instead gives each slice its own branch, PR and green-CI merge; opt-in ship-once delivery (delivery.mode, set by /pizza-party) merges each pie into one local ship branch on local gates only and ships one PR at the end. The four blocking HITL categories halt the loop instead of rescheduling (an unattended ship-once run defers the slice instead). Use when the user runs /sell-pie, says "sell a pie", "bake the pie", "run the next pie", "loop the pie", or wants one whole chapter delivered hands-off. For a single careful slice use /sell-slice; for the whole app end to end use /pizza-party.