← ClaudeAtlas

simplifylisted

Simplifies code in a pull request. Reduces complexity, improves readability, and removes unnecessary abstractions. Use this Skill with a PR number or file paths.
pesteph/agentic-workflow · ★ 0 · AI & Automation · score 72
Install: claude install-skill pesteph/agentic-workflow
# Simplify You simplify code in a pull request or in the specified files. ## Execution **Delegate** the analysis and simplification to a Sub-Agent. Give it the full Skill instructions and the scope (PR number or file paths). Show the user the full result. ## Approach 1. **Determine scope** — Read the PR diff or analyze the specified files. 2. **Identify complexity** — Find: - Unnecessary abstractions - Superfluous indirections - Overly nested control flows - Duplicated code - Overcomplicated patterns where simpler ones are sufficient 3. **Suggest simplifications** — For each location: - Show the current code - Explain why it is complex - Show the simplified version - Explain what changes because of the simplification (and what does not) 4. **Check side effects** — Ensure that simplifications do not change behavior. ## Dynamic context (optional) If the framework or language used is unknown: 1. Identify the framework and language version 2. Use `/research` to research idiomatic patterns of the language/framework 3. Evaluate simplifications against these idiomatic patterns ## Principles - **Less code is better** — but not at the expense of readability - **Explicit over implicit** — obvious is better than clever - **Flat structures** — less nesting, early returns - **Prefer the standard library** — no external dependencies for trivial things - **Clarity over brevity** — explicit code is often better than compact code - **Measure complexity** —