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/skills 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
Iterate on a GitHub pull request — drive it through CI, code review, and QA until it is merge-ready. Poll verification layers with `gh` CLI, diagnose and fix CI failures, address review feedback, retry flaky checks, push fixes, and repeat. The agent is the orchestration loop.
development
Guides technical explanations toward flowing, direct, conversational prose. This skill should be used for engineering chat, design discussion, architecture analysis, code-review explanations, and technical recommendations that should be concise without becoming fragmented or vague.
tools
This skill should be used when the user asks to "set up a Jira automation to create pull requests", "poll Jira for create-pr issues", "automatically create GitHub PRs from Jira tickets", "deploy a Jira issue-to-PR automation", "create a Jira to GitHub PR workflow", or mentions automating GitHub PR creation from a Jira label. Deploys a cron-based OpenHands automation that watches a Jira Cloud project for issues labeled with a configurable label (default: "create-pr") and spawns an agent conversation to create a GitHub pull request for each new issue found. The target GitHub repository is read from the body of the Jira ticket - no repo parameter is required at deploy time.
tools
This skill should be used when the user asks to "create an automation", "schedule a task", "set up a cron job", "webhook integration", "event-triggered automation", or mentions automations, scheduled tasks, cron scheduling, or webhook events in OpenHands Cloud.