/idea-to-code:plan-formatfrom idea-to-code
Defines the structure for implementation plan files used by LLM coding agents, including task model, task types (OUTCOME, INFRA, REFACTOR), and required sections.
Ships in idea-to-code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
An implementation plan is a sequence of steel threads, each containing tasks with steps. It is read directly by an LLM/GenAI coding agent (for example, Claude Code). Separate skills control TDD execution and task progression, so the plan does NOT need to restate how to do TDD/BDD or how to mark tasks complete.
Every plan has these sections, in this order:
# Implementation Plan: <title>
## Idea Type
**C. Platform/infrastructure capability** — <one-sentence rationale>
## Instructions for Coding Agent
...(verbatim block, see "Instructions for Coding Agent block" below)...
## Overview
...
## Steel Thread 1: <description>
...
## Change History
# Implementation Plan:, ## Idea Type and ## Overview are the headings i2code reads.
Copy the ## Idea Type letter and name from the **Type:** line of the discussion file, as described in idea-to-code:idea-organization.
A task has two layers:
Tasks MUST define their contract explicitly. Internal work (helpers, parsing, DTOs, utilities, configuration files) MUST appear only as steps under a task with a contract. They MUST NOT be standalone tasks.
Every task MUST declare exactly one TaskType. Allowed values are: OUTCOME, INFRA, REFACTOR. No other task types are permitted.
Introduces or changes externally observable behavior reachable from the primary entrypoint.
An OUTCOME task MUST define:
Observable descriptions must be precise and testable. If an Observable mentions creation, modification, or selection of state (files, directories, branches, worktrees, PRs), it must specify the key properties that distinguish correct behavior (e.g. path, branch name, idempotence, ownership).
Enables building, testing, or running the system, but does not introduce user-visible behavior by itself.
INFRA tasks MUST still define:
INFRA tasks MUST create test scripts following the testing-scripts-and-infrastructure skill:
test-scripts/test-*.sh scripts for infrastructure behaviorstest-scripts/test-end-to-end.shtest-scripts/test-end-to-end.shShell scripts vs JUnit tests:
test-create-customer.sh, test-get-customer.sh, etc.)test-docker-health.sh, test-docker-crud-smoke.sh)INFRA tasks MUST NOT introduce business logic except as required to enable execution.
Changes code structure without changing behavior.
REFACTOR tasks:
Steel thread headings MUST use this exact format:
## Steel Thread N: Description
Example:
## Steel Thread 1: Spring Boot Application with Health Check
## Steel Thread 2: Create Customer Endpoint
Do NOT use ## Thread N: — it must be ## Steel Thread N:.
Each task MUST use this exact format, with TaskType: set to exactly one of OUTCOME, INFRA or REFACTOR:
- [ ] **Task X.Y: Outcome-oriented description**
- TaskType: OUTCOME
- Entrypoint: `<command>`
- Observable: <what is observed>
- Evidence: `<command>`
- Steps:
- [ ] <step>
Rules:
- [ ] **Task X.Y:**), NOT markdown headers (### Task X.Y:)src/i2code/implement/cli.pysrc/i2code/implement/cli.py:55cli.py) or separate "(line N)" annotationsEvidence is not a description of a test; it is a concrete command or test that proves the Observable occurred as a result of running the Entrypoint.
Evidence MUST follow these rules:
For stateful operations (files, directories, git branches, worktrees, PRs):
Invalid Evidence examples:
Valid Evidence examples:
command && assert-state- Task 1.1: Create init-ca.sh script
- Task 1.2: Create stepca service
- Task 1.3: Create test script
- Task 1.1: init-ca.sh creates CA and .env file
- Task 1.2: stepca service starts and becomes healthy
Tasks and steps MUST NOT contain "X or Y", "X (or Y)", or "X / Y" alternatives. Every decision must be resolved at plan-creation time so the coding agent has a single unambiguous action to take.
Add re-export shim OR delete the old file if grep confirms no importsDelete the old file (grep confirms no remaining imports)Write test in tests/foo/test_bar.py (or new tests/baz/test_bar.py)Write test in tests/baz/test_bar.pyAdd function build_spec_prompt() (or similar) to prompt_builder.pyAdd function build_spec_prompt() to prompt_builder.pyIf you cannot decide between alternatives without more information, investigate first (e.g., grep for imports, check existing file structure) and then commit to one option.
Every plan MUST contain the following section unchanged, immediately after the
## Idea Type section, exactly as written:
## Instructions for Coding Agent
- IMPORTANT: Use simple commands that you have permission to execute. Avoid complex commands that may fail due to permission issues.
### Required Skills
Use these skills by invoking them before the relevant action:
| Skill | When to Use |
|-------|-------------|
| `idea-to-code:plan-tracking` | ALWAYS - track task completion in the plan file |
| `idea-to-code:tdd` | When implementing code - write failing tests first |
| `idea-to-code:commit-guidelines` | Before creating any git commit |
| `idea-to-code:incremental-development` | When writing multiple similar files (tests, classes, configs) |
| `idea-to-code:testing-scripts-and-infrastructure` | When building shell scripts or test infrastructure |
| `idea-to-code:dockerfile-guidelines` | When creating or modifying Dockerfiles |
| `idea-to-code:file-organization` | When moving, renaming, or reorganizing files |
| `idea-to-code:debugging-ci-failures` | When investigating CI build failures |
| `idea-to-code:test-runner-java-gradle` | When running tests in Java/Gradle projects |
### TDD Requirements
- NEVER write production code (`src/main/java/**/*.java`) without first writing a failing test
- Before using Write on any `.java` file in `src/main/`, ask: "Do I have a failing test?" If not, write the test first
- When task direction changes mid-implementation, return to TDD PLANNING state and write a test first
### Verification Requirements
- Hard rule: NEVER git commit, git push, or open a PR unless you have successfully run the project's test command and it exits 0
- Hard rule: If running tests is blocked for any reason (including permissions), ALWAYS STOP immediately. Print the failing command, the exact error output, and the permission/path required
- Before committing, ALWAYS print a Verification section containing the exact test command (NOT an ad-hoc command - it must be a proper test command such as `./test-scripts/*.sh`, `./scripts/test.sh`, or `./gradlew build`/`./gradlew check`), its exit code, and the last 20 lines of output
idea-to-code:plan-file-management skill.## Change History, the last section of the plan.
Add one entry per change, headed ### YYYY-MM-DD: <brief description>, stating what changed and why.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
24 skills in this plugin
/apply-design-patternsConsult the design pattern catalog before implementing or refactoring code./ask-a-friendWhen stuck on a problem, formulate a well-structured question and copy it to the clipboard for pasting into ChatGPT. Claude should use this skill when debugging efforts stall or when an outside perspective would help./brainstorm-ideaUse when refining an idea in an idea directory through questions and answers and classifying it.npx claudepluginhub humansintheloop-dev/humansintheloop-dev-workflow-and-tools --plugin idea-to-codeOther plugins' skills for the same job