simplify
Skill by huggingface
Refactors and cleans up code after tests pass, as the Refactor step of Red-Green-Refactor. It is for developers who want cleaner code without changing behavior.
Install simplify
Built from the published package, never by AI.
git clone --depth 1 https://github.com/huggingface/OpenEnv /tmp/OpenEnv && mkdir -p ~/.claude/skills && cp -r /tmp/OpenEnv/.claude/skills/simplify ~/.claude/skills/simplifyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/huggingface/OpenEnv /tmp/OpenEnv && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/OpenEnv/.claude/skills/simplify ~/.gemini/antigravity-cli/skills/simplifyAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The simplify skill is a Refactor step for code that already works. It runs the test suite first to set a baseline, then looks for ways to simplify the code. Each change is followed by another test run to confirm nothing broke.
The goal is to make code easier to read and maintain, more consistent with project patterns, and smaller. Good changes include inlining needless helpers, renaming variables for clarity, removing dead code, simplifying complex conditionals, and using more Pythonic idioms. The skill is meant for developers using a TDD workflow, running after /implement and before /pre-submit-pr. It should not be used when tests are failing, and it does not add features or change public APIs.
Written from the project's SKILL.md and checked against it.
What it can do
- Baseline test runRuns tests first to confirm they pass before any changes are made.
- Simplification scanIdentifies opportunities to simplify the code.
- Test-guarded refactoringRefactors while keeping tests green and reruns them after each change.
- Optional file targetCan be pointed at a specific file, such as src/openenv/core/client.py.
Try asking
- /simplify src/openenv/core/client.py
- Simplify this module now that the tests pass, without changing behavior.
- Remove dead code and inline needless helpers in this file, keeping tests green.
Good to know
- Not for use when tests are failing; fix the tests first.
- Does not add new functionality or change public APIs.
- Does not change code that works and is already readable.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/simplify/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md2 KB
Alternatives to simplify
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
simplify: common questions
When should I run simplify?
The source says to run it after /implement makes tests pass, or before creating a PR as an optional polish step. It is not meant for code that is already clean and simple.
Does simplify change how my code behaves?
The source says the goal is not to add features or change behavior. Tests are run before and after each change to verify nothing broke.
Can I run simplify on one file?
Yes. The usage section shows /simplify followed by a file path, such as src/openenv/core/client.py.
How do I install simplify?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is simplify free?
The code is published under the BSD-3-Clause licence. The service it connects to may have its own pricing.
Is simplify safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to simplify?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
