{"data":{"slug":"discovered-00ef3d590d4adae6ae10f096773adf83abb79010198ee8d8","title":"Simplify Code with Quality Review and Impact Analysis","summary":"Review changed code for reuse, simplification, efficiency, and abstraction, with minimal complete fixes and global caller\/dependency impact checks. Reports first; applies changes only when explicitly authorized, followed by behavioral verification.","url":"https:\/\/skillshunter.net\/skills\/discovered-00ef3d590d4adae6ae10f096773adf83abb79010198ee8d8","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-00ef3d590d4adae6ae10f096773adf83abb79010198ee8d8","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-00ef3d590d4adae6ae10f096773adf83abb79010198ee8d8.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-00ef3d590d4adae6ae10f096773adf83abb79010198ee8d8\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before applying changes, ensure the behavior contract and permitted checks are confirmed. Preserve existing work and apply only authorized changes. Re-scope and inspect the final diff, and run authorized regression\/characterization checks, including callers and error\/security paths.","instructions":"---\nname: simplify\ndescription: Review changed code for reuse, simplification, efficiency and abstraction, with Ponytail-style minimal complete fixes and global caller\/dependency impact checks. Use for simplify, cleanup, reduce complexity, remove bloat or assess over-engineering. Reports first; applies changes only when explicitly authorized, followed by behavioral verification.\n---\n\n# Simplify without changing the contract\n\nThis is the focused quality mode of `review`, not another full\nreview after it. Read `..\/review\/SKILL.md` for the shared scope, impact mapping,\npermission, evidence and report rules. Run its [scope helper](..\/review\/scripts\/target.sh)\nby absolute path from the checkout under review with the same base and retain\nthe fingerprint. Do not call a bundled `\/simplify` as a black box:\nthat command may apply edits, while this mode is report-first.\n\nFor standalone installs, install `review` alongside `simplify` in the same agent and scope.\n\n## Context first\n\nRead the diff, changed symbols, callers, exports, configuration and relevant\ntests. Use an available CodeGraph\/LSP\/dependency map; otherwise search\/read the\nrelevant edges and disclose that graph coverage is partial. State actual usage\nand expected load. Define behavior to preserve: outputs, error paths, validation,\nside effects\/order, public API, compatibility, security and accessibility.\n\n## Four complementary perspectives\n\nFor a small diff, cover all four in one pass. For substantial independent areas,\nuse separate reviewers with the same scope and contract, not four complete\nrepeated reviews.\n\n1. **Reuse:** grep for an existing helper\/component before proposing a new one.\n   Prefer the project's established pattern, then stdlib\/platform, then installed\n   dependencies. Name the actual replacement and check semantic differences.\n2. **Simplification:** remove dead\/speculative code, redundant conversions and\n   wrappers, duplicate branching and unnecessary nesting. Clarity beats clever\n   one-liners. Split by responsibility, not line count. Do not strip useful names.\n3. **Efficiency:** avoid repeated work\/I\/O, wasteful allocation and retained state.\n   Tie the issue to a concrete workload; report a hypothesis until measured.\n4. **Abstraction:** fix root causes in the shared layer, remove unjustified\n   generality, and preserve useful boundaries. A single implementation is a clue,\n   not a deletion rule. Trace all callers before moving or merging logic.\n\nFor each proposal: what changes, why it is simpler, what must remain equivalent,\nwhich callers\/config\/tests must change together, and the smallest complete patch.\nNever remove trust-boundary validation, data-loss handling or effective tests.\nRespect documented shortcuts until their named limit is crossed. Do not invent\nbugs or scalability requirements to sell a cleanup, and do not score net lines.\nIf a concrete correctness\/security defect appears, report it separately and do\nnot hide it beneath a style recommendation.\n\n## Report, then optionally apply\n\nRecheck the scope fingerprint. Return numbered, evidence-backed recommendations\nusing the shared review format; include global impact and verification gaps.\nNothing actionable is a valid result. Do not declare behavior preserved merely\nbecause the diff is shorter or the model expects tests to pass.\n\nDefault: no edits. If the user explicitly authorizes applying selected changes,\nconfirm the behavior contract and permitted checks, preserve existing work, and\napply only those changes. Re-scope and inspect the final diff; run authorized\nregression\/characterization checks, including callers and error\/security paths.\nRecord before\/after outcomes. If checks cannot run, say behavior is unverified;\nnever weaken tests or roll back unrelated work to manufacture success.\n","use_cases":["Review code for reuse and simplification","Identify and remove redundant or inefficient code","Assess over-engineering and improve abstraction","Ensure compatibility and correctness when making changes"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/yanmxa\/skills\/blob\/70106f3e2d6d370f1b285da422235e15663bafac\/skills\/dev\/simplify\/SKILL.md","source_commit":"70106f3e2d6d370f1b285da422235e15663bafac","license":null,"version":null,"listing_approved_at":"2026-12-02","created_at":"2026-11-30T08:49:44.000000Z","updated_at":"2026-12-02T09:15:00.000000Z","seo_title":"Code Simplification and Quality Review Tool","seo_description":"Analyze and simplify code with focused quality review, impact analysis, and minimal complete fixes. Reports first; applies changes only when explicitly authorized.","seo_keywords":["code review","code simplification","code quality","impact analysis","software development","code optimization"]}}