一键导入
complete-slice
Implement a vertical slice from SLICES.md end-to-end using TDD. Use when user wants to code a slice of a project or mentions "complete slice"
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Implement a vertical slice from SLICES.md end-to-end using TDD. Use when user wants to code a slice of a project or mentions "complete slice"
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Install root role on a session. The user's base session
Install build role on a session. Takes one unit of work from directive to a verified, well-architected change.
Install verify role on a session. The fast independent check that a claimed artifact is actually done — spawned proactively before any parent reports done, opens a PR, deploys, or publishes.
Install build role on a session. Takes one unit of work from directive to a verified, well-architected change.
Install root role on a session. The user's base session
Install verify role on a session. The fast independent check that a claimed artifact is actually done — spawned proactively before any parent reports done, opens a PR, deploys, or publishes.
| name | complete-slice |
| description | Implement a vertical slice from SLICES.md end-to-end using TDD. Use when user wants to code a slice of a project or mentions "complete slice" |
Take one slice from SLICES.md and ship it. Often for dev work, but might be a different task that you should still complete to the standards of the company
Read the slice and the brief. Find the target slice. Internalize what it delivers. Read PROJECT_BRIEF.md for architectural context
Orient in the codebase. Module boundaries, test patterns, naming, DI style, config approach, what prior slices built. Your code should feel native — same seams, same style. Greenfield: scaffolding + test runner + lint + CI belong inside slice 1, not as separate phases
Plan the TDD sequence. Map acceptance criteria to red-green-refactor cycles. Start with the criterion that proves the core approach. Decide what's a real collaborator and what's a system boundary to mock. Keep the plan light. Use judgement for when to use TDD or take a different approach
Build one test at a time. Red → green → refactor. One failing test, minimum code to pass, clean up while green, next. Public interfaces only; mock system boundaries only; tests survive internal refactors. Writing all tests first produces tests that describe imagined behavior, not actual. See tdd-reference.md for the full methodology
Bake SRE in as you go. Structured logs at decision points and error paths; metrics on the behaviors this slice introduces; health checks on new endpoints; errors that fail explicitly at boundaries with context; config externalized. Operational readiness isn't a final step — if it's not present when tests go green, it won't be added
Verify. All acceptance criteria met and covered by passing tests. Observable outcomes demonstrably work — run it, hit the endpoint, read the logs. Full suite green, not just new tests. No unrelated changes mixed in
Consider future agents by running updating-ai-knowledge, often for AGENTS.md
Close the slice. Check the boxes in SLICES.md. Follow-up work, discovered edge cases, or risks land in the relevant future slice, or in a ## Notes section at the bottom of SLICES.md
Report what you shipped and verified back to whoever ran you
Feature work, infrastructure-as-code, migrations, instrumentation, perf, bug fixes, deploy automation. Language, framework, and cloud agnostic
Not for: research spikes with no code deliverable, pure documentation, project planning (use plan-to-slices)
Skills you lean on: the verify subagent before declaring done, and a subagent for a second opinion or implementation partner