Executes ADR-driven 4-phase dev workflow (preflight with ADR/todo merge, implementation, formatting, release) using git ops for approved plans and feature tasks.
From itpnpx claudepluginhub terrylica/cc-skills --plugin itpThis skill is limited to using the following tools:
references/arguments-reference.mdreferences/evolution-log.mdreferences/phase1-protocols.mdreferences/phase2-scripts.mdreferences/phase3-gate-logic.mdreferences/preflight-checkpoint.mdreferences/todo-merge-strategy.mdreferences/workflow-preview.mdSearches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides idea refinement into designs: explores context, asks questions one-by-one, proposes approaches, presents sections for approval, writes/review specs before coding.
DO NOT ACT ON ASSUMPTIONS. Read this file first.
This is a structured workflow command. Follow the phases in order.
Your FIRST and ONLY action right now: Execute the TodoWrite below.
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
YOUR FIRST ACTION MUST BE a MERGED TodoWrite that preserves existing todos.
<!-- ADR: 2025-12-05-itp-todo-insertion-merge -->DO NOT:
~/.claude/plans/*.mdFollow the full merge strategy (Steps 0.1-0.5) and TodoWrite template: Todo Merge Strategy
After TodoWrite completes, proceed to Preflight section below.
| Skill | Phase | Purpose |
|---|---|---|
implement-plan-preflight | Preflight | ADR + Design Spec creation |
adr-graph-easy-architect | Preflight | Architecture diagrams |
impl-standards | Phase 1 | Error handling, constants |
mise-configuration | Phase 1 | Env var centralization patterns |
adr-code-traceability | Phase 1 | Code-to-ADR references |
code-hardcode-audit | Phase 1 | Pre-release validation |
semantic-release | Phase 3 | Version tagging + release |
pypi-doppler | Phase 3 | PyPI publishing (if applicable) |
| Artifact | Path | Notes |
|---|---|---|
| ADR | /docs/adr/$ADR_ID.md | Permanent |
| Design Spec | /docs/design/$ADR_ID/spec.md | Permanent, SSoT after Preflight |
| Global Plan | ~/.claude/plans/<adj-verb-noun>.md | EPHEMERAL - replaced on new plan |
---
adr: YYYY-MM-DD-slug # Links to ADR (programmatic)
source: ~/.claude/plans/<adj-verb-noun>.md # Global plan (EPHEMERAL)
implementation-status: in_progress # in_progress | blocked | completed | abandoned
phase: preflight # preflight | phase-1 | phase-2 | phase-3
last-updated: YYYY-MM-DD
---
Note: The source field preserves the global plan filename for traceability, but the file may no longer exist after a new plan is created.
ADR_ID="$(date +%Y-%m-%d)-<slug>"
Example: 2025-12-01-clickhouse-aws-ohlcv-ingestion
/docs/
adr/
YYYY-MM-DD-slug.md # ADR file
design/
YYYY-MM-DD-slug/ # Design folder (1:1 with ADR)
spec.md # Active implementation spec (SSoT)
Naming Rule: Use exact same YYYY-MM-DD-slug for both ADR and Design folder.
THIS WORKFLOW IS NON-NEGOTIABLE. DO NOT SKIP ANY PHASE.
You MUST execute ALL phases in order, regardless of task complexity:
FORBIDDEN BEHAVIORS:
If the task seems too simple for this workflow: Stop and ask the user if they want to proceed without /itp:go. Do NOT silently skip phases.
Parse $ARGUMENTS for:
| Argument | Short | Description | Default |
|---|---|---|---|
slug | - | Feature name for ADR ID (e.g., clickhouse-aws-ohlcv-ingestion) | Derive from Global Plan context |
--branch | -b | Create branch {type}/{adr-id} from main/master | Work on current branch |
--continue | -c | Continue in-progress work; optionally provide decision | Last "Recommended Next Steps" |
--release | -r | Enable semantic-release in Phase 3 (required on main for release) | Skip Phase 3 release |
--publish | -p | Enable PyPI publishing in Phase 3 (required on main for publish) | Skip Phase 3 publish |
Detailed usage examples, branch types, and slug derivation rules: Arguments Reference
Detect branch and show expected workflow before starting. See Workflow Preview for the branch detection script and condition table.
If you followed the STOP instruction at the top, this step is complete.
The TodoWrite template is in the Todo Merge Strategy. If you haven't executed it yet, STOP and go back to the top.
Mark each todo in_progress before starting, completed when done.
You CANNOT proceed to Phase 1 until ALL Preflight todos are marked completed.
Before starting "Phase 1: Execute implementation tasks":
Preflight: todos show completed/docs/adr/$ADR_ID.md/docs/design/$ADR_ID/spec.mdIf any Preflight item is not complete, STOP and complete it first. Do NOT skip ahead.
MANDATORY Skill tool call: implement-plan-preflight -- activate NOW before proceeding.
This skill provides detailed ADR and Design Spec creation instructions (MADR 4.0 frontmatter, perspectives taxonomy, validation).
P.0: Create feature branch FIRST (if -b flag) -- MUST happen before ANY file operations
P.1: MANDATORY Skill tool call: implement-plan-preflight -- activate NOW for ADR/spec instructions
P.2: Create ADR file -- path in Quick Reference
P.2.1: ADR Diagram Creation (MANDATORY for ALL ADRs)
ALL ADRs require BOTH diagrams -- NO EXCEPTIONS, regardless of task complexity.
adr-graph-easy-architect -- triggers diagram workflowBLOCKING GATE: Do NOT proceed to P.3 until BOTH diagrams are verified in ADR.
P.3: Create design spec -- path in Quick Reference
P.4: Verify checkpoint
WHY P.0 FIRST: Files created before git checkout -b stay on main/master. Branch must exist before ADR/spec creation.
STOP. Verify artifacts exist before proceeding to Phase 1. Full checklist and validator script: Preflight Checkpoint
Entry point for both fresh starts and continuations. Full protocol (continuation detection, branch verification, sync checks): Phase 1 Protocols
Execute each task in spec.md:
in_progress in todo listspec.md to reflect completioncompletedSkill Execution Order (invoke sequentially, in this order):
impl-standards -- Apply error handling & constants patterns FIRSTmise-configuration -- Centralize config via mise [env] SECONDadr-code-traceability -- Add ADR references to code THIRDcode-hardcode-audit -- Final audit LAST (before Phase 2)MANDATORY Skill tool call: impl-standards -- activate NOW for detailed standards.
MANDATORY Skill tool call: mise-configuration -- activate when creating/modifying scripts with configurable values.
MANDATORY Skill tool call: adr-code-traceability -- activate NOW for ADR references in code.
MANDATORY Skill tool call: code-hardcode-audit -- activate NOW before release.
When implementation requires a user decision, follow the decision capture protocol: Decision Capture
Spec implementation-status drives ADR status updates. Full sync table and scripts: Status Sync Protocol
ADR: {adr-id} in file headerADR: commentsExecute Prettier formatting, git push, and browser open. Full scripts: Phase 2 Scripts
Phase 3 requires EXPLICIT flags. It does NOT run automatically.
For entry gate logic and branch-specific messaging, see Phase 3 Gate Logic.
Before releasing:
Accepted, Implemented)semantic-release patterns (no dynamic versioning)Condition: Only execute if -r or --release flag was provided.
MANDATORY Skill tool call: semantic-release -- activate NOW for version tagging and release.
Condition: Only execute if -p or --publish flag was provided.
Only if package pre-exists on PyPI:
pypi-doppler -- activate NOW to publishUse Earthly as canonical pipeline: non-blocking, observability-first, ensure GitHub Release exists, record stats/errors, Pushover alert, wire into GitHub Actions.
accepted or implemented| Issue | Cause | Solution |
|---|---|---|
| TodoWrite not found | Skipped mandatory first step | Start from top of file, execute TodoWrite |
| ADR file not created | Preflight incomplete | Run Skill(itp:implement-plan-preflight) |
| Branch mismatch | Working on wrong branch | Switch to correct branch with git checkout |
| Phase 3 skipped | Not on main/master | Merge to main first, then run /itp:go -r |
| semantic-release fails | No GITHUB_TOKEN | Check token with echo $GITHUB_TOKEN |
| Diagram missing | graph-easy not invoked | Run Skill(itp:adr-graph-easy-architect) |
| Spec validation fails | Missing frontmatter fields | Check required fields in Quick Reference |
After this skill completes, reflect before closing the task:
Do NOT defer. The next invocation inherits whatever you leave behind.