Skills for Real Engineers. Straight from my .agents directory.
code-simplification
Agent skill fromaddyosmani/agent-skills
Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity. Use when asked to simplify, clean up, or reduce the nesting of a function or module that already works, even when the code is pasted inline and nothing else needs to change.
How to install code-simplification
npx skills add addyosmani/agent-skills# or add only this skill to Claude Code: copy the folder
skills/code-simplification/
# into
~/.claude/skills/code-simplification/ (all projects)
.claude/skills/code-simplification/ (one project)
1# Code Simplification23> Inspired by the [Claude Code Simplifier plugin](https://github.com/anthropics/claude-plugins-official/blob/main/plugins/code-simplifier/agents/code-simplifier.md). Adapted here as a model-agnostic, process-driven skill for any AI coding agent.45## Overview67Simplify code by reducing complexity while preserving exact behavior. The goal is not fewer lines — it's code that is easier to read, understand, modify, and debug. Every simplification must pass a simple test: "Would a new team member understand this faster than the original?"89## When to Use1011- After a feature is working and tests pass, but the implementation feels heavier than it needs to be12- During code review when readability or complexity issues are flagged13- When you encounter deeply nested logic, long functions, or unclear names14- When refactoring code written under time pressure15- When consolidating related logic scattered across files16- After merging changes that introduced duplication or inconsistency1718**When NOT to use:**1920- Code is already clean and readable — don't simplify for the sake of it21- You don't understand what the code does yet — comprehend before you simplify22- The code is performance-critical and the "simpler" version would be measurably slower23- You're about to rewrite the module entirely — simplifying throwaway code wastes effort2425## The Five Principles2627### 1. Preserve Behavior Exactly28…
Excerpt shown under the repository's MIT license.
More skills in agent-skills
- ▸api-and-interface-design
- ▸browser-testing-with-devtools
- ▸ci-cd-and-automation
- ▸code-review-and-quality
- ▸constraint-driven-development
- ▸context-engineering
- ▸debugging-and-error-recovery
- ▸deprecation-and-migration
- ▸documentation-and-adrs
- ▸doubt-driven-development
- ▸frontend-ui-engineering
- ▸git-workflow-and-versioning
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
