byrondumaya-cmyk/garbage-truck-gps/simplify-code
Claude Code and agent skill by byrondumaya-cmyk/garbage-truck-gps
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Reduce complexity of over-engineered code. Identify unnecessary abstractions, remove dead code, flatten deep nesting, and simplify logic while preserving behavior.
Install
npx vskill@latest install byrondumaya-cmyk/garbage-truck-gps/simplify-codeSKILL.md
The same SKILL.md was published earlier as virahitvin8/crafty-gis/simplify-code.
Simplify Code — Reduce Unnecessary Complexity
The best code is the code you don't have to write. The second best is the code anyone can read.
Core Principle
Simplification Checklist
1. Unnecessary Abstractions
| Smell | Simplification | |
|---|---|---|
| Wrapper class that just delegates | Remove wrapper, use the inner class directly | |
| Factory that creates only one type | Replace with direct constructor | |
| Strategy pattern with one strategy | Replace with simple function | |
| Interface with one implementation | Remove interface, use the class | |
| Abstract class with one child | Merge into the child class | |
| Config object for 2 values | Use function parameters |
2. Dead Code
| Smell | Action | |
|---|---|---|
| Unused imports | Remove | |
| Unreachable branches | Remove (check tests first) | |
| Commented-out code | Remove (it's in git history) | |
| Unused variables/functions | Remove | |
| TODO comments older than 6 months | Remove or create issue | |
| Feature flags for launched features | Remove flag, keep the code |
3. Deep Nesting
4. Over-Parameterized Functions
5. Premature Optimization
| Smell | Simplification | |
|---|---|---|
| Custom cache for <100 items | Remove cache, measure first | |
| Memoization on cheap functions | Remove memo | |
| Lazy loading for small modules | Use direct import | |
| Complex state machine for 3 states | Use simple if/else or switch |
Simplification Protocol
Step 1: Identify Complexity
Step 2: Verify Understanding
Before simplifying, ensure you understand:
- What the code does (not what it looks like it does)
- Why it was written this way (maybe there's a reason)
- What tests cover it (simplification must not break tests)
Step 3: Simplify Incrementally
Step 4: Verify Behavior Preserved
When NOT to Simplify
| Situation | Why Keep Complexity | |
|---|---|---|
| Performance-critical hot path | Optimization may look complex but is necessary | |
| Required by framework/library | External constraints | |
| Explicitly requested pattern | User chose this architecture | |
| Will need extension soon | Abstraction prepares for known growth |
Ask first: "This pattern seems over-engineered. Should I simplify it, or is there a reason for the abstraction?"
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.ag-kit-backups/20260716-150636-737/.agents/skills/simplify-code/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/byrondumaya-cmyk/garbage-truck-gps/simplify-code)