code-simplification
Simplifies code for clarity without changing behavior.
Skill by v1truv1us
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/v1truv1us-code-simplification
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/code-simplification
What's inside
- Skill name
code-simplification- Description
- Simplifies code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be.
- License
- MIT
- Instructions
- 99 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Code Simplification Adapted from `addyosmani/agent-skills` (MIT), commit `82ceff41ed4d3c644e3dcca8a0514390b2911223`. ## Overview Simplify code by reducing complexity while preserving exact behavior. The goal is not fewer lines; it is faster comprehension, safer maintenance, and easier review. ## When to Use - After a feature works but feels heavier than necessary - During review when readability or duplication issues show up - When code has deep nesting, unclear names, or scattered logic - After a rushed implementation that now needs cleanup ## Core Rules ### Preserve Behavior Exactly Do not change outputs, side effects, ordering, or error behavior. If you are not sure a simplification is behavior-preserving, stop and gather more context first. ### Follow Project Conventions Simplification should make code more consistent with the repository, not more consistent with personal taste. ### Prefer Clarity Over Cleverness Avoid dense ternaries, over-generalized abstractions, and compressed logic that requires a second reading. ### Scope to What Changed Default to simplifying the code you are already touching. Avoid unrelated cleanup unless explicitly asked. ## Simplification Process ### Step 1: Understand Before Changing Apply Chesterton's Fence. - What is this code responsible for? - Why might it have been written this way? - What tests define its current behavior? ### Step 2: Identify the Simplification Look for: - deep nesting - long functions with mixed responsibilities - duplicate logic - generic or misleading names - wrappers or abstractions that add no value ### Step 3: Apply Small Changes Make one simplification at a time and verify after each one. - simplify the control flow - extract a well-named helper - inline an unnecessary wrapper - remove dead code only when you understand it ### Step 4: Re-evaluate the Whole After the refactor, ask whether a new teammate would understand the new version faster than the old one. ## Common Rationalizations | Rationalization | Reality | |---|---| | "Fewer lines is always simpler" | A dense one-liner can be harder to understand than a clear five-line block. | | "I will simplify this unrelated code while I am here" | Drive-by refactors create noisy diffs and hidden regression risk. | | "This abstraction might be useful later" | Speculative abstractions are complexity without current value. | ## Red Flags - Tests need to change just to preserve the simplification - Error handling disappears because it looks noisy - Renames follow personal taste instead of repo conventions - The simplified version is harder to review than the original ## Verification - [ ] Existing tests still pass without semantic changes - [ ] Build succeeds - [ ] No error handling was weakened - [ ] Diff stays focused on the targeted simplification ## Anti-Rationalization Table | Excuse | Counter | |--------|---------| | "Fewer lines is always simpler" | A dense one-liner can be harder to understand than a clear five-line block. | | "I'll simplify this unrelated code while I'm here" | Drive-by refactors create noisy diffs and hidden regression risk. | | "This abstraction might be useful later" | Speculative abstractions are complexity without current value. | | "The code works, why touch it" | Working code that is hard to understand is a maintenance liability. | | "I'll add tests after simplifying" | Simplification without tests risks silently changing behavior. Tests first. |
From v1truv1us/ai-eng-system, MIT.
More from v1truv1us/ai-eng-system
- 0.587score
browser-testing-with-devtools
v1truv1us
Chrome DevTools for live runtime data - DOM inspection, console logs, network traces, performance profiling.
SkillBFreshness: B★ 8Claude Code +9 - 0.587score
ci-cd-and-automation
v1truv1us
Shift Left, Faster is Safer, feature flags, quality gate pipelines, failure feedback loops.
SkillBFreshness: B★ 8Claude Code +9 - 0.587score
api-and-interface-design
v1truv1us
Contract-first design, Hyrum's Law, One-Version Rule, error semantics, boundary validation.
SkillBFreshness: B★ 8Claude Code +9 - 0.587score
comprehensive-research
v1truv1us
Multi-phase research orchestration for thorough codebase, documentation, and external knowledge investigation.
SkillBFreshness: B★ 8Claude Code +9 - 0.587score
context-budget
v1truv1us
Context window management for AI agents.
SkillBFreshness: B★ 8Claude Code +9 - 0.587score
context-engineering
v1truv1us
Feed agents the right information at the right time.
SkillBFreshness: B★ 8Claude Code +9 - 0.587score
continuous-learning-v2
v1truv1us
Instinct-based learning system with confidence scoring, import/export, and evolution into skills.
SkillBFreshness: B★ 8Claude Code +9 - 0.587score
coolify-deploy
v1truv1us
Deploy applications to Coolify self-hosting platform.
SkillBFreshness: B★ 8Claude Code +9 - 0.584score
simplify
v1truv1us
Review recently changed files for code reuse, quality, and efficiency issues, then fix them.
SkillBFreshness: B★ 8Claude Code +9 - 0.584score
content-optimization
v1truv1us
Enhance any content type using research-backed techniques.
SkillBFreshness: B★ 8Claude Code +9 - 0.583score
cursor-sdk
v1truv1us
Guide building apps, scripts, CI pipelines, and automations with the Cursor TypeScript SDK (`@cursor/sdk`).
SkillBFreshness: B★ 8Claude Code +9 - 0.581score
check-agent-compatibility
v1truv1us
Run the full repository compatibility pass: scanner score, startup path, validation loop, and docs reliability.
SkillBFreshness: B★ 8Claude Code +9
Signals
- Stars
- 8
- Forks
- 2
- Open issues
- 0
- Last commit (this folder)
- May 24, 2026 (5 months ago)
- Last release
- Aug 9, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/v1truv1us/ai-eng-system
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from v1truv1us
- 0.587score
ci-cd-and-automation
v1truv1us
Shift Left, Faster is Safer, feature flags, quality gate pipelines, failure feedback loops.
SkillBFreshness: B★ 8Claude Code +9 - 0.587score
api-and-interface-design
v1truv1us
Contract-first design, Hyrum's Law, One-Version Rule, error semantics, boundary validation.
SkillBFreshness: B★ 8Claude Code +9 - 0.587score
comprehensive-research
v1truv1us
Multi-phase research orchestration for thorough codebase, documentation, and external knowledge investigation.
SkillBFreshness: B★ 8Claude Code +9 - 0.587score
context-budget
v1truv1us
Context window management for AI agents.
SkillBFreshness: B★ 8Claude Code +9 - 0.587score
context-engineering
v1truv1us
Feed agents the right information at the right time.
SkillBFreshness: B★ 8Claude Code +9 - 0.587score
browser-testing-with-devtools
v1truv1us
Chrome DevTools for live runtime data - DOM inspection, console logs, network traces, performance profiling.
SkillBFreshness: B★ 8Claude Code +9
Cite this page
code-simplification skill. Agent Mart. https://agentmart.dev/skills/v1truv1us-code-simplification (last updated 2026-10-24)