Implement Slice
БесплатноБез исполняемых скриптовНе проверенImplement the next smallest slice from the current plan using TDD — tests first, then code, then verification, then an atomic commit. Reads the plan from the…
от Koroqe★ 56 звёзд на GitHubОб этом скилле
Command: Implement Slice
Implement only the next smallest slice from the plan using TDD.
Arguments
$slice (also available as $ARGUMENTS) optionally names the slice to implement. When empty, take the next pending slice from .claude/scratchpad.md.
Literal-token flag rule: a documented flag is active ONLY if its literal token appears in $ARGUMENTS. In particular, the no-changelog suppression flag is in effect ONLY when the literal token no-changelog was passed. Never infer it from context, and never assume it because the documentation describes it.
Pre-flight Checks
- Confirm you are NOT on
main— must be on a feature branch (feat/*orfix/*) - Confirm
git statusis clean (or explain why not) - Parallel subagent mode: when running as a subagent within a parallel wave (wave context provided in spawn prompt), the following rules apply for the entire execution:
- Do NOT write to
.claude/scratchpad.md— the orchestrator handles scratchpad updates - Do NOT write to
.claude/instincts.md— it isPROTECTEDidentically to the scratchpad (Section 8 FR-7.2). Track deviation-rule tallies and the build-runner attempts counter in-context instead, and report them to the orchestrator for it to persist (see Step 6, Capture Instincts) - Do NOT auto-continue to the next slice — return to the orchestrator after committing
- Chain git commands:
git add <files> && git commit -m '...'as a single Bash command to prevent staging conflicts with sibling subagents
- Do NOT write to
- Tier-aware documentation check: confirm these documentation files exist — skipped entirely
when
.claude/scratchpad.mdreads## Tier: quick, since neither file is ever required for aquick-tier change, by design (FR-4.4). This check runs unmodified — exactly as written below — when## Tier:readsfullor the field is absent: absence meansfullis the backward-compatibility default for every scratchpad written before this tier field existed, so an absent field is never read as license to skip this check.docs/qa/<feature>_test_cases.md— if not, delegate toqa-plannerfirstdocs/use-cases/<feature>_use_cases.md— if not, delegate toba-analystfirst
- Tracer gate: read the plan file and check whether any slice is marked
**Tracer:** yes.- If a
**Tracer:** yesslice exists and this invocation targets a different (non-tracer) slice, AND the tracer slice'sVerify:condition has not yet been run and passed: REFUSE. Do not proceed to Step 1 (Identify the Slice) or any TDD work. State plainly that the tracer slice must be implemented and itsVerify:condition passed first, name the tracer slice, and instruct the caller to run/implement-sliceagainst the tracer slice before retrying this one. This check exists because standalone invocation of this skill bypasses/develop-feature's wave sequencing entirely — wave ordering alone cannot gate a direct, out-of-band/implement-slicecall. Source of truth for "the tracer passed": the tracer slice's DONE record with a commit hash in.claude/scratchpad.md, or a fresh run of the tracer's ownVerify:command. If neither is available, or the record is ambiguous, REFUSE — an unverifiable tracer is an unpassed tracer. - If this invocation targets the tracer slice itself: proceed normally — the tracer is exempt from its own gate.
- Exemption (backward compatibility), tier-aware wording (FR-4.5, AC-27): if the plan carries no
**Tracer:** yesmarker anywhere, this check does not apply. Print the tier-appropriate line verbatim, then continue with the remaining pre-flight checks and TDD flow as normal — the exemption is never silent:When
.claude/scratchpad.mdreads## Tier: quick: a marker-free plan here isquicktier's own single-slice plan, exempt from the tracer requirement by design — never a legacy plan. Print exactly:tracer gate inactive — tier: quick, single-slice plan is exempt from the tracer requirement by design.When
## Tier:readsfull, or the field is absent (the pre-F4 legacy case): print the existing legacy wording, unchanged:tracer gate inactive — no **Tracer:** yes marker found; treating as pre-F3 plan.
- If a
TDD Implementation Flow
1. Identify the Slice
Read the current slice from the implementation plan. Two formats are supported:
Executable format (preferred — when the slice has Files:, Changes:, Verify:, Done when: fields):
- Use the
Files:list directly — these are the exact files to create/modify - Use the
Changes:descriptions as implementation guidance - Use the
Verify:commands in step 4 - Use the
Done when:condition to confirm completion - List the use-case scenarios this slice covers (from
Use cases:field) - Re-read each file from the
Files:list before modifying
Legacy format (fallback — when the slice is prose without structured fields):
- Restate the next
Установить Implement Slice в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGlobGrepEditWriteBashAgentTodoWriteFAQ
Что делает скилл Implement Slice?
Implement the next smallest slice from the current plan using TDD — tests first, then code, then verification, then an atomic commit. Reads the plan from the scratchpad.
Как установить скилл Implement Slice?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Implement Slice запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic