Communitygithub.com

project-studio

Question-first studio that brings product, UX, design and documentation practice to a project at any stage. Inspects the repo, proposes a mode, and asks before writing. Start: `new-project` drafts the PRD, user journey and ADRs, then scaffolds CLAUDE.md, ICM memory and graph tooling. Plan: `ux-flow` maps roles to menus, screens, containers, transitions and wireframes with five states. Build: `baseline-ui` builds the first UI and design system from the docs; `backend` builds or untangles a backend into ports and adapters. Rework: `redesign` gives screens a new look or structure; `refine` polishes without layout changes. Review: `audit` reports findings on structure, flows, UI, accessibility and docs, changing nothing. Document: `docs` writes a README, user guides, SOPs or a manual, verified against the code. Use to start or scaffold a project, plan navigation or wireframes, build, redesign or polish a UI, untangle a backend, audit an app, or document it.

project-studio란 무엇인가요?

project-studio is a Claude Code agent skill that question-first studio that brings product, UX, design and documentation practice to a project at any stage. Inspects the repo, proposes a mode, and asks before writing. Start: `new-project` drafts the PRD, user journey and ADRs, then scaffolds CLAUDE.md, ICM memory and graph tooling. Plan: `ux-flow` maps roles to menus, screens, containers, transitions and wireframes with five states. Build: `baseline-ui` builds the first UI and design system from the docs; `backend` builds or untangles a backend into ports and adapters. Rework: `redesign` gives screens a new look or structure; `refine` polishes without layout changes. Review: `audit` reports findings on structure, flows, UI, accessibility and docs, changing nothing. Document: `docs` writes a README, user guides, SOPs or a manual, verified against the code. Use to start or scaffold a project, plan navigation or wireframes, build, redesign or polish a UI, untangle a backend, audit an app, or document it.

지원 대상✓Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/bhurn02/project-studio/tree/HEAD

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서


name: project-studio description: Question-first studio that brings product, UX, design and documentation practice to a project at any stage. Inspects the repo, proposes a mode, and asks before writing. Start: new-project drafts the PRD, user journey and ADRs, then scaffolds CLAUDE.md, ICM memory and graph tooling. Plan: ux-flow maps roles to menus, screens, containers, transitions and wireframes with five states. Build: baseline-ui builds the first UI and design system from the docs; backend builds or untangles a backend into ports and adapters. Rework: redesign gives screens a new look or structure; refine polishes without layout changes. Review: audit reports findings on structure, flows, UI, accessibility and docs, changing nothing. Document: docs writes a README, user guides, SOPs or a manual, verified against the code. Use to start or scaffold a project, plan navigation or wireframes, build, redesign or polish a UI, untangle a backend, audit an app, or document it.

project-studio은(는) 무엇을 하나요?

Start a project with a documented, memory-driven setup (PRD, user journey, ADRs, ICM memory files, graph tooling), build or rework its UI with stacked skill chains, design or untangle its backend around ports and adapters, review it without changing it, and document it from what the code proves. The workflow is an Intake gate (inspect, detect the mode, ask) followed by one mode, run in batches with checkpoints between them. Do not skip the intake, reorder batches, or write a file before the intake answers come back.

Modes by lifecycle stage: Start new-project · Plan ux-flow · Build baseline-ui, backend · Rework redesign, refine · Review audit · Document docs.

Scope

In scope: new projects (PRD, user journey, ADRs, ICM scaffolding, graph tooling), user journeys and low-fidelity wireframes for new or existing apps, a first UI and design system built from existing docs, a backend built or untangled into ports and adapters (domain model, use-case contracts, principles record, layer rules), redesigns of existing screens, refinement passes, findings-only audits of an existing app, and README, user guide, SOP and manual writing verified against the code.

Each mode reads what earlier modes wrote when it exists: the PRD, 03-user-journey.md, 04-domain-model.md, 05-api-contracts.md, DESIGN.md, docs/memory/02-decisions.md and the latest audit report. Treat those as inputs, never as something to regenerate.

ui-ux-pro-max is deliberately excluded from every chain in this skill. It pulls designs toward its catalog of preset styles and palettes. frontend-design sets the visual direction here so each project gets its own look. Do not add it back to a chain, and do not load it as a fallback.

Bundled files (read when a step names them)

  • references/intake.md: repo inspection checklist, mode evidence table, question scripts, ledger format.
  • references/new-project.md: Mode 1 batches, document layout, stack scaffolding, tooling commands.
  • references/ux-flow.md: Mode 5 UX laws, menu, shell, container, density and transition rules, the five states, U1 and U2 steps, 03-user-journey.md template, handoff table.
  • references/scaffold-templates.md: CLAUDE.md, Cursor rule, docs/memory/ files, .gitignore, .graphifyignore, .code-review-graphignore.
  • references/ui-chains.md: Modes 2 to 4 batch tables, impeccable init check, smoke check.
  • references/audit.md: Mode 6 audit areas, finding format and severity, report template, write boundary.
  • references/docs.md: Mode 7 README vibes, Diataxis topic map, SOP layout, visual capture, fact-check checklist, packaging.
  • references/backend.md: Mode 8 tracks, principles record, depth, shape by stack, S0 assessment, slice loop, contract suites, gate.
  • references/gate-and-wrap-up.md: rules scan, checkpoint and resume, final gate, wrap-up.
  • scripts/viewport_audit.py: 3-viewport Playwright audit (header overlap, collisions, clipping, horizontal scroll, dashes, cool-hue gradients, CDN requests, page errors).
  • scripts/layer_check.py: backend gate; fails when business rules import the UI, framework or a database client, or UI code reaches the database, per the project's .layers.json (--init nextjs|laravel|dotnet writes a starter).
  • scripts/rules_scan.py: cross-platform rules scan (em and en dashes, CDN links, cool-hue gradients, leftover placeholders) on changed or named files; --self checks this skill's own package.

Python on Linux and macOS: where a command says python, use python3 if python is not on PATH.

Context-budget rule (Claude Pro)

Run one batch at a time. At the start of a batch, load only the companion skills and the references/*.md file that batch names. Do not read every companion skill or reference upfront. Read source in targeted slices (the routes and components in scope), not whole directories. The running ledger is the project's own docs/memory/04-current-sprint.md (one ## project-studio section): record the mode, track, answers, batch status, and open items there so a later batch, or a fresh session after /clear, reads the ledger instead of re-deriving it.

Non-negotiable rules (apply to every file this skill writes or edits)

  1. Offline Tailwind CSS. Tailwind comes from the npm package (tailwindcss + @tailwindcss/postcss) or, on non-Node stacks, the Tailwind standalone CLI that compiles to a local CSS file. Zero external CDN links: no cdn.tailwindcss.com, no fonts.googleapis.com or fonts.gstatic.com, no unpkg, jsdelivr or cdnjs <script> or <link> tags. Self-host fonts with @fontsource/* packages or next/font/local files committed to the repo.
  2. No em dashes (U+2014) or en dashes (U+2013) in prose, copy, alt text, metadata, code comments, or generated docs. Use a colon, comma, period, parentheses, a middle dot ·, or the word "to" for ranges.
  3. No purple, violet, indigo or blue AI gradients. No generic gradient heroes, glows, or gradient text. Color comes from the direction frontend-design sets for this project.
  4. Timestamps are YYYY-MM-DD HH:mm:ss (local time, 24-hour) in memory files, ADRs, sprint logs, and template headers. Get the real time from the shell, never invent it.
  5. Never overwrite silently. If a scaffold target exists, show what differs and ask before merging. Additive merges into existing .gitignore files go in a marked block.
  6. Guardrails beat later skills. When a companion skill suggests something that breaks a rule above or a rule in the project's docs/memory/03-rules.md, keep the rule, and log the rejection in the ledger.

<project-studio-dir> in the references means the directory that contains this SKILL.md; the bundled scripts/viewport_audit.py lives there.

Before claiming any batch is done, scan every file you changed for U+2014, U+2013, CDN hosts, and gradient classes or values in the banned hues with python <project-studio-dir>/scripts/rules_scan.py --changed (details in references/gate-and-wrap-up.md).

Intake & Mode Detection (stop and ask first)

Load: references/intake.md.

  1. Inspect the repo, read only. Check: whether it is a git repo and its branch; CLAUDE.md, .cursor/rules/, docs/ (PRD, specs, docs/memory/); PRODUCT.md (impeccable init marker) and DESIGN.md; the stack (package.json, composer.json, *.csproj, framework configs); UI routes (src/app/**/page.tsx, app/, pages/, PHP views, Razor views); the ignore files; graphify-out/ and .code-review-graph/. Use the inspection checklist in intake.md.
  2. Propose a mode from what you found, with the evidence in one line each:
    • No docs and no UI: new-project (runs ux-flow inside it, after the PRD).
    • Product docs exist, no real UI yet (or only a scaffold page): baseline-ui. If there is no docs/<slug>/03-user-journey.md and the track is App / Admin, recommend ux-flow first.
    • UI exists and the user wants to fix navigation, menus, flows, information architecture, or too many clicks, or wants wireframes before restyling: ux-flow.
    • UI exists and the user wants a new look or structure: redesign.
    • UI exists and the user wants polish without layout changes: refine.
    • The user wants to know what is wrong, or wants a review before choosing what to change: audit.
    • The user wants a README, user guide, SOPs, help docs or a manual: docs.
    • The user wants domain, API or database work, a backend that survives a UI or database change, or the inspection finds SQL or database clients in controllers, views or components: backend (New when there is no backend yet, Untangle when there is).
  3. Ask the mode's intake questions from intake.md (at most four per round, with a recommended option first), and wait. Use the AskUserQuestion tool when available. Never ask what the repo already answers; state the inference and ask the user to confirm it.
  4. Discover companion skills, existence only, in this order (first match wins): .claude/skills/<name>/, .cursor/skills/<name>/, ~/.claude/skills/<name>/, ~/.cursor/skills/<name>/, ~/.agents/skills/<name>/. Accept a plugin skill with the same base name (for example frontend-design:frontend-design). Tell the user in one line which were found and which batches will use the inline fallbacks in "Missing companion skills" below.
  5. Write the ledger section to docs/memory/04-current-sprint.md (in new-project, after the scaffold batch creates it; until then hold the answers in the conversation). Other modes in a project without that file: ask before creating it with only the ledger section (intake.md, "No ledger file yet"). When the section already holds an unfinished run of another mode, ask to finish or park it first (intake.md, "Ledger already has a run").

