Skip to content
Development
Skill

/arn-code-batch-simplify

This skill should be used when the user says "batch simplify", "cross-feature simplify", "batch simplification", "simplify all features", "cross-feature quality pass", "batch code cleanup", "consolidate across features", "deduplicate across features", "cleanup after batch

From plugin
arness
3590 skills48 agents

Claude Code

$ npx -y skills add AppsVortex/arness --skill arn-code-batch-simplify --agent claude-code

SKILL.md

arn-code-batch-simplify.SKILL.md
name: arn-code-batch-simplify
description: >-
  This skill should be used when the user says "batch simplify", "cross-feature simplify",
  "batch simplification", "simplify all features", "cross-feature quality pass",
  "batch code cleanup", "consolidate across features", "deduplicate across features",
  "cleanup after batch merge", "cross-feature deduplication",
  "arness batch simplify", "arn-code-batch-simplify", "simplify merged features",
  "post-merge simplify", "find cross-feature duplication", or wants to run a
  post-merge quality pass that finds duplication and consolidation opportunities
  across independently implemented features. This requires merged features in
  .arness/plans/ — run arn-code-batch-merge first if none are merged.
version: 1.0.0

Arness Batch Simplify

Post-merge cross-feature quality pass that finds duplication and consolidation opportunities across independently implemented features. Uses the same 3-reviewer pattern as regular simplify but with cross-feature context so reviewers can identify duplicated utilities, inconsistent patterns, and shared logic that emerged from parallel development.

This is an execution skill. It runs in normal conversation (NOT plan mode).

Pipeline position:

arn-code-batch-merge -> **arn-code-batch-simplify** -> (optional: review-implementation -> document-project -> ship)

Prerequisites

If no `## Arness` section exists in the project's CLAUDE.md, inform the user: "Arness is not configured for this project yet. Run `/arn-implementing` to get started — it will set everything up automatically." Do not proceed without it.

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** (default: `.arness/plans`)
  • **Code patterns** path (default: `.arness`)
  • **Template path** (default: `.arness/templates`)

Hold these values for the remainder of the workflow.

---

Step 1: Load Pattern Documentation

Load pattern documentation from the code patterns directory:

1. `code-patterns.md` (required) 2. `testing-patterns.md` (required) 3. `architecture.md` (required) 4. `ui-patterns.md` (if it exists) 5. `security-patterns.md` (if it exists)

If any required pattern doc is missing, invoke the `arn-code-codebase-analyzer` agent to generate fresh analysis. If the analyzer is unavailable, suggest running `/arn-implementing` to get started.

Hold all loaded pattern documentation for use throughout the workflow.

---

Step 2: Collect Batch Scope

Scan the plans directory for `CHANGE_RECORD.json` files across all feature subdirectories:

1. For each `CHANGE_RECORD.json` found, check:

  • `commitHash` is populated (feature was committed)
  • The feature has been merged — check `gh pr view` if `nextSteps` contains a PR URL, or verify the feature branch was merged into main via `git branch --merged main`

2. For each merged feature's `CHANGE_RECORD.json`, collect:

  • `filesModified` — files that were changed
  • `filesCreated` — files that were added
  • `projectName` — the feature name
  • `ceremonyTier` — the ceremony level used
  • `changePath` — path to the feature's plan directory

3. Build the **unified file list**: union of all `filesModified` + `filesCreated` across all merged features, deduplicated. Exclude files that no longer exist on disk (verify with `test -f`).

4. Build the **overlap map**: for each file that appears in 2+ features, record which features touch it. These are priority review targets.

**Exit conditions:**

  • If zero merged features found: inform the user "No recently merged batch features found. Run `/arn-code-batch-merge` first." and exit.
  • If the unified file list is empty: inform the user "No files to review — all features were merged but produced no file changes." and exit.

---

Step 3: Present Scope

Display the batch scope summary:

Cross-Feature Simplification Scope:

| Feature | Tier | Files |
|---------|------|-------|
| F-003 Auth | thorough | 12 |
| F-005 API | standard | 5 |
| F-008 Settings | thorough | 8 |

Total unique files: [N] (across [M] features)
Files touched by 2+ features: [K] (priority review)

Ask (using `AskUserQuestion`): **"Proceed with cross-feature simplification?"**

1. "Yes" (Recommended) 2. "Skip" — exit

If the user selects "Skip", exit gracefully.

---

Step 4: Dispatch Parallel Reviewers

Read `${CLAUDE_PLUGIN_ROOT}/skills/arn-code-batch-simplify/references/cross-feature-prompts.md` for the extended reviewer prompt templates.

Build the `{cross_feature_context}` block from the data collected in Step 2 — listing each feature's name, its files, and its change record path.

Dispatch three Agent tool calls **in a single message** so they run in parallel. Each call passes the model from `.arness/agent-models/code.md` (look up `arn-code-simplify-reviewer`) as the `model` parameter (see `${CLAUDE_PLUGIN_ROOT}/skills/arn-code-ensure-config/references/ensure-config.md` "Dispatch convention" for fallback behavior). The three reviewers share the same synthetic name — apply the multi-agent rule by passing the looked-up value to each call independently. Note: `arn-code-simplify-reviewer` is shared with `arn-code-simplify` since both skills perform the same conceptual review work.

1. **Code Reuse Reviewer** — fill the cross-feature-prompts.md template with the file list, pattern documentation, and cross-feature context. Instruct the agent to focus on duplicated logic, missed utilities, and copy-paste patterns, with special attention to utilities created independently by different features.

2. **Code Quality Reviewer** — fill the template. Instruct the agent to focus on unnecessary complexity, dead code, unclear naming, and overly nested logic, with special attention to inconsistent approaches to the same pattern across features.

3. **Efficiency Reviewer** — fill the template. Instruct the

Read more
@appsvortex
Ships witharness

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.

3590 skills48 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
35
Star history of AppsVortex/arness on GitHub, a chart by star-history.com

Other skills on arness.

arn-assessing

arn-assessing

This skill should be used when the user says "assessing", "arness assessing", "assess", "assess codebase", "technical review",…

@appsvortex@appsvortexInstall Skill
arn-code-assess

arn-code-assess

This skill should be used when the user says "arness code assess", "arn-code-assess", "tech debt audit", "assess the project", or…

@appsvortex@appsvortexInstall Skill
arn-code-batch-cve-fix

arn-code-batch-cve-fix

This skill should be used when the user says "fix CVEs", "patch vulnerabilities", "apply security patches", "batch CVE fix",…

@appsvortex@appsvortexInstall Skill
arn-code-batch-cve-scan

arn-code-batch-cve-sca…

This skill should be used when the user says "scan for CVEs", "CVE scan", "check for vulnerabilities", "dependabot triage",…

@appsvortex@appsvortexInstall Skill
arn-code-batch-implement

arn-code-batch-impleme…

This skill should be used when the user says "batch implement", "implement all", "batch execution", "implement all features",…

@appsvortex@appsvortexInstall Skill
arn-code-batch-merge

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…

@appsvortex@appsvortexInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about arn-code-batch-simplify.

Which coding agents can use arn-code-batch-simplify?
arn-code-batch-simplify installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.