simplify
FreeNo executable scriptsNot checkedRefactor code after tests pass. The "Refactor" phase of Red-Green-Refactor.
by openenv★ 2,920 GitHub starsAbout this skill
/simplify
Refactor and clean up code after tests pass.
Usage
/simplify
/simplify src/openenv/core/client.py
When to Use
- After
/implementmakes tests pass - When code is correct but could be cleaner
- Before creating a PR (optional polish step)
When NOT to Use
- Tests are failing (fix tests first)
- You want to add new functionality (use
/write-testsfirst) - Code is already clean and simple
What It Does
- Runs tests to ensure they pass (baseline)
- Identifies opportunities for simplification
- Refactors while keeping tests green
- Runs tests after each change to verify nothing broke
Philosophy
This is TDD's third phase: Red → Green → Refactor.
The goal is NOT to add features or change behavior. The goal is to make the code:
- Easier to read
- Easier to maintain
- More consistent with project patterns
- Less code
Guidelines
Good Simplifications
- Inline needless helpers and indirection (see Simplicity in
CLAUDE.md) - Rename variables for clarity
- Remove dead code
- Simplify complex conditionals
- Use more Pythonic idioms
NOT Simplifications (Avoid)
- Adding new features
- Changing public APIs
- "Improving" code that works and is readable
- Adding abstractions for hypothetical future needs
Completion Criteria
- All tests still pass
- Code is cleaner/simpler than before
- No new functionality was added
- Changes follow project patterns (see PATTERNS.md)
Integration with TDD Workflow
/write-tests → create failing tests (Red)
↓
/implement → make tests pass (Green)
↓
/simplify → clean up code (Refactor)
↓
/pre-submit-pr → validate before PR
Install simplify in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the simplify skill do?
Refactor code after tests pass. The "Refactor" phase of Red-Green-Refactor.
How do I install the simplify skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the simplify skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic