[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JK6K6SH4N8Q597D3ABRRMR":3,"skill-same:01M6JK6K6SH4N8Q597D3ABRRMR":118},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":63,"repositoryHtmlUrl":64,"repositoryHomepageUrl":6,"ownerHtmlUrl":65,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":66,"install":67,"resources":79},"01M6JK6K6SH4N8Q597D3ABRRMR","setup-shop",null,"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.","steve-piece\u002Fbytheslice","steve-piece","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F190656564?v=4","01M6JK3M1VYSHFKN1PW540DV5H","Steven Light","01M6JK3MDHEWS5WHC4H0RNKTD9",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-shop\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"setup shop","setup","shop","new","true","system","for","new project","opus","start","install","config","create","configure","open","up","time","project","monorepo","app","SET","2026-11-10 10:12:30",false,"---\nname: setup-shop\ndescription: \"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.\"\nmodel: opus\neffort: high\nuser-invocable: true\ntriggers: [\"\u002Fbytheslice:setup-shop\", \"\u002Fsetup-shop\", \"set up the shop\", \"open the pizza shop\", \"\u002Fbytheslice:setup\", \"\u002Fsetup\", \"set up bytheslice\", \"configure bytheslice\", \"scaffold a new project\", \"first time using bytheslice\", \"create a new monorepo\", \"bootstrap a new app for bytheslice\"]\n---\n\n\u003C!-- skills\u002Fsetup-shop\u002FSKILL.md -->\n\u003C!-- Pizza-shop framing: this is the morning-prep \u002F shop-opening action: chairs out, oven hot, lights on. Three-flow setup orchestrator: first-time-install (system-wide), new-project (bootstrap + per-project config), existing-project (per-project config only). All ByTheSlice personalization flows through this skill. -->\n\n# Setup\n\nByTheSlice setup orchestrator. Drives every first-touch interaction with the plugin: system-wide install, new-project scaffold, and per-project config customization.\n\n## Mode detection\n\n`\u002Fsetup-shop` is **always standalone** by nature; it's the entry point. There is no parent checklist to coordinate with. Mode detection is a no-op here; the skill simply runs its three-flow logic (first-time install \u002F new-project \u002F existing-project) and exits.\n\n## Reference Files\n\nRead all of these before beginning:\n\n| File | Purpose |\n| --- | --- |\n| [references\u002Fbytheslice-config-schema.md](references\u002Fbytheslice-config-schema.md) | Full config schema, precedence rules, per-key documentation |\n| [references\u002Fbytheslice.config.example.json](references\u002Fbytheslice.config.example.json) | Copy-pasteable JSONC starter, every block commented out |\n| [references\u002Fmodel-tier-guide.md](references\u002Fmodel-tier-guide.md) | Per-agent model tier defaults; cross-link from `modelTiers` config block |\n| [references\u002Fbootstrap-templates-catalog.md](references\u002Fbootstrap-templates-catalog.md) | Documents which scaffolders Step 1 wraps (`create-next-app`, `create-turbo`, `create-vite`, `create-svelte`, `create-astro`) and why |\n| [references\u002Fframework-detect.md](references\u002Fframework-detect.md) | Canonical stack list, detection signals, and per-framework path map. Read this BEFORE Step 1's stack question and BEFORE any skill branches on framework. |\n\n## Flow Selection\n\nDetect which flow applies before doing anything else:\n\n```\n1. Does ~\u002F.bytheslice\u002Fdefaults.json exist?\n   No  → consider Flow A (offer first-time install) before continuing\n   Yes → skip to step 2\n\n2. Working directory contains a package.json?\n   No  → Flow B (new project: bootstrap + per-project config)\n   Yes → Flow C (existing project: per-project config only)\n```\n\nIf the user explicitly asks for first-time install (e.g. \"configure my ByTheSlice defaults\", \"system-wide setup\"), run **Flow A** regardless of detection.\n\n---\n\n## Flow A: First-time install (system-wide setup)\n\n**Goal:** create `~\u002F.bytheslice\u002Fdefaults.json` so future projects can opt in to your preferred defaults via Group 1.\n\n**When this fires:**\n- `~\u002F.bytheslice\u002Fdefaults.json` does NOT exist, AND\n- The user is willing to set up defaults now (ask first; many users prefer per-project answers).\n\n**Procedure:**\n\n1. Ask: *\"ByTheSlice can store system-wide defaults at `~\u002F.bytheslice\u002Fdefaults.json` so you don't have to answer the same setup questions on every project. Want to set those up now?\"*\n   - `single_select: [\"Yes, set up system-wide defaults\", \"No, skip; ask per project\"]`\n2. If yes: run the **Group 2** questions below, but write the answers to `~\u002F.bytheslice\u002Fdefaults.json` instead of a per-project file.\n3. Print: *\"Defaults saved at `~\u002F.bytheslice\u002Fdefaults.json`. Future runs of `\u002Fbytheslice:setup-shop` will offer these as one-click defaults via the 'use defaults?' question.\"*\n4. After Flow A completes, fall through to Flow B or C based on the working-directory detection.\n\n---\n\n## Flow B: New project (Bootstrap + Config + CI\u002FCD baseline)\n\n**Goal:** scaffold a fresh project on disk, drop in a per-project `bytheslice.config.json`, gitignored `ROADMAP.local.md`, and offer to scaffold the CI\u002FCD baseline.\n\n**When this fires:** working directory contains no `package.json` (parent folder of a new project).\n\n**Step 1: Project Bootstrap (REQUIRED in Flow B).** See [Step 1](#step-1-project-bootstrap) below.\n\n**Step 2: Per-project Config Customization (REQUIRED).** See [Step 2](#step-2-per-project-config-customization) below.\n\n**Step 3: CI\u002FCD Baseline Check (REQUIRED, but the SCAFFOLD action is optional).** See [Step 3](#step-3-cicd-baseline-check-flow-b-and-flow-c-only-skipped-in-flow-a) below. Detects whether the baseline exists; offers to scaffold via `\u002Fbytheslice:final-quality-check` if not.\n\n**Step 4: Feature intake (REQUIRED).** See [Step 4](#step-4-feature-intake-flow-b-and-flow-c-only) below. Writes the Feature intake rule into the project rules file and confirms the workflow nudge is wired.\n\n---\n\n## Flow C: Existing project (Config + CI\u002FCD baseline)\n\n**Goal:** drop a per-project `bytheslice.config.json` into a project that already exists, then check CI\u002FCD readiness.\n\n**When this fires:** working directory contains a `package.json`.\n\nSkip Step 1 entirely. Run **Step 2**, then **Step 3**, then **Step 4**. Step 3 is what makes this flow viable for projects that aren't going through the full PRD-to-phased-dev workflow, `special-order` and `sell-slice` need the CI\u002FCD baseline to be present.\n\n---\n\n## Step 1: Project Bootstrap\n\n(Flow B only, skipped in Flow C.)\n\n### Phase 1: Plan-Mode Question Gate\n\nEnter plan mode and ask the user with `ask_user_input_v0`, one question at a time. If `bootstrap.{variant,stack,roadmapFile}` are all set in `~\u002F.bytheslice\u002Fdefaults.json` (and the user opted into defaults in Step 2 Group 1), skip this gate and use those values directly.\n\n**Q-bootstrap-variant**\n> \"Single application or Turborepo monorepo?\"\n> single_select: [\"single-app, one frontend app\", \"monorepo, Turborepo with apps\u002F and packages\u002F\"]\n\n**Q-bootstrap-name**\n> \"What's the project name? Use kebab-case (lowercase, hyphens only).\"\n> text_input: regex `^[a-z][a-z0-9-]*[a-z0-9]$`\n\n**Q-bootstrap-stack**\n> \"Which frontend stack? Next.js App Router is the most-validated path end-to-end. Vite + React, SvelteKit, and Astro are detected and bootstrapped correctly, but the Phase 4.5 library-preview templates currently assume Next App Router conventions; non-Next stacks will hit an HITL bubble at that gate until per-framework adapters land. Pure Node API skips the frontend pipeline entirely. See [`references\u002Fframework-detect.md`](references\u002Fframework-detect.md) for the full support matrix.\"\n> single_select: [\"Next.js (TypeScript, App Router, Tailwind, Turbopack), recommended\", \"Vite + React (TypeScript, Tailwind)\", \"SvelteKit (TypeScript, Tailwind)\", \"Astro (TypeScript, Tailwind)\", \"Node API only (no frontend)\"]\n\n**Q-bootstrap-roadmap**\n> \"Create a `ROADMAP.local.md` for personal future-version notes? It will be gitignored.\"\n> single_select: [\"Yes, create ROADMAP.local.md\", \"No, skip\"]\n\nConfirm answers before proceeding.\n\n### Phase 2: Run the official scaffolder\n\nRead [`references\u002Fbootstrap-templates-catalog.md`](references\u002Fbootstrap-templates-catalog.md) for the exact invocation. Single-app uses `create-next-app`; monorepo uses `create-turbo`.\n\nAfter scaffolding, `cd \u003Cproject-name>` for the remaining steps.\n\n### Phase 3: Initial commit\n\n```bash\ngit add -A\ngit commit -m \"chore: scaffold project via \u002Fbytheslice:setup-shop\n\nStack: \u003Cstack>\nVariant: \u003Cvariant>\"\n```\n\n### Phase 4: Update .gitignore\n\nAppend to the new project's `.gitignore`:\n\n```\n# Personal scratchpad files (gitignored by convention)\n*.local.md\nROADMAP.local.md\n\n# Per-user AI tooling workspaces\n.claude\u002F\n.cursor\u002F\n.aider*\n.continue\u002F\n.codex\u002F\n.windsurf\u002F\n```\n\n### Phase 5: Create the roadmap file (if Q-bootstrap-roadmap = Yes)\n\nWrite `ROADMAP.local.md` at the new project root:\n\n```markdown\n# Roadmap (local, gitignored)\n\nPersonal scratchpad for future versions and next dev stages. Not committed to the remote.\n\n## Next ByTheSlice run\n- [ ] Brief idea\n- [ ] Brand notes \u002F design references\n- [ ] Open questions to resolve before \u002Fbytheslice:create-menu\n\n## Future versions \u002F Phase 2+\n- [ ] ...\n\n## Friction notes (for future \u002Fbytheslice:close-shop)\n- [ ] ...\n```\n\nThen proceed to **Step 2**.\n\n### Hard constraints: Step 1\n\n- **One bootstrap per project root.** If working directory contains a `package.json`, refuse Step 1 and switch to Flow C (Config only). Surface: *\"Detected an existing project at \u003Cpath>. Skipping bootstrap; running per-project config setup only.\"*\n- **Non-Next.js stacks bootstrap fine but library-preview templates aren't fully adapted yet.** When the user picks Vite + React, SvelteKit, or Astro, run the matching scaffolder from [`references\u002Fframework-detect.md`](references\u002Fframework-detect.md) and proceed normally; they get a working design system + CI\u002FCD scaffold. The first time `\u002Fsell-slice` Phase 4.5 (Library Preview Gate) fires on one of these stacks, it will bubble HITL asking the operator to confirm the route convention. Track which stacks see active use via `\u002Fbytheslice:close-shop` so per-framework adapters can be prioritized. **Remix and other stacks not in framework-detect.md** are still out of scope; bubble HITL and stop.\n- **Never modify files outside the new project directory** during bootstrap.\n- **Never delete anything.** Step 1 is purely additive.\n\n---\n\n## Step 2: Per-project Config Customization\n\nGenerate a `bytheslice.config.json` at the project root (or `~\u002F.bytheslice\u002Fdefaults.json` for Flow A). All keys are optional; the plugin uses built-in defaults for anything you omit.\n\n### Group 1: Use system-wide defaults?\n\n**Skip Group 1 entirely if `~\u002F.bytheslice\u002Fdefaults.json` does NOT exist** (no defaults to opt into yet; go straight to Group 2). Skip Group 1 in Flow A (we're CREATING the defaults file in this flow).\n\n**Q-defaults**\n> \"You have system-wide defaults at `~\u002F.bytheslice\u002Fdefaults.json`. Want to use them as the starting point for this project?\"\n> single_select: [\"Yes, copy my system-wide defaults into this project\", \"No, answer the per-section questions below\"]\n\nIf yes: copy `~\u002F.bytheslice\u002Fdefaults.json` content into the project's `bytheslice.config.json` and skip Group 2, except **Q-gates** below, which always runs. Print the resolved values for the user to review.\n\nIf no: continue to Group 2.\n\n### Group 2: Per-section questions\n\nOne question per top-level config section. Multi-select where multiple apply, single-select otherwise. Sections that take freeform input (\"custom rules\", \"additional categories\", \"bootstrap defaults\") include a \"No \u002F skip\" option plus a text-input alternative.\n\n**Always provide a recommended answer in available options.**\n\n**Q-modelTiers**\n> \"How do you want to handle per-agent model tier assignments? Each agent has a default tier per [`skills\u002Fsetup-shop\u002Freferences\u002Fmodel-tier-guide.md`](references\u002Fmodel-tier-guide.md). Most projects don't need overrides.\"\n> single_select: [\"Use plugin defaults (recommended)\", \"I'll edit the modelTiers block manually after generation\"]\n\nIf \"Use plugin defaults\": leave `modelTiers: {}` in the generated file. If \"edit manually\": leave `modelTiers: {}` plus a comment block listing the most-overridden agents (`implementer`, `qualityReviewer`, `sliceVerifier`) for the user to fill in.\n\n**Q-stages**\n> \"Use the default stage shape (6 tasks max per stage, at most 20 to 30 feature stages, fewer for a small app)? The defaults work for most projects. Lower the task cap for tighter slices; the band is a ceiling, never a target to pad toward.\"\n> single_select: [\"Yes, use defaults\", \"No, set custom values\"]\n\nIf \"No\": follow up with two text inputs:\n- *\"Max tasks per stage (1 to 8)?\"*, text_input\n- *\"Target feature-stage band (e.g. `10-15`, `30-40`)?\"*, text_input\n\n**Q-mcps** (multi_select)\n> \"Which MCPs do you have installed in this workspace? Pick the ones you actually have running locally; the plugin reads this in addition to the project rules file.\"\n> multi_select: [\"shadcn\", \"Magic (21st.dev)\", \"Figma\", \"Chrome DevTools\", \"Supabase\", \"None\"]\n\nMap the selections to boolean entries in the `mcps` block. Selecting \"None\" sets every key to `false`.\n\n**Q-visualReview-tools**\n> \"Use the default visual-review tooling priority (claude-in-chrome > chrome-devtools-mcp > playwright > vizzly)? Override if you don't have Claude in Chrome installed.\"\n> single_select: [\"Yes, use defaults\", \"No, customize the ordered list (text input)\"]\n\nIf \"No\": text input for an ordered list (one tool per line, top = highest priority).\n\n**Q-visualReview-vizzly**\n> \"Use Vizzly for visual diffs? Vizzly is a SaaS for visual diff review; skip if you don't have an account.\"\n> single_select: [\"Yes, keep Vizzly enabled\", \"No, disable Vizzly entirely\"]\n\n**Q-hitl**\n> \"Add custom HITL categories beyond the four built-in (PRD ambiguity, external credentials, destructive operations, creative direction)? Use this if your project has domain-specific bubble-up needs (e.g. legal review, security signoff). Each entry creates a new HITL category the orchestrator surfaces.\"\n> single_select: [\"No, keep the four built-ins\", \"Yes, describe the additional categories (text input)\"]\n\nIf \"Yes\": text input. Parse one category per line in the form `\u003Cname>: \u003Cprompt-hint>` and convert into the `additionalCategories` array.\n\n**Q-rules**\n> \"Import external rule files now (skips the Q9 elicitation in `\u002Fbytheslice:cook-pizzas` for this project)? Useful if you have a stable set of agentic rules across projects.\"\n> single_select: [\"No, answer Q9 per project\", \"Yes, paste URLs to your rule files (text input)\"]\n\nIf \"Yes\": text input. One URL per line.\n\n**Q-bootstrap-defaults**\n> \"Set bootstrap defaults so future `\u002Fbytheslice:setup-shop` runs in fresh project folders skip the bootstrap question gate? Useful if you always start projects the same way.\"\n> single_select: [\"No, ask the bootstrap questions every time\", \"Yes, set variant \u002F stack \u002F roadmap-file defaults (text input)\"]\n\nIf \"Yes\": three text inputs (`variant`, `stack`, `roadmapFile`: note `null` is allowed for `roadmapFile` to skip creating it).\n\n**Q-gates** (always asked, in Group 1 and Group 2 alike; this is where the operator is told, once, that enabled gates are binding)\n\nSay this once, before the question: *\"The quality gates this project runs (lint, typecheck, tests, build, e2e, design-system checks, accessibility including WCAG AA contrast, and anything your CI or pre-push runs) are binding. When one fails, agents fix the code until it passes, even when the cause is a shared design token or a file the slice only uses. They will not hand a failing gate back to you as a decision or a follow-up. They still stop for a destructive fix, a missing secret, or an exhausted fix cap.\"*\n\n> \"Mark any gate class advisory?\"\n> single_select: [\"No, all binding (recommended)\", \"Yes, pick advisory classes\"]\n\nIf \"Yes\": one follow-up.\n\n> \"Which classes are advisory?\"\n> multi_select: [\"visual\", \"design-system\", \"accessibility\", \"e2e\", \"lint\", \"typecheck\", \"build\", \"tests\", \"declared\"]\n\n**Q-gates-declared**\n> \"Add project-specific gates?\"\n> single_select: [\"No, skip (recommended)\", \"Yes, list commands (text input)\"]\n\nIf \"Yes\": text input, one command per line, optionally `\u003Cname>: \u003Ccommand>`; each becomes a `gates.declared` entry. Commands the project's pre-push hook or CI already run need no entry: they count as enabled anyway.\n\nWrite `gates.enforcement: \"fix\"` whatever the answers, plus `gates.advisory` and `gates.declared` when they are non-empty. The rule itself is [`..\u002Fsell-slice\u002Freferences\u002Fquality-gates.md`](..\u002Fsell-slice\u002Freferences\u002Fquality-gates.md).\n\n### Phase: Write the config file\n\nGenerate the JSONC file. Use [`references\u002Fbytheslice.config.example.json`](references\u002Fbytheslice.config.example.json) as the structural template. Fill in only the sections the user customized; leave the rest commented out. The `gates` block is the exception: `\"enforcement\": \"fix\"` is always written uncommented, so the rule is visible in the project's own config.\n\n- Flow A target: `~\u002F.bytheslice\u002Fdefaults.json` (create the directory if missing: `mkdir -p ~\u002F.bytheslice`)\n- Flow B \u002F C target: `\u003Cproject-root>\u002Fbytheslice.config.json`\n\nPrint the resolved values back to the user before continuing to Step 3.\n\n---\n\n## Step 3: CI\u002FCD Baseline Check (Flow B and Flow C only, skipped in Flow A)\n\nApps that haven't run `\u002Fbytheslice:final-quality-check` lack the gates that `\u002Fbytheslice:sell-slice` expects (typecheck, lint, design-system-compliance, `@feature` E2E, `@regression-core` E2E, `@visual` E2E, optional `db-schema-drift`; under `quality.tier: lean`, lint, typecheck, unit tests, build and one `@smoke` spec). This step detects whether the baseline exists and offers to scaffold it for projects that aren't going through the full PRD-to-phased-dev workflow.\n\n### Detection\n\nCheck the working directory (Flow C) or the newly-scaffolded project root (Flow B) for these markers:\n\nFirst read `quality.tier` from `bytheslice.config.json` (default `standard`; `auto` resolves as [`\u002Ffinal-quality-check` \"Quality tier\"](..\u002Ffinal-quality-check\u002FSKILL.md) documents: `lean` for at most 3 feature pies and no payments work, otherwise `standard`, and `standard` when no master checklist exists yet). The `ci-cd-detector` agent does this and returns the resolved tier.\n\n| Marker | `standard`: what \"present\" looks like | `lean`: what \"present\" looks like |\n|---|---|---|\n| `.github\u002Fworkflows\u002Fci.yml` | Has `typecheck`, `lint`, and at least one test job (unit\u002Fintegration\u002Fe2e) | Has `lint`, `typecheck`, `unit-tests`, `build` and `e2e-smoke` (smoke dropped only when E2E was skipped) |\n| `.github\u002Fworkflows\u002Fdesign-system-compliance.yml` | Exists | Required only when a design system exists (`docs\u002Fdesign-system.md` is present, or the Prep display-case slice is `[x]`); otherwise not a marker |\n| `.husky\u002Fpre-push` | Exists and runs the slice tier (lint, typecheck, test, build); CI runs the full suite | Exists and runs the lean set (lint, typecheck, test, build, `test:e2e:smoke`) |\n| `.github\u002Fpull_request_template.md` | Exists | Exists (the lean checklist) |\n\nA lean project never needs `e2e.yml`, `e2e-coverage.yml`, `db-schema-drift.yml` or the `@feature` \u002F `@regression-core` \u002F `@visual` suites to count as ready.\n\nIf every required marker is present and looks complete (all four under `standard`; three, or four with a design system, under `lean`), set `ci_cd_ready: true` and skip the rest of Step 3 (just announce: *\"CI\u002FCD baseline detected. Proceeding to Step 4.\"*).\n\nIf any marker is missing, set `ci_cd_ready: false` and ask the user.\n\n### Q-ci-cd-baseline (only if `ci_cd_ready: false`)\n\n> \"This project doesn't have the ByTheSlice CI\u002FCD baseline (one or more of: ci.yml, design-system-compliance.yml, husky pre-push hook, PR template). The `sell-slice` and `special-order` skills depend on these gates being green before opening a PR. Want to scaffold the baseline now?\"\n> single_select: [\"Yes, scaffold CI\u002FCD baseline now (recommended)\", \"No, skip; I'll handle CI my own way\"]\n\nIf \"Yes\": print *\"Run `\u002Fbytheslice:final-quality-check` next; it will run on a dedicated `chore\u002Ffinal-quality-check` branch and open a PR. Once that PR merges, return here and run `\u002Fbytheslice:special-order` (or `\u002Fbytheslice:create-menu` for a full PRD-to-app run).\"*\n\nIf \"No\": warn the user and continue:\n> ⚠️ **Without the CI\u002FCD baseline:** the PR has no baseline workflows for CI to run, so nothing re-checks the slice gates at the PR. You can still run `\u002Fbytheslice:sell-slice`, but you'll need to manually wire equivalent gates in your own CI for the per-stage `@visual` and `design-system-compliance` checks. To re-enable the offer later, delete `.bytheslice\u002F.skip-ci-cd` and re-run `\u002Fbytheslice:setup-shop`.\n\nIf the user chose \"No\": create a sentinel file `.bytheslice\u002F.skip-ci-cd` so future `\u002Fbytheslice:setup-shop` runs skip Q-ci-cd-baseline.\n\n## Step 4: Feature intake (Flow B and Flow C only)\n\nEvery ByTheSlice project routes new work through the framework: new features are documented with `\u002Fspecial-order` and built with `\u002Fsell-slice` or `\u002Fsell-pie`. This step writes that rule where every agent reads it and confirms the prompt hook that repeats it.\n\n1. Write the Feature intake block into the project rules file (`CLAUDE.md`, or `AGENTS.md` when it is the only one; a missing `CLAUDE.md` is created). The text lives in [references\u002Ffeature-intake.md](references\u002Ffeature-intake.md); the script replaces an older copy between its markers and leaves every other line alone:\n\n   ```sh\n   node \"${CLAUDE_PLUGIN_ROOT}\u002Fhooks\u002Fworkflow-nudge.js\" intake \"\u003Cproject-root>\"\n   ```\n\n2. Report its state:\n\n   ```sh\n   node \"${CLAUDE_PLUGIN_ROOT}\u002Fhooks\u002Fworkflow-nudge.js\" doctor \"\u003Cproject-root>\"\n   ```\n\n   Expect `Feature intake: present in CLAUDE.md` and `Hooks: workflow nudge active on UserPromptSubmit ...`. Print the lines as they come. When the hooks read off or not wired, say so; this skill never turns them back on or off.\n\nNothing refuses a shortcut: the rule and the nudge inform the model, and the Pass warns when a slice is marked `[x]` with no verifier pass.\n\n## Next-step pointer\n\nFor Flow A:\n> Defaults saved at `~\u002F.bytheslice\u002Fdefaults.json`. To use them on a project, run `\u002Fbytheslice:setup-shop` from the project's parent folder (Flow B) or inside the project (Flow C) and answer \"Yes\" to the Group 1 \"use defaults?\" question.\n\nFor Flow B:\n> Project scaffolded at `\u003Cabsolute-path>` with `bytheslice.config.json` and `ROADMAP.local.md`.\n>\n> **CI\u002FCD baseline:** \u003C\"present\" | \"scaffold pending, run \u002Fbytheslice:final-quality-check next\" | \"skipped per user choice\">\n>\n> **Feature intake:** \u003Cthe doctor's Feature intake line> · **Hooks:** \u003Cactive | off | not wired>\n>\n> **Quality gates:** binding (`gates.enforcement: \"fix\"`)\u003C; advisory: \u003Cclasses>, if any>\n>\n> **Next steps:**\n> 1. `cd \u003Cproject-name>`\n> 2. (Optional) Edit `bytheslice.config.json` to refine any defaults\n> 3. (Optional) Add brief notes to `ROADMAP.local.md`\n> 4. Run `\u002Fbytheslice:final-quality-check` (if Step 3 said scaffold pending)\n> 5. Run `\u002Fbytheslice:create-menu` to write the PRD (full PRD-to-app flow), OR run `\u002Fbytheslice:special-order` later if you only want to bolt features onto an existing master checklist\n>\n> The ByTheSlice pipeline from here is: PRD → phased plans → design system gate → CI\u002FCD scaffold → env setup → optional DB schema → right-sized vertical-slice feature stages (a few for a small app, up to 20 to 30 for a large one).\n\nFor Flow C:\n> Config written to `\u003Cproject-root>\u002Fbytheslice.config.json`. Future ByTheSlice skill runs in this project will honor these settings.\n>\n> **CI\u002FCD baseline:** \u003C\"present\" | \"scaffold pending, run \u002Fbytheslice:final-quality-check next\" | \"skipped per user choice\">\n>\n> **Feature intake:** \u003Cthe doctor's Feature intake line> · **Hooks:** \u003Cactive | off | not wired>\n>\n> **Quality gates:** binding (`gates.enforcement: \"fix\"`)\u003C; advisory: \u003Cclasses>, if any>\n>\n> **Next steps:**\n> - **Have a PRD already?** Run `\u002Fbytheslice:cook-pizzas` to generate phased plans.\n> - **No PRD yet?** Run `\u002Fbytheslice:create-menu` to write one against this existing app's surface area.\n> - **Just want to add a feature or two?** Run `\u002Fbytheslice:special-order` directly. Note: without a master checklist (no `docs\u002Fplans\u002F`), special-order will redirect you back here. To go from existing-app → special-order flow, run `\u002Fbytheslice:create-menu` first to give the complexity assessor grounding context.\n\n---\n\n## Unattended runs (`run.unattended`)\n\n`\u002Fpizza-party` runs this skill with `--unattended --ticket \u003Corder ticket path> --config \u003Crun config path>`, and nothing here may ask:\n\n- **Flow.** `\u002Fpizza-party` picks it: Flow B from the parent folder for a new app (the scaffolder creates `\u003Cproject-name>\u002F`), Flow C inside an existing app.\n- **Step 1 questions** come from the ticket's **Answers**: Q-bootstrap-name is the app folder's name, Q-bootstrap-stack the **Stack** line (Next.js when it names none), Q-bootstrap-variant single-app unless the ticket says monorepo, Q-bootstrap-roadmap No.\n- **Step 2.** Skip Group 1 and Group 2, Q-gates included. Write `bytheslice.config.json` from the run config file `\u002Fpizza-party` passed, merged over the recommended Group 2 defaults (the run config's keys win), always with `gates.enforcement: \"fix\"`. An existing `bytheslice.config.json` is merged the same way, never asked about.\n- **Step 3.** Skip Q-ci-cd-baseline: `\u002Fpizza-party` runs `\u002Ffinal-quality-check` itself in its Phase 5. Report `ci_cd_ready` only.\n- **Step 4** runs as usual (intake, then doctor).\n- Record each of these in the ticket's **Decisions made without you** and return without the next-step pointer's questions.\n\n## HITL Handling\n\nSetup is a top-of-funnel skill; there's no orchestrator above it. Plan-mode question gates ARE the user prompts; setup never bubbles up via the structured HITL contract. The one exception:\n\n**If the user re-runs setup inside an existing project but explicitly requests Flow B (bootstrap):**\n\n```yaml\nstatus: needs_human\nsummary: Bootstrap was requested inside an existing project (detected package.json at \u003Cpath>). Bootstrap is for new projects only.\nartifacts: []\nneeds_human: true\nhitl_category: prd_ambiguity\nhitl_question: \"It looks like you're already inside a project. Did you mean to run Flow C (Config only)? Or should setup operate in the parent directory?\"\nhitl_context: \"Detected existing package.json at the working directory; user explicitly requested bootstrap.\"\n```\n\n---\n\n## Hard Constraints: overall\n\n- **One umbrella for setup.** Don't fork the Bootstrap-only or Config-only behavior into separate skills; flow detection picks the right path.\n- **Never write `~\u002F.bytheslice\u002Fdefaults.json` without explicit consent** (Flow A's Q-Flow-A question gates this).\n- **Never overwrite an existing `bytheslice.config.json`** in a project root without surfacing it to the user first. If detected, ask: *\"This project already has bytheslice.config.json. Overwrite, merge, or cancel?\"* Under `run.unattended` it is merged instead, never asked (see Unattended runs).\n- **Never delete anything.** Setup is additive.\n\n---\n\n## Completion Checklist\n\n- [ ] Flow detected correctly (A \u002F B \u002F C) and announced to the user\n- [ ] Step 1 ran ONLY in Flow B (skipped in Flow A and Flow C)\n- [ ] Step 2 ran in every flow (always required)\n- [ ] Group 1 ran ONLY when `~\u002F.bytheslice\u002Fdefaults.json` exists (skipped on first run + during Flow A)\n- [ ] Group 2 ran when needed (no defaults, OR Group 1 = \"No\", OR Flow A)\n- [ ] Q-gates ran (Group 1 or Group 2): the operator heard once that enabled gates are binding, and the config carries `gates.enforcement: \"fix\"` uncommented, plus any `advisory` or `declared` entries they gave\n- [ ] Generated config file is valid JSONC (parses cleanly, no syntax errors)\n- [ ] Generated config file is at the correct path (Flow A: `~\u002F.bytheslice\u002Fdefaults.json`; Flow B\u002FC: project root)\n- [ ] (Flow B only) `.gitignore` includes the personal-scratchpad and AI-tooling-workspace entries\n- [ ] (Flow B only) Initial git commit created on `main`\n- [ ] Step 3 (CI\u002FCD baseline check) ran in Flow B and Flow C (skipped in Flow A)\n- [ ] Step 3 detected ci_cd_ready accurately based on the four markers\n- [ ] (Step 3 + ci_cd_ready false + user said no) `.bytheslice\u002F.skip-ci-cd` sentinel file written\n- [ ] Step 4 ran in Flow B and Flow C: the Feature intake block is in the project rules file and the doctor reports the hooks active\n- [ ] Next-step pointer printed to the user, including the CI\u002FCD baseline, Feature intake and Hooks lines\n\n---\n\n## Sub-agent return contract\n\nSetup uses this shape only when re-running inside an existing project under a misuse condition (see HITL Handling). Otherwise it returns plainly to the user.\n\n```yaml\nstatus: complete | failed | needs_human\nsummary: \u003Cone paragraph>\nartifacts:\n  - \u003Cgenerated config file path>\n  - \u003Cnew project root path, if Flow B>\n  - ROADMAP.local.md (if Flow B + Q-bootstrap-roadmap = Yes)\n  - .gitignore (modified, if Flow B)\n  - CLAUDE.md or AGENTS.md (Feature intake block, Flow B and C)\nneeds_human: false | true\nhitl_category: null | \"prd_ambiguity\" | \"external_credentials\" | \"destructive_operation\" | \"creative_direction\"\nhitl_question: null | \"\u003Cplain-language question>\"\nhitl_context: null | \"\u003Cwhat triggered this>\"\n```\n","\u003C!-- skills\u002Fsetup-shop\u002FSKILL.md -->\n\u003C!-- Pizza-shop framing: this is the morning-prep \u002F shop-opening action: chairs out, oven hot, lights on. Three-flow setup orchestrator: first-time-install (system-wide), new-project (bootstrap + per-project config), existing-project (per-project config only). All ByTheSlice personalization flows through this skill. -->\n\n# Setup\n\nByTheSlice setup orchestrator. Drives every first-touch interaction with the plugin: system-wide install, new-project scaffold, and per-project config customization.\n\n## Mode detection\n\n`\u002Fsetup-shop` is **always standalone** by nature; it's the entry point. There is no parent checklist to coordinate with. Mode detection is a no-op here; the skill simply runs its three-flow logic (first-time install \u002F new-project \u002F existing-project) and exits.\n\n## Reference Files\n\nRead all of these before beginning:\n\n| File | Purpose |\n| --- | --- |\n| [references\u002Fbytheslice-config-schema.md](references\u002Fbytheslice-config-schema.md) | Full config schema, precedence rules, per-key documentation |\n| [references\u002Fbytheslice.config.example.json](references\u002Fbytheslice.config.example.json) | Copy-pasteable JSONC starter, every block commented out |\n| [references\u002Fmodel-tier-guide.md](references\u002Fmodel-tier-guide.md) | Per-agent model tier defaults; cross-link from `modelTiers` config block |\n| [references\u002Fbootstrap-templates-catalog.md](references\u002Fbootstrap-templates-catalog.md) | Documents which scaffolders Step 1 wraps (`create-next-app`, `create-turbo`, `create-vite`, `create-svelte`, `create-astro`) and why |\n| [references\u002Fframework-detect.md](references\u002Fframework-detect.md) | Canonical stack list, detection signals, and per-framework path map. Read this BEFORE Step 1's stack question and BEFORE any skill branches on framework. |\n\n## Flow Selection\n\nDetect which flow applies before doing anything else:\n\n```\n1. Does ~\u002F.bytheslice\u002Fdefaults.json exist?\n   No  → consider Flow A (offer first-time install) before continuing\n   Yes → skip to step 2\n\n2. Working directory contains a package.json?\n   No  → Flow B (new project: bootstrap + per-project config)\n   Yes → Flow C (existing project: per-project config only)\n```\n\nIf the user explicitly asks for first-time install (e.g. \"configure my ByTheSlice defaults\", \"system-wide setup\"), run **Flow A** regardless of detection.\n\n---\n\n## Flow A: First-time install (system-wide setup)\n\n**Goal:** create `~\u002F.bytheslice\u002Fdefaults.json` so future projects can opt in to your preferred defaults via Group 1.\n\n**When this fires:**\n- `~\u002F.bytheslice\u002Fdefaults.json` does NOT exist, AND\n- The user is willing to set up defaults now (ask first; many users prefer per-project answers).\n\n**Procedure:**\n\n1. Ask: *\"ByTheSlice can store system-wide defaults at `~\u002F.bytheslice\u002Fdefaults.json` so you don't have to answer the same setup questions on every project. Want to set those up now?\"*\n   - `single_select: [\"Yes, set up system-wide defaults\", \"No, skip; ask per project\"]`\n2. If yes: run the **Group 2** questions below, but write the answers to `~\u002F.bytheslice\u002Fdefaults.json` instead of a per-project file.\n3. Print: *\"Defaults saved at `~\u002F.bytheslice\u002Fdefaults.json`. Future runs of `\u002Fbytheslice:setup-shop` will offer these as one-click defaults via the 'use defaults?' question.\"*\n4. After Flow A completes, fall through to Flow B or C based on the working-directory detection.\n\n---\n\n## Flow B: New project (Bootstrap + Config + CI\u002FCD baseline)\n\n**Goal:** scaffold a fresh project on disk, drop in a per-project `bytheslice.config.json`, gitignored `ROADMAP.local.md`, and offer to scaffold the CI\u002FCD baseline.\n\n**When this fires:** working directory contains no `package.json` (parent folder of a new project).\n\n**Step 1: Project Bootstrap (REQUIRED in Flow B).** See [Step 1](#step-1-project-bootstrap) below.\n\n**Step 2: Per-project Config Customization (REQUIRED).** See [Step 2](#step-2-per-project-config-customization) below.\n\n**Step 3: CI\u002FCD Baseline Check (REQUIRED, but the SCAFFOLD action is optional).** See [Step 3](#step-3-cicd-baseline-check-flow-b-and-flow-c-only-skipped-in-flow-a) below. Detects whether the baseline exists; offers to scaffold via `\u002Fbytheslice:final-quality-check` if not.\n\n**Step 4: Feature intake (REQUIRED).** See [Step 4](#step-4-feature-intake-flow-b-and-flow-c-only) below. Writes the Feature intake rule into the project rules file and confirms the workflow nudge is wired.\n\n---\n\n## Flow C: Existing project (Config + CI\u002FCD baseline)\n\n**Goal:** drop a per-project `bytheslice.config.json` into a project that already exists, then check CI\u002FCD readiness.\n\n**When this fires:** working directory contains a `package.json`.\n\nSkip Step 1 entirely. Run **Step 2**, then **Step 3**, then **Step 4**. Step 3 is what makes this flow viable for projects that aren't going through the full PRD-to-phased-dev workflow, `special-order` and `sell-slice` need the CI\u002FCD baseline to be present.\n\n---\n\n## Step 1: Project Bootstrap\n\n(Flow B only, skipped in Flow C.)\n\n### Phase 1: Plan-Mode Question Gate\n\nEnter plan mode and ask the user with `ask_user_input_v0`, one question at a time. If `bootstrap.{variant,stack,roadmapFile}` are all set in `~\u002F.bytheslice\u002Fdefaults.json` (and the user opted into defaults in Step 2 Group 1), skip this gate and use those values directly.\n\n**Q-bootstrap-variant**\n> \"Single application or Turborepo monorepo?\"\n> single_select: [\"single-app, one frontend app\", \"monorepo, Turborepo with apps\u002F and packages\u002F\"]\n\n**Q-bootstrap-name**\n> \"What's the project name? Use kebab-case (lowercase, hyphens only).\"\n> text_input: regex `^[a-z][a-z0-9-]*[a-z0-9]$`\n\n**Q-bootstrap-stack**\n> \"Which frontend stack? Next.js App Router is the most-validated path end-to-end. Vite + React, SvelteKit, and Astro are detected and bootstrapped correctly, but the Phase 4.5 library-preview templates currently assume Next App Router conventions; non-Next stacks will hit an HITL bubble at that gate until per-framework adapters land. Pure Node API skips the frontend pipeline entirely. See [`references\u002Fframework-detect.md`](references\u002Fframework-detect.md) for the full support matrix.\"\n> single_select: [\"Next.js (TypeScript, App Router, Tailwind, Turbopack), recommended\", \"Vite + React (TypeScript, Tailwind)\", \"SvelteKit (TypeScript, Tailwind)\", \"Astro (TypeScript, Tailwind)\", \"Node API only (no frontend)\"]\n\n**Q-bootstrap-roadmap**\n> \"Create a `ROADMAP.local.md` for personal future-version notes? It will be gitignored.\"\n> single_select: [\"Yes, create ROADMAP.local.md\", \"No, skip\"]\n\nConfirm answers before proceeding.\n\n### Phase 2: Run the official scaffolder\n\nRead [`references\u002Fbootstrap-templates-catalog.md`](references\u002Fbootstrap-templates-catalog.md) for the exact invocation. Single-app uses `create-next-app`; monorepo uses `create-turbo`.\n\nAfter scaffolding, `cd \u003Cproject-name>` for the remaining steps.\n\n### Phase 3: Initial commit\n\n```bash\ngit add -A\ngit commit -m \"chore: scaffold project via \u002Fbytheslice:setup-shop\n\nStack: \u003Cstack>\nVariant: \u003Cvariant>\"\n```\n\n### Phase 4: Update .gitignore\n\nAppend to the new project's `.gitignore`:\n\n```\n# Personal scratchpad files (gitignored by convention)\n*.local.md\nROADMAP.local.md\n\n# Per-user AI tooling workspaces\n.claude\u002F\n.cursor\u002F\n.aider*\n.continue\u002F\n.codex\u002F\n.windsurf\u002F\n```\n\n### Phase 5: Create the roadmap file (if Q-bootstrap-roadmap = Yes)\n\nWrite `ROADMAP.local.md` at the new project root:\n\n```markdown\n# Roadmap (local, gitignored)\n\nPersonal scratchpad for future versions and next dev stages. Not committed to the remote.\n\n## Next ByTheSlice run\n- [ ] Brief idea\n- [ ] Brand notes \u002F design references\n- [ ] Open questions to resolve before \u002Fbytheslice:create-menu\n\n## Future versions \u002F Phase 2+\n- [ ] ...\n\n## Friction notes (for future \u002Fbytheslice:close-shop)\n- [ ] ...\n```\n\nThen proceed to **Step 2**.\n\n### Hard constraints: Step 1\n\n- **One bootstrap per project root.** If working directory contains a `package.json`, refuse Step 1 and switch to Flow C (Config only). Surface: *\"Detected an existing project at \u003Cpath>. Skipping bootstrap; running per-project config setup only.\"*\n- **Non-Next.js stacks bootstrap fine but library-preview templates aren't fully adapted yet.** When the user picks Vite + React, SvelteKit, or Astro, run the matching scaffolder from [`references\u002Fframework-detect.md`](references\u002Fframework-detect.md) and proceed normally; they get a working design system + CI\u002FCD scaffold. The first time `\u002Fsell-slice` Phase 4.5 (Library Preview Gate) fires on one of these stacks, it will bubble HITL asking the operator to confirm the route convention. Track which stacks see active use via `\u002Fbytheslice:close-shop` so per-framework adapters can be prioritized. **Remix and other stacks not in framework-detect.md** are still out of scope; bubble HITL and stop.\n- **Never modify files outside the new project directory** during bootstrap.\n- **Never delete anything.** Step 1 is purely additive.\n\n---\n\n## Step 2: Per-project Config Customization\n\nGenerate a `bytheslice.config.json` at the project root (or `~\u002F.bytheslice\u002Fdefaults.json` for Flow A). All keys are optional; the plugin uses built-in defaults for anything you omit.\n\n### Group 1: Use system-wide defaults?\n\n**Skip Group 1 entirely if `~\u002F.bytheslice\u002Fdefaults.json` does NOT exist** (no defaults to opt into yet; go straight to Group 2). Skip Group 1 in Flow A (we're CREATING the defaults file in this flow).\n\n**Q-defaults**\n> \"You have system-wide defaults at `~\u002F.bytheslice\u002Fdefaults.json`. Want to use them as the starting point for this project?\"\n> single_select: [\"Yes, copy my system-wide defaults into this project\", \"No, answer the per-section questions below\"]\n\nIf yes: copy `~\u002F.bytheslice\u002Fdefaults.json` content into the project's `bytheslice.config.json` and skip Group 2, except **Q-gates** below, which always runs. Print the resolved values for the user to review.\n\nIf no: continue to Group 2.\n\n### Group 2: Per-section questions\n\nOne question per top-level config section. Multi-select where multiple apply, single-select otherwise. Sections that take freeform input (\"custom rules\", \"additional categories\", \"bootstrap defaults\") include a \"No \u002F skip\" option plus a text-input alternative.\n\n**Always provide a recommended answer in available options.**\n\n**Q-modelTiers**\n> \"How do you want to handle per-agent model tier assignments? Each agent has a default tier per [`skills\u002Fsetup-shop\u002Freferences\u002Fmodel-tier-guide.md`](references\u002Fmodel-tier-guide.md). Most projects don't need overrides.\"\n> single_select: [\"Use plugin defaults (recommended)\", \"I'll edit the modelTiers block manually after generation\"]\n\nIf \"Use plugin defaults\": leave `modelTiers: {}` in the generated file. If \"edit manually\": leave `modelTiers: {}` plus a comment block listing the most-overridden agents (`implementer`, `qualityReviewer`, `sliceVerifier`) for the user to fill in.\n\n**Q-stages**\n> \"Use the default stage shape (6 tasks max per stage, at most 20 to 30 feature stages, fewer for a small app)? The defaults work for most projects. Lower the task cap for tighter slices; the band is a ceiling, never a target to pad toward.\"\n> single_select: [\"Yes, use defaults\", \"No, set custom values\"]\n\nIf \"No\": follow up with two text inputs:\n- *\"Max tasks per stage (1 to 8)?\"*, text_input\n- *\"Target feature-stage band (e.g. `10-15`, `30-40`)?\"*, text_input\n\n**Q-mcps** (multi_select)\n> \"Which MCPs do you have installed in this workspace? Pick the ones you actually have running locally; the plugin reads this in addition to the project rules file.\"\n> multi_select: [\"shadcn\", \"Magic (21st.dev)\", \"Figma\", \"Chrome DevTools\", \"Supabase\", \"None\"]\n\nMap the selections to boolean entries in the `mcps` block. Selecting \"None\" sets every key to `false`.\n\n**Q-visualReview-tools**\n> \"Use the default visual-review tooling priority (claude-in-chrome > chrome-devtools-mcp > playwright > vizzly)? Override if you don't have Claude in Chrome installed.\"\n> single_select: [\"Yes, use defaults\", \"No, customize the ordered list (text input)\"]\n\nIf \"No\": text input for an ordered list (one tool per line, top = highest priority).\n\n**Q-visualReview-vizzly**\n> \"Use Vizzly for visual diffs? Vizzly is a SaaS for visual diff review; skip if you don't have an account.\"\n> single_select: [\"Yes, keep Vizzly enabled\", \"No, disable Vizzly entirely\"]\n\n**Q-hitl**\n> \"Add custom HITL categories beyond the four built-in (PRD ambiguity, external credentials, destructive operations, creative direction)? Use this if your project has domain-specific bubble-up needs (e.g. legal review, security signoff). Each entry creates a new HITL category the orchestrator surfaces.\"\n> single_select: [\"No, keep the four built-ins\", \"Yes, describe the additional categories (text input)\"]\n\nIf \"Yes\": text input. Parse one category per line in the form `\u003Cname>: \u003Cprompt-hint>` and convert into the `additionalCategories` array.\n\n**Q-rules**\n> \"Import external rule files now (skips the Q9 elicitation in `\u002Fbytheslice:cook-pizzas` for this project)? Useful if you have a stable set of agentic rules across projects.\"\n> single_select: [\"No, answer Q9 per project\", \"Yes, paste URLs to your rule files (text input)\"]\n\nIf \"Yes\": text input. One URL per line.\n\n**Q-bootstrap-defaults**\n> \"Set bootstrap defaults so future `\u002Fbytheslice:setup-shop` runs in fresh project folders skip the bootstrap question gate? Useful if you always start projects the same way.\"\n> single_select: [\"No, ask the bootstrap questions every time\", \"Yes, set variant \u002F stack \u002F roadmap-file defaults (text input)\"]\n\nIf \"Yes\": three text inputs (`variant`, `stack`, `roadmapFile`: note `null` is allowed for `roadmapFile` to skip creating it).\n\n**Q-gates** (always asked, in Group 1 and Group 2 alike; this is where the operator is told, once, that enabled gates are binding)\n\nSay this once, before the question: *\"The quality gates this project runs (lint, typecheck, tests, build, e2e, design-system checks, accessibility including WCAG AA contrast, and anything your CI or pre-push runs) are binding. When one fails, agents fix the code until it passes, even when the cause is a shared design token or a file the slice only uses. They will not hand a failing gate back to you as a decision or a follow-up. They still stop for a destructive fix, a missing secret, or an exhausted fix cap.\"*\n\n> \"Mark any gate class advisory?\"\n> single_select: [\"No, all binding (recommended)\", \"Yes, pick advisory classes\"]\n\nIf \"Yes\": one follow-up.\n\n> \"Which classes are advisory?\"\n> multi_select: [\"visual\", \"design-system\", \"accessibility\", \"e2e\", \"lint\", \"typecheck\", \"build\", \"tests\", \"declared\"]\n\n**Q-gates-declared**\n> \"Add project-specific gates?\"\n> single_select: [\"No, skip (recommended)\", \"Yes, list commands (text input)\"]\n\nIf \"Yes\": text input, one command per line, optionally `\u003Cname>: \u003Ccommand>`; each becomes a `gates.declared` entry. Commands the project's pre-push hook or CI already run need no entry: they count as enabled anyway.\n\nWrite `gates.enforcement: \"fix\"` whatever the answers, plus `gates.advisory` and `gates.declared` when they are non-empty. The rule itself is [`..\u002Fsell-slice\u002Freferences\u002Fquality-gates.md`](..\u002Fsell-slice\u002Freferences\u002Fquality-gates.md).\n\n### Phase: Write the config file\n\nGenerate the JSONC file. Use [`references\u002Fbytheslice.config.example.json`](references\u002Fbytheslice.config.example.json) as the structural template. Fill in only the sections the user customized; leave the rest commented out. The `gates` block is the exception: `\"enforcement\": \"fix\"` is always written uncommented, so the rule is visible in the project's own config.\n\n- Flow A target: `~\u002F.bytheslice\u002Fdefaults.json` (create the directory if missing: `mkdir -p ~\u002F.bytheslice`)\n- Flow B \u002F C target: `\u003Cproject-root>\u002Fbytheslice.config.json`\n\nPrint the resolved values back to the user before continuing to Step 3.\n\n---\n\n## Step 3: CI\u002FCD Baseline Check (Flow B and Flow C only, skipped in Flow A)\n\nApps that haven't run `\u002Fbytheslice:final-quality-check` lack the gates that `\u002Fbytheslice:sell-slice` expects (typecheck, lint, design-system-compliance, `@feature` E2E, `@regression-core` E2E, `@visual` E2E, optional `db-schema-drift`; under `quality.tier: lean`, lint, typecheck, unit tests, build and one `@smoke` spec). This step detects whether the baseline exists and offers to scaffold it for projects that aren't going through the full PRD-to-phased-dev workflow.\n\n### Detection\n\nCheck the working directory (Flow C) or the newly-scaffolded project root (Flow B) for these markers:\n\nFirst read `quality.tier` from `bytheslice.config.json` (default `standard`; `auto` resolves as [`\u002Ffinal-quality-check` \"Quality tier\"](..\u002Ffinal-quality-check\u002FSKILL.md) documents: `lean` for at most 3 feature pies and no payments work, otherwise `standard`, and `standard` when no master checklist exists yet). The `ci-cd-detector` agent does this and returns the resolved tier.\n\n| Marker | `standard`: what \"present\" looks like | `lean`: what \"present\" looks like |\n|---|---|---|\n| `.github\u002Fworkflows\u002Fci.yml` | Has `typecheck`, `lint`, and at least one test job (unit\u002Fintegration\u002Fe2e) | Has `lint`, `typecheck`, `unit-tests`, `build` and `e2e-smoke` (smoke dropped only when E2E was skipped) |\n| `.github\u002Fworkflows\u002Fdesign-system-compliance.yml` | Exists | Required only when a design system exists (`docs\u002Fdesign-system.md` is present, or the Prep display-case slice is `[x]`); otherwise not a marker |\n| `.husky\u002Fpre-push` | Exists and runs the slice tier (lint, typecheck, test, build); CI runs the full suite | Exists and runs the lean set (lint, typecheck, test, build, `test:e2e:smoke`) |\n| `.github\u002Fpull_request_template.md` | Exists | Exists (the lean checklist) |\n\nA lean project never needs `e2e.yml`, `e2e-coverage.yml`, `db-schema-drift.yml` or the `@feature` \u002F `@regression-core` \u002F `@visual` suites to count as ready.\n\nIf every required marker is present and looks complete (all four under `standard`; three, or four with a design system, under `lean`), set `ci_cd_ready: true` and skip the rest of Step 3 (just announce: *\"CI\u002FCD baseline detected. Proceeding to Step 4.\"*).\n\nIf any marker is missing, set `ci_cd_ready: false` and ask the user.\n\n### Q-ci-cd-baseline (only if `ci_cd_ready: false`)\n\n> \"This project doesn't have the ByTheSlice CI\u002FCD baseline (one or more of: ci.yml, design-system-compliance.yml, husky pre-push hook, PR template). The `sell-slice` and `special-order` skills depend on these gates being green before opening a PR. Want to scaffold the baseline now?\"\n> single_select: [\"Yes, scaffold CI\u002FCD baseline now (recommended)\", \"No, skip; I'll handle CI my own way\"]\n\nIf \"Yes\": print *\"Run `\u002Fbytheslice:final-quality-check` next; it will run on a dedicated `chore\u002Ffinal-quality-check` branch and open a PR. Once that PR merges, return here and run `\u002Fbytheslice:special-order` (or `\u002Fbytheslice:create-menu` for a full PRD-to-app run).\"*\n\nIf \"No\": warn the user and continue:\n> ⚠️ **Without the CI\u002FCD baseline:** the PR has no baseline workflows for CI to run, so nothing re-checks the slice gates at the PR. You can still run `\u002Fbytheslice:sell-slice`, but you'll need to manually wire equivalent gates in your own CI for the per-stage `@visual` and `design-system-compliance` checks. To re-enable the offer later, delete `.bytheslice\u002F.skip-ci-cd` and re-run `\u002Fbytheslice:setup-shop`.\n\nIf the user chose \"No\": create a sentinel file `.bytheslice\u002F.skip-ci-cd` so future `\u002Fbytheslice:setup-shop` runs skip Q-ci-cd-baseline.\n\n## Step 4: Feature intake (Flow B and Flow C only)\n\nEvery ByTheSlice project routes new work through the framework: new features are documented with `\u002Fspecial-order` and built with `\u002Fsell-slice` or `\u002Fsell-pie`. This step writes that rule where every agent reads it and confirms the prompt hook that repeats it.\n\n1. Write the Feature intake block into the project rules file (`CLAUDE.md`, or `AGENTS.md` when it is the only one; a missing `CLAUDE.md` is created). The text lives in [references\u002Ffeature-intake.md](references\u002Ffeature-intake.md); the script replaces an older copy between its markers and leaves every other line alone:\n\n   ```sh\n   node \"${CLAUDE_PLUGIN_ROOT}\u002Fhooks\u002Fworkflow-nudge.js\" intake \"\u003Cproject-root>\"\n   ```\n\n2. Report its state:\n\n   ```sh\n   node \"${CLAUDE_PLUGIN_ROOT}\u002Fhooks\u002Fworkflow-nudge.js\" doctor \"\u003Cproject-root>\"\n   ```\n\n   Expect `Feature intake: present in CLAUDE.md` and `Hooks: workflow nudge active on UserPromptSubmit ...`. Print the lines as they come. When the hooks read off or not wired, say so; this skill never turns them back on or off.\n\nNothing refuses a shortcut: the rule and the nudge inform the model, and the Pass warns when a slice is marked `[x]` with no verifier pass.\n\n## Next-step pointer\n\nFor Flow A:\n> Defaults saved at `~\u002F.bytheslice\u002Fdefaults.json`. To use them on a project, run `\u002Fbytheslice:setup-shop` from the project's parent folder (Flow B) or inside the project (Flow C) and answer \"Yes\" to the Group 1 \"use defaults?\" question.\n\nFor Flow B:\n> Project scaffolded at `\u003Cabsolute-path>` with `bytheslice.config.json` and `ROADMAP.local.md`.\n>\n> **CI\u002FCD baseline:** \u003C\"present\" | \"scaffold pending, run \u002Fbytheslice:final-quality-check next\" | \"skipped per user choice\">\n>\n> **Feature intake:** \u003Cthe doctor's Feature intake line> · **Hooks:** \u003Cactive | off | not wired>\n>\n> **Quality gates:** binding (`gates.enforcement: \"fix\"`)\u003C; advisory: \u003Cclasses>, if any>\n>\n> **Next steps:**\n> 1. `cd \u003Cproject-name>`\n> 2. (Optional) Edit `bytheslice.config.json` to refine any defaults\n> 3. (Optional) Add brief notes to `ROADMAP.local.md`\n> 4. Run `\u002Fbytheslice:final-quality-check` (if Step 3 said scaffold pending)\n> 5. Run `\u002Fbytheslice:create-menu` to write the PRD (full PRD-to-app flow), OR run `\u002Fbytheslice:special-order` later if you only want to bolt features onto an existing master checklist\n>\n> The ByTheSlice pipeline from here is: PRD → phased plans → design system gate → CI\u002FCD scaffold → env setup → optional DB schema → right-sized vertical-slice feature stages (a few for a small app, up to 20 to 30 for a large one).\n\nFor Flow C:\n> Config written to `\u003Cproject-root>\u002Fbytheslice.config.json`. Future ByTheSlice skill runs in this project will honor these settings.\n>\n> **CI\u002FCD baseline:** \u003C\"present\" | \"scaffold pending, run \u002Fbytheslice:final-quality-check next\" | \"skipped per user choice\">\n>\n> **Feature intake:** \u003Cthe doctor's Feature intake line> · **Hooks:** \u003Cactive | off | not wired>\n>\n> **Quality gates:** binding (`gates.enforcement: \"fix\"`)\u003C; advisory: \u003Cclasses>, if any>\n>\n> **Next steps:**\n> - **Have a PRD already?** Run `\u002Fbytheslice:cook-pizzas` to generate phased plans.\n> - **No PRD yet?** Run `\u002Fbytheslice:create-menu` to write one against this existing app's surface area.\n> - **Just want to add a feature or two?** Run `\u002Fbytheslice:special-order` directly. Note: without a master checklist (no `docs\u002Fplans\u002F`), special-order will redirect you back here. To go from existing-app → special-order flow, run `\u002Fbytheslice:create-menu` first to give the complexity assessor grounding context.\n\n---\n\n## Unattended runs (`run.unattended`)\n\n`\u002Fpizza-party` runs this skill with `--unattended --ticket \u003Corder ticket path> --config \u003Crun config path>`, and nothing here may ask:\n\n- **Flow.** `\u002Fpizza-party` picks it: Flow B from the parent folder for a new app (the scaffolder creates `\u003Cproject-name>\u002F`), Flow C inside an existing app.\n- **Step 1 questions** come from the ticket's **Answers**: Q-bootstrap-name is the app folder's name, Q-bootstrap-stack the **Stack** line (Next.js when it names none), Q-bootstrap-variant single-app unless the ticket says monorepo, Q-bootstrap-roadmap No.\n- **Step 2.** Skip Group 1 and Group 2, Q-gates included. Write `bytheslice.config.json` from the run config file `\u002Fpizza-party` passed, merged over the recommended Group 2 defaults (the run config's keys win), always with `gates.enforcement: \"fix\"`. An existing `bytheslice.config.json` is merged the same way, never asked about.\n- **Step 3.** Skip Q-ci-cd-baseline: `\u002Fpizza-party` runs `\u002Ffinal-quality-check` itself in its Phase 5. Report `ci_cd_ready` only.\n- **Step 4** runs as usual (intake, then doctor).\n- Record each of these in the ticket's **Decisions made without you** and return without the next-step pointer's questions.\n\n## HITL Handling\n\nSetup is a top-of-funnel skill; there's no orchestrator above it. Plan-mode question gates ARE the user prompts; setup never bubbles up via the structured HITL contract. The one exception:\n\n**If the user re-runs setup inside an existing project but explicitly requests Flow B (bootstrap):**\n\n```yaml\nstatus: needs_human\nsummary: Bootstrap was requested inside an existing project (detected package.json at \u003Cpath>). Bootstrap is for new projects only.\nartifacts: []\nneeds_human: true\nhitl_category: prd_ambiguity\nhitl_question: \"It looks like you're already inside a project. Did you mean to run Flow C (Config only)? Or should setup operate in the parent directory?\"\nhitl_context: \"Detected existing package.json at the working directory; user explicitly requested bootstrap.\"\n```\n\n---\n\n## Hard Constraints: overall\n\n- **One umbrella for setup.** Don't fork the Bootstrap-only or Config-only behavior into separate skills; flow detection picks the right path.\n- **Never write `~\u002F.bytheslice\u002Fdefaults.json` without explicit consent** (Flow A's Q-Flow-A question gates this).\n- **Never overwrite an existing `bytheslice.config.json`** in a project root without surfacing it to the user first. If detected, ask: *\"This project already has bytheslice.config.json. Overwrite, merge, or cancel?\"* Under `run.unattended` it is merged instead, never asked (see Unattended runs).\n- **Never delete anything.** Setup is additive.\n\n---\n\n## Completion Checklist\n\n- [ ] Flow detected correctly (A \u002F B \u002F C) and announced to the user\n- [ ] Step 1 ran ONLY in Flow B (skipped in Flow A and Flow C)\n- [ ] Step 2 ran in every flow (always required)\n- [ ] Group 1 ran ONLY when `~\u002F.bytheslice\u002Fdefaults.json` exists (skipped on first run + during Flow A)\n- [ ] Group 2 ran when needed (no defaults, OR Group 1 = \"No\", OR Flow A)\n- [ ] Q-gates ran (Group 1 or Group 2): the operator heard once that enabled gates are binding, and the config carries `gates.enforcement: \"fix\"` uncommented, plus any `advisory` or `declared` entries they gave\n- [ ] Generated config file is valid JSONC (parses cleanly, no syntax errors)\n- [ ] Generated config file is at the correct path (Flow A: `~\u002F.bytheslice\u002Fdefaults.json`; Flow B\u002FC: project root)\n- [ ] (Flow B only) `.gitignore` includes the personal-scratchpad and AI-tooling-workspace entries\n- [ ] (Flow B only) Initial git commit created on `main`\n- [ ] Step 3 (CI\u002FCD baseline check) ran in Flow B and Flow C (skipped in Flow A)\n- [ ] Step 3 detected ci_cd_ready accurately based on the four markers\n- [ ] (Step 3 + ci_cd_ready false + user said no) `.bytheslice\u002F.skip-ci-cd` sentinel file written\n- [ ] Step 4 ran in Flow B and Flow C: the Feature intake block is in the project rules file and the doctor reports the hooks active\n- [ ] Next-step pointer printed to the user, including the CI\u002FCD baseline, Feature intake and Hooks lines\n\n---\n\n## Sub-agent return contract\n\nSetup uses this shape only when re-running inside an existing project under a misuse condition (see HITL Handling). Otherwise it returns plainly to the user.\n\n```yaml\nstatus: complete | failed | needs_human\nsummary: \u003Cone paragraph>\nartifacts:\n  - \u003Cgenerated config file path>\n  - \u003Cnew project root path, if Flow B>\n  - ROADMAP.local.md (if Flow B + Q-bootstrap-roadmap = Yes)\n  - .gitignore (modified, if Flow B)\n  - CLAUDE.md or AGENTS.md (Feature intake block, Flow B and C)\nneeds_human: false | true\nhitl_category: null | \"prd_ambiguity\" | \"external_credentials\" | \"destructive_operation\" | \"creative_direction\"\nhitl_question: null | \"\u003Cplain-language question>\"\nhitl_context: null | \"\u003Cwhat triggered this>\"\n```\n",{"name":5,"model":27,"effort":45,"triggers":46,"description":7,"user-invocable":59},"high",[47,48,49,50,51,52,53,54,55,56,57,58],"\u002Fbytheslice:setup-shop","\u002Fsetup-shop","set up the shop","open the pizza shop","\u002Fbytheslice:setup","\u002Fsetup","set up bytheslice","configure bytheslice","scaffold a new project","first time using bytheslice","create a new monorepo","bootstrap a new app for bytheslice",true,"main","a877abb24b61dfec2e931454e4590081dfbdbcfc","skills\u002Fsetup-shop",1,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice","https:\u002F\u002Fgithub.com\u002Fsteve-piece","2026-11-14 08:45:19",{"source":8,"skillName":5,"commands":68,"prompt":78,"zipAvailable":59},[69,72,75],{"tool":70,"command":71},"npx","npx skills add steve-piece\u002Fbytheslice --skill setup-shop",{"tool":73,"command":74},"bunx","bunx skills add steve-piece\u002Fbytheslice --skill setup-shop",{"tool":76,"command":77},"pnpm","pnpm dlx skills add steve-piece\u002Fbytheslice --skill setup-shop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-shop\u002FSKILL.md",[80,86,90,94,98,102,106,110,114],{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"agents\u002Fbootstrap-runner.md","REFERENCE","参考文档",3168,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-shop\u002Fagents\u002Fbootstrap-runner.md",{"path":87,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":88,"sourceHtmlUrl":89},"agents\u002Fci-cd-detector.md",5456,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-shop\u002Fagents\u002Fci-cd-detector.md",{"path":91,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":92,"sourceHtmlUrl":93},"agents\u002Fconfig-generator.md",3744,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-shop\u002Fagents\u002Fconfig-generator.md",{"path":95,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fbootstrap-templates-catalog.md",5491,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-shop\u002Freferences\u002Fbootstrap-templates-catalog.md",{"path":99,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fbytheslice-config-schema.md",22940,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-shop\u002Freferences\u002Fbytheslice-config-schema.md",{"path":103,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Fbytheslice.config.example.json",4123,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-shop\u002Freferences\u002Fbytheslice.config.example.json",{"path":107,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":108,"sourceHtmlUrl":109},"references\u002Ffeature-intake.md",2626,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-shop\u002Freferences\u002Ffeature-intake.md",{"path":111,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":112,"sourceHtmlUrl":113},"references\u002Fframework-detect.md",5803,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-shop\u002Freferences\u002Fframework-detect.md",{"path":115,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":116,"sourceHtmlUrl":117},"references\u002Fmodel-tier-guide.md",9344,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-shop\u002Freferences\u002Fmodel-tier-guide.md",[119,127,152,174,198,223],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":126},"01M7DTP42MXMVB51NHQGGWV6P6","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.","https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fdashboard\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":40},"01M6JK6TG7HJ54TN5XYD8N3QE8","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.","https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fspecial-order\u002FSKILL.md",[],[134,38,36,135,136,137,138,139,140,27,141,142,23,143,144,145,45,146,147,148,22,149,150,151],"special order","auto","bolt","customer","features","master","add","feature","custom","Existing","type","with","spot","specifications","about","request","extend","slice",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":40},"01M6JK6CX6DNV9EE9VH6H3YRD0","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 \u002Flibrary preview route. Run once before \u002Fsell-slice; also invocable standalone on any project.","https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fset-display-case\u002FSKILL.md",[],[39,159,160,161,162,36,163,34,164,165,166,167,168,169,30,29,170,171,172,173],"display","case","set display case","standalone","Tailwind","init","design","only","preview","route","run","operator","design-system","library","design system",{"skillNo":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":180,"publishedAt":40},"01M6JK629AYG2B1NSSDYQAPWP2","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 · \u002Fgoal · branch) + Workflow A (produce) + library gate + Workflow B (verify-once). Run me repeatedly, one fresh chat per slice. For autonomous whole-pie baking use \u002Fsell-pie.","https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fsell-slice\u002FSKILL.md",[],[181,182,151,183,184,185,186,187,169,139,172,188,189,25,190,191,192,193,45,194,195,196,197],"sell slice","sell","branch","loop","fresh","plan","spine","ship","as","touch","use","interactive","chat","build","checklist","deliver","baking",{"skillNo":199,"name":200,"nameZh":6,"description":201,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":202,"categories":203,"keywords":204,"publishedAt":40},"01M6JK5RGMT1ZDVNG9CEHQF61Q","sell-pie","Bake a whole Pie autonomously - the v5 forefront delivery loop. A \u002Floop-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 \u002Fbox-it-up. Refuses flat v4 checklists (points you at \u002Fcook-pizzas --repie). For a continuous-review pie (review=continuous) it runs in high-touch \u002Fsell-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 \u002Fpizza-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 \u002Fsell-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 \u002Fsell-slice; for the whole app end to end use \u002Fpizza-party.","https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fsell-pie\u002FSKILL.md",[],[205,182,39,206,38,207,183,208,209,210,34,211,212,213,166,214,184,215,216,217,196,169,218,219,188,220,221,222],"sell pie","categories","ready","green","mode","end","fix","ci","local","autonomous","workflow","you","review","at","coherent","context","prompting","commits",{"skillNo":224,"name":225,"nameZh":6,"description":226,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":227,"categories":228,"keywords":229,"publishedAt":40},"01M6JK5GSHAXR9EAVBJBACPVGF","pizza-party","Cater a whole app, start to finish: from a short brief to a finished, deployed app with a URL. One interview up front (AskUserQuestion), then no human stops: \u002Fsetup-shop, \u002Fcreate-menu, \u002Fcook-pizzas, the Prep pie, every pie through \u002Fsell-pie in ship-once delivery (all gates local), one PR that ships the app, a deploy to whatever host the operator has authorized (or an artifact or localhost link), and a run record for comparing runs over time. Every decision a sub-skill would normally ask about is decided, recorded in the order ticket, and the run continues. Use when the user runs \u002Fpizza-party, sets a \u002Fgoal to build an app end to end, or says \"build me this app end to end\", \"from scratch to production\", \"pizza party\", \"bake the whole roadmap\" or \"run all pies\".","https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fpizza-party\u002FSKILL.md",[],[230,231,38,232,35,210,233,234,34,235,213,214,236,237,238,239,31,240,241,242,243],"pizza party","party","brief","short","ticket","decision","host","roadmap","URL","ask","me","artifact","human","when"]