본문으로 건너뛰기
cccskills
무료GitHub에 공개

plan-pipeline-execute

Carry out a validated development plan in an isolated Git worktree, a separate working directory. Coordinate parallel implementation, run quality checks, update documentation, and take the changes through pull request creation, merging, execution metrics, and cleanup.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Execute a validated plan: worktree isolation, TDD scaffolding, level-based parallel agents, quality gate with smoke test, PR creation and merge. Handles everything through to merged PR.

연동 도구GitHub
설치 방법 보기

이럴 때 유용합니다

  • Implementing a validated development plan
  • Running dependent tasks in parallel stages
  • Preparing failing tests before implementation
  • Completing checks, documentation, and PR merging

포함된 파일(1)

  • SKILL.md7.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

/plan-pipeline:execute: Execution to merged PR

Execute the validated plan in an isolated worktree. Spawn per-task agents, verify quality, create and merge the PR. Handles everything through to cleanup.

Run /clear before this command.


Prerequisite

A validated plan must exist at docs/plans/plan-{name}.md with all issues resolved (output of /plan-pipeline:validate).


Step 1: Worktree setup

Create an isolated git worktree:

git worktree add .worktrees/{plan-name} -b feature/{plan-name}

All execution happens inside the worktree. Main branch remains clean throughout.


Step 2: TDD scaffolding

Only for tasks marked as TDD in the plan.

For each TDD task, before any implementation:

  1. Write the failing test(s) that define the acceptance criteria
  2. Run tests to confirm they fail (red)
  3. Commit the failing tests
  4. Mark the test file in the task for the implementation agent to find

Do not write implementation code in this step.


Step 3: Level-Based parallel execution

Parse the task list from the plan. Group tasks by layer (Layer 1 = foundation, Layer 2 = depends on Layer 1, etc.).

For each layer:

  1. Identify all tasks in the layer
  2. Spawn one agent per task in parallel (Task tool, run_in_background: true)
  3. Each agent receives: its task description, files to modify, acceptance criteria, and relevant ADRs
  4. Monitor all agents by reading the output path reported by the agent via Read (TaskOutput was removed in v2.1.278)
  5. Each agent commits on task completion: git commit -m "feat: {task-description}"
  6. Wait for all tasks in the layer to complete before starting the next layer

Drift detection: after each layer, diff the actual changes against the plan spec. If implementation deviates significantly from the plan (new files not in plan, plan files not touched), flag and ask how to proceed. Do not silently continue on drift.

Agent instructions for each task:

You are implementing one task from a validated plan.
Task: {description}
Files to modify: {file list}
Acceptance criteria: {criteria}
Relevant ADRs: {adr list}

First principles:
- Build state-of-the-art. No workarounds, no legacy patterns.
- Fix at the correct architectural level, never with component-level hacks.
- If you discover that the plan is wrong or missing context, stop and report. Do not improvise architecture.

Commit your changes when complete with message: "feat: {task-description}"

Step 4: Quality gate

Run in parallel:

  • Linter
  • Type checker (if applicable)
  • Full test suite

If all pass: proceed to smoke test.

If any fail: spawn a quality-fixer debug agent with the failure output. It gets up to 3 auto-fix attempts. After each attempt, re-run the quality gate. If still failing after 3 attempts: stop, report the failure with the full error output, and wait for human intervention.

Integration smoke test (skip for pure frontend or docs-only plans):

Run the smoke commands defined in the plan's ## Integration Verification section. Additionally:

  • If GraphQL: run an introspection probe to verify schema is accessible
  • If Docker services: scan container logs for ERROR-level entries
  • If new API routes: verify each returns expected status codes

Smoke test failures are debugged by a quality-fixer-smoke agent with the same 3-attempt limit.


Step 5: Pre-PR documentation

In the worktree, before creating the PR.

PRD Reconciliation: compare the implemented behavior against the original PRD. Note any deviations or additions discovered during implementation. Update the PRD with actuals. These updates ship in the same PR as the feature.

Plan Archival: move docs/plans/plan-{name}.md to docs/plans/completed/plan-{name}.md. Update the status header.

Commit documentation updates: docs: reconcile PRD and archive plan for {feature-name}.


Step 6: Push and PR

Push the worktree branch and create the PR:

git push origin feature/{plan-name}
gh pr create \
  --title "{feature-name}: {one-line summary from plan}" \
  --body "$(cat .pr-body.md)"

PR body template:

## Summary
{plan summary paragraph}

## Changes
{auto-generated from task list: bullet per task with files affected}

## ADRs
{list of ADRs created during this plan}

## Test Plan
{from plan test plan section}

## Smoke Test Results
{output from integration verification}

Merge using squash:

gh pr merge --squash --delete-branch

Step 7: Post-Merge metrics

