Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. Confirm you are NOT on main — must be on a feature branch (feat/* or fix/*)
  2. Confirm git status is clean (or explain why not)
  3. 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 is PROTECTED identically 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
  4. Tier-aware documentation check: confirm these documentation files exist — skipped entirely when .claude/scratchpad.md reads ## Tier: quick, since neither file is ever required for a quick-tier change, by design (FR-4.4). This check runs unmodified — exactly as written below — when ## Tier: reads full or the field is absent: absence means full is 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 to qa-planner first
    • docs/use-cases/<feature>_use_cases.md — if not, delegate to ba-analyst first
  5. Tracer gate: read the plan file and check whether any slice is marked **Tracer:** yes.
    • If a **Tracer:** yes slice exists and this invocation targets a different (non-tracer) slice, AND the tracer slice's Verify: 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 its Verify: condition passed first, name the tracer slice, and instruct the caller to run /implement-slice against 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-slice call. 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 own Verify: 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:** yes marker 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.md reads ## Tier: quick: a marker-free plan here is quick tier'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: reads full, 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.

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
Полный SKILL.md на GitHub

Установить Implement Slice в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Glob
Grep
Edit
Write
Bash
Agent
TodoWrite

FAQ

Что делает скилл 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), без исполняемых скриптов.

Похожие скиллы

Сравнить Implement Slice с