Companions: brainstorming, writing-plans, using-git-worktrees, graphify, frontend-design, baseline-ui, copywriting, copy-editing, cro, impeccable, fixing-accessibility, fixing-motion-performance, fixing-metadata, web-design-guidelines, webapp-testing, systematic-debugging, verification-before-completion, product-marketing, dx-fact-check, stop-slop, docx, pdf, the backend chain (hexagonal-architecture, clean-architecture, domain-driven-design, api-and-interface-design, working-with-legacy-code, tdd, laravel-patterns, dotnet-backend-patterns, database-schema-designer, db-normalization, supabase, supabase-postgres-best-practices, explore-codebase, refactor-safely, review-changes), and the built-in code-review and security-review.

Missing companion skills (fallback rule)

Every companion is optional. When a batch reaches a companion that step 4 did not find, do not stop, install it, or ask mid-batch: apply the inline fallback below, record fallback: <skill> in the ledger row, and list it in the Finish report. The guardrails and approval gates still apply.

MissingInline fallback
brainstormingAsk the open discovery questions one at a time, then write the PRD outline in new-project.md directly.
writing-plansWrite the phased plan yourself: phases that each ship testable software, tasks with target files and a check per task.
using-git-worktreesgit worktree add .worktrees/<branch> -b <branch>, after git check-ignore -q .worktrees.
graphify, code-review-graph (CLIs)Skip the install and graph steps, say so once, and drop the graph search protocol lines from the scaffolded CLAUDE.md and Cursor rule.
frontend-designWrite the direction yourself before coding: a name, self-hosted type pairing, palette (no banned gradients), spacing scale, surface treatment, one signature detail.
baseline-uiCheck spacing against the scale, one H1 per page, clear hierarchy, 44 px minimum targets.
copywriting, copy-editing, croApply "Truth in claims" and plain labels from ui-chains.md; for marketing, one primary CTA per section. Skip cro otherwise.
impeccableSkip init. For document, write a short DESIGN.md (tokens, type, components). For clarify, critique and polish, review hierarchy, spacing rhythm, contrast and the five states against the screenshots and fix what fails.
fixing-accessibilityWCAG 2.2 AA: labels on every control, visible focus, keyboard reachability, contrast, no dialog focus traps.
fixing-motion-performanceAnimate transform and opacity only, add a prefers-reduced-motion path, remove scroll-linked layout work.
fixing-metadataTitle, meta description, canonical URL, Open Graph tags and image, per public route.
web-design-guidelinesSkip; the two rows above cover its checks.
webapp-testingStart the dev server yourself in the background, then run scripts/viewport_audit.py against it.
systematic-debuggingReproduce, find the root cause, fix it, re-run the failing check. No masking fixes.
verification-before-completionShow the command output for every claim of done.
product-marketingBuild the positioning notes from the repo's own docs as docs.md D1 describes; ask only about gaps.
dx-fact-checkRun the fact-check checklist in docs.md by hand; delete any claim the files do not prove.
stop-slopApply the polish rules in docs.md D4.
hexagonal-architectureSection 5 of backend.md: ports owned by the core, adapters at the edge, one composition root, a contract suite per port.
clean-architectureApply the dependency rule and rate slices with the S0 rubric in backend.md.
domain-driven-designGlossary in the users' words, entities vs value objects, one aggregate per consistency boundary.
api-and-interface-designThe contract template in backend.md: one error shape, validation at the boundary, add rather than change.
working-with-legacy-code, tddCharacterization test first, find the seam, break one dependency at a time; then red, green, refactor per use case.
laravel-patterns, dotnet-backend-patternsThe stack sections in backend.md, within the project's language version.
database-schema-designer, db-normalizationNormalize to 3NF unless an ADR says why not; index foreign keys and filter columns.
supabase, supabase-postgres-best-practicesRLS on every table, no service-role key in client code, typed rows mapped to core types in the adapter.
explore-codebase, refactor-safely, review-changesgraphify query and targeted reads; callers from a text search.
docx, pdfKeep manual.md as the deliverable and give one conversion command for a converter that is installed here (check first), or say none is.

