code-simplification
/code-simplification
Simplifies recently changed or explicitly scoped code while preserving observable behavior, error semantics, side effects, ordering, and public contracts. Use for readability cleanup, dead-code removal, reducing nesting, eliminating redundant wrappers, or making an implementation easier to maintain. Not for architecture redesign, new behavior, speculative cleanup, or a refactor without an adequate safety net.
- Author
- thiientv ↗
- Repository
- godmode ↗
- Licence
- MIT
- Last repository change
- 26.08.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 26.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Simplifies recently changed or explicitly scoped code while preserving observable behavior, error semantics, side effects, ordering, and public contracts. Use for readability cleanup, dead-code removal, reducing nesting, eliminating redundant wrappers, or making an implementation easier to maintain. Not for architecture redesign, new behavior, speculative cleanup, or a refactor without an adequate safety net.
Original author description
Simplifies recently changed or explicitly scoped code while preserving observable behavior, error semantics, side effects, ordering, and public contracts. Use for readability cleanup, dead-code removal, reducing nesting, eliminating redundant wrappers, or making an implementation easier to maintain. Not for architecture redesign, new behavior, speculative cleanup, or a refactor without an adequate safety net.
How it works
- Establish the invariant
- Find earned simplifications
- Change incrementally
- Completion condition
SKILL.md preview
--- name: code-simplification description: >- Simplifies recently changed or explicitly scoped code while preserving observable behavior, error semantics, side effects, ordering, and public contracts. Use for readability cleanup, dead-code removal, reducing nesting, eliminating redundant wrappers, or making an implementation easier to maintain. Not for architecture redesign, new behavior, speculative cleanup, or a refactor without an adequate safety net. --- # Code Simplification Optimize comprehension and locality, not line count or personal style. ## Establish the invariant Identify callers, outputs, errors, side effects, ordering, performance-sensitive behavior, and tests. Read history or comments when a strange construct may be a compatibility fence. If behavior is unclear, stop and use `codebase-orientation` or `root-cause-debugging` before editing. ## Find earned simplifications Prefer concrete signals: duplicated policy, deep conditional nesting, stale branches, misleading names, pass-through wrappers, abstractions with no current variation, repeated conversions, and comments that restate code. Preserve abstractions that own policy, isolate volatility, or provide a real test seam. Use [simplification-checks.md](references/simplification-checks.md) to classify each candidate. ## Change incrementally 1. Make one coherent simplification. 2. Run focused behavior proof without weakening existing assertions. 3. Inspect the diff for hidden contract or error changes. 4. Continue only while each step improves comprehension. Use a codemod or AST-aware transformation for large mechanical rewrites. Keep feature work and broad cleanup separate unless the simplification is required to implement the authorized behavior safely. ## Completion condition Behavioral proof passes unchanged, the diff stays inside the stated scope, no error handling or compatibility path was accidentally removed, and the result is demonstrably easier to understand in its local codebase context.
Files in this package (3)
- SKILL.md 2 KB
- agents/openai.yaml 1 KB
- references/simplification-checks.md 1 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · thiientv/godmode | 90 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| FrancoStino/opencode-skills-collection | 100 | MIT |
| lucasouzadev/agent-kit-skill | 100 | MIT |
| sanity-io/sanity | 100 | MIT |
| iuliandita/skills | 100 | MIT |
| sickn33/agentic-awesome-skills | 100 | MIT |
| gosuda/dalcom-skills | 100 | Apache-2.0 |
| rafidone/agent-skills | 100 | MIT |
Database snapshot: 13.11.2026 · package version da5b8379b96b (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100code-simplify
Use when code needs simplification — recently modified code by default, or a specified scope. - 100code-simplifier
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise. This skill should be used when code-quality checks pass but the code would benefit from structural cleanup… - 100simplify-code
Use to simplify recently modified code and human-facing docs while preserving behavior and stated facts. - 90simplify-python
Simplify recently written or edited Python for readability without changing behavior. Use for cleanup, idiomatic rewrites, flatter control flow, and trimming redundant code or docstrings. Not for performance tuning or behavior-changing redesign. - 100code-simplifier
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Analyzes recently modified code across three dimensions - code reuse, code quality, and efficiency - and provides actionable improvement suggestions. This skill should… - 90refactor
Use when simplifying or restructuring existing code while preserving observable behavior and staying within an agreed scope.