Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Simplification Pass

ASecurity

Removes complexity that is not paying for itself: dead code, needless abstraction, duplicated logic, and configuration nobody sets. Use when code is harder to read than the problem is hard, before extending a messy area, or when a diff can be made smaller without losing behavior. Never changes behavior.

9 stars
0 votes
0 copies
0 views
Added 9/27/2026
ai-agentsgocode-reviewgit

Security Analysis

A100/100

Scanned 9/27/2026

Install to Claude Code

$npx -y skills add khuynh22/agent-dev-team --skill simplification-pass --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Simplification Pass?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Simplification Pass
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/khuynh22-simplification-pass/badge)](https://www.skillsdirectory.com/skills/khuynh22-simplification-pass)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: simplification-pass
description: Removes complexity that is not paying for itself: dead code, needless abstraction, duplicated logic, and configuration nobody sets. Use when code is harder to read than the problem is hard, before extending a messy area, or when a diff can be made smaller without losing behavior. Never changes behavior.
license: MIT
metadata:
  phase: review
  owners: [senior-engineer, code-reviewer]
  version: "0.1.0"
---

# Simplification Pass

The goal is less code doing the same thing, verified by the same tests passing unchanged.
If the tests need editing, it was a behavior change, not a simplification.

## Preconditions

- Tests exist and pass before you start. Quote the run.
- The tests actually cover the behavior you are about to move. If they do not, write them
  first; simplification without a safety net is rewriting.
- This is its own commit, separate from any feature work.

## What to look for, in order of payoff

1. **Dead code.** Unreferenced functions, unreachable branches, a flag that is always the
   same value, a parameter every caller passes identically. Delete it; git remembers.

2. **Abstraction with one implementation.** An interface with a single implementer, a
   factory that constructs one type, a strategy pattern with one strategy. It was built for
   a second case that never arrived.

3. **Indirection that does not decide anything.** A wrapper that forwards, a config value
   nobody sets, a layer that only renames its arguments.

4. **Duplicated logic that has drifted.** Two copies that are slightly different is worse
   than two copies that are identical, because now nobody knows which is correct. Find out
   which is right before merging them; the difference may be a bug fix.

5. **Nesting.** Guard clauses and early returns flatten most deep conditionals. Three
   levels is usually one extraction away from one.

6. **Comments compensating for names.** Rename, then delete the comment.

7. **Options nobody uses.** Every flag doubles the state space. Remove the ones with one
   real value.

## Chesterton's fence

Before deleting something odd, find out why it is there. Two minutes:

- `git log -S` for the line, and read the commit message.
- Search for callers, including in tests, config, and other languages.
- Look for a comment or issue reference nearby.

If you find a reason, leave it and add the missing comment. If you find nothing after
looking, delete it and say in the commit message that you looked.

## What is not simplification

- Renaming everything to your preferred convention.
- Replacing a clear loop with a dense one-liner. Shorter is not simpler.
- Introducing a new abstraction to remove two lines of duplication. Two similar things are
  usually just two things.
- Changing behavior "because the old behavior looked wrong". That is a bug report, not a
  refactor.

Duplication is cheaper than the wrong abstraction. Wait for the third occurrence.

## Process

1. Run the tests. Quote the green run.
2. Make one kind of simplification. One commit.
3. Run the tests. They must pass **unchanged**.
4. Repeat.
5. Report the net line change and what was removed.

## Verification

- The tests are byte-for-byte unchanged and still pass.
- The diff removes more than it adds, or the addition is a name that removed a comment.
- No behavior changed. If any did, split it into its own commit with its own test.
- Anything deleted was checked against callers first.

## Red flags

| Thought | Reality |
|---------|---------|
| "I had to update a test" | Then it was a behavior change. Split it out. |
| "This abstraction will be useful later" | It has one implementation today. Delete it; adding it back is cheap. |
| "These two functions are similar, I'll merge them" | Find out why they differ first. The difference may be a fix. |
| "I do not know why this line is here, so it is dead" | Look. Two minutes of git history beats a regression. |
| "I'll simplify while adding the feature" | Separate commits, or the review is impossible. |
| "Shorter is simpler" | Not if it takes longer to read. Optimise for the reader. |

Attribution

khuynh22khuynh22
View sourceMore from khuynh22 →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

694821 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →