/arn-code-batch-implement
This skill should be used when the user says "batch implement", "implement all", "batch execution", "implement all features", "parallel implement", "implement in parallel", "arness batch implement", "arn-code-batch-implement", "run batch implementation", "implement everything",
$ npx -y skills add AppsVortex/arness --skill arn-code-batch-implement --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/arn-code-batch-implement
Context preview
The summary Claude sees to decide when to auto-load this skill.
This skill should be used when the user says "batch implement", "implement all", "batch execution", "implement all features", "parallel implement", "implement in parallel", "arness batch implement", "arn-code-batch-implement", "run batch implementation", "implement everything",
SKILL.md
arn-code-batch-implement.SKILL.mdname: arn-code-batch-implement
description: >-
This skill should be used when the user says "batch implement", "implement all",
"batch execution", "implement all features", "parallel implement", "implement in parallel",
"arness batch implement", "arn-code-batch-implement", "run batch implementation",
"implement everything", "launch batch workers", or wants to spawn parallel
worktree-isolated background agents to implement multiple pending features simultaneously.
Each worker runs as a full independent session with all tools. This skill requires
pending plans in .arness/plans/ — run arn-code-batch-planning first if none exist.
version: 1.1.0
Arness Batch Implement
Orchestrate parallel worktree-isolated background agents to implement multiple features simultaneously. Each worker is a full independent session with all tools, operating in its own git worktree. The orchestrator (this skill) handles pre-flight validation, worker spawning, progress tracking, and handoff to batch-merge.
**Key architectural constraint:** This skill is a sequencer — it MUST NOT duplicate sub-skill logic. Workers handle all implementation details autonomously.
Pipeline position:
arn-code-batch-planning -> **arn-code-batch-implement** (pre-flight -> spawn workers -> track -> handoff) -> arn-code-batch-merge
Workflow
Step 0: Ensure Configuration
Read `${CLAUDE_PLUGIN_ROOT}/skills/arn-code-ensure-config/references/step-0-fast-path.md` and follow its instructions. Extract from `## Arness`:
- **Plans directory** -- base path where project plans are saved
- **Code patterns** -- path to the directory containing stored pattern documentation
- **Template path** -- path to the report template set (JSON templates)
Step 1: Pre-flight Validation
Read `${CLAUDE_PLUGIN_ROOT}/skills/arn-code-batch-implement/references/preflight-validation.md` and follow its procedure. The preflight reference handles scanning and returns a structured result. Based on that result:
If **zero pending plans found**: inform the user: "No pending plans found. Run `/arn-code-batch-planning` to plan features first." Exit.
If **Git is `no`** in `## Arness`: "Batch implementation requires git for worktree-based parallel execution. Run `/arn-implementing` to implement features one at a time instead." STOP.
If **gh/bkt auth not available** (based on Platform): warn that PRs cannot be created — workers will commit but skip PR creation.
If **uncommitted changes detected**: warn and suggest committing first. Ask (using `AskUserQuestion`):
> **Uncommitted changes detected. Commit or stash before launching batch?** > 1. Proceed anyway > 2. Cancel — I'll commit first
If Cancel, exit.
If **not on main/master**: plans should be on main (merged via the plans PR from batch-planning). Ask (using `AskUserQuestion`):
> **You're on branch [name], but plans should be on main. Checkout main?** > 1. Checkout main — run `git checkout main && git pull` > 2. Proceed on this branch — I know what I'm doing
If Checkout main: `git checkout main && git pull`. Continue. If Proceed: continue on current branch.
Run `git pull` to ensure main is up to date with the latest plans.
Step 2: Pre-flight Summary
Present the validation results as a table:
Batch Implementation Pre-flight:
| # | Feature | Tier | Sketch | Est. Files | Overlap Warning |
|---|---------|------|--------|------------|-----------------|
| 1 | ... | ... | ... | ... | ... |
Column values:
- **Sketch**: "ready" (manifest found with kept status), "recommended" (UI references but no sketch), "n/a" (no UI components)
- **Overlap Warning**: blank if none, or list of overlapping feature names
If file overlap detected between any features, show which features share files and note: "File overlap detected -- batch-merge will handle conflicts after implementation."
Show estimated context: "[N] features will be implemented in parallel, each as an independent session."
Inform the user about worktree location: "Workers run in pre-created worktrees at `.claude/worktrees/arn-batch-<slug>/` on branches `arn-batch/<slug>`. Worktrees are preserved until the corresponding PR is merged; `arn-code-batch-merge` cleans them up after each successful merge."
Step 3: Launch Confirmation
Ask (using `AskUserQuestion`):
> **Launch [N] parallel implementations?** > 1. Launch all > 2. Select subset > 3. Cancel
- **Launch all** -- proceed with all pending features.
- **Select subset** -- present a multi-select (using `AskUserQuestion` with `multiSelect: true`) listing all pending features by name. Proceed with selected features only.
- **Cancel** -- exit.
Step 4: Pre-create Worktrees and Spawn Workers
The Agent tool's built-in `isolation: "worktree"` has known silent-failure modes (see upstream issues anthropics/claude-code#27881 and #39886) where concurrent spawns can skip worktree creation entirely and run agents directly in the main checkout. To eliminate this risk, the orchestrator pre-creates every worktree itself via `git worktree add`, then spawns agents **without** `isolation` and passes the absolute worktree path in the prompt.
Read the worker instructions template from `${CLAUDE_PLUGIN_ROOT}/skills/arn-code-batch-implement/references/worker-instructions.md`.
Step 4a: Compute Worktree Slugs
For each selected feature, derive a slug from the feature name: lowercase, replace non-alphanumerics with `-`, collapse runs of `-`, trim leading/trailing `-`. Example: `Auth Service v2` → `auth-service-v2`.
**Empty-slug fallback:** If sanitization produces an empty string (feature name was entirely non-alphanumeric, e.g., emojis or punctuation), substitute `feature-<index>` where `<index>` is the feature's 1-based position in the batch. This keeps provisioning deterministic instead of silently failing downstream.
Capture the repo root once:
REPO="$(git rev-parse --show-toplevel)"
For each slug, resolve three possib
Read more
name: arn-code-batch-implement description: >- This skill should be used when the user says "batch implement", "implement all", "batch execution", "implement all features", "parallel implement", "implement in parallel", "arness batch implement", "arn-code-batch-implement", "run batch implementation", "implement everything", "launch batch workers", or wants to spawn parallel worktree-isolated background agents to implement multiple pending features simultaneously. Each worker runs as a full independent session with all tools. This skill requires pending plans in .arness/plans/ — run arn-code-batch-planning first if none exist. version: 1.1.0
Arness Batch Implement
Orchestrate parallel worktree-isolated background agents to implement multiple features simultaneously. Each worker is a full independent session with all tools, operating in its own git worktree. The orchestrator (this skill) handles pre-flight validation, worker spawning, progress tracking, and handoff to batch-merge.
**Key architectural constraint:** This skill is a sequencer — it MUST NOT duplicate sub-skill logic. Workers handle all implementation details autonomously.
Pipeline position:
arn-code-batch-planning -> **arn-code-batch-implement** (pre-flight -> spawn workers -> track -> handoff) -> arn-code-batch-merge
Workflow
Step 0: Ensure Configuration
Read `${CLAUDE_PLUGIN_ROOT}/skills/arn-code-ensure-config/references/step-0-fast-path.md` and follow its instructions. Extract from `## Arness`:
- **Plans directory** -- base path where project plans are saved
- **Code patterns** -- path to the directory containing stored pattern documentation
- **Template path** -- path to the report template set (JSON templates)
Step 1: Pre-flight Validation
Read `${CLAUDE_PLUGIN_ROOT}/skills/arn-code-batch-implement/references/preflight-validation.md` and follow its procedure. The preflight reference handles scanning and returns a structured result. Based on that result:
If **zero pending plans found**: inform the user: "No pending plans found. Run `/arn-code-batch-planning` to plan features first." Exit.
If **Git is `no`** in `## Arness`: "Batch implementation requires git for worktree-based parallel execution. Run `/arn-implementing` to implement features one at a time instead." STOP.
If **gh/bkt auth not available** (based on Platform): warn that PRs cannot be created — workers will commit but skip PR creation.
If **uncommitted changes detected**: warn and suggest committing first. Ask (using `AskUserQuestion`):
> **Uncommitted changes detected. Commit or stash before launching batch?** > 1. Proceed anyway > 2. Cancel — I'll commit first
If Cancel, exit.
If **not on main/master**: plans should be on main (merged via the plans PR from batch-planning). Ask (using `AskUserQuestion`):
> **You're on branch [name], but plans should be on main. Checkout main?** > 1. Checkout main — run `git checkout main && git pull` > 2. Proceed on this branch — I know what I'm doing
If Checkout main: `git checkout main && git pull`. Continue. If Proceed: continue on current branch.
Run `git pull` to ensure main is up to date with the latest plans.
Step 2: Pre-flight Summary
Present the validation results as a table:
Batch Implementation Pre-flight: | # | Feature | Tier | Sketch | Est. Files | Overlap Warning | |---|---------|------|--------|------------|-----------------| | 1 | ... | ... | ... | ... | ... |
Column values:
- **Sketch**: "ready" (manifest found with kept status), "recommended" (UI references but no sketch), "n/a" (no UI components)
- **Overlap Warning**: blank if none, or list of overlapping feature names
If file overlap detected between any features, show which features share files and note: "File overlap detected -- batch-merge will handle conflicts after implementation."
Show estimated context: "[N] features will be implemented in parallel, each as an independent session."
Inform the user about worktree location: "Workers run in pre-created worktrees at `.claude/worktrees/arn-batch-<slug>/` on branches `arn-batch/<slug>`. Worktrees are preserved until the corresponding PR is merged; `arn-code-batch-merge` cleans them up after each successful merge."
Step 3: Launch Confirmation
Ask (using `AskUserQuestion`):
> **Launch [N] parallel implementations?** > 1. Launch all > 2. Select subset > 3. Cancel
- **Launch all** -- proceed with all pending features.
- **Select subset** -- present a multi-select (using `AskUserQuestion` with `multiSelect: true`) listing all pending features by name. Proceed with selected features only.
- **Cancel** -- exit.
Step 4: Pre-create Worktrees and Spawn Workers
The Agent tool's built-in `isolation: "worktree"` has known silent-failure modes (see upstream issues anthropics/claude-code#27881 and #39886) where concurrent spawns can skip worktree creation entirely and run agents directly in the main checkout. To eliminate this risk, the orchestrator pre-creates every worktree itself via `git worktree add`, then spawns agents **without** `isolation` and passes the absolute worktree path in the prompt.
Read the worker instructions template from `${CLAUDE_PLUGIN_ROOT}/skills/arn-code-batch-implement/references/worker-instructions.md`.
Step 4a: Compute Worktree Slugs
For each selected feature, derive a slug from the feature name: lowercase, replace non-alphanumerics with `-`, collapse runs of `-`, trim leading/trailing `-`. Example: `Auth Service v2` → `auth-service-v2`.
**Empty-slug fallback:** If sanitization produces an empty string (feature name was entirely non-alphanumeric, e.g., emojis or punctuation), substitute `feature-<index>` where `<index>` is the feature's 1-based position in the batch. This keeps provisioning deterministic instead of silently failing downstream.
Capture the repo root once:
REPO="$(git rev-parse --show-toplevel)"
For each slug, resolve three possib
Showing the first part of this file.
Arness — H not required. Structured AI workflows for Claude Code. From first idea to production deploy. Seven entry commands. That's all you need to remember.
Repo: AppsVortex/arness
Other skills on arness.
- /arn-assessing
This skill should be used when the user says "assessing", "arness assessing", "assess", "assess codebase", "technical review", "codebase assessment", "find improvements", "what should I improve", "tech debt review", "pattern compliance check", "codebase health check",
Open skill - /arn-code-assess
This skill should be used when the user says "arness code assess", "arn-code-assess", "assess codebase", "technical review", "codebase assessment", "find improvements", "what should I improve", "tech debt review", "tech debt audit", "pattern compliance check", "codebase health
Open skill - /arn-code-batch-cve-fix
This skill should be used when the user says "fix CVEs", "patch vulnerabilities", "apply security patches", "resolve security advisories", "batch CVE fix", "patch dependencies", "fix security findings", "remediate CVEs", "apply CVE fixes", "batch fix vulnerabilities", "resolve
Open skill - /arn-code-batch-cve-scan
This skill should be used when the user says "scan for CVEs", "CVE scan", "check for vulnerabilities", "find vulnerabilities", "check security advisories", "dependabot triage", "dependabot scan", "scan dependencies for security issues", "audit dependencies", "vulnerability
Open skill - /arn-code-batch-merge
This skill should be used when the user says "batch merge", "merge batch", "arness batch merge", "arn-code-batch-merge", "merge all PRs", "merge batch PRs", "merge the batch", "merge implemented features", "batch merge PRs", "merge open PRs", "merge all feature PRs", "combine
Open skill - /arn-code-batch-planning
This skill should be used when the user says "batch planning", "batch plan", "arness batch planning", "arn-code-batch-planning", "plan multiple features", "plan all features", "plan unblocked features", "plan the backlog", "plan from backlog", "batch spec and plan", "plan next
Open skill

