Command Palette

Search for a command to run...

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

implement-plan

БесплатноЗапускает вложенные скриптыНе проверен

"Implement approved technical plans from thoughts/shared/plans/. **ALWAYS use when** the user says 'implement the plan', 'start implementing', 'build from the…

coalesce-labsот coalesce-labs★ 20 звёзд на GitHub

Об этом скилле

Implement Plan

You are tasked with implementing an approved technical plan from thoughts/shared/plans/. These plans contain phases with specific changes and success criteria.

Paths. Commands below name files inside this skill's own directory as ${CLAUDE_SKILL_DIR}/…. Claude Code fills that in. On any other harness, set CLAUDE_SKILL_DIR to the absolute directory that contains this SKILL.md before running them. If you cannot, stop and report skill_dir_unresolved.

Prerequisites

# Thoughts must exist for this skill's documents. CTL-2306: the full host setup check (daemon,
# registry, house rules) belongs to the setup-catalyst skill, not to a skill that must run anywhere.
-e thoughts/shared || echo "⚠️ thoughts/shared is missing in $(pwd) — run \`humanlayer thoughts init\` or the setup-catalyst skill; if the prompt names an output path, write there" >&2

# CTL-2306 explicit-input discovery: begin
# Find the plan to implement on disk for the ticket this run was given: $CATALYST_TICKET under a
# phase, else a ticket named in the skill's argument text (Claude Code substitutes the token in
# the heredoc below; another harness leaves it literal, which names no ticket). Nothing is
# remembered between runs. `[!0-9]` keeps PROJ-1 from matching PROJ-10's documents.
TICKET_ID="${TICKET_ID:-${CATALYST_TICKET:-}}"
if -z "$TICKET_ID"; then
  SKILL_ARGS=$(cat <<'CATALYST_SKILL_ARGS'
$ARGUMENTS
CATALYST_SKILL_ARGS
)
  TICKET_ID=$(printf '%s' "$SKILL_ARGS" | grep -oE '[A-Z]+-[0-9]+' | head -1)
  -n &quot;$TICKET_ID&quot; || TICKET_ID=$(printf '%s' "$SKILL_ARGS" | tr '[:lower:]' '[:upper:]' | grep -oE '[A-Z]+-[0-9]+' | head -1)
fi
RECENT_PLAN=""
if -n &quot;$TICKET_ID&quot;; then
  RECENT_PLAN=$(find -H thoughts/shared/plans -type f -name '*.md' -ipath "*${TICKET_ID}[!0-9]*" -exec ls -t {} + 2>/dev/null | head -1)
elif -z &quot;${CATALYST_PHASE:-}&quot;; then
  RECENT_PLAN=$(find -H thoughts/shared/plans -type f -name '*.md' -exec ls -t {} + 2>/dev/null | head -1)
fi
# CTL-2306 explicit-input discovery: end
if -n &quot;$RECENT_PLAN&quot;; then
  echo "📋 Found plan: $RECENT_PLAN"
else
  echo "⚠️ No plan found on disk for ${TICKET_ID:-this run}"
fi

Session Tracking

# Session tracking uses the installed catalyst-session CLI when this host has one; skipped otherwise.
SESSION_SCRIPT="$(command -v catalyst-session 2>/dev/null || true)"
if -n &quot;$SESSION_SCRIPT&quot;; then
  CATALYST_SESSION_ID=$("$SESSION_SCRIPT" start --skill "implement-plan" \
    --ticket "${TICKET_ID:-}" \
    --workflow "${CATALYST_SESSION_ID:-}")
  export CATALYST_SESSION_ID
  "$SESSION_SCRIPT" phase "$CATALYST_SESSION_ID" "implementing" --phase 1
fi

Initial Response

Auto-discovery has already run in Prerequisites above. Check its output and follow this priority:

  1. If user provided a plan path as parameter: Use the provided path (user override). Skip to Step 3.

  2. If no parameter provided AND Prerequisites output shows a discovered plan (📋):

    • Show user the discovered plan path
    • Ask: "Proceed with this plan? [Y/n]"
    • If yes: use it and skip to Step 3
    • If no: proceed to option 3
  3. If no parameter AND Prerequisites shows no plan found (⚠️):

    • List available plans from thoughts/shared/plans/
    • Show most recent 5 plans with dates and ticket numbers
    • Ask user which plan to implement
    • Wait for user input with plan path

STEP 3: Read and prepare

Once you have a plan path:

  • Read the plan completely (no limit/offset)
  • Check for any existing checkmarks (- [x]) to see what's done
  • Read the original ticket and all files mentioned in the plan
  • Extract ticket from plan frontmatter (source_ticket field) and update Linear state to stateMap.inProgress from config using Linearis CLI (run linearis issues usage for syntax). If Linearis CLI is not available, skip silently and continue implementation. Skip the status transition when CATALYST_PHASE is set — under a phase agent (e.g. phase-implement, or this skill invoked as a sub-task from phase-pr / phase-monitor-merge during PR resolution / CI fix-up loops) the deterministic coordinator (CTL-558) owns the Linear status write-back. A direct write here would regress the ticket from PR back to Implement, producing operator-visible state flicker (CTL-601). Mirrors the gate in create-pr/SKILL.md:227-232.
  • Think deeply about how the pieces fit together
  • Create a todo list to track your progress
  • Start implementing if you understand what needs to be done

Implementation Philosophy

Plans are carefully designed, but reality can be messy. Your job is to:

  • Follow TDD: write tests before implementation code in each phase
  • Follow the plan's intent while adapting to what you find
  • Implement each phase fully before moving to the next
  • Verify your work makes sense in the broader codebase context
  • Update checkboxes in the plan as you complete sections

TDD Rhythm Per Phase

For each pha

Полный SKILL.md на GitHub

Установить implement-plan в Claude Code и Claude Desktop

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

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

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

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

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

Read
Write
Edit
Grep
Glob
Task
TodoWrite
Bash

Вложенные файлы

agents/vendor.lock.jsonagents/vendor.yamlscripts/add-finding.shscripts/feedback-consent.shscripts/file-feedback.shscripts/lib/canonical-event.shscripts/lib/catalyst-secret-contract.shscripts/lib/draft-pr.shscripts/lib/host-identity.shscripts/lib/linear-read-replica.sh

FAQ

Что делает скилл implement-plan?

"Implement approved technical plans from thoughts/shared/plans/. **ALWAYS use when** the user says 'implement the plan', 'start implementing', 'build from the plan', or wants to execute a previously created implementation plan using TDD (Red-Green-Refactor). Supports team mode for parallel implementation."

Как установить скилл implement-plan?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл implement-plan запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить implement-plan с