Plan Issue Skill
Plan the implementation of a specific GitHub issue. Reads the GitHub issue, relevant documentation, and enters plan mode for user approval before any code is written.
Context
Current branch: !git branch --show-current
Instructions
Step 1 — Identify the issue
- Parse
$ARGUMENTS for a step number. It may be provided as just an issue number (e.g., 27, #27), or as Issue 27, or with an issue link (e.g., https://github.com/kkokosa/dotLLM/issues/27).
- If no issue is found in
$ARGUMENTS, ask the user with AskUserQuestion.
- If an existing issue was found, fetch its details:
gh issue view <number> --json title,body,labels,comments
- Use
AskUserQuestion to confirm: "Plan implementation for Issue {issue}: {title}?"
Step 2 — Gather context
- Read the relevant documentation listed in the roadmap step's "Key Files" or "Description" column - it may or may not contain relevant topics
- Check
CLAUDE.md Documentation Index — read any docs referenced for the module being implemented.
- Read existing source files that will be modified or extended (from issue body).
Step 3 — Enter plan mode
Use EnterPlanMode to enter planning mode. Then build a comprehensive implementation plan:
Plan structure
# Step {N}: {Title}
**Issue**: #{issue_number}
**Branch**: `issue/{issue_number}-{short-kebab-description}`
## Summary
<1-2 sentence overview of what this step accomplishes>
## Performance expectations (if applicable)
<If this issue is performance-related, explicitly state:>
- **What** improvement is expected (e.g., "prefill throughput", "decode latency")
- **Where** in the pipeline (e.g., "attention softmax", "FFN projections")
- **How much** (e.g., "~10-35% total inference speedup" from roadmap/paper)
- **How to measure** (e.g., "bench_compare.py before/after on SmolLM-135M and Llama-3.2-1B")
- **Baseline**: run benchmarks BEFORE implementing
## Implementation plan
### 1. Create branch
`git checkout -b issue/{issue_number}-{short-kebab-description} main`
### 2. {First logical unit of work}
- Files to create/modify: ...
- What to implement: ...
- Key design decisions: ...
### 3. {Next unit}
...
### N. Tests
- Unit tests: ...
- Integration tests (if applicable): ...
### N+1. Update roadmap & README
- Mark step as `:white_check_mark:` in `docs/ROADMAP.md` - if covers topics from there
- Add News entry if significant milestone
## Key design decisions
- Decision 1: {choice} — {rationale}
- ...
## Open questions
- Any uncertainties to resolve during implementation
Plan guidelines
- Follow CLAUDE.md conventions (file-scoped namespaces,
readonly record struct, etc.)
- Reference specific line numbers in existing files when extending them.
- For SIMD work: plan scalar reference first, then SIMD optimization.
- For new kernel work: plan correctness tests against scalar reference.
- Keep the plan concrete — specify method signatures, file paths, data structures.
- If the issue body has acceptance criteria, map each criterion to a plan section.
Step 4 — Present plan
Use ExitPlanMode to present the plan for user approval. The user will review and either approve or request changes.
1---2name: plan-issue3description: Plan the implementation of a specific GitHub issue — reads the issue, relevant docs, and enters plan mode4---56# Plan Issue Skill78Plan the implementation of a specific GitHub issue. Reads the GitHub issue, relevant documentation, and enters plan mode for user approval before any code is written.910## Context1112Current branch: !`git branch --show-current`1314## Instructions1516### Step 1 — Identify the issue17181. Parse `$ARGUMENTS` for a step number. It may be provided as just an issue number (e.g., `27`, `#27`), or as `Issue 27`, or with an issue link (e.g., `https://github.com/kkokosa/dotLLM/issues/27`).192. If no issue is found in `$ARGUMENTS`, ask the user with `AskUserQuestion`.203. If an existing issue was found, fetch its details: `gh issue view <number> --json title,body,labels,comments`214. Use `AskUserQuestion` to confirm: "Plan implementation for Issue {issue}: {title}?"2223### Step 2 — Gather context24251. Read the relevant documentation listed in the roadmap step's "Key Files" or "Description" column - it may or may not contain relevant topics262. Check `CLAUDE.md` Documentation Index — read any docs referenced for the module being implemented.273. Read existing source files that will be modified or extended (from issue body).2829### Step 3 — Enter plan mode3031Use `EnterPlanMode` to enter planning mode. Then build a comprehensive implementation plan:3233#### Plan structure3435```markdown36# Step {N}: {Title}3738**Issue**: #{issue_number}39**Branch**: `issue/{issue_number}-{short-kebab-description}`4041## Summary42<1-2 sentence overview of what this step accomplishes>4344## Performance expectations (if applicable)45<If this issue is performance-related, explicitly state:>46- **What** improvement is expected (e.g., "prefill throughput", "decode latency")47- **Where** in the pipeline (e.g., "attention softmax", "FFN projections")48- **How much** (e.g., "~10-35% total inference speedup" from roadmap/paper)49- **How to measure** (e.g., "bench_compare.py before/after on SmolLM-135M and Llama-3.2-1B")50- **Baseline**: run benchmarks BEFORE implementing5152## Implementation plan5354### 1. Create branch55`git checkout -b issue/{issue_number}-{short-kebab-description} main`5657### 2. {First logical unit of work}58- Files to create/modify: ...59- What to implement: ...60- Key design decisions: ...6162### 3. {Next unit}63...6465### N. Tests66- Unit tests: ...67- Integration tests (if applicable): ...6869### N+1. Update roadmap & README70- Mark step as `:white_check_mark:` in `docs/ROADMAP.md` - if covers topics from there71- Add News entry if significant milestone7273## Key design decisions74- Decision 1: {choice} — {rationale}75- ...7677## Open questions78- Any uncertainties to resolve during implementation79```8081#### Plan guidelines8283- Follow CLAUDE.md conventions (file-scoped namespaces, `readonly record struct`, etc.)84- Reference specific line numbers in existing files when extending them.85- For SIMD work: plan scalar reference first, then SIMD optimization.86- For new kernel work: plan correctness tests against scalar reference.87- Keep the plan concrete — specify method signatures, file paths, data structures.88- If the issue body has acceptance criteria, map each criterion to a plan section.8990### Step 4 — Present plan9192Use `ExitPlanMode` to present the plan for user approval. The user will review and either approve or request changes.