From arn-code
This skill should be used when the user says "arness code plan", "arn-code-plan", "plan this", "write a plan", "create plan", "implementation plan", "plan feature", "plan the spec", "plan from spec", "generate plan", "arness code plan FEATURE_X", "plan the bugfix", "plan bugfix", "make a plan", or wants to generate an implementation plan from a Arness specification. The skill invokes the arn-code-feature-planner agent to generate the plan, presents it for review, and iterates on user feedback until approved. Produces a PLAN_PREVIEW file that feeds into /arn-code-save-plan.
npx claudepluginhub appsvortex/arness --plugin arn-codeThis skill uses the workspace's default tool permissions.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Generate an implementation plan from a Arness specification by invoking the arn-code-feature-planner agent. The plan is written to disk as a PLAN_PREVIEW file, presented to the user for review, and iteratively refined based on feedback until approved. The approved plan then feeds into /arn-code-save-plan for structuring into phases, tasks, and reports.
Pipeline position:
arn-code-init -> arn-code-feature-spec / arn-code-bug-spec -> **arn-code-plan** -> arn-code-save-plan -> arn-code-review-plan -> arn-code-taskify -> arn-code-execute-plan
If no ## Arness section exists in the project's CLAUDE.md, inform the user: "Arness is not configured for this project yet. Run /arn-planning to get started — it will set everything up automatically." Do not proceed without it.
Read the project's CLAUDE.md and extract the ## Arness section to find:
If ## Arness is not found, inform the user: "Arness is not configured for this project yet. Run /arn-planning to get started — it will set everything up automatically." Do not proceed.
The user may provide a spec name as an argument (e.g., "arness plan FEATURE_websocket-notifications" or "plan the spec websocket-notifications").
If an argument was provided:
<specs-dir>/<argument>.md (exact match)<specs-dir>/FEATURE_<argument>.md and <specs-dir>/BUGFIX_<argument>.md<specs-dir>/ that contain the argument text in their filenameIf no argument was provided:
.md files in <specs-dir>/<specs-dir>/. Run /arn-code-feature-spec or /arn-code-bug-spec to create one first."Read these files (skip any that don't exist):
<code-patterns-dir>/code-patterns.md<code-patterns-dir>/testing-patterns.md<code-patterns-dir>/architecture.md<code-patterns-dir>/ui-patterns.md (if it exists)<code-patterns-dir>/security-patterns.md (if it exists)If pattern documentation files are missing (no code-patterns.md, testing-patterns.md, or architecture.md in the Code patterns directory):
Inform the user: "This is the first time pattern documentation is being generated for this project. Analyzing your codebase to understand its patterns, conventions, and architecture. This is a one-time operation — future invocations will use the cached results."
Then invoke arn-code-codebase-analyzer (existing codebase) or arn-code-pattern-architect (greenfield) to generate fresh analysis. Write the results to the Code patterns directory.
Derive the spec name from the spec filename (strip prefix and extension):
FEATURE_websocket-notifications.md → websocket-notificationsBUGFIX_checkout-500.md → checkout-500FEATURE_F-001.1_user-auth.md → F-001.1_user-authThe output file path is: <plans-dir>/PLAN_PREVIEW_<spec-name>.md
Check for existing PLAN_PREVIEW: If a PLAN_PREVIEW file already exists at that path, inform the user: "A plan preview already exists for this spec: <path>. Would you like to regenerate it from scratch, or review the existing plan?" If review → skip to Step 5. If regenerate → proceed.
Spawn the arn-code-feature-planner agent via the Task tool with this context:
You are generating an implementation plan for the following specification.
**Specification:** <spec-name>
**Spec file:** <specs-dir>/<spec-filename>
--- SPECIFICATION CONTENT ---
[full spec file content]
--- END SPECIFICATION ---
--- CODEBASE PATTERNS ---
[code-patterns.md content]
[testing-patterns.md content]
[architecture.md content]
[ui-patterns.md content, if it exists]
[security-patterns.md content, if it exists]
--- END CODEBASE PATTERNS ---
**Output file:** <plans-dir>/PLAN_PREVIEW_<spec-name>.md
Generate a structured implementation plan and write it to the output file.
Include `Spec: <specs-dir>/<spec-filename>` near the top for arn-code-save-plan linkage.
Record the agent ID returned by the Task tool (needed for resume in Step 5b).
After the planner agent completes:
<plans-dir>/PLAN_PREVIEW_<spec-name>.mdIf the user approves (e.g., "looks good", "approved", "yes", "proceed"): → Go to Step 6.
If the user provides feedback (e.g., "split phase 2 into two phases", "add error handling for X", "remove the caching component"): → Go to Step 5b.
Try to resume the planner agent using the Task tool's resume parameter with the stored agent ID:
The user has reviewed the current plan and has the following feedback:
[user's feedback verbatim]
The current plan is at: <plans-dir>/PLAN_PREVIEW_<spec-name>.md
Read the current plan, apply the user's feedback, and write the updated plan
to the same file. Summarize what you changed.
If resume fails (API error, agent ID no longer valid):
Fall back to spawning a fresh arn-code-feature-planner agent with:
You are revising an existing implementation plan based on user feedback.
**Current plan file:** <plans-dir>/PLAN_PREVIEW_<spec-name>.md
**Spec file:** <specs-dir>/<spec-filename>
**User feedback:**
[user's feedback verbatim]
Read the current plan from the plan file, apply the user's feedback, and write
the updated plan to the same file. Summarize what you changed.
After the agent completes, return to Step 5 (read updated plan, present summary, ask for approval).
Confirm with the user:
"Plan approved and saved to <plans-dir>/PLAN_PREVIEW_<spec-name>.md.
Next step: Run /arn-code-save-plan to convert this plan into a structured project with phased implementation and testing plans."
## Arness config missing in CLAUDE.md — suggest running /arn-planning to get started./arn-code-feature-spec or /arn-code-bug-spec first.