skills/plan-feature/SKILL.md
Use when creating a comprehensive implementation plan for a new feature including codebase analysis, API research, and parallel execution strategy
npx skillsauth add giladresisi/ai-dev-env plan-featureInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
DO NOT EXECUTE THE PLAN AFTER CREATING IT.
After the plan is created:
/execute .agents/plans/[feature-name].mdExecution agent rules (include verbatim in every generated plan):
git add or git commit🚨 WRITE PLAN TO FILE ONLY — NEVER TO CLI 🚨
.agents/plans/[feature-name].md using Write/Edit toolBefore writing anything, check if PROGRESS.md already has a relevant section for this feature — especially if this skill was triggered by referencing something in PROGRESS.md (e.g. the user pointed at a section, or the feature description matches an existing entry).
If a relevant section already exists: update its top fields only (status, add Plan File line). Do NOT create a duplicate entry.
**Status**: ✅ Planned
**Plan File**: .agents/plans/[feature-name].md
If no relevant section exists: add a new entry using the template below.
## Feature: [Feature Name]
### Planning Phase
**Status**: In Progress
**Started**: [date]
**Plan File**: .agents/plans/[feature-name].md
Use Write if PROGRESS.md doesn't exist, Edit if it does.
Check for similar features first. If found, use AskUserQuestion before proceeding.
Check existing patterns for: integrations, endpoints, auth, schema, tools, UI components.
Gather in parallel:
Use AskUserQuestion if ANY of these exist:
Default to existing patterns. Document any divergences. Design for parallel execution.
APIs (if applicable): Run /explore-api [name] for each.
Verify: features available, version compatible, rate limits sufficient, ToS permits use, auth accessible, no blockers.
Dependencies: Test in isolated venv first. Check conflict tree with pipdeptree/npm list. Document compatible versions and known conflicts.
Technology: Latest versions, official docs (with section anchors), common gotchas, breaking changes.
Think through:
Read ~/.claude/skills/plan-feature/PLAN_TEMPLATE.md and use it as the structure for the output plan file, filling every section with feature-specific content.
Output: .agents/plans/{kebab-case-name}.md
Length: 500–700 lines — verify with wc -l and adjust
Run automatically after plan is written. No user input needed unless a gap can't be resolved.
Side-effecting test policy — set the plan's VALIDATION COMMANDS "side-effecting test policy" directive. Full-suite runs (baseline + validation) SKIP tests with machine-wide side effects by default, in two categories: (1) live external connections (broker/IB/market-data/live network) — open real connections that disrupt a live process and hang; and (2) process-lifecycle / machine-wide process management — tests that start/stop/kill OS processes (orchestrators, daemons, supervisors) or run a machine-wide process scan/terminate, which can kill a live process in another worktree (e.g. a test calling an orchestrator's run()/startup that terminates every matching process). Always provide the default-skip deselect command; only opt these tests in (with exact paths/markers) when genuinely required and no live instance of the affected resource/process is running. (Also: such tests should patch/mock their kill path — flag it if they don't.)
Script deliverables check — if the plan introduces or modifies a runnable script (demo runner, CLI, orchestrator), verify the plan includes ALL of the following criteria (distinct from scenario-logic criteria):
<script> completes the setup phase without raising an exception." (runnability — unit tests do not substitute for this)claude as a subprocess: "The subprocess environment strips CLAUDECODE (and any other launcher sentinels) before invoking claude." (env isolation)These criteria test that the script runs at all, before any criteria about what it reports. A script can be entirely broken (encoding errors, misconfigured subprocesses) while every unit test passes — they are separate surfaces requiring separate validation.
test -f .agents/plans/[feature-name].md && echo "✅ Plan exists" || echo "❌ Missing"
wc -l .agents/plans/[feature-name].md
Output to CLI after saving the plan. Do NOT include plan content in this message.
✅ Plan Created
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 Feature: [name]
📄 Plan: .agents/plans/[feature-name].md
📏 Lines: [n] (target: 500–700)
⚡ Complexity: [Low/Medium/High]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 [2–3 sentence summary of feature and approach]
⚡ Parallel Execution:
- Waves: [#] | Concurrent tasks: [#] | Max speedup: [x]x | Sequential: [#]
🧪 Coverage Summary:
- New code paths: [#]/[#] covered ([XX]%)
- Existing code re-validated: [#] areas, [#] tests added/updated
- Automated: [#] ([XX]%) — [tools used]
- Manual: [#] ([XX]%) — [one-line reason each, or "None"]
- Gaps remaining: [# or "None"] — [reason for each, if any]
⚠️ Risks: [2–4 with mitigations]
🔍 Patterns used: [similar features referenced, or "None — new pattern"]
📊 Tasks: [#] total ([x] parallel, [y] sequential)
🎯 Confidence: [x]/10 for one-pass success
👥 Optimal team: [#] agents
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 /execute .agents/plans/[feature-name].md
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
After the Final Report has been output above (giving the user a chance to see the plan), invoke the acceptance-criteria-define skill if it is available in this system:
skill: "acceptance-criteria-define"
context: "<absolute path to the plan file just created>"
Pass the plan file path as the context. The skill will read the plan, derive proposed acceptance criteria, confirm them with the user, and write the agreed criteria into the plan file.
If the acceptance-criteria-define skill is not available: skip this phase and proceed directly to STOP below.
Do NOT execute the plan after this phase completes.
STOP — DO NOT EXECUTE
testing
Creates a new git worktree in the auto-co-trader project for any purpose — optimization, regression, backtesting, brainstorming, etc. Use this skill when the user wants to CREATE or SET UP a new worktree — phrases like "prepare a new worktree", "set up a worktree", "create a new worktree for <purpose>", "prep a new worktree", "new worktree for autoresearch", "prepare optimization from [strategy]", or "create a worktree using [strategy]". Do NOT use this skill when the user is already in a worktree and wants to start/run/begin a task — that is handled by the relevant program file in the worktree session.
development
Use when running comprehensive project validation including tests, type checking, linting, API connectivity checks, and server startup verification
research
Use when performing a meta-level analysis of plan adherence after implementation to identify process improvements and suggest CLAUDE.md updates
documentation
Use when investigating a GitHub issue to identify root cause, assess impact, and create a fix strategy document