Cc-skills go
Execute the ADR-driven 4-phase development workflow (preflight, implementation, formatting, release). Use whenever the user says 'itp go', 'start the workflow', 'implement this feature', 'begin the task', or references the ITP workflow. Also use when the user has an approved plan and wants structured execution with ADR tracking. Do NOT use for simple one-off edits, quick fixes, or tasks that do not need ADR tracking or phased execution.
git clone https://github.com/terrylica/cc-skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/terrylica/cc-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/plugins/itp/skills/go" ~/.claude/skills/terrylica-cc-skills-go && rm -rf "$T"
plugins/itp/skills/go/SKILL.md⛔ ITP Workflow — STOP AND READ
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.
⛔ MANDATORY FIRST ACTION: Plan-Aware Todo Integration
YOUR FIRST ACTION MUST BE a MERGED TodoWrite that preserves existing todos.
<!-- ADR: 2025-12-05-itp-todo-insertion-merge -->DO NOT:
- ❌ Overwrite existing todos from plan files or previous sessions
- ❌ Ignore the plan file at
~/.claude/plans/*.md - ❌ Create your own todos without checking for existing ones
- ❌ Jump to coding without completing Step 0
- ❌ Create a branch before TodoWrite
Follow the full merge strategy (Steps 0.1-0.5) and TodoWrite template: Todo Merge Strategy
After TodoWrite completes, proceed to Preflight section below.
Quick Reference
Skills Invoked
| Skill | Phase | Purpose |
|---|---|---|
| Preflight | ADR + Design Spec creation |
| Preflight | Architecture diagrams |
| Phase 1 | Error handling, constants |
| Phase 1 | Env var centralization patterns |
| Phase 1 | Code-to-ADR references |
| Phase 1 | Pre-release validation |
| Phase 3 | Version tagging + release |
| Phase 3 | PyPI publishing (if applicable) |
File Locations
| Artifact | Path | Notes |
|---|---|---|
| ADR | | Permanent |
| Design Spec | | Permanent, SSoT after Preflight |
| Global Plan | | EPHEMERAL - replaced on new plan |
Spec YAML Frontmatter
--- 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 Format
ADR_ID="$(date +%Y-%m-%d)-<slug>"
Example:
2025-12-01-clickhouse-aws-ohlcv-ingestion
Folder Structure
/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.
CRITICAL: Mandatory Workflow Execution
THIS WORKFLOW IS NON-NEGOTIABLE. DO NOT SKIP ANY PHASE.
You MUST execute ALL phases in order, regardless of task complexity:
- Step 0: TodoWrite initialization (FIRST ACTION - NO EXCEPTIONS)
- Preflight: ADR + Design Spec creation
- Phase 1: Implementation per spec.md
- Phase 2: Format & Push
- Phase 3: Release (if on main/master)
FORBIDDEN BEHAVIORS:
- ❌ Deciding "this is simple, skip the workflow"
- ❌ Jumping directly to implementation without TodoWrite
- ❌ Skipping ADR/Design Spec for "document fixes" or "small changes"
- ❌ Making autonomous judgments to bypass phases
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.
Arguments
Parse
$ARGUMENTS for:
| Argument | Short | Description | Default |
|---|---|---|---|
| - | Feature name for ADR ID (e.g., ) | Derive from Global Plan context |
| | Create branch from main/master | Work on current branch |
| | Continue in-progress work; optionally provide decision | Last "Recommended Next Steps" |
| | Enable semantic-release in Phase 3 (required on main for release) | Skip Phase 3 release |
| | 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
Workflow Preview
Detect branch and show expected workflow before starting. See Workflow Preview for the branch detection script and condition table.
Step 0: Initialize Todo List (ALREADY DONE)
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
before starting, in_progress
when done.completed
Preflight Gate (MANDATORY)
You CANNOT proceed to Phase 1 until ALL Preflight todos are marked
.completed
Before starting "Phase 1: Execute implementation tasks":
- Verify all
todos showPreflight:completed - Verify ADR file exists at
/docs/adr/$ADR_ID.md - Verify design spec exists at
/docs/design/$ADR_ID/spec.md
If any Preflight item is not complete, STOP and complete it first. Do NOT skip ahead.
Preflight: Artifact Setup
MANDATORY Skill tool call:
-- activate NOW before proceeding.implement-plan-preflight
This skill provides detailed ADR and Design Spec creation instructions (MADR 4.0 frontmatter, perspectives taxonomy, validation).
Preflight Steps (via skill)
-
P.0: Create feature branch FIRST (if
flag) -- MUST happen before ANY file operations-b -
P.1: MANDATORY Skill tool call:
-- activate NOW for ADR/spec instructionsimplement-plan-preflight -
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.
- INVOKE: Skill tool call with
-- triggers diagram workflowadr-graph-easy-architect - CREATE: Before/After diagram -- visualizes state change in Context section
- CREATE: Architecture diagram -- visualizes component relationships in Architecture section
- VERIFY: Confirm BOTH diagrams embedded in ADR before proceeding
BLOCKING GATE: Do NOT proceed to P.3 until BOTH diagrams are verified in ADR.
- INVOKE: Skill tool call with
-
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.
Preflight Checkpoint (MANDATORY)
STOP. Verify artifacts exist before proceeding to Phase 1. Full checklist and validator script: Preflight Checkpoint
Phase 1: Implementation
1.1 Resumption Protocol
Entry point for both fresh starts and continuations. Full protocol (continuation detection, branch verification, sync checks): Phase 1 Protocols
1.2 Implement the Spec
Execute each task in
spec.md:
- Mark current task as
in todo listin_progress - Implement the change
- Verify it works
- Update
to reflect completionspec.md - Mark task as
completed - Move to next task
1.3 Engineering Standards
Skill Execution Order (invoke sequentially, in this order):
-- Apply error handling & constants patterns FIRSTimpl-standards
-- Centralize config via mise [env] SECONDmise-configuration
-- Add ADR references to code THIRDadr-code-traceability
-- Final audit LAST (before Phase 2)code-hardcode-audit
MANDATORY Skill tool call:
-- activate NOW for detailed standards.impl-standards
MANDATORY Skill tool call:
-- activate when creating/modifying scripts with configurable values.mise-configuration
MANDATORY Skill tool call:
-- activate NOW for ADR references in code.adr-code-traceability
MANDATORY Skill tool call:
-- activate NOW before release.code-hardcode-audit
1.4 Decision Capture
When implementation requires a user decision, follow the decision capture protocol: Decision Capture
1.5 Status Synchronization Protocol
Spec
implementation-status drives ADR status updates. Full sync table and scripts: Status Sync Protocol
Phase 1 Success Criteria
- Implementation complete per spec.md
- All artifacts synced (ADR <-> spec <-> todo <-> code)
- New files include
in file headerADR: {adr-id} - Non-obvious changes have inline
commentsADR:
Phase 2: Format & Push
Execute Prettier formatting, git push, and browser open. Full scripts: Phase 2 Scripts
Phase 2 Success Criteria
- Markdown formatted with Prettier
- Pushed to GitHub
- Files viewable in browser
Phase 3: Release & Publish (Requires -r or -p Flag on Main)
Phase 3 requires EXPLICIT flags. It does NOT run automatically.
For entry gate logic and branch-specific messaging, see Phase 3 Gate Logic.
3.1 Pre-Release Verification
Before releasing:
- All Success Criteria items in design spec are checked off
- Status value in design spec is updated (e.g.,
,Accepted
)Implemented - ADR and spec.md are in sync with final implementation
- Version fields use
patterns (no dynamic versioning)semantic-release
3.2 Semantic Release (if -r flag)
Condition: Only execute if
-r or --release flag was provided.
MANDATORY Skill tool call:
-- activate NOW for version tagging and release.semantic-release
- Follow the Local Release Workflow
- Conventional commits -> tag -> release -> changelog -> push
3.3 PyPI Publishing (if -p flag)
Condition: Only execute if
-p or --publish flag was provided.
Only if package pre-exists on PyPI:
- MANDATORY Skill tool call:
-- activate NOW to publishpypi-doppler
3.4 Earthly Pipeline
Use Earthly as canonical pipeline: non-blocking, observability-first, ensure GitHub Release exists, record stats/errors, Pushover alert, wire into GitHub Actions.
Phase 3 Success Criteria
- ADR status updated to
oracceptedimplemented - Release completed via semantic-release
- If feature branch: PR created, Phase 3 skipped
Troubleshooting
| 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 |
| Phase 3 skipped | Not on main/master | Merge to main first, then run |
| semantic-release fails | No GITHUB_TOKEN | Check token with |
| 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 |
Post-Execution Reflection
After this skill completes, reflect before closing the task:
- Locate yourself. — Find this SKILL.md's canonical path (Glob for this skill's name) before editing. All corrections target THIS file and its sibling references/ — never other documentation.
- What failed? — Fix the instruction that caused it. If it could recur, add it as an anti-pattern.
- What worked better than expected? — Promote it to recommended practice. Document why.
- What drifted? — Any script, reference, or external dependency that no longer matches reality gets fixed now.
- Log it. — Every change gets an evolution-log entry with trigger, fix, and evidence.
Do NOT defer. The next invocation inherits whatever you leave behind.