[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JK4NWATDAV0HKZ1JVD8Z5A":3,"skill-same:01M6JK4NWATDAV0HKZ1JVD8Z5A":123},{"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":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":6,"ownerHtmlUrl":62,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":63,"install":64,"resources":76},"01M6JK4NWATDAV0HKZ1JVD8Z5A","final-quality-check",null,"Install the quality line every pie passes through before going on display: wire CI\u002FCD, E2E testing, design-system compliance, and visual-regression gates. Run once before \u002Fsell-slice; also invocable standalone on any project.","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\u002Ffinal-quality-check\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"final quality check","quality","check","quality check","design-system","inspection","display","standalone","visual-regression","CI\u002FCD","line","project","up","testing","install","regression","ci-cd","SET","ci","run","design","2026-11-10 10:12:30",false,"---\nname: final-quality-check\ndescription: \"Install the quality line every pie passes through before going on display: wire CI\u002FCD, E2E testing, design-system compliance, and visual-regression gates. Run once before \u002Fsell-slice; also invocable standalone on any project.\"\nuser-invocable: true\ntriggers: [\"\u002Fbytheslice:final-quality-check\", \"\u002Ffinal-quality-check\", \"install the quality line\", \"wire the inspection station\", \"\u002Fbytheslice:scaffold-ci-cd\", \"\u002Fscaffold-ci-cd\", \"scaffold ci\u002Fcd\", \"set up ci\", \"bootstrap quality gates\", \"ci-cd stage\"]\n---\n\u003C!-- skills\u002Ffinal-quality-check\u002FSKILL.md -->\n\u003C!-- Daily-prep skill (run before \u002Fsell-slice). Pizza-shop framing: install the quality line every pie crosses before landing on the display tray. Orchestrator-only: dispatches nine specialized agents to bootstrap the production-grade CI\u002FCD + E2E + design-system-compliance + visual-regression baseline on a dedicated chore branch. Mode-detected (standalone vs sequential). -->\n\n# Final Quality Check: CI\u002FCD + Verification Baseline\n\nThis skill is the orchestrator for the CI\u002FCD baseline. It does not write workflows itself; it **dispatches nine specialized agents** that each own one slice of the scaffold work. The orchestrator's job is detection, sequencing, user-input gating, and walking the completion checklist.\n\n## Mode detection\n\nThis skill runs in one of two modes, auto-detected at startup:\n\n- **Standalone**: no `docs\u002Fplans\u002F00_master_checklist.md` at the project root. Adds CI\u002FCD + E2E + design-system-compliance + visual-regression baseline to any project. Runs end-to-end, exits. No checklist coordination.\n- **Sequential**: master checklist exists with a `## Prep` section. On completion, flip the `[ ] Quality line installed` row to `[x]` and surface: *\"Quality line ready. Next prep step: `\u002Fopen-the-shop`.\"*\n\nHonor an explicit `--standalone` or `--sequential` flag if passed; otherwise auto-detect from disk state.\n\n## Quality tier\n\n`quality.tier` in `bytheslice.config.json` sets how heavy a line this run installs. Resolve it once, before Phase 0, and pass the resolved value to every Phase 3 and Phase 4 agent as `quality_tier`.\n\n| Value | What it installs |\n|---|---|\n| `\"standard\"` (default) | Today's full line: sub-blocks A through H as written, the `@feature`, `@regression-core` and `@visual` suites with visual baselines, `e2e.yml`, `e2e-coverage.yml`, `design-system-compliance.yml`, and the full Completion Checklist. |\n| `\"lean\"` | A line sized for a small app. CI runs lint, typecheck, unit tests, build, and ONE Playwright smoke spec (`@smoke`) over the app's main flow. No visual baselines, no `@visual` or `@regression-core` suite, no `e2e.yml`, no `e2e-coverage.yml`. `design-system-compliance.yml` and sub-block E's lint additions stay only when a design system exists (`docs\u002Fdesign-system.md` is present, or the Prep row for Slice 1.1 is `[x]`). The husky `pre-push` hook runs the same lean set. |\n| `\"auto\"` | Resolves to `lean` when the master checklist has at most 3 feature pies (Pie 2 onward) and no payments work (no pie or slice about payments, checkout, billing or subscriptions, and no payments provider in PRD Section 4 or any `.env.example`); otherwise `standard`. With no master checklist (standalone mode) it resolves to `standard`. `\u002Fpizza-party` sets `auto`. |\n\nLog the resolved tier as one line (for example `quality tier: lean (auto: 2 feature pies, no payments)`). When `docs\u002Fpizza-party\u002Forder.md` exists, append the same line to its \"Decisions made without you\" section.\n\nThe lean templates live beside the standard ones in [references\u002Fscaffold-artifact-templates.md](references\u002Fscaffold-artifact-templates.md) under \"Lean tier\". Lean never drops lint, typecheck, unit tests, build or the smoke spec; it only leaves out the suites a small app does not need.\n\n## Unattended runs (`run.unattended: true`)\n\nWhen `bytheslice.config.json` sets `run.unattended: true` (`\u002Fpizza-party` does), nothing in this skill waits on a human: the operator accepted that risk by launching the run. The order ticket is `docs\u002Fpizza-party\u002Forder.md`; every choice made in the operator's place is appended to its \"Decisions made without you\" section as one line (the point, the option taken, why).\n\n- **Phase 1** asks nothing. Each question takes its recommended answer, recorded in the ticket.\n- **Every point that would ask or return `needs_human`** takes the safest working option instead and continues: a custom or legacy full-chain `.husky\u002Fpre-push`, a conflicting existing workflow, an existing `scripts\u002Fsetup-branch-protection.sh`, a non-empty `.stylelintrc.json`, user-edited content between the rules-file markers, or a project with no ESLint config. Keep the existing file untouched, skip the artifact that would overwrite it, and record the skip. A `framework: unknown` profile is treated as a Node app with E2E skipped, and recorded.\n- **Destructive operations on shared resources the operator did not name** (branch protection, remote branch deletion, repository settings) are skipped and recorded, never asked about.\n- The branch-protection reminder (Phase 6 step 5) goes into the ticket instead of the chat.\n\nWithout `run.unattended`, every prompt and HITL in this skill behaves exactly as written.\n\n## Ship-once delivery (`delivery.mode: \"ship-once\"`)\n\nUnder ship-once the whole app ships in one PR at the end, so the scaffold does not get a PR of its own. The scaffold is committed locally and travels with the app's one PR.\n\n- **Phase 2:** no `chore\u002Ffinal-quality-check` branch. Scaffold on the current branch (the run's local ship branch). The rule against committing on `main` \u002F `master` still holds: if HEAD is on either, create `chore\u002Ffinal-quality-check` locally first and record it.\n- **Phase 5** becomes one local commit on the current branch (`chore: install quality line (\u003Ctier> tier)`). No push, no PR, no CI wait, no merge.\n- **Phase 6** skips the `main` sync and the branch and remote cleanup; it walks the ship-once rows of the Completion Checklist instead.\n- **Local and CI agree.** Phase 4 (and `slice-verifier` at every later slice end, and `\u002Fbox-it-up`'s pie-local check at every pie boundary) executes every command the generated CI workflows run for the resolved tier, never a subset: every `run:` step of `ci.yml` and, under the `standard` tier, of `e2e.yml` too (the `@feature`, `@regression-core` and `@visual` suites in full, with no `verification.e2e` threshold narrowing them). A lean app has no `e2e.yml`; its `ci.yml` already holds the one smoke spec. A green local run is the real gate here; CI runs those same commands once on the app's one PR. Under `pie-pr` and `merge-per-slice` nothing here changes. Every other generated workflow that runs on pull requests (`e2e-coverage.yml`, `db-schema-drift.yml`, `design-system-compliance.yml`, when present) runs too, so nothing can fail only in CI on the ship PR.\n- `gh` is not needed until that final PR.\n\n## Reference Files\n\n| File | Purpose |\n| --- | --- |\n| [references\u002Fscaffold-artifact-templates.md](references\u002Fscaffold-artifact-templates.md) | Verbatim file templates for every CI\u002FCD artifact (workflows, husky hook, PR template, regex sweep script, etc.). Every implementer agent reads this before writing. |\n| [references\u002Fprd-ci-cd-checklist.md](references\u002Fprd-ci-cd-checklist.md) | **Project-wide runtime guardrails**, not scaffold-time setup. Master-checklist updates, CI gate alignment, deterministic pipelines, slice-per-PR rule, failure-artifact upload; these apply to every agent on every PR. Sub-block H of Phase 3 appends this content into the project rules file (CLAUDE.md \u002F AGENTS.md) so every later stage skill picks it up automatically. |\n\n## Subagent Roster\n\nEach agent is a **registered plugin agent**: dispatch by type `bytheslice:\u003Cname>` (Agent tool `subagent_type`, or `Workflow` `agentType`), passing only the task inputs as the prompt. The files under `.\u002Fagents\u002F` carry the role prompt plus enforced model\u002Feffort\u002Ftools. Fallback (Cursor, or a host without plugin-agent registration): Read the file and dispatch it per [`loop-workflow-fallback-pattern.md`](..\u002Fcook-pizzas\u002Freferences\u002Floop-workflow-fallback-pattern.md) \"Agent shape on the fallback path\": its frontmatter goes first as a header (model tier and effort, the normalized tool allowlist, the read-only line for an agent without write tools, the no-git-writes line), then its body, then the inputs; log one self-check line per dispatch in the run log.\n\n| Phase | Agent file | Model | Effort | Mode |\n|-------|-----------|-------|--------|------|\n| 0 | [agents\u002Fscaffold-discovery.md](agents\u002Fscaffold-discovery.md) | opus | medium | readonly |\n| 0 | [agents\u002Fframework-detector.md](agents\u002Fframework-detector.md) | haiku | low | readonly |\n| 3A | [agents\u002Fe2e-installer.md](agents\u002Fe2e-installer.md) | sonnet | medium | write |\n| 3B | [agents\u002Fworkflow-writer.md](agents\u002Fworkflow-writer.md) | sonnet | medium | write |\n| 3C | [agents\u002Fhusky-installer.md](agents\u002Fhusky-installer.md) | haiku | low | write |\n| 3E | [agents\u002Flint-config-writer.md](agents\u002Flint-config-writer.md) | haiku | low | write |\n| 3F | [agents\u002Fa11y-discovery-runner.md](agents\u002Fa11y-discovery-runner.md) | sonnet | medium | readonly |\n| 3G | [agents\u002Fbranch-protection-writer.md](agents\u002Fbranch-protection-writer.md) | haiku | low | write |\n| 4 | [agents\u002Flocal-gates-runner.md](agents\u002Flocal-gates-runner.md) | sonnet | medium | write |\n\nThe PR template (Phase 3D) is small enough that the orchestrator writes it directly from the templates file; no agent is needed.\n\n## Inputs and Preconditions\n\n- Repository exists with at least one app or package directory.\n- Clean git working tree on `main`, OR explicit user OK to proceed dirty.\n- `gh` CLI installed and authenticated (needed for PR + branch protection; not needed under ship-once until the app's final PR).\n- A package manager (`pnpm` preferred) installed.\n\n## Scenarios\n\n| State | Action |\n|---|---|\n| Fully built (every scaffold artifact present and CI green) | Stop. Report \"baseline already in place\". Recommend `\u002Fbytheslice:sell-slice` for the next slice. |\n| Partially built (some artifacts present, others missing) | Run discovery, dispatch only the agents that fill the gaps; never overwrite existing artifacts without surfacing to the user. |\n| Not yet started (clean repo, no `.github\u002Fworkflows\u002F`) | Run the full pipeline end-to-end. |\n\n`scaffold-discovery` reports `already_present_scaffold_artifacts`; the orchestrator uses that list to decide which Phase 3 sub-blocks to dispatch.\n\n## Workflow\n\n### Phase 0: Discovery (parallel)\n\nDispatch in one batch:\n\n1. `scaffold-discovery`: package manager, framework, monorepo tooling, existing workflows, DB presence\n2. `framework-detector`: E2E framework choice + target apps\n\n### Phase 1: Clarifying Questions (Plan Mode)\n\nBefore any write, switch to **Plan Mode** and ask up to 5 focused questions:\n\n1. Which app(s) are critical paths for E2E?\n2. Should CI run on PR only, or PR + push to `main`?\n3. Which suites are required blockers (`@feature`, `@regression-core`, `@visual`, full)?\n4. Are deployments gated on green E2E checks?\n5. Any restricted environments\u002Fsecrets needed in CI?\n\n**Always provide a recommended answer in available options.**\n\nWait for answers before continuing. Under `run.unattended: true`, skip the prompt: take each recommended answer and record it in the order ticket's \"Decisions made without you\" section (see \"Unattended runs\").\n\n### Phase 2: Branch Setup\n\n- Create a dedicated branch: `chore\u002Ffinal-quality-check`. Under ship-once, stay on the current branch instead (see \"Ship-once delivery\").\n- Never scaffold CI directly on `main` \u002F `master`.\n- Keep this PR minimal: baseline quality + smoke E2E only. No product features.\n\n### Phase 3: Implementation (sub-blocks A through H, sequential)\n\nEach sub-block dispatches its agent, waits for the structured return, and commits before moving to the next.\n\n| Block | Agent | What it produces |\n|---|---|---|\n| A | `e2e-installer` | Playwright installed, scripts in package.json, baseline @feature\u002F@regression-core\u002F@visual specs, `tests\u002Fvisual\u002Fbaselines\u002F` |\n| B | `workflow-writer` | `.github\u002Fworkflows\u002F{ci,e2e,e2e-coverage,design-system-compliance,db-schema-drift}.yml` |\n| C | `husky-installer` | `.husky\u002Fpre-push` with the slice-tier gate chain (gate tier 2); offers to swap a legacy full-chain hook |\n| D | (orchestrator direct) | `.github\u002Fpull_request_template.md` from the templates file |\n| E | `lint-config-writer` | eslint-plugin-tailwindcss config additions, `.stylelintrc.json`, `.gitignore` updates |\n| F | `a11y-discovery-runner` | Scoped shadscan accessibility findings, written into the stage report as UNVERIFIED LEADS. Writes no project files. Non-blocking. |\n| G | `branch-protection-writer` | `scripts\u002Fsetup-branch-protection.sh` (executable) |\n| H | (orchestrator direct) | Project rules file (CLAUDE.md \u002F AGENTS.md) \"CI\u002FCD Operational Rules\" section populated from `references\u002Fprd-ci-cd-checklist.md` |\n\n**Lean tier changes per block** (pass `quality_tier: lean` to each agent; the block letters do not change):\n\n| Block | Lean output |\n|---|---|\n| A | Playwright installed, `test:e2e` and `test:e2e:smoke` scripts, ONE `@smoke` spec over the app's main flow, a single-project `playwright.config.ts`. No `@feature` \u002F `@regression-core` \u002F `@visual` specs, no `tests\u002Fvisual\u002Fbaselines\u002F`. Skipped when `framework-detector` returns skip-E2E. `check:design-system` only when a design system exists. |\n| B | `.github\u002Fworkflows\u002Fci.yml` from the lean template (lint, typecheck, unit-tests, build, e2e-smoke), plus `design-system-compliance.yml` only when a design system exists. No `e2e.yml`, `e2e-coverage.yml` or `db-schema-drift.yml`. |\n| C | `.husky\u002Fpre-push` from the lean template: the same lean set CI runs. |\n| D | The PR template's lean checklist (no `@regression-core` or `@visual` rows). |\n| E | Runs only when a design system exists; otherwise only the `.gitignore` additions are written. |\n| F, H | Unchanged. |\n| G | The script lists the lean required checks only. |\n\n**Sub-block lettering is strictly sequential, and stays that way.** Blocks are labeled in execution order with no gaps, no suffixes, and no insertions like `E2` or `F-bis`. Inserting a block in the middle means relettering every block after it and updating every reference (this roster, the Subagent Roster table's `3\u003Cletter>` phase column, the review-pass rule, the Final Output Format, and the Completion Checklist). That renaming cost is deliberate: it keeps \"which block runs when\" readable straight off the letter.\n\n**Past Z, the sequence continues `A2` through `Z2`, then `A3` through `Z3`, and so on.** The digit is a generation counter, never an insertion marker: `A2` means the twenty-seventh block, not \"a second block wedged next to A\". Never reach for a numbered suffix before Z is actually used.\n\nAfter each sub-block that writes project files (A through E, and G), run a spec-compliance + code-quality review pass (reuse `sell-slice\u002Fagents\u002Fspec-reviewer.md` and `sell-slice\u002Fagents\u002Fquality-reviewer.md`). Fix findings before moving to the next sub-block. Sub-blocks F and H are exempt: F writes no project files, and H is a deterministic file write.\n\n#### Sub-block F: Accessibility discovery pass (shadscan)\n\nRuns immediately after the design-system compliance block (E), before G. Dispatch `a11y-discovery-runner`.\n\n**This is discovery, not a gate.** It produces no score threshold, no CI check, no pre-push step, and no commit. Its entire output is a section in the stage report labeled UNVERIFIED LEADS. If it returns `status: skipped` or `failed`, log the reason and continue to G. It can never block the quality line.\n\nThe agent runs exactly two scoped commands (package-manager `dlx` equivalent substituted):\n\n```bash\npnpm dlx @shadscan\u002Fcli --category accessibility --no-interactive --no-roast\n```\n\n```bash\npnpm dlx @shadscan\u002Fcli --category foundation --no-interactive --no-roast\n```\n\n**Only these two categories.** On the codebase this pass was calibrated against, `accessibility` and `foundation` carried nearly all the true signal: four genuine bugs that lint, typecheck, test, build, and E2E all missed. `states` scored 0 percent with every failure a false positive, `interaction` was about half product-opinion, and `forms` was mixed. Do not widen the scope.\n\n**Library showcase route filtering is mandatory.** shadscan has no ignore, exclude, or rule-waiver mechanism; its `setup` subcommand only writes pre-commit hooks and does not configure scope. So the operator-only `\u002Flibrary` route scaffolded by `\u002Fset-display-case` gets scanned and scored as production code even though every entry there is a mockup by design. On the calibration run, 5 of 21 evidence rows pointed at `\u002Flibrary` entries. The agent discards every finding whose file path contains the library showcase route segment before reporting, and reports the discarded count so the drop is visible rather than silent. Pass the detected library route path to the agent as an input.\n\n**Never run `--apply`.** It launches a coding agent against unfiltered findings, which at roughly a one-in-three false-positive rate would produce wrong changes. Never run `--fail-under`, and never run `shadscan setup`.\n\nThe reported score is recorded as context only. It is heavily penalized by deliberate architecture choices (not using shadcn, dark-theme-only with no theme toggle, no command menu) on top of the false-positive rate, so it is not a quality signal and must never become one. The permanent version of that rule lands in the project rules file via sub-block H.\n\n*Future interface note:* shadscan ships an `mcp` subcommand exposing read-only `scan`, `list_projects`, and `explain_rule` tools over stdio. If a later slice wants an agent consuming findings directly instead of parsing CLI output, that is the better interface. Do not wire it here.\n\n#### Sub-block H: Append CI\u002FCD operational rules to the project rules file\n\nThe orchestrator (no subagent dispatch; this is a small, deterministic write similar to sub-block D's PR template):\n\n1. Locate the project rules file. If `cook-pizzas` ran first, the file already exists at `CLAUDE.md` or `AGENTS.md` per Q12, with a placeholder section labeled \"CI\u002FCD Operational Rules\" (marked as populated by `final-quality-check`) written by the `rules-assembler` agent.\n2. If the placeholder is present, replace its body with the contents of `references\u002Fprd-ci-cd-checklist.md` (preserving the `- [ ]` task-list checkbox format verbatim: these are runtime gates the user and every agent walk on every PR, not one-time scaffold checks).\n3. If the placeholder is absent (e.g. the project skipped `cook-pizzas` and ran `\u002Ffinal-quality-check` directly as an escape hatch), append a new section to the project rules file:\n   ```markdown\n   \u003C!-- bytheslice: ci-cd-operational-rules-start -->\n   ## CI\u002FCD Operational Rules\n\n   These rules govern how master-checklist updates, CI gates, and PR shape interact across every ByTheSlice run. They apply to every agent on every PR, not only to the one-time CI\u002FCD scaffolding.\n\n   \u003C!-- contents of references\u002Fprd-ci-cd-checklist.md, verbatim -->\n   \u003C!-- bytheslice: ci-cd-operational-rules-end -->\n   ```\n4. **Idempotent re-runs.** If the section markers already exist, replace the body in place; never duplicate the section. User-edited content between the markers should be surfaced as a conflict via HITL `destructive_operation` rather than overwritten silently.\n5. If neither `CLAUDE.md` nor `AGENTS.md` exists at the project root, create `CLAUDE.md` with just this section plus a one-line precedence header. Surface to the user that a fuller rules file should ideally be assembled by `\u002Fcook-pizzas`.\n6. The reference file carries the **shadscan triage rules** (never gate on the score, treat every finding as a lead, the three confirmed false-positive classes, discard library-showcase paths). They travel into the project rules automatically as part of the verbatim copy, which is what makes them apply to every later slice and not just to this run.\n\n### Phase 4: Local Verification Gates\n\nDispatch `local-gates-runner` to run lint, typecheck, design-system check, unit\u002Fintegration, and all three E2E suites. The first run also generates initial visual baselines.\n\nUnder the lean tier it runs the lean set instead: lint, typecheck, `check:design-system` (only when a design system exists), unit tests, build, and `test:e2e:smoke`. No baselines are generated.\n\nIf any gate fails, fix on the same branch before proceeding. This one-time run covers the full local suite; afterwards the Husky `pre-push` hook enforces only the slice tier (gate tier 2: lint, typecheck, unit tests, build, DB tests when the schema or migrations change) on every push, and CI runs the full suite at each PR (tier 4). `--no-verify` is never the answer to a red hook.\n\n### Phase 5: PR + CI\u002FCD\n\nUnder ship-once, this whole phase is one local commit on the current branch; see \"Ship-once delivery\".\n\n1. Push `chore\u002Ffinal-quality-check` to remote.\n2. Open the PR via `git-commit-push-pr` \u002F `new-branch-and-pr` skill if available; otherwise `gh pr create`. PR description must list every artifact created.\n3. Wait for CI to complete. If any required check fails, patch on the same branch and push until green.\n4. Once CI is green, merge.\n\n### Phase 6: Closeout\n\nUnder ship-once, skip steps 1 to 4 (there is no merge or branch to clean up) and do steps 5 and 6.\n\n1. After merge, update local `main`: `git checkout main && git pull --ff-only origin main`.\n2. Delete the local branch: `git branch -d chore\u002Ffinal-quality-check`.\n3. Delete the remote branch if not auto-deleted: `git push origin --delete chore\u002Ffinal-quality-check`.\n4. Verify `git status` is clean on `main`.\n5. Remind the user (once) to run `scripts\u002Fsetup-branch-protection.sh` to enable required status checks on `main`.\n6. Walk the **Completion Checklist** below and confirm every box is `[x]`.\n\n## Final Output Format\n\nAfter Phase 6, report:\n\n1. Files created \u002F updated (grouped: workflows, husky, pr template, scripts, tests, eslint\u002Fstylelint, package.json scripts).\n2. The resolved quality tier and why (`auto` shows its feature-pie count and the payments finding), CI triggers, and required status checks.\n3. Local verification commands and outcomes.\n4. Confirmed presence of all scaffold artifacts (see checklist below).\n5. PR URL and merged commit SHA (under ship-once: the local commit SHA and branch).\n6. Recommended next E2E flows to add (handed to `sell-slice`).\n7. Reminder: run `scripts\u002Fsetup-branch-protection.sh` once to enable required status checks on `main`.\n8. **Accessibility discovery pass (shadscan): UNVERIFIED LEADS.** A dedicated section carrying the sub-block F return verbatim: each lead's rule, file, line, shadscan's own evidence text, and its `known_fp_class` tag; the count of library-showcase findings discarded; and the reported score marked informational. Head the section with the standing caveat that nothing in it is verified and roughly one in three shadscan failures is a false positive or product-opinion. If the pass was skipped, say so and why. This section never affects whether the run is considered done.\n\n## Hard Constraints\n\n- **Never scaffold CI directly on `main` \u002F `master`.** Use `chore\u002Ffinal-quality-check`, or the current non-`main` branch under ship-once.\n- **Lean is smaller, never empty.** Lint, typecheck, unit tests and build run in CI at every tier, and lean keeps its one smoke spec in CI and in the pre-push hook wherever the app has a browser surface.\n- **Under `run.unattended: true`, never wait on a human.** Take the safest working option, record it in the order ticket, and continue (see \"Unattended runs\").\n- **Never weaken or remove existing workflows.** This skill adds; it does not subtract. If existing workflows conflict, surface to the user and stop.\n- **Completion checklist is mandatory.** The scaffold is not \"done\" until every box is `[x]`.\n- **Sub-skill contract.** When invoked as a `type: ci-cd` stage by `sell-slice`, this skill is the entire stage. After completion, mark the stage `Completed` in `docs\u002Fplans\u002F00_master_checklist.md`.\n- **shadscan is never a gate.** Never wire `--fail-under` into `.husky\u002Fpre-push` or any CI workflow, never run `shadscan setup` (it writes pre-commit hooks), and never add a shadscan step to `ci.yml`, `design-system-compliance.yml`, or the branch-protection required checks. The score is heavily penalized by deliberate architecture choices and by false positives; gating on it would block correct work.\n- **Never run shadscan `--apply`.** It launches a coding agent against unfiltered findings, which at this false-positive rate would produce wrong changes.\n- **Subagent prompts live in `.\u002Fagents\u002F*.md`.** This SKILL.md is workflow only; never inline subagent prompts here.\n- **No platform-specific rule references.** Do not write \"cursor rules\" or \"claude rules\"; use \"rules file (cursor or claude)\" if the distinction matters, or simply \"project rules file\".\n\n## Triggers\n\nFollow this skill whenever the user:\n\n- runs `\u002Ffinal-quality-check` (escape hatch)\n- says \"scaffold ci\u002Fcd\", \"set up CI\", \"bootstrap quality gates\", \"set up Playwright + GitHub Actions\"\n- has `sell-slice` reach a `type: ci-cd` stage in the master checklist (auto-dispatch)\n\nIf the repo already has the baseline, stop and recommend `\u002Fbytheslice:sell-slice` instead.\n\n---\n\n## Completion Checklist\n\nRun this checklist at the end of every run. Do **not** consider the scaffold \"done\" until every box is `[x]`.\n\nSections 1 to 6 below describe the **standard tier** with the default PR delivery. Under the **lean tier**, walk \"Lean tier rows\" in place of sections 1 to 3; under **ship-once**, walk \"Ship-once rows\" in place of sections 4 to 6. Section 3.5 applies to every combination. An artifact or prompt skipped under `run.unattended: true` counts as checked once its line is in the order ticket's \"Decisions made without you\" section.\n\n### Lean tier rows\n\n- [ ] Resolved tier logged (and recorded in the order ticket when one exists).\n- [ ] `.husky\u002Fpre-push` exists, is executable, and runs the lean set from the lean template (lint, typecheck, test, build, `test:e2e:smoke`, DB tests only when the schema or migrations change).\n- [ ] `.github\u002Fpull_request_template.md` exists with the lean checklist.\n- [ ] `.github\u002Fworkflows\u002Fci.yml` exists from the lean template (lint, typecheck, unit-tests, build, e2e-smoke).\n- [ ] `.github\u002Fworkflows\u002Fdesign-system-compliance.yml`, `.eslintrc.json` tailwindcss additions and `.stylelintrc.json` exist IF a design system exists, and are absent otherwise.\n- [ ] No `e2e.yml`, `e2e-coverage.yml`, `db-schema-drift.yml`, `@regression-core` spec, `@visual` spec or `tests\u002Fvisual\u002Fbaselines\u002F` was written.\n- [ ] `package.json` has `test:e2e` and `test:e2e:smoke` (plus `check:design-system` when a design system exists).\n- [ ] Exactly one `@smoke` spec exists and walks the app's main flow (skip when `framework-detector` returned skip-E2E, and say so).\n- [ ] `scripts\u002Fsetup-branch-protection.sh` exists, is executable, and lists the lean required checks.\n- [ ] `.gitignore` excludes `playwright-report\u002F`, `test-results\u002F`, `.playwright\u002F`.\n- [ ] The rules-file \"CI\u002FCD Operational Rules\" section and the no-shadscan-gate grep are done as in section 1.\n- [ ] Local lean set green: lint, typecheck, `check:design-system` (if present), test, build, `test:e2e:smoke`.\n\n### Ship-once rows\n\n- [ ] All work happened on the current non-`main` branch (or a local `chore\u002Ffinal-quality-check` created because HEAD was on `main`).\n- [ ] The scaffold is one local commit on that branch; nothing was pushed, no PR was opened, nothing was merged.\n- [ ] The local gates ran every command the generated `ci.yml` and (standard tier) `e2e.yml` run, not a subset, and all passed.\n- [ ] The branch-protection reminder is in the order ticket (or the chat when there is no ticket), for after the app's final PR merges.\n- [ ] If invoked as a `type: ci-cd` stage, the master-checklist row is flipped to `Completed`.\n\n### 1. Scaffold Artifacts Present\n\n- [ ] `.husky\u002Fpre-push` exists, is executable, and runs the slice tier (lint, typecheck, test, build, DB tests only when the schema or migrations change), not the full CI chain. `check:design-system` and the e2e suites run in CI (tier 4).\n- [ ] `.github\u002Fpull_request_template.md` exists with E2E attestation, design-system-compliance, and visual-diff checklist items.\n- [ ] `.github\u002Fworkflows\u002Fci.yml` exists (full job order: typecheck → lint → design-system-compliance → unit tests → integration tests → @feature → @regression-core → @visual → db-schema-drift if applicable → build).\n- [ ] `.github\u002Fworkflows\u002Fdesign-system-compliance.yml` exists (regex sweep → eslint-plugin-tailwindcss → stylelint).\n- [ ] `.github\u002Fworkflows\u002Fe2e.yml` exists (`@feature` + `@regression-core` + `@visual` jobs with artifact upload on failure).\n- [ ] `.github\u002Fworkflows\u002Fe2e-coverage.yml` exists (path-diff job named `E2E \u002F coverage-check`; blocks on unreviewed visual diffs).\n- [ ] `.github\u002Fworkflows\u002Fdb-schema-drift.yml` exists IF project has DB, is absent if no DB detected.\n- [ ] `scripts\u002Fsetup-branch-protection.sh` exists and is executable (includes all new required checks).\n- [ ] `.eslintrc.json` (or equivalent) has `eslint-plugin-tailwindcss` config additions.\n- [ ] `.stylelintrc.json` exists with CSS-file token checks.\n- [ ] `.gitignore` excludes `playwright-report\u002F`, `test-results\u002F`, `.playwright\u002F`, and Vizzly diff artifacts.\n- [ ] Project rules file (`CLAUDE.md` or `AGENTS.md`) has a \"CI\u002FCD Operational Rules\" section populated verbatim from `references\u002Fprd-ci-cd-checklist.md`, delimited by the `\u003C!-- bytheslice: ci-cd-operational-rules-{start,end} -->` markers, so every later stage skill picks up the runtime guardrails automatically.\n- [ ] That same section carries the shadscan triage rules (score is never a gate, every finding is a lead, the three false-positive classes, discard library-showcase paths).\n- [ ] No `--fail-under`, no `shadscan` step, and no `shadscan setup` hook appears anywhere in `.husky\u002Fpre-push`, `.github\u002Fworkflows\u002F*`, or `scripts\u002Fsetup-branch-protection.sh`. Grep to confirm.\n\n### 2. Test Suites and Scripts Present\n\n- [ ] `package.json` (root) has scripts: `test:e2e`, `test:e2e:feature`, `test:e2e:regression`, `test:e2e:visual`, `check:design-system`.\n- [ ] At least one `@feature`-tagged smoke spec exists.\n- [ ] At least one `@regression-core`-tagged sentinel spec exists.\n- [ ] Canary `@visual` tests exist, one per viewport (375 \u002F 768 \u002F 1280 \u002F 1920).\n- [ ] `tests\u002Fvisual\u002Fbaselines\u002F` directory is committed (may be empty on first scaffold; Vizzly populates on first run).\n- [ ] Playwright (or detected E2E framework) is installed and lockfile updated.\n- [ ] If a monorepo task runner exists (`turbo.json` \u002F `nx.json`), the new E2E tasks are wired into it.\n\n### 3. Local Gates Green\n\n- [ ] `pnpm lint` (or detected equivalent) passes.\n- [ ] `pnpm typecheck` passes.\n- [ ] `pnpm check:design-system` passes.\n- [ ] `pnpm test` (unit\u002Fintegration) passes.\n- [ ] `pnpm test:e2e:feature` passes locally.\n- [ ] `pnpm test:e2e:regression` passes locally.\n- [ ] `pnpm test:e2e:visual` passes locally (baselines generated or confirmed up-to-date).\n- [ ] Husky `pre-push` hook fires on push (verify with a dry-run or trial push).\n\n### 3.5 Accessibility Discovery Pass (non-blocking)\n\nEvery box here is about the pass having *run and been reported honestly*. None of them is about the pass having *passed*, because there is nothing to pass.\n\n- [ ] `a11y-discovery-runner` was dispatched after sub-block E, or its `skipped` status and reason are recorded.\n- [ ] Exactly two scoped commands were run: `--category accessibility` and `--category foundation`. No unscoped run, no `states` \u002F `interaction` \u002F `forms`.\n- [ ] `--apply` was never run. `--fail-under` was never run. `shadscan setup` was never run.\n- [ ] Findings whose path contains the library showcase route were discarded, and the discarded count is stated in the report.\n- [ ] The stage report has an \"Accessibility discovery pass (shadscan): UNVERIFIED LEADS\" section, with each lead carrying shadscan's own evidence text and a `known_fp_class` tag.\n- [ ] The reported score appears only as informational context, never compared against a threshold.\n- [ ] No shadscan finding was auto-fixed, and no shadscan finding blocked the run.\n\n### 4. PR Created and Submitted\n\n- [ ] All work happened on branch `chore\u002Ffinal-quality-check`, never on `main`.\n- [ ] PR opened via `git-commit-push-pr` \u002F `new-branch-and-pr` skill or `gh pr create`.\n- [ ] PR description lists every artifact created.\n- [ ] PR is targeted at `main` and is **not** draft.\n\n### 5. CI\u002FCD Passing on the PR\n\n- [ ] All required GitHub Actions checks have completed (no `pending` \u002F `queued`).\n- [ ] Every required check is green. No skipped checks counted as passing.\n- [ ] If any check failed: read failing job logs, patch on `chore\u002Ffinal-quality-check`, push, repeat until all checks pass.\n- [ ] Final CI run reflects the latest commit on the PR head, not a stale SHA.\n\n### 6. Branch Cleanup and Return to Main\n\nOnly after CI is fully green and the PR is merged.\n\n- [ ] PR merged into `main`.\n- [ ] Local `main` updated: `git checkout main && git pull --ff-only origin main`.\n- [ ] Confirm scaffold commits are present on `main` (`git log --oneline | head`).\n- [ ] Local `chore\u002Ffinal-quality-check` branch deleted: `git branch -d chore\u002Ffinal-quality-check`.\n- [ ] Remote `chore\u002Ffinal-quality-check` deleted: `git push origin --delete chore\u002Ffinal-quality-check` (skip if auto-deleted).\n- [ ] If a worktree was used: `git worktree remove \u003Cpath>` and `git worktree prune`.\n- [ ] Final `git status` shows clean tree on `main`.\n- [ ] User reminded once to run `scripts\u002Fsetup-branch-protection.sh`.\n- [ ] If invoked as a `type: ci-cd` stage by `sell-slice`, `docs\u002Fplans\u002F00_master_checklist.md` row flipped to `Completed`.\n\n### Done Criteria\n\nThe scaffold is delivered **only** when (under ship-once, items 2 to 4 read: committed on the current branch with the local gates green):\n\n1. Every section that applies to the resolved tier and delivery mode is fully checked.\n2. The orchestrator is back on `main` with a clean working tree.\n3. All scaffold artifacts are present and committed on `main`.\n4. CI passed on the merged PR head SHA.\n","\u003C!-- skills\u002Ffinal-quality-check\u002FSKILL.md -->\n\u003C!-- Daily-prep skill (run before \u002Fsell-slice). Pizza-shop framing: install the quality line every pie crosses before landing on the display tray. Orchestrator-only: dispatches nine specialized agents to bootstrap the production-grade CI\u002FCD + E2E + design-system-compliance + visual-regression baseline on a dedicated chore branch. Mode-detected (standalone vs sequential). -->\n\n# Final Quality Check: CI\u002FCD + Verification Baseline\n\nThis skill is the orchestrator for the CI\u002FCD baseline. It does not write workflows itself; it **dispatches nine specialized agents** that each own one slice of the scaffold work. The orchestrator's job is detection, sequencing, user-input gating, and walking the completion checklist.\n\n## Mode detection\n\nThis skill runs in one of two modes, auto-detected at startup:\n\n- **Standalone**: no `docs\u002Fplans\u002F00_master_checklist.md` at the project root. Adds CI\u002FCD + E2E + design-system-compliance + visual-regression baseline to any project. Runs end-to-end, exits. No checklist coordination.\n- **Sequential**: master checklist exists with a `## Prep` section. On completion, flip the `[ ] Quality line installed` row to `[x]` and surface: *\"Quality line ready. Next prep step: `\u002Fopen-the-shop`.\"*\n\nHonor an explicit `--standalone` or `--sequential` flag if passed; otherwise auto-detect from disk state.\n\n## Quality tier\n\n`quality.tier` in `bytheslice.config.json` sets how heavy a line this run installs. Resolve it once, before Phase 0, and pass the resolved value to every Phase 3 and Phase 4 agent as `quality_tier`.\n\n| Value | What it installs |\n|---|---|\n| `\"standard\"` (default) | Today's full line: sub-blocks A through H as written, the `@feature`, `@regression-core` and `@visual` suites with visual baselines, `e2e.yml`, `e2e-coverage.yml`, `design-system-compliance.yml`, and the full Completion Checklist. |\n| `\"lean\"` | A line sized for a small app. CI runs lint, typecheck, unit tests, build, and ONE Playwright smoke spec (`@smoke`) over the app's main flow. No visual baselines, no `@visual` or `@regression-core` suite, no `e2e.yml`, no `e2e-coverage.yml`. `design-system-compliance.yml` and sub-block E's lint additions stay only when a design system exists (`docs\u002Fdesign-system.md` is present, or the Prep row for Slice 1.1 is `[x]`). The husky `pre-push` hook runs the same lean set. |\n| `\"auto\"` | Resolves to `lean` when the master checklist has at most 3 feature pies (Pie 2 onward) and no payments work (no pie or slice about payments, checkout, billing or subscriptions, and no payments provider in PRD Section 4 or any `.env.example`); otherwise `standard`. With no master checklist (standalone mode) it resolves to `standard`. `\u002Fpizza-party` sets `auto`. |\n\nLog the resolved tier as one line (for example `quality tier: lean (auto: 2 feature pies, no payments)`). When `docs\u002Fpizza-party\u002Forder.md` exists, append the same line to its \"Decisions made without you\" section.\n\nThe lean templates live beside the standard ones in [references\u002Fscaffold-artifact-templates.md](references\u002Fscaffold-artifact-templates.md) under \"Lean tier\". Lean never drops lint, typecheck, unit tests, build or the smoke spec; it only leaves out the suites a small app does not need.\n\n## Unattended runs (`run.unattended: true`)\n\nWhen `bytheslice.config.json` sets `run.unattended: true` (`\u002Fpizza-party` does), nothing in this skill waits on a human: the operator accepted that risk by launching the run. The order ticket is `docs\u002Fpizza-party\u002Forder.md`; every choice made in the operator's place is appended to its \"Decisions made without you\" section as one line (the point, the option taken, why).\n\n- **Phase 1** asks nothing. Each question takes its recommended answer, recorded in the ticket.\n- **Every point that would ask or return `needs_human`** takes the safest working option instead and continues: a custom or legacy full-chain `.husky\u002Fpre-push`, a conflicting existing workflow, an existing `scripts\u002Fsetup-branch-protection.sh`, a non-empty `.stylelintrc.json`, user-edited content between the rules-file markers, or a project with no ESLint config. Keep the existing file untouched, skip the artifact that would overwrite it, and record the skip. A `framework: unknown` profile is treated as a Node app with E2E skipped, and recorded.\n- **Destructive operations on shared resources the operator did not name** (branch protection, remote branch deletion, repository settings) are skipped and recorded, never asked about.\n- The branch-protection reminder (Phase 6 step 5) goes into the ticket instead of the chat.\n\nWithout `run.unattended`, every prompt and HITL in this skill behaves exactly as written.\n\n## Ship-once delivery (`delivery.mode: \"ship-once\"`)\n\nUnder ship-once the whole app ships in one PR at the end, so the scaffold does not get a PR of its own. The scaffold is committed locally and travels with the app's one PR.\n\n- **Phase 2:** no `chore\u002Ffinal-quality-check` branch. Scaffold on the current branch (the run's local ship branch). The rule against committing on `main` \u002F `master` still holds: if HEAD is on either, create `chore\u002Ffinal-quality-check` locally first and record it.\n- **Phase 5** becomes one local commit on the current branch (`chore: install quality line (\u003Ctier> tier)`). No push, no PR, no CI wait, no merge.\n- **Phase 6** skips the `main` sync and the branch and remote cleanup; it walks the ship-once rows of the Completion Checklist instead.\n- **Local and CI agree.** Phase 4 (and `slice-verifier` at every later slice end, and `\u002Fbox-it-up`'s pie-local check at every pie boundary) executes every command the generated CI workflows run for the resolved tier, never a subset: every `run:` step of `ci.yml` and, under the `standard` tier, of `e2e.yml` too (the `@feature`, `@regression-core` and `@visual` suites in full, with no `verification.e2e` threshold narrowing them). A lean app has no `e2e.yml`; its `ci.yml` already holds the one smoke spec. A green local run is the real gate here; CI runs those same commands once on the app's one PR. Under `pie-pr` and `merge-per-slice` nothing here changes. Every other generated workflow that runs on pull requests (`e2e-coverage.yml`, `db-schema-drift.yml`, `design-system-compliance.yml`, when present) runs too, so nothing can fail only in CI on the ship PR.\n- `gh` is not needed until that final PR.\n\n## Reference Files\n\n| File | Purpose |\n| --- | --- |\n| [references\u002Fscaffold-artifact-templates.md](references\u002Fscaffold-artifact-templates.md) | Verbatim file templates for every CI\u002FCD artifact (workflows, husky hook, PR template, regex sweep script, etc.). Every implementer agent reads this before writing. |\n| [references\u002Fprd-ci-cd-checklist.md](references\u002Fprd-ci-cd-checklist.md) | **Project-wide runtime guardrails**, not scaffold-time setup. Master-checklist updates, CI gate alignment, deterministic pipelines, slice-per-PR rule, failure-artifact upload; these apply to every agent on every PR. Sub-block H of Phase 3 appends this content into the project rules file (CLAUDE.md \u002F AGENTS.md) so every later stage skill picks it up automatically. |\n\n## Subagent Roster\n\nEach agent is a **registered plugin agent**: dispatch by type `bytheslice:\u003Cname>` (Agent tool `subagent_type`, or `Workflow` `agentType`), passing only the task inputs as the prompt. The files under `.\u002Fagents\u002F` carry the role prompt plus enforced model\u002Feffort\u002Ftools. Fallback (Cursor, or a host without plugin-agent registration): Read the file and dispatch it per [`loop-workflow-fallback-pattern.md`](..\u002Fcook-pizzas\u002Freferences\u002Floop-workflow-fallback-pattern.md) \"Agent shape on the fallback path\": its frontmatter goes first as a header (model tier and effort, the normalized tool allowlist, the read-only line for an agent without write tools, the no-git-writes line), then its body, then the inputs; log one self-check line per dispatch in the run log.\n\n| Phase | Agent file | Model | Effort | Mode |\n|-------|-----------|-------|--------|------|\n| 0 | [agents\u002Fscaffold-discovery.md](agents\u002Fscaffold-discovery.md) | opus | medium | readonly |\n| 0 | [agents\u002Fframework-detector.md](agents\u002Fframework-detector.md) | haiku | low | readonly |\n| 3A | [agents\u002Fe2e-installer.md](agents\u002Fe2e-installer.md) | sonnet | medium | write |\n| 3B | [agents\u002Fworkflow-writer.md](agents\u002Fworkflow-writer.md) | sonnet | medium | write |\n| 3C | [agents\u002Fhusky-installer.md](agents\u002Fhusky-installer.md) | haiku | low | write |\n| 3E | [agents\u002Flint-config-writer.md](agents\u002Flint-config-writer.md) | haiku | low | write |\n| 3F | [agents\u002Fa11y-discovery-runner.md](agents\u002Fa11y-discovery-runner.md) | sonnet | medium | readonly |\n| 3G | [agents\u002Fbranch-protection-writer.md](agents\u002Fbranch-protection-writer.md) | haiku | low | write |\n| 4 | [agents\u002Flocal-gates-runner.md](agents\u002Flocal-gates-runner.md) | sonnet | medium | write |\n\nThe PR template (Phase 3D) is small enough that the orchestrator writes it directly from the templates file; no agent is needed.\n\n## Inputs and Preconditions\n\n- Repository exists with at least one app or package directory.\n- Clean git working tree on `main`, OR explicit user OK to proceed dirty.\n- `gh` CLI installed and authenticated (needed for PR + branch protection; not needed under ship-once until the app's final PR).\n- A package manager (`pnpm` preferred) installed.\n\n## Scenarios\n\n| State | Action |\n|---|---|\n| Fully built (every scaffold artifact present and CI green) | Stop. Report \"baseline already in place\". Recommend `\u002Fbytheslice:sell-slice` for the next slice. |\n| Partially built (some artifacts present, others missing) | Run discovery, dispatch only the agents that fill the gaps; never overwrite existing artifacts without surfacing to the user. |\n| Not yet started (clean repo, no `.github\u002Fworkflows\u002F`) | Run the full pipeline end-to-end. |\n\n`scaffold-discovery` reports `already_present_scaffold_artifacts`; the orchestrator uses that list to decide which Phase 3 sub-blocks to dispatch.\n\n## Workflow\n\n### Phase 0: Discovery (parallel)\n\nDispatch in one batch:\n\n1. `scaffold-discovery`: package manager, framework, monorepo tooling, existing workflows, DB presence\n2. `framework-detector`: E2E framework choice + target apps\n\n### Phase 1: Clarifying Questions (Plan Mode)\n\nBefore any write, switch to **Plan Mode** and ask up to 5 focused questions:\n\n1. Which app(s) are critical paths for E2E?\n2. Should CI run on PR only, or PR + push to `main`?\n3. Which suites are required blockers (`@feature`, `@regression-core`, `@visual`, full)?\n4. Are deployments gated on green E2E checks?\n5. Any restricted environments\u002Fsecrets needed in CI?\n\n**Always provide a recommended answer in available options.**\n\nWait for answers before continuing. Under `run.unattended: true`, skip the prompt: take each recommended answer and record it in the order ticket's \"Decisions made without you\" section (see \"Unattended runs\").\n\n### Phase 2: Branch Setup\n\n- Create a dedicated branch: `chore\u002Ffinal-quality-check`. Under ship-once, stay on the current branch instead (see \"Ship-once delivery\").\n- Never scaffold CI directly on `main` \u002F `master`.\n- Keep this PR minimal: baseline quality + smoke E2E only. No product features.\n\n### Phase 3: Implementation (sub-blocks A through H, sequential)\n\nEach sub-block dispatches its agent, waits for the structured return, and commits before moving to the next.\n\n| Block | Agent | What it produces |\n|---|---|---|\n| A | `e2e-installer` | Playwright installed, scripts in package.json, baseline @feature\u002F@regression-core\u002F@visual specs, `tests\u002Fvisual\u002Fbaselines\u002F` |\n| B | `workflow-writer` | `.github\u002Fworkflows\u002F{ci,e2e,e2e-coverage,design-system-compliance,db-schema-drift}.yml` |\n| C | `husky-installer` | `.husky\u002Fpre-push` with the slice-tier gate chain (gate tier 2); offers to swap a legacy full-chain hook |\n| D | (orchestrator direct) | `.github\u002Fpull_request_template.md` from the templates file |\n| E | `lint-config-writer` | eslint-plugin-tailwindcss config additions, `.stylelintrc.json`, `.gitignore` updates |\n| F | `a11y-discovery-runner` | Scoped shadscan accessibility findings, written into the stage report as UNVERIFIED LEADS. Writes no project files. Non-blocking. |\n| G | `branch-protection-writer` | `scripts\u002Fsetup-branch-protection.sh` (executable) |\n| H | (orchestrator direct) | Project rules file (CLAUDE.md \u002F AGENTS.md) \"CI\u002FCD Operational Rules\" section populated from `references\u002Fprd-ci-cd-checklist.md` |\n\n**Lean tier changes per block** (pass `quality_tier: lean` to each agent; the block letters do not change):\n\n| Block | Lean output |\n|---|---|\n| A | Playwright installed, `test:e2e` and `test:e2e:smoke` scripts, ONE `@smoke` spec over the app's main flow, a single-project `playwright.config.ts`. No `@feature` \u002F `@regression-core` \u002F `@visual` specs, no `tests\u002Fvisual\u002Fbaselines\u002F`. Skipped when `framework-detector` returns skip-E2E. `check:design-system` only when a design system exists. |\n| B | `.github\u002Fworkflows\u002Fci.yml` from the lean template (lint, typecheck, unit-tests, build, e2e-smoke), plus `design-system-compliance.yml` only when a design system exists. No `e2e.yml`, `e2e-coverage.yml` or `db-schema-drift.yml`. |\n| C | `.husky\u002Fpre-push` from the lean template: the same lean set CI runs. |\n| D | The PR template's lean checklist (no `@regression-core` or `@visual` rows). |\n| E | Runs only when a design system exists; otherwise only the `.gitignore` additions are written. |\n| F, H | Unchanged. |\n| G | The script lists the lean required checks only. |\n\n**Sub-block lettering is strictly sequential, and stays that way.** Blocks are labeled in execution order with no gaps, no suffixes, and no insertions like `E2` or `F-bis`. Inserting a block in the middle means relettering every block after it and updating every reference (this roster, the Subagent Roster table's `3\u003Cletter>` phase column, the review-pass rule, the Final Output Format, and the Completion Checklist). That renaming cost is deliberate: it keeps \"which block runs when\" readable straight off the letter.\n\n**Past Z, the sequence continues `A2` through `Z2`, then `A3` through `Z3`, and so on.** The digit is a generation counter, never an insertion marker: `A2` means the twenty-seventh block, not \"a second block wedged next to A\". Never reach for a numbered suffix before Z is actually used.\n\nAfter each sub-block that writes project files (A through E, and G), run a spec-compliance + code-quality review pass (reuse `sell-slice\u002Fagents\u002Fspec-reviewer.md` and `sell-slice\u002Fagents\u002Fquality-reviewer.md`). Fix findings before moving to the next sub-block. Sub-blocks F and H are exempt: F writes no project files, and H is a deterministic file write.\n\n#### Sub-block F: Accessibility discovery pass (shadscan)\n\nRuns immediately after the design-system compliance block (E), before G. Dispatch `a11y-discovery-runner`.\n\n**This is discovery, not a gate.** It produces no score threshold, no CI check, no pre-push step, and no commit. Its entire output is a section in the stage report labeled UNVERIFIED LEADS. If it returns `status: skipped` or `failed`, log the reason and continue to G. It can never block the quality line.\n\nThe agent runs exactly two scoped commands (package-manager `dlx` equivalent substituted):\n\n```bash\npnpm dlx @shadscan\u002Fcli --category accessibility --no-interactive --no-roast\n```\n\n```bash\npnpm dlx @shadscan\u002Fcli --category foundation --no-interactive --no-roast\n```\n\n**Only these two categories.** On the codebase this pass was calibrated against, `accessibility` and `foundation` carried nearly all the true signal: four genuine bugs that lint, typecheck, test, build, and E2E all missed. `states` scored 0 percent with every failure a false positive, `interaction` was about half product-opinion, and `forms` was mixed. Do not widen the scope.\n\n**Library showcase route filtering is mandatory.** shadscan has no ignore, exclude, or rule-waiver mechanism; its `setup` subcommand only writes pre-commit hooks and does not configure scope. So the operator-only `\u002Flibrary` route scaffolded by `\u002Fset-display-case` gets scanned and scored as production code even though every entry there is a mockup by design. On the calibration run, 5 of 21 evidence rows pointed at `\u002Flibrary` entries. The agent discards every finding whose file path contains the library showcase route segment before reporting, and reports the discarded count so the drop is visible rather than silent. Pass the detected library route path to the agent as an input.\n\n**Never run `--apply`.** It launches a coding agent against unfiltered findings, which at roughly a one-in-three false-positive rate would produce wrong changes. Never run `--fail-under`, and never run `shadscan setup`.\n\nThe reported score is recorded as context only. It is heavily penalized by deliberate architecture choices (not using shadcn, dark-theme-only with no theme toggle, no command menu) on top of the false-positive rate, so it is not a quality signal and must never become one. The permanent version of that rule lands in the project rules file via sub-block H.\n\n*Future interface note:* shadscan ships an `mcp` subcommand exposing read-only `scan`, `list_projects`, and `explain_rule` tools over stdio. If a later slice wants an agent consuming findings directly instead of parsing CLI output, that is the better interface. Do not wire it here.\n\n#### Sub-block H: Append CI\u002FCD operational rules to the project rules file\n\nThe orchestrator (no subagent dispatch; this is a small, deterministic write similar to sub-block D's PR template):\n\n1. Locate the project rules file. If `cook-pizzas` ran first, the file already exists at `CLAUDE.md` or `AGENTS.md` per Q12, with a placeholder section labeled \"CI\u002FCD Operational Rules\" (marked as populated by `final-quality-check`) written by the `rules-assembler` agent.\n2. If the placeholder is present, replace its body with the contents of `references\u002Fprd-ci-cd-checklist.md` (preserving the `- [ ]` task-list checkbox format verbatim: these are runtime gates the user and every agent walk on every PR, not one-time scaffold checks).\n3. If the placeholder is absent (e.g. the project skipped `cook-pizzas` and ran `\u002Ffinal-quality-check` directly as an escape hatch), append a new section to the project rules file:\n   ```markdown\n   \u003C!-- bytheslice: ci-cd-operational-rules-start -->\n   ## CI\u002FCD Operational Rules\n\n   These rules govern how master-checklist updates, CI gates, and PR shape interact across every ByTheSlice run. They apply to every agent on every PR, not only to the one-time CI\u002FCD scaffolding.\n\n   \u003C!-- contents of references\u002Fprd-ci-cd-checklist.md, verbatim -->\n   \u003C!-- bytheslice: ci-cd-operational-rules-end -->\n   ```\n4. **Idempotent re-runs.** If the section markers already exist, replace the body in place; never duplicate the section. User-edited content between the markers should be surfaced as a conflict via HITL `destructive_operation` rather than overwritten silently.\n5. If neither `CLAUDE.md` nor `AGENTS.md` exists at the project root, create `CLAUDE.md` with just this section plus a one-line precedence header. Surface to the user that a fuller rules file should ideally be assembled by `\u002Fcook-pizzas`.\n6. The reference file carries the **shadscan triage rules** (never gate on the score, treat every finding as a lead, the three confirmed false-positive classes, discard library-showcase paths). They travel into the project rules automatically as part of the verbatim copy, which is what makes them apply to every later slice and not just to this run.\n\n### Phase 4: Local Verification Gates\n\nDispatch `local-gates-runner` to run lint, typecheck, design-system check, unit\u002Fintegration, and all three E2E suites. The first run also generates initial visual baselines.\n\nUnder the lean tier it runs the lean set instead: lint, typecheck, `check:design-system` (only when a design system exists), unit tests, build, and `test:e2e:smoke`. No baselines are generated.\n\nIf any gate fails, fix on the same branch before proceeding. This one-time run covers the full local suite; afterwards the Husky `pre-push` hook enforces only the slice tier (gate tier 2: lint, typecheck, unit tests, build, DB tests when the schema or migrations change) on every push, and CI runs the full suite at each PR (tier 4). `--no-verify` is never the answer to a red hook.\n\n### Phase 5: PR + CI\u002FCD\n\nUnder ship-once, this whole phase is one local commit on the current branch; see \"Ship-once delivery\".\n\n1. Push `chore\u002Ffinal-quality-check` to remote.\n2. Open the PR via `git-commit-push-pr` \u002F `new-branch-and-pr` skill if available; otherwise `gh pr create`. PR description must list every artifact created.\n3. Wait for CI to complete. If any required check fails, patch on the same branch and push until green.\n4. Once CI is green, merge.\n\n### Phase 6: Closeout\n\nUnder ship-once, skip steps 1 to 4 (there is no merge or branch to clean up) and do steps 5 and 6.\n\n1. After merge, update local `main`: `git checkout main && git pull --ff-only origin main`.\n2. Delete the local branch: `git branch -d chore\u002Ffinal-quality-check`.\n3. Delete the remote branch if not auto-deleted: `git push origin --delete chore\u002Ffinal-quality-check`.\n4. Verify `git status` is clean on `main`.\n5. Remind the user (once) to run `scripts\u002Fsetup-branch-protection.sh` to enable required status checks on `main`.\n6. Walk the **Completion Checklist** below and confirm every box is `[x]`.\n\n## Final Output Format\n\nAfter Phase 6, report:\n\n1. Files created \u002F updated (grouped: workflows, husky, pr template, scripts, tests, eslint\u002Fstylelint, package.json scripts).\n2. The resolved quality tier and why (`auto` shows its feature-pie count and the payments finding), CI triggers, and required status checks.\n3. Local verification commands and outcomes.\n4. Confirmed presence of all scaffold artifacts (see checklist below).\n5. PR URL and merged commit SHA (under ship-once: the local commit SHA and branch).\n6. Recommended next E2E flows to add (handed to `sell-slice`).\n7. Reminder: run `scripts\u002Fsetup-branch-protection.sh` once to enable required status checks on `main`.\n8. **Accessibility discovery pass (shadscan): UNVERIFIED LEADS.** A dedicated section carrying the sub-block F return verbatim: each lead's rule, file, line, shadscan's own evidence text, and its `known_fp_class` tag; the count of library-showcase findings discarded; and the reported score marked informational. Head the section with the standing caveat that nothing in it is verified and roughly one in three shadscan failures is a false positive or product-opinion. If the pass was skipped, say so and why. This section never affects whether the run is considered done.\n\n## Hard Constraints\n\n- **Never scaffold CI directly on `main` \u002F `master`.** Use `chore\u002Ffinal-quality-check`, or the current non-`main` branch under ship-once.\n- **Lean is smaller, never empty.** Lint, typecheck, unit tests and build run in CI at every tier, and lean keeps its one smoke spec in CI and in the pre-push hook wherever the app has a browser surface.\n- **Under `run.unattended: true`, never wait on a human.** Take the safest working option, record it in the order ticket, and continue (see \"Unattended runs\").\n- **Never weaken or remove existing workflows.** This skill adds; it does not subtract. If existing workflows conflict, surface to the user and stop.\n- **Completion checklist is mandatory.** The scaffold is not \"done\" until every box is `[x]`.\n- **Sub-skill contract.** When invoked as a `type: ci-cd` stage by `sell-slice`, this skill is the entire stage. After completion, mark the stage `Completed` in `docs\u002Fplans\u002F00_master_checklist.md`.\n- **shadscan is never a gate.** Never wire `--fail-under` into `.husky\u002Fpre-push` or any CI workflow, never run `shadscan setup` (it writes pre-commit hooks), and never add a shadscan step to `ci.yml`, `design-system-compliance.yml`, or the branch-protection required checks. The score is heavily penalized by deliberate architecture choices and by false positives; gating on it would block correct work.\n- **Never run shadscan `--apply`.** It launches a coding agent against unfiltered findings, which at this false-positive rate would produce wrong changes.\n- **Subagent prompts live in `.\u002Fagents\u002F*.md`.** This SKILL.md is workflow only; never inline subagent prompts here.\n- **No platform-specific rule references.** Do not write \"cursor rules\" or \"claude rules\"; use \"rules file (cursor or claude)\" if the distinction matters, or simply \"project rules file\".\n\n## Triggers\n\nFollow this skill whenever the user:\n\n- runs `\u002Ffinal-quality-check` (escape hatch)\n- says \"scaffold ci\u002Fcd\", \"set up CI\", \"bootstrap quality gates\", \"set up Playwright + GitHub Actions\"\n- has `sell-slice` reach a `type: ci-cd` stage in the master checklist (auto-dispatch)\n\nIf the repo already has the baseline, stop and recommend `\u002Fbytheslice:sell-slice` instead.\n\n---\n\n## Completion Checklist\n\nRun this checklist at the end of every run. Do **not** consider the scaffold \"done\" until every box is `[x]`.\n\nSections 1 to 6 below describe the **standard tier** with the default PR delivery. Under the **lean tier**, walk \"Lean tier rows\" in place of sections 1 to 3; under **ship-once**, walk \"Ship-once rows\" in place of sections 4 to 6. Section 3.5 applies to every combination. An artifact or prompt skipped under `run.unattended: true` counts as checked once its line is in the order ticket's \"Decisions made without you\" section.\n\n### Lean tier rows\n\n- [ ] Resolved tier logged (and recorded in the order ticket when one exists).\n- [ ] `.husky\u002Fpre-push` exists, is executable, and runs the lean set from the lean template (lint, typecheck, test, build, `test:e2e:smoke`, DB tests only when the schema or migrations change).\n- [ ] `.github\u002Fpull_request_template.md` exists with the lean checklist.\n- [ ] `.github\u002Fworkflows\u002Fci.yml` exists from the lean template (lint, typecheck, unit-tests, build, e2e-smoke).\n- [ ] `.github\u002Fworkflows\u002Fdesign-system-compliance.yml`, `.eslintrc.json` tailwindcss additions and `.stylelintrc.json` exist IF a design system exists, and are absent otherwise.\n- [ ] No `e2e.yml`, `e2e-coverage.yml`, `db-schema-drift.yml`, `@regression-core` spec, `@visual` spec or `tests\u002Fvisual\u002Fbaselines\u002F` was written.\n- [ ] `package.json` has `test:e2e` and `test:e2e:smoke` (plus `check:design-system` when a design system exists).\n- [ ] Exactly one `@smoke` spec exists and walks the app's main flow (skip when `framework-detector` returned skip-E2E, and say so).\n- [ ] `scripts\u002Fsetup-branch-protection.sh` exists, is executable, and lists the lean required checks.\n- [ ] `.gitignore` excludes `playwright-report\u002F`, `test-results\u002F`, `.playwright\u002F`.\n- [ ] The rules-file \"CI\u002FCD Operational Rules\" section and the no-shadscan-gate grep are done as in section 1.\n- [ ] Local lean set green: lint, typecheck, `check:design-system` (if present), test, build, `test:e2e:smoke`.\n\n### Ship-once rows\n\n- [ ] All work happened on the current non-`main` branch (or a local `chore\u002Ffinal-quality-check` created because HEAD was on `main`).\n- [ ] The scaffold is one local commit on that branch; nothing was pushed, no PR was opened, nothing was merged.\n- [ ] The local gates ran every command the generated `ci.yml` and (standard tier) `e2e.yml` run, not a subset, and all passed.\n- [ ] The branch-protection reminder is in the order ticket (or the chat when there is no ticket), for after the app's final PR merges.\n- [ ] If invoked as a `type: ci-cd` stage, the master-checklist row is flipped to `Completed`.\n\n### 1. Scaffold Artifacts Present\n\n- [ ] `.husky\u002Fpre-push` exists, is executable, and runs the slice tier (lint, typecheck, test, build, DB tests only when the schema or migrations change), not the full CI chain. `check:design-system` and the e2e suites run in CI (tier 4).\n- [ ] `.github\u002Fpull_request_template.md` exists with E2E attestation, design-system-compliance, and visual-diff checklist items.\n- [ ] `.github\u002Fworkflows\u002Fci.yml` exists (full job order: typecheck → lint → design-system-compliance → unit tests → integration tests → @feature → @regression-core → @visual → db-schema-drift if applicable → build).\n- [ ] `.github\u002Fworkflows\u002Fdesign-system-compliance.yml` exists (regex sweep → eslint-plugin-tailwindcss → stylelint).\n- [ ] `.github\u002Fworkflows\u002Fe2e.yml` exists (`@feature` + `@regression-core` + `@visual` jobs with artifact upload on failure).\n- [ ] `.github\u002Fworkflows\u002Fe2e-coverage.yml` exists (path-diff job named `E2E \u002F coverage-check`; blocks on unreviewed visual diffs).\n- [ ] `.github\u002Fworkflows\u002Fdb-schema-drift.yml` exists IF project has DB, is absent if no DB detected.\n- [ ] `scripts\u002Fsetup-branch-protection.sh` exists and is executable (includes all new required checks).\n- [ ] `.eslintrc.json` (or equivalent) has `eslint-plugin-tailwindcss` config additions.\n- [ ] `.stylelintrc.json` exists with CSS-file token checks.\n- [ ] `.gitignore` excludes `playwright-report\u002F`, `test-results\u002F`, `.playwright\u002F`, and Vizzly diff artifacts.\n- [ ] Project rules file (`CLAUDE.md` or `AGENTS.md`) has a \"CI\u002FCD Operational Rules\" section populated verbatim from `references\u002Fprd-ci-cd-checklist.md`, delimited by the `\u003C!-- bytheslice: ci-cd-operational-rules-{start,end} -->` markers, so every later stage skill picks up the runtime guardrails automatically.\n- [ ] That same section carries the shadscan triage rules (score is never a gate, every finding is a lead, the three false-positive classes, discard library-showcase paths).\n- [ ] No `--fail-under`, no `shadscan` step, and no `shadscan setup` hook appears anywhere in `.husky\u002Fpre-push`, `.github\u002Fworkflows\u002F*`, or `scripts\u002Fsetup-branch-protection.sh`. Grep to confirm.\n\n### 2. Test Suites and Scripts Present\n\n- [ ] `package.json` (root) has scripts: `test:e2e`, `test:e2e:feature`, `test:e2e:regression`, `test:e2e:visual`, `check:design-system`.\n- [ ] At least one `@feature`-tagged smoke spec exists.\n- [ ] At least one `@regression-core`-tagged sentinel spec exists.\n- [ ] Canary `@visual` tests exist, one per viewport (375 \u002F 768 \u002F 1280 \u002F 1920).\n- [ ] `tests\u002Fvisual\u002Fbaselines\u002F` directory is committed (may be empty on first scaffold; Vizzly populates on first run).\n- [ ] Playwright (or detected E2E framework) is installed and lockfile updated.\n- [ ] If a monorepo task runner exists (`turbo.json` \u002F `nx.json`), the new E2E tasks are wired into it.\n\n### 3. Local Gates Green\n\n- [ ] `pnpm lint` (or detected equivalent) passes.\n- [ ] `pnpm typecheck` passes.\n- [ ] `pnpm check:design-system` passes.\n- [ ] `pnpm test` (unit\u002Fintegration) passes.\n- [ ] `pnpm test:e2e:feature` passes locally.\n- [ ] `pnpm test:e2e:regression` passes locally.\n- [ ] `pnpm test:e2e:visual` passes locally (baselines generated or confirmed up-to-date).\n- [ ] Husky `pre-push` hook fires on push (verify with a dry-run or trial push).\n\n### 3.5 Accessibility Discovery Pass (non-blocking)\n\nEvery box here is about the pass having *run and been reported honestly*. None of them is about the pass having *passed*, because there is nothing to pass.\n\n- [ ] `a11y-discovery-runner` was dispatched after sub-block E, or its `skipped` status and reason are recorded.\n- [ ] Exactly two scoped commands were run: `--category accessibility` and `--category foundation`. No unscoped run, no `states` \u002F `interaction` \u002F `forms`.\n- [ ] `--apply` was never run. `--fail-under` was never run. `shadscan setup` was never run.\n- [ ] Findings whose path contains the library showcase route were discarded, and the discarded count is stated in the report.\n- [ ] The stage report has an \"Accessibility discovery pass (shadscan): UNVERIFIED LEADS\" section, with each lead carrying shadscan's own evidence text and a `known_fp_class` tag.\n- [ ] The reported score appears only as informational context, never compared against a threshold.\n- [ ] No shadscan finding was auto-fixed, and no shadscan finding blocked the run.\n\n### 4. PR Created and Submitted\n\n- [ ] All work happened on branch `chore\u002Ffinal-quality-check`, never on `main`.\n- [ ] PR opened via `git-commit-push-pr` \u002F `new-branch-and-pr` skill or `gh pr create`.\n- [ ] PR description lists every artifact created.\n- [ ] PR is targeted at `main` and is **not** draft.\n\n### 5. CI\u002FCD Passing on the PR\n\n- [ ] All required GitHub Actions checks have completed (no `pending` \u002F `queued`).\n- [ ] Every required check is green. No skipped checks counted as passing.\n- [ ] If any check failed: read failing job logs, patch on `chore\u002Ffinal-quality-check`, push, repeat until all checks pass.\n- [ ] Final CI run reflects the latest commit on the PR head, not a stale SHA.\n\n### 6. Branch Cleanup and Return to Main\n\nOnly after CI is fully green and the PR is merged.\n\n- [ ] PR merged into `main`.\n- [ ] Local `main` updated: `git checkout main && git pull --ff-only origin main`.\n- [ ] Confirm scaffold commits are present on `main` (`git log --oneline | head`).\n- [ ] Local `chore\u002Ffinal-quality-check` branch deleted: `git branch -d chore\u002Ffinal-quality-check`.\n- [ ] Remote `chore\u002Ffinal-quality-check` deleted: `git push origin --delete chore\u002Ffinal-quality-check` (skip if auto-deleted).\n- [ ] If a worktree was used: `git worktree remove \u003Cpath>` and `git worktree prune`.\n- [ ] Final `git status` shows clean tree on `main`.\n- [ ] User reminded once to run `scripts\u002Fsetup-branch-protection.sh`.\n- [ ] If invoked as a `type: ci-cd` stage by `sell-slice`, `docs\u002Fplans\u002F00_master_checklist.md` row flipped to `Completed`.\n\n### Done Criteria\n\nThe scaffold is delivered **only** when (under ship-once, items 2 to 4 read: committed on the current branch with the local gates green):\n\n1. Every section that applies to the resolved tier and delivery mode is fully checked.\n2. The orchestrator is back on `main` with a clean working tree.\n3. All scaffold artifacts are present and committed on `main`.\n4. CI passed on the merged PR head SHA.\n",{"name":5,"triggers":45,"description":7,"user-invocable":56},[46,47,48,49,50,51,52,53,54,55],"\u002Fbytheslice:final-quality-check","\u002Ffinal-quality-check","install the quality line","wire the inspection station","\u002Fbytheslice:scaffold-ci-cd","\u002Fscaffold-ci-cd","scaffold ci\u002Fcd","set up ci","bootstrap quality gates","ci-cd stage",true,"main","fed8bedadf83cf55669447e6c532d4e20a9aaf65","skills\u002Ffinal-quality-check",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":65,"prompt":75,"zipAvailable":56},[66,69,72],{"tool":67,"command":68},"npx","npx skills add steve-piece\u002Fbytheslice --skill final-quality-check",{"tool":70,"command":71},"bunx","bunx skills add steve-piece\u002Fbytheslice --skill final-quality-check",{"tool":73,"command":74},"pnpm","pnpm dlx skills add steve-piece\u002Fbytheslice --skill final-quality-check","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Ffinal-quality-check\u002FSKILL.md",[77,83,87,91,95,99,103,107,111,115,119],{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"agents\u002Fa11y-discovery-runner.md","REFERENCE","参考文档",8412,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Ffinal-quality-check\u002Fagents\u002Fa11y-discovery-runner.md",{"path":84,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":85,"sourceHtmlUrl":86},"agents\u002Fbranch-protection-writer.md",2683,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Ffinal-quality-check\u002Fagents\u002Fbranch-protection-writer.md",{"path":88,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":89,"sourceHtmlUrl":90},"agents\u002Fe2e-installer.md",4963,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Ffinal-quality-check\u002Fagents\u002Fe2e-installer.md",{"path":92,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":93,"sourceHtmlUrl":94},"agents\u002Fframework-detector.md",3011,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Ffinal-quality-check\u002Fagents\u002Fframework-detector.md",{"path":96,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":97,"sourceHtmlUrl":98},"agents\u002Fhusky-installer.md",5000,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Ffinal-quality-check\u002Fagents\u002Fhusky-installer.md",{"path":100,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":101,"sourceHtmlUrl":102},"agents\u002Flint-config-writer.md",3501,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Ffinal-quality-check\u002Fagents\u002Flint-config-writer.md",{"path":104,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":105,"sourceHtmlUrl":106},"agents\u002Flocal-gates-runner.md",3693,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Ffinal-quality-check\u002Fagents\u002Flocal-gates-runner.md",{"path":108,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":109,"sourceHtmlUrl":110},"agents\u002Fscaffold-discovery.md",4138,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Ffinal-quality-check\u002Fagents\u002Fscaffold-discovery.md",{"path":112,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":113,"sourceHtmlUrl":114},"agents\u002Fworkflow-writer.md",4478,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Ffinal-quality-check\u002Fagents\u002Fworkflow-writer.md",{"path":116,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":117,"sourceHtmlUrl":118},"references\u002Fprd-ci-cd-checklist.md",4256,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Ffinal-quality-check\u002Freferences\u002Fprd-ci-cd-checklist.md",{"path":120,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":121,"sourceHtmlUrl":122},"references\u002Fscaffold-artifact-templates.md",30942,"https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Ffinal-quality-check\u002Freferences\u002Fscaffold-artifact-templates.md",[124,132,162,182,199,223],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":131},"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":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"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",[],[139,140,30,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161],"special order","app","auto","bolt","customer","features","master","add","opus","feature","custom","true","Existing","type","with","high","spot","specifications","about","new","request","extend","slice",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":40},"01M6JK6K6SH4N8Q597D3ABRRMR","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.","https:\u002F\u002Fgithub.com\u002Fsteve-piece\u002Fbytheslice\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-shop\u002FSKILL.md",[],[169,170,171,36,140,172,30,173,31,174,175,176,177,33,178,147,179,180,181,150,158],"shop","setup shop","setup","monorepo","time","open","configure","create","config","start","new project","for","system",{"skillNo":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"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",[],[36,25,189,190,26,30,191,31,192,39,193,194,195,38,177,33,196,23,197,198],"case","set display case","Tailwind","init","only","preview","route","operator","library","design system",{"skillNo":200,"name":201,"nameZh":6,"description":202,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":203,"categories":204,"keywords":205,"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",[],[206,207,161,208,209,210,211,212,38,145,197,213,214,180,215,216,217,218,154,219,220,221,222],"sell slice","sell","branch","loop","fresh","plan","spine","ship","as","touch","use","interactive","chat","build","checklist","deliver","baking",{"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},"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",[],[230,207,36,231,140,232,208,233,234,235,31,236,37,237,193,238,209,239,240,241,221,38,242,243,213,244,245,246],"sell pie","categories","ready","green","mode","end","fix","local","autonomous","workflow","you","review","at","coherent","context","prompting","commits"]