/code:plan-editing-conventionsfrom code
Provides conventions and format rules for creating or modifying plan.json implementation plans, including task structure, content field JSON escaping, and structured array fields.
Ships in 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.
Conventions for creating and modifying implementation plans stored as plan.json.
relative/path.ts)The plan is stored as plan.json with these key fields:
{
"content": "# Implementation Plan\n\n## Stage 1: ...\n\n### T-1.1: Task Title\n...",
"acceptanceCriteria": [...],
"pendingTasks": [...],
"completedTasks": [...],
"manualTasks": [...],
"openQuestions": [...],
"answeredQuestions": [...],
"gaps": [...],
"amendments": [...]
}
content: The full markdown plan as a JSON string with escaped newlines (\n). This is the human-readable plan text.CRITICAL: The content field is a JSON string. When editing:
\n escape sequences for newlines, NOT literal line breaksplan.md via the code:extract-plan-md skillTasks use the T-X.Y ID convention where X is the stage number and Y is the task number within that stage.
Each task in the plan content should follow this structure:
### T-X.Y: [Task Title]
**Files:** `path/to/file.ext`
**Complexity:** S | M | L
**AC Refs:** AC-001, AC-002
**Description:** Brief description of what this task accomplishes.
**Implementation Details:**
[Include one or more of the following as appropriate:]
**Mapping Table:** (for distribution/transformation tasks)
| Source | Target | Notes |
|--------|--------|-------|
| category_a | target_file_a.md | Section: XYZ |
| category_b | target_file_b.md | Section: ABC |
**Algorithm:** (for logic-heavy tasks)
1. Load input from `source_path`
2. Parse using `specific_method()`
3. For each item:
a. Transform using pattern X
b. Validate against schema Y
4. Write output to `target_path`
**Code Template:** (for new file creation)
```python
# Actual code structure to be created
from typing import TypedDict
class ConfigType(TypedDict):
field_a: str
field_b: int
def main_function(config: ConfigType) -> Result:
"""Docstring explaining purpose."""
pass
Before/After Example: (for modification tasks)
# BEFORE (current code)
def old_approach():
pass
# AFTER (with changes)
def new_approach():
# Added: explanation of change
pass
## Structured Array Format
### pendingTasks / completedTasks
```json
{
"id": "T-1.1",
"description": "Task description",
"acceptanceCriteria": ["AC-001", "AC-002"]
}
{
"timestamp": "2024-01-01T00:00:00",
"changes": ["Description of change 1", "Description of change 2"],
"conversation": [...]
}
Extract implementation details for tasks that involve:
Detail extraction checklist:
Skip detail extraction for:
When amending an existing plan:
content field and structured arrays as neededpendingTasks and completedTasks arraysplan.md via code:extract-plan-md after editsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 skills in this plugin
/build-status-cacheSkip Phase 7 rebuild when no code changed since Phase 5 build passed.
Compares git diff hash against stored hash from last successful build validation.
Triggers on: entering Phase 7, checking build status, before final build validation.
Returns BUILD_CACHE_HIT to skip or BUILD_CACHE_MISS to re-run build-validator.
/closedloop-envProvides ClosedLoop environment paths (CLOSEDLOOP_WORKDIR, CLAUDE_PLUGIN_ROOT) to agents. This skill should be used by any agent that needs to access ClosedLoop run directories, plugin schemas, or other path-dependent resources./codex-reviewRun Codex to review a plan file and return structured feedback with a verdict.
Triggers on: debate loop Codex review rounds.
Returns VERDICT:APPROVED or VERDICT:NEEDS_CHANGES plus CODEX_SESSION token.
npx claudepluginhub closedloop-ai/claude-plugins --plugin codeOther plugins' skills for the same job