simplify

Solid

Reduce complexity and simplify code

AI & Automation 148 stars 60 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 82/100

Stars 20%
72
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
62
Issue Health 10%
50
License 10%
100
Description 5%
100

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