Mode 1: new-project

Load: references/new-project.md, then references/ux-flow.md at U1, then references/scaffold-templates.md at Batch N3.

Batches run in table order. U1 and U2 sit between N1 and N2 so the delivery plan is built from a confirmed screen inventory; N1 to N5 keep their original IDs so older ledgers still resume.

BatchGoalSkills
N1Discovery and PRD, then PRD lockbrainstorming
U1UX blueprint from the locked PRD, 2 to 3 override questions(rules in ux-flow.md)
U2Write docs/<slug>/03-user-journey.md(template in ux-flow.md)
N2Delivery plan (Phase 1 from the journey) and ADRswriting-plans
N3ICM scaffold(templates only)
N4Tooling: git, graphify, code-review-graph, worktreesgraphify, using-git-worktrees
N5Handoff to baseline-uinone
  1. N1. Run brainstorming with the intake answers. Override its output path: the approved design becomes the PRD at docs/<project-slug>/01-prd.md, with one file per deliverable in docs/<project-slug>/specs/ when a deliverable needs its own spec. Collect ADR candidates as you go. End with the PRD lock: the user approves the PRD before U1.
  2. U1, U2. Run ux-flow on the locked PRD: silent extraction, blueprint with law-cited rationale, 2 to 3 override questions, then docs/<project-slug>/03-user-journey.md. Its shell and navigation choices join the ADR candidates.
  3. N2. Run writing-plans against the PRD and the user journey. Override its output path: the plan goes to docs/<project-slug>/02-delivery-plan.md, with Phase 1 built from the journey's screen inventory. ADRs go in docs/memory/02-decisions.md (written in N3), not as separate files. Approval gate: the user approves the plan and the ADR list before N3 starts.
  4. N3. Scaffold from scaffold-templates.md: CLAUDE.md, .cursor/rules/icm-memory.mdc, docs/memory/01-architecture.md to 05-backlog.md, .gitignore, .graphifyignore, .code-review-graphignore. Fill every placeholder from the PRD and intake; leave no <placeholder> text behind. The stack defaults to Next.js + Supabase + offline Tailwind CSS unless the intake confirmed an override (PHP + MSSQL, .NET, other), in which case use that stack's blocks.
  5. N4. Set up tooling per new-project.md: git init if needed (ask first), graphify (install through the graphify skill's Step 1 if missing, then graphify update .), code-review-graph (code-review-graph install --platform claude-code --no-instructions -y, then code-review-graph build), and using-git-worktrees only if the user wants parallel branches. Then commit the scaffold (ask before pushing).
  6. N5. Report what was created and offer to continue straight into baseline-ui. The handoff happens only after the user has approved the docs.

Mode 2: baseline-ui (existing docs)

Load: references/ui-chains.md (section "Mode 2").

Read the PRD, specs, docs/<slug>/03-user-journey.md (when present, it fixes the routes, shells, containers and states), docs/memory/, PRODUCT.md and DESIGN.md in targeted slices first. The intake fixes the track:

  • Public / Marketing (Persuade mode): landing, pricing, features, about.
  • App / Admin (Operate mode): dashboards, portals, admin consoles, settings.
BatchSkills
B0 (App/Admin only)Functional baseline with no design skills: routes, shells, guards, real data or labeled sample data
B1 Design and buildfrontend-design, baseline-ui, webapp-testing smoke check
B2 Copy and craftcopywriting, copy-editing + cro (marketing), impeccable init (if not initialized), impeccable document (writes DESIGN.md from the B1 build), impeccable clarify, impeccable critique, impeccable polish, fixing-accessibility, fixing-motion-performance, fixing-metadata (marketing), web-design-guidelines
B3 Audit and gatewebapp-testing (3 viewports), systematic-debugging, verification-before-completion

Mode 3: redesign

Load: references/ui-chains.md (section "Mode 3").

Inspect the target screens (screenshots plus code), then confirm the overhaul scope: which routes, what stays (product truth, content, functions, routes, data contracts), and what goes (the old look). The old look is evidence and anti-reference, not something to polish. When a confirmed 03-user-journey.md exists, its target menu trees, shell, containers and redirects are in scope and replace the "IA and routes survive" default.

Two variants, fixed at intake and recorded in the ledger: new world (the tables below) and structure only (requires a confirmed 03-user-journey.md; keeps the current look, skips frontend-design and impeccable document, and rebuilds navigation, containers, transitions and the five states from the journey). Structure only is the recommended follow-up to ux-flow for cluttered menus and broken flows. Details in ui-chains.md, "Structure-only variant". cro and fixing-metadata run only when the redesign target is a public or marketing page; omit them for internal app or admin screens.

BatchSkills
R1 Direction and buildfrontend-design (new visual world), baseline-ui, webapp-testing smoke check
R2 Copy and craftcopywriting, copy-editing, cro (marketing targets only), impeccable init (if not initialized), impeccable document (replaces DESIGN.md with the new world), impeccable critique, impeccable polish, fixing-accessibility, fixing-motion-performance, fixing-metadata (marketing targets only), web-design-guidelines
R3 Audit and gatewebapp-testing (before/after at 3 viewports), systematic-debugging, verification-before-completion

Mode 4: refine

Load: references/ui-chains.md (section "Mode 4").

Inspect the target routes and components and capture "before" screenshots. Refinement preserves layout, structure, identity, behavior, and copy meaning. Any change to grid, section order, navigation, or component structure is out of scope: stop and offer redesign instead. Missing states that a confirmed 03-user-journey.md defines (Loading, Empty, Inline Error, Permission-Restricted) are in scope.

BatchSkills
F1 Polishimpeccable init (if not initialized), impeccable (polish, plus audit, typeset, layout spacing-only as findings call for), baseline-ui, copywriting (point edits only)
F2 Fix and auditfixing-accessibility, fixing-motion-performance, web-design-guidelines, webapp-testing (before/after diff), systematic-debugging, verification-before-completion

Mode 5: ux-flow (User Journey & Low-Fidelity Wireframing)

Load: references/ux-flow.md.

Structure before styling: role-to-menu taxonomy, shell, containers, density, transitions, and the five states (Populated, Loading, Empty, Inline Error, Permission-Restricted) for every screen. It never picks fonts, colors or a visual direction. Act as an opinionated UX architect: extract silently, propose with rationale citing Miller's Law, Fitts's Law, Jakob's Law, Progressive Disclosure or Task-Based IA, then ask only what the evidence cannot settle. Source order: PRD, specs, PRODUCT.md, README, then code only. Code-only choices are tagged [inferred], and the override questions confirm the riskiest of them first. No docs and no routes: offer new-project instead. Greenfield runs it inside new-project (U1, U2); brownfield runs it standalone on existing routes and navigation.

BatchGoalSkills
U1 Extract and proposeSilent extraction (PRD or routes, layouts, nav components, role guards), audit findings (brownfield), blueprint, 2 to 3 override questions. Writes only the ledger.(rules in ux-flow.md)
U2 Write and hand offdocs/<slug>/03-user-journey.md (menu trees, Mermaid transitions and state diagrams, ASCII wireframes), checkpoint, then offer redesign (IA, shell or container changes; structure-only variant when the look stays), refine (missing states only) or baseline-ui (routes not built yet)none

Mode 6: audit (findings only)

Load: references/audit.md.

A review of an existing project that changes nothing. It reports what is wrong, with evidence and a severity, and names the mode that would fix each finding. Write boundary: the only files it writes are the report (docs/audit/<YYYY-MM-DD>-audit.md), the ledger section, and screenshots under .audit/. It never edits source, config, styles, copy or other docs, even for a one-character fix. Companion skills that normally fix things (fixing-accessibility, fixing-motion-performance, impeccable) run as checklists only: record what they would change, apply nothing. No UI and no docs: offer new-project instead.

The intake fixes the areas (structure and flows, UI and visual rules, accessibility and motion, docs and memory) and the routes in scope. When 03-user-journey.md, DESIGN.md or a PRD exists, the audit measures the app against them; otherwise it measures against the rules in ux-flow.md, ui-chains.md and this file.

BatchGoalSkills
A1 Static reviewCode, docs and rules findings, no running app. Writes only the ledger.rules_scan.py, impeccable (audit, findings only), fixing-accessibility (findings only), web-design-guidelines
A2 Runtime reviewviewport_audit.py at 3 viewports, screenshot review, five-state triggers, release-gate commands run read-onlywebapp-testing, fixing-motion-performance (findings only)
A3 Report and hand offWrite the report, checkpoint, then offer the fixing modes in the order the findings call fornone

Mode 7: docs (README, guides, SOPs, manual)

Load: references/docs.md.

Documentation that matches the shipped software: every command, route, label, field, role, setting and claim traces to the code, and every screenshot is rendered from a reproducible script. The intake fixes the deliverable, one per run:

  • README: a GitHub README in one of four vibes (Visual with diagrams and GIFs, Minimal and technical, Clean and recruiter-friendly, Design system or UI spec).
  • Guides: modular, cross-linked Markdown user guides and SOPs with an index (docs/guide/ by default).
  • Manual: one multi-role manual as manual.md, packaged as .docx and .pdf when the docx and pdf skills are present.

Earlier modes are the first source, the code is the judge: the PRD gives audience and problem, 03-user-journey.md gives roles, menu paths and the five states (which become Expected result lines and Troubleshooting rows), DESIGN.md gives tokens, 02-decisions.md gives trade-offs, and the latest audit report gives known issues. Anything they say that the code contradicts or does not show is corrected or marked UNVERIFIED, never copied.

BatchGoalSkills
D1 GroundREADME: positioning notes and a factual skeleton. Guides or manual: roles from code, surfaces per role, Diataxis topic map. Writes only the ledger and the positioning notes.product-marketing (README)
D2 DraftREADME in the chosen vibe, or pages from the topic map with visual slots and capture scriptscopywriting + cro (README), webapp-testing (capture scripts)
D3 Render and fact-checkRender captures, verify every asset, fact-check every claim against the code, resolve TODO(verify) and UNVERIFIEDdx-fact-check, webapp-testing
D4 Polish and packageProse-only polish, then packaging (README, index.md, or manual.md plus .docx and .pdf)stop-slop, copy-editing, docx, pdf

Mode 8: backend (domain, contracts, ports and adapters)

Load: references/backend.md.

A backend whose business rules survive a front-end redesign and a database change (for example Supabase to MSSQL), and a project that explains its own structure later. Rules sit in the middle and import nothing from the UI, the framework or a database client; the UI calls in through use cases; the database, auth, storage and email plug in through ports the core owns. Permissions are checked in use cases (on Supabase, RLS stays on as a second lock). The mode is opinionated about recording each structural decision: it writes a principles record into docs/memory/03-rules.md (each principle in one plain sentence, where it applies, how it is checked) and ADRs with their costs, so the choices outlive the habits of the person who made them. Inputs are the PRD, 03-user-journey.md, decisions and the latest audit report (D-014); the code settles disagreements. Depth is Light (use cases and ports) or Full (adds entities, value objects, aggregates), proposed in S1 from the evidence.

The intake fixes the track:

  • New: no backend yet, or adding an adapter to existing ports (a database or provider swap).
  • Untangle: an existing backend, changed one slice at a time. A slice moves only after characterization tests pin its current behavior; a failure reverts that slice. S0 is read-only, like audit.
BatchGoalSkills
S0 Assess (Untangle only)Map and rate each slice (Safe, Careful, Leave) with evidence, blast radius and test coverage; the user picks the slices. Writes only the report and the ledgerexplore-codebase, refactor-safely (read-only), clean-architecture, working-with-legacy-code
S1 Model and contracts04-domain-model.md, 05-api-contracts.md, the principles record and ADRs, from the earlier modes' documents. Approval gate before any codedomain-driven-design, clean-architecture, api-and-interface-design, database-schema-designer, db-normalization
S2 Build (New) or S2.n Slice (Untangle)Ports, use cases test first, a contract suite per port run against every adapter, composition root, inbound wiring, .layers.json. Untangle: one slice per batch, pinned, moved, re-runhexagonal-architecture, tdd, working-with-legacy-code, laravel-patterns or dotnet-backend-patterns or supabase + supabase-postgres-best-practices
S3 GateRelease gate, layer_check.py clean, contract suites green, /code-review and /security-review offeredreview-changes, systematic-debugging, verification-before-completion

Checkpoints, gate, and wrap-up (every mode)

Load: references/gate-and-wrap-up.md at the end of each batch.

  • End of every batch: run the rules scan, update the ledger, commit the batch, and ask before pushing. Then tell the user: "Batch is committed. Run /clear, then /project-studio resume to start Batch ." On resume, read the ledger section first and continue from the next open batch.
  • Final batch of a UI mode: the release gate (tsc --noEmit, lint, tests, build, or the stack's equivalents) must pass with real output shown. Offer the built-in /code-review on the branch diff before the final commit.
  • Final batch of backend (S3): the same release gate, plus scripts/layer_check.py clean and every port's contract suite green against every adapter.
  • audit and docs: no release gate, since neither changes the app. audit runs the gate commands as evidence and reports their results as findings. docs ends with the asset check and the fact-check summary from docs.md.
  • Wrap-up, per the project's CLAUDE.md: update 04-current-sprint.md, 02-decisions.md, 01-architecture.md, then run code-review-graph build and graphify update . once, at the very end, never during active work.

Finish

Give the user a short report:

  • Mode, track (UI modes and backend) or deliverable (docs), and stack applied
  • audit: finding counts by severity and area, the report path, and the suggested order of fixing modes
  • docs: claims corrected or removed in the fact-check, TODO(capture) slots with their render commands, acknowledged UNVERIFIED items
  • backend: track and depth, use cases and ports built, adapters and their contract-suite results, slices done, reverted or left (Untangle), the principles record and ADRs written, layer_check.py output
  • Companion skills used vs. fallbacks
  • Files created or changed, grouped by batch, with commit hashes
  • Gate results (each command and its pass/fail output), screenshot paths
  • Rejected suggestions logged against the guardrails
  • Open items: unanswered questions, placeholder content the user must supply, [inferred] user-journey decisions still unconfirmed, and the next suggested mode

관련 스킬