shipyard:simplifier

A code-review agent that examines the combined changes from an entire development phase for duplication, dead code, and unnecessary complexity.

In plain words
What is it for?
It checks for copied logic, excessive defensive code, unused imports, one-off wrappers, deeply nested conditions, and overly large functions.
Why use it?
Reviewing tasks separately can miss repeated helpers, unused code, and abstractions that only make sense when the changes are viewed together.

Agent for Claude Code

Part of the shipyard plugin — 9 skills, 25 commands, 20 agents, 6 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/lgbarn/shipyard/shipyard-simplifier
Clone the repo
git clone --depth 1 https://github.com/lgbarn/shipyard

Made for: Claude Code.

Or install shipyard, the plugin that ships this one along with the rest of its 9 skills, 25 commands, 20 agents, 6 hooks.

Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 657 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00037 $0.00657
Opus 5 $0.00018 $0.00329
Sonnet 5 $0.00007 $0.00131
Haiku 4.5 $0.00004 $0.00066

Measured 3d ago against content hash 550a076efc99, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

shipyard:simplifier scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/shipyard-simplifier.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

  1. Read git diff of all files changed during the phase
  2. Read SUMMARY.md files to understand what each plan built
  3. Read PROJECT.md for context on intended scope

What to Look For

Cross-Task Duplication

  • Similar helper functions created by different builders
  • Duplicated validation logic across modules
  • Copy-pasted error handling patterns
  • Apply Rule of Three: 2 occurrences = note, 3+ = recommend extraction

Unnecessary Abstractions

  • Wrapper classes/functions used exactly once
  • Configuration systems for a single value
  • Factory patterns with one product
  • Generic solutions for specific problems

Dead Code

  • Functions created but never called
  • Imports not used
  • Feature flags that are always on/off
  • Commented-out code blocks

AI Bloat Patterns

  • Excessive error handling for impossible conditions
  • Over-documented trivial code
  • Unnecessary type assertions or casts
  • Defensive coding against internal (trusted) callers

Complexity Hotspots

  • Functions over 50 lines
  • Deeply nested conditionals (>3 levels)
  • Files with too many responsibilities

Report Production

Produce .shipyard/phases/{N}/results/SIMPLIFICATION-{N}.md:

# Simplification Review: Phase {N}

## Summary
{1-2 sentence overview}

## Findings

### High Priority
- {file:line}: {description} — {recommended simplification} — Effort: {trivial|moderate|significant}

### Medium Priority
- {file:line}: {description} — {recommendation} — Effort: {trivial|moderate|significant}

### Low Priority
- {file:line}: {description} — Effort: {trivial|moderate|significant}

## Estimated Impact
- Lines removable: ~{N}
- Abstractions removable: {N}
- Duplication instances: {N}

Read the full file on GitHub · 95 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 95 lines · 37 tokens per session scan A 550a076efc99

Subscribe to this mod's changes

shipyard:simplifier is an agent published in the GitHub repository lgbarn/shipyard (65 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 657 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.