Switch back to develop/main. Update docs/plans/metrics/{name}.json with execution data:

  • Task count and per-layer breakdown
  • TDD task count
  • Diff stats (files changed, lines added/removed)
  • Quality gate results (pass/fail, fix attempts)
  • Smoke test results
  • Drift score (0-1, how closely implementation matched plan)
  • PR data (number, merge commit, timestamp)

Commit metrics update.


Step 8: Worktree cleanup

git worktree remove .worktrees/{plan-name}

Usage

/plan-pipeline:execute

Picks up the most recent validated plan. Or specify:

/plan-pipeline:execute plan-user-authentication

Output

Setting up worktree: .worktrees/user-authentication
Branch: feature/user-authentication

TDD scaffolding: 2 tasks marked TDD
  ✓ Written failing tests for: auth-token-validation
  ✓ Written failing tests for: refresh-token-rotation
  Committed: "test: failing tests for auth pipeline (TDD)"

Executing Layer 1 (3 tasks, parallel)...
  [agent-1] Implementing: JWT token generation service
  [agent-2] Implementing: User session model
  [agent-3] Implementing: Auth middleware
  ✓ Layer 1 complete. 3 commits.

Drift check: Layer 1... ✓ No drift detected.

Executing Layer 2 (2 tasks, parallel)...
  [agent-4] Implementing: Login endpoint
  [agent-5] Implementing: Refresh endpoint
  ✓ Layer 2 complete. 2 commits.

Quality gate...
  ✓ Lint passed
  ✓ Type check passed
  ✓ Tests: 47 passed, 0 failed

Smoke test...
  ✓ GraphQL introspection: OK
  ✓ POST /api/auth/login: 200
  ✓ POST /api/auth/refresh: 200

Pre-PR docs...
  ✓ PRD reconciled (1 minor deviation noted)
  ✓ Plan archived to docs/plans/completed/

PR created: #142 "user-authentication: JWT auth with refresh token rotation"
PR merged (squash). Branch deleted.

Metrics committed. Worktree cleaned.
✅ Feature complete.

When to use

After /plan-pipeline:validate confirms all issues are resolved. Never skip validation: executing an unvalidated plan skips the independent review that catches ~18 issues on average.

Pipeline position

/plan-pipeline:ceo-review    → product direction locked
/plan-pipeline:eng-review    → architecture locked
/plan-pipeline:start         → produce implementation plan
/plan-pipeline:validate      → validate before execution
/plan-pipeline:execute       → execute to merged PR          ← you are here

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Evaluate Claude Code agents, skills, and commands with weighted quality criteria. Get scores, readiness grades, template comparisons, and practical improvement suggestions in Markdown or JSON reports to guide reviews before release.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Review skills before release
  • Compare agent definitions with reference templates
  • Quickly check critical quality criteria
FlorianBruniaux/claude-code-ultimate-guide6.2천2026년 10월 18일 업데이트

Assess a codebase across seven areas, including exposed credentials, security, dependencies, structure, and tests. Receive category scores, findings tied to file locations, and a prioritized improvement plan with smaller tasks that can be completed quickly.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Assessing the overall health of an inherited project
  • Reviewing exposed credentials and security risks
  • Identifying dependency and test coverage gaps
FlorianBruniaux/claude-code-ultimate-guide6.2천2026년 10월 18일 업데이트

Measure code patterns such as casts to any or disabled lint rules, then run repeated, targeted edits. Keep changes that improve the chosen metric, revert unsuccessful changes, and track results for each improvement loop.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Finding code patterns to prioritize for cleanup
  • Preparing measurement files for an improvement loop
  • Repeating targeted edits to reduce casts to any
FlorianBruniaux/claude-code-ultimate-guide6.2천2026년 10월 18일 업데이트

best-of-n

무료

Generate several separate solutions, compare them against criteria fixed in advance, and verify the selected result through executable checks or an independent reviewer. Keep a proof log documenting candidates, evidence, failures, and remaining limits.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Comparing implementation options before choosing one
  • Verifying a solution when a wrong choice would be costly
  • Keeping evaluation evidence for delivery or audit
FlorianBruniaux/claude-code-ultimate-guide6.2천2026년 10월 18일 업데이트

canary

무료

Monitor a live application after deployment and compare it with a saved baseline, a record of its earlier state. Check page responses, loading times, and new errors, flag persistent changes, and produce a per-page health report.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Recording a healthy baseline before deployment
  • Monitoring production immediately after deployment
  • Checking key pages for slower responses or failures
FlorianBruniaux/claude-code-ultimate-guide6.2천2026년 10월 18일 업데이트

catchup

무료

Rebuild project context after clearing a conversation or returning to work. Review recent Git history, uncommitted changes, and TODO markers to get a structured summary of project status and suggested next steps.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Restoring project context after /clear
  • Reviewing recent changes after a long break
  • Checking unfinished work before choosing the next task
FlorianBruniaux/claude-code-ultimate-guide6.2천2026년 10월 18일 업데이트

FlorianBruniaux의 스킬 모두 보기

이 스킬의 문제 신고