code-simplify
Simplify code for clarity and maintainability — reduce complexity without changing behavior
- 0
- Installs
- —
- Rating
- —
- Success rate
- 1
- Files scanned
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 617216c712675bdc… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
code-simplify.md
Invoke the agent-skills:code-simplification skill.
Simplify recently changed code (or the specified scope) while preserving exact behavior:
- Read CLAUDE.md and study project conventions
- Identify the target code — recent changes unless a broader scope is specified
- Understand the code's purpose, callers, edge cases, and test coverage before touching it
- Scan for simplification opportunities:
- Deep nesting → guard clauses or extracted helpers
- Long functions → split by responsibility
- Nested ternaries → if/else or switch
- Generic names → descriptive names
- Duplicated logic → shared functions
- Dead code → remove after confirming
- Apply each simplification incrementally — run tests after each change
- Verify all tests pass, the build succeeds, and the diff is clean
If tests fail after a simplification, revert that change and reconsider. Use code-review-and-quality to review the result.
Files
1- code-simplify.md
71e9e8d38c1.0 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from addyosmani/agent-skills8
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.
Define and enforce this project's quality bar — interview, sane defaults, CONSTRAINTS.md
Break work into small verifiable tasks with acceptance criteria and dependency ordering
Conduct a five-axis code review — correctness, readability, architecture, security, performance
Run the pre-launch checklist via parallel fan-out to specialist personas, then synthesize a go/no-go decision
Start spec-driven development — write a structured specification before writing code
Run TDD workflow — write failing tests, implement, verify. For bugs, use the Prove-It pattern.
Run a web performance audit via the web-performance-auditor persona
Related knowledge skillsscan passed
Update CLAUDE.md with learnings from this session
Explain Stripe error codes and provide solutions with code examples
Creates Semgrep rules with test-first methodology
Generate only the hierarchical wiki structure (table of contents) as JSON for the current repository
Lists available Sanity skills and help topics.
Evaluate a plugin or skill for quality