skills/code-simplifier/SKILL.md
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 be used when the user asks to "simplify code", "refine code", "clean up code", "improve code quality", or requests a simplification review of recent changes.
npx skillsauth add openhands/extensions code-simplifierInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Analyze recently modified code and suggest refinements that improve clarity, consistency, and maintainability - without changing what the code does. The review covers three complementary aspects:
AGENTS.md.By default, focus on recently modified code. Use git diff or the file list from the current PR/MR to determine the changed files. When the user specifies a different scope, follow their instruction:
src/auth.py" - review only the named filesutils/ folder" - review all files in that directoryWhen sub-agent capability is available, delegate each review aspect to a separate sub-agent for parallel, focused analysis:
references/code-reuse-review.md and analyze the changed files for duplication and consolidation opportunities.references/code-quality-review.md and analyze the changed files for clarity, naming, complexity, and standards compliance.references/efficiency-review.md and analyze the changed files for performance and resource usage issues.Each sub-agent should:
AGENTS.md at the repository root for project-specific coding conventionsAfter all sub-agents complete, synthesize their findings into a single consolidated report.
When sub-agents are not available, perform all three reviews sequentially:
references/code-reuse-review.md - review for duplication and reusereferences/code-quality-review.md - review for clarity and standardsreferences/efficiency-review.md - review for performance and resourcesApply the criteria and output format from each reference document.
AGENTS.md at the repository root (import ordering, naming, module structure, error handling, component patterns).if/else or switch for multiple conditions.Present the combined results from all three review aspects:
## Code Simplification Review
### Scope
[List of files reviewed and how scope was determined]
### Code Reuse
[Findings from the reuse review, using **[REUSE]** tags]
### Code Quality
[Findings from the quality review, using **[QUALITY]** tags]
### Efficiency
[Findings from the efficiency review, using **[EFFICIENCY]** tags]
### Summary
[Overall assessment: is the code in good shape, or does it need significant refinement?]
[Prioritized list of the most impactful changes to make first]
When a review aspect has no findings, include it with an explicit "no issues found" statement rather than omitting the section.
references/code-reuse-review.md - Detailed criteria for detecting duplication, consolidation opportunities, and over-abstractionreferences/code-quality-review.md - Detailed criteria for naming, complexity, error handling, and project standards compliancereferences/efficiency-review.md - Detailed criteria for algorithmic complexity, unnecessary work, resource usage, and I/O patternstools
Create an automation that generates an async standup digest from Slack. Searches selected channels for messages since the previous workday, groups updates by project, highlights blockers and decisions, and posts a summary to a target channel.
tools
Create an automation that writes a recurring research brief. Uses Tavily MCP for web research and Notion MCP to publish the final brief with executive summary, implications, and source citations.
tools
Create an automation that triages new Linear issues. Inspects the issue title, description, team, customer, priority, and recent related issues via Linear MCP. Suggests labels, priority, likely owner, duplicates, and posts a clarifying comment.
tools
Create an automation that drafts incident retrospectives. Gathers incident-channel messages from Slack, collects linked tickets and follow-ups from Linear, and publishes a retrospective draft to Notion with a timeline, impact summary, root-cause hypotheses, and action items.