From devflows
Review current code changes for reuse, code quality, and efficiency, then fix issues directly. Use when the user asks for a cleanup pass on changed files, wants the current diff reviewed before finishing, or asks for duplication, maintainability, or performance issues in recent edits to be identified and cleaned up.
How this skill is triggered — by the user, by Claude, or both
Slash command
/devflows:simplify-code-review-and-cleanupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Review current code changes for reuse, quality, and efficiency. Fix any issues found.
Review current code changes for reuse, quality, and efficiency. Fix any issues found.
Run git diff HEAD if there are staged changes so the review includes staged and unstaged work. Otherwise run git diff.
If there are no git changes, review the most recently modified files that the user mentioned or that you edited earlier in this conversation.
Capture the full diff once and reuse that same diff for all three review passes.
If sub-agents are available and appropriate for the current environment, launch all three review agents concurrently in a single assistant turn with spawn_agent. Pass each agent the full diff so it has the complete context.
Prefer agent_type: "explorer" for these review passes.
If sub-agents are unavailable or not appropriate, perform the same three review passes yourself before making any edits.
For each change:
Review the same changes for hacky patterns:
flexShrink or alignItems already provide the needed behaviorReview the same changes for efficiency:
If you launched agents, use wait_agent to wait for all three to complete.
Aggregate the findings and fix each issue directly.
If a finding is a false positive or not worth addressing, note it and move on. Do not argue with the finding. Skip it.
When done, briefly summarize what was fixed or confirm the code was already clean.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub georgenance/agent-skills --plugin devflows