simplify
SolidReduce complexity and simplify code
AI & Automation 148 stars
60 forks Updated today Apache-2.0
Install
Quality Score: 82/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Simplify
Reduce unnecessary complexity in code while preserving behavior.
## Instructions
1. Read the target code and understand its current behavior and test coverage.
2. Identify sources of unnecessary complexity:
- **Over-abstraction**: Layers of indirection that add no value (wrappers that just delegate, interfaces with one implementation).
- **Dead code**: Unused functions, unreachable branches, commented-out blocks, unused imports or variables.
- **Redundant logic**: Duplicate conditionals, unnecessary null checks after guaranteed initialization, double validation.
- **Verbose patterns**: Code that can be replaced with standard library functions, built-in language features, or simpler expressions.
- **Premature generalization**: Generic solutions for problems that only have one concrete case.
3. For each simplification:
- Explain what is being removed or simplified and why it is safe.
- Confirm that the behavior is preserved (no functional change).
4. Apply changes one at a time using edit_file.
5. Run the test suite after each change to verify no regressions.
6. If a test fails, revert the change immediately and move on.
7. Summarize what was simplified, lines removed, and test results.
Details
- Author
- prapaa-ai
- Repository
- prapaa-ai/agav
- Created
- 1 months ago
- Last Updated
- today
- Language
- TypeScript
- License
- Apache-2.0
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
simplify-code
Simplify recently changed or user-selected code while preserving observable behavior, public APIs, tests, and required safeguards. Use when asked to simplify, clean up, refactor for clarity, reduce nesting, remove duplication, or review an implementation for unnecessary complexity.
2 Updated yesterday
26zl AI & Automation Listed
simplify
Code simplification and refactoring
0 Updated 1 months ago
nhtera AI & Automation Listed
simplify
Code simplification for high-complexity files. Targets deep nesting, copy-paste patterns, and god functions.
19 Updated yesterday
epicsagas