[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DK6HMNFES75RNB4G6TE55T":3,"skill-same:01M7DK6HMNFES75RNB4G6TE55T":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M7DK6HMNFES75RNB4G6TE55T","dh-simplify",null,"Review changed code for reuse, quality, and efficiency (three parallel reviews), then fix findings directly. Use after making changes or when asked to clean up, refactor, simplify, or improve this code.","andrescevp\u002Fdevelopment-harness","andrescevp","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10025841?v=4","01M7DK1Q07H5GT5R4JSGMWV1DE","Andres Cevallos","01M7DK1Q18W9DHVMV4HZ4BQAY3",8,"MIT","https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness\u002Fblob\u002Fmain\u002Fskills\u002Fdh-simplify\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: dh-simplify\ndescription: >\n  Review changed code for reuse, quality, and efficiency (three parallel reviews), then fix findings directly. Use after making changes or when asked to clean up, refactor, simplify, or improve this code.\nlicense: MIT\ncompatibility: opencode, copilot, antigravity\nallowed-tools: bash, read, write, edit\nmetadata:\n  audience: developers\n  workflow: development\n---\n\n# Simplify: Code Review and Cleanup\n\nReview all changed files for reuse, quality, and efficiency. Fix any issues found.\n\n## Phase 1: Identify Changes\n\nRun `git diff` (or `git diff HEAD` if there are staged changes) to see what changed. If there are no git changes, review the most recently modified files that the user mentioned or that you edited earlier in this conversation.\n\n## Phase 1a: Graph-Assisted Reuse (when indexed)\n\nWhen `dh-setup` indexed the project, use the `dh-code-query` skill before the\nthree agents run:\n\n- `cgr duplicates` on the changed area to find existing clones, including\n  renamed or lightly edited copies.\n- `cgr graph callers` \u002F `importers` on changed symbols to judge reuse and\n  blast radius.\n- `cgr graph tests-reaching` to see which existing tests already cover the\n  behavior.\n\nGraph results are candidates: confirm each one in the source before treating\nit as a duplicate or dependency. Skip this phase when the project is not\nindexed or the graph is stale.\n\n## Phase 2: Launch Three Review Agents in Parallel\n\nResolve the review role first: use the plan's `## Agent Selection` Review row, or run the selection protocol in [`..\u002Fdh-planning\u002Freferences\u002Fagent-selection.md`](..\u002Fdh-planning\u002Freferences\u002Fagent-selection.md) when the section or row is absent or stale — prefer a project-specific review agent and fall back to the bundled review capability. Use the same resolved agent\u002Fcapability for all three passes.\n\nUse the Agent tool to launch all three agents concurrently in a single message. Pass each agent the full diff so it has the complete context.\n\n### Agent 1: Code Reuse Review\n\nFor each change:\n\n1. **Search for existing utilities and helpers** that could replace newly written code. Look for similar patterns elsewhere in the codebase — common locations are utility directories, shared modules, and files adjacent to the changed ones.\n2. **Flag any new function that duplicates existing functionality.** Suggest the existing function to use instead.\n3. **Flag any inline logic that could use an existing utility** — hand-rolled string manipulation, manual path handling, custom environment checks, ad-hoc type guards, and similar patterns are common candidates.\n\n### Agent 2: Code Quality Review\n\nReview the same changes for hacky patterns:\n\n1. **Redundant state**: state that duplicates existing state, cached values that could be derived, observers\u002Feffects that could be direct calls\n2. **Parameter sprawl**: adding new parameters to a function instead of generalizing or restructuring existing ones\n3. **Copy-paste with slight variation**: near-duplicate code blocks that should be unified with a shared abstraction\n4. **Leaky abstractions**: exposing internal details that should be encapsulated, or breaking existing abstraction boundaries\n5. **Stringly-typed code**: using raw strings where constants, enums (string unions), or branded types already exist in the codebase\n6. **Unnecessary JSX nesting**: wrapper Boxes\u002Felements that add no layout value — check if inner component props (flexShrink, alignItems, etc.) already provide the needed behavior\n7. **Unnecessary comments**: comments explaining WHAT the code does (well-named identifiers already do that), narrating the change, or referencing the task\u002Fcaller — delete; keep only non-obvious WHY (hidden constraints, subtle invariants, workarounds)\n\n### Agent 3: Efficiency Review\n\nReview the same changes for efficiency:\n\n1. **Unnecessary work**: redundant computations, repeated file reads, duplicate network\u002FAPI calls, N+1 patterns\n2. **Missed concurrency**: independent operations run sequentially when they could run in parallel\n3. **Hot-path bloat**: new blocking work added to startup or per-request\u002Fper-render hot paths\n4. **Recurring no-op updates**: state\u002Fstore updates inside polling loops, intervals, or event handlers that fire unconditionally — add a change-detection guard so downstream consumers aren't notified when nothing changed. Also: if a wrapper function takes an updater\u002Freducer callback, verify it honors same-reference returns (or whatever the \"no change\" signal is) — otherwise callers' early-return no-ops are silently defeated\n5. **Unnecessary existence checks**: pre-checking file\u002Fresource existence before operating (TOCTOU anti-pattern) — operate directly and handle the error\n6. **Memory**: unbounded data structures, missing cleanup, event listener leaks\n7. **Overly broad operations**: reading entire files when only a portion is needed, loading all items when filtering for one\n\n## Phase 3: Fix Issues\n\nWait for all three agents to complete. Aggregate their 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, just skip it.\n\nWhen done, briefly summarize what was fixed (or confirm the code was already clean).\n\n## Doc search\n\n**Documentation management:** delegate create \u002F update \u002F delete \u002F retrieve of generated documents (excluding docs\u002Fplans) to the best available documentation agent (bundled documentation capability as fallback) — the main and only documentation owner (see dh-create-documentation).\n\nSearch generated documentation quickly: `notesmd-cli search-content \"\u003Cterm>\" --vault \"\u003Cproject-name>\"` or `obsidian search query=\"\u003Cterm>\"` (fallback: `rg --glob '*.md' \"\u003Cterm>\" docs\u002F`).\n","# Simplify: Code Review and Cleanup\n\nReview all changed files for reuse, quality, and efficiency. Fix any issues found.\n\n## Phase 1: Identify Changes\n\nRun `git diff` (or `git diff HEAD` if there are staged changes) to see what changed. If there are no git changes, review the most recently modified files that the user mentioned or that you edited earlier in this conversation.\n\n## Phase 1a: Graph-Assisted Reuse (when indexed)\n\nWhen `dh-setup` indexed the project, use the `dh-code-query` skill before the\nthree agents run:\n\n- `cgr duplicates` on the changed area to find existing clones, including\n  renamed or lightly edited copies.\n- `cgr graph callers` \u002F `importers` on changed symbols to judge reuse and\n  blast radius.\n- `cgr graph tests-reaching` to see which existing tests already cover the\n  behavior.\n\nGraph results are candidates: confirm each one in the source before treating\nit as a duplicate or dependency. Skip this phase when the project is not\nindexed or the graph is stale.\n\n## Phase 2: Launch Three Review Agents in Parallel\n\nResolve the review role first: use the plan's `## Agent Selection` Review row, or run the selection protocol in [`..\u002Fdh-planning\u002Freferences\u002Fagent-selection.md`](..\u002Fdh-planning\u002Freferences\u002Fagent-selection.md) when the section or row is absent or stale — prefer a project-specific review agent and fall back to the bundled review capability. Use the same resolved agent\u002Fcapability for all three passes.\n\nUse the Agent tool to launch all three agents concurrently in a single message. Pass each agent the full diff so it has the complete context.\n\n### Agent 1: Code Reuse Review\n\nFor each change:\n\n1. **Search for existing utilities and helpers** that could replace newly written code. Look for similar patterns elsewhere in the codebase — common locations are utility directories, shared modules, and files adjacent to the changed ones.\n2. **Flag any new function that duplicates existing functionality.** Suggest the existing function to use instead.\n3. **Flag any inline logic that could use an existing utility** — hand-rolled string manipulation, manual path handling, custom environment checks, ad-hoc type guards, and similar patterns are common candidates.\n\n### Agent 2: Code Quality Review\n\nReview the same changes for hacky patterns:\n\n1. **Redundant state**: state that duplicates existing state, cached values that could be derived, observers\u002Feffects that could be direct calls\n2. **Parameter sprawl**: adding new parameters to a function instead of generalizing or restructuring existing ones\n3. **Copy-paste with slight variation**: near-duplicate code blocks that should be unified with a shared abstraction\n4. **Leaky abstractions**: exposing internal details that should be encapsulated, or breaking existing abstraction boundaries\n5. **Stringly-typed code**: using raw strings where constants, enums (string unions), or branded types already exist in the codebase\n6. **Unnecessary JSX nesting**: wrapper Boxes\u002Felements that add no layout value — check if inner component props (flexShrink, alignItems, etc.) already provide the needed behavior\n7. **Unnecessary comments**: comments explaining WHAT the code does (well-named identifiers already do that), narrating the change, or referencing the task\u002Fcaller — delete; keep only non-obvious WHY (hidden constraints, subtle invariants, workarounds)\n\n### Agent 3: Efficiency Review\n\nReview the same changes for efficiency:\n\n1. **Unnecessary work**: redundant computations, repeated file reads, duplicate network\u002FAPI calls, N+1 patterns\n2. **Missed concurrency**: independent operations run sequentially when they could run in parallel\n3. **Hot-path bloat**: new blocking work added to startup or per-request\u002Fper-render hot paths\n4. **Recurring no-op updates**: state\u002Fstore updates inside polling loops, intervals, or event handlers that fire unconditionally — add a change-detection guard so downstream consumers aren't notified when nothing changed. Also: if a wrapper function takes an updater\u002Freducer callback, verify it honors same-reference returns (or whatever the \"no change\" signal is) — otherwise callers' early-return no-ops are silently defeated\n5. **Unnecessary existence checks**: pre-checking file\u002Fresource existence before operating (TOCTOU anti-pattern) — operate directly and handle the error\n6. **Memory**: unbounded data structures, missing cleanup, event listener leaks\n7. **Overly broad operations**: reading entire files when only a portion is needed, loading all items when filtering for one\n\n## Phase 3: Fix Issues\n\nWait for all three agents to complete. Aggregate their 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, just skip it.\n\nWhen done, briefly summarize what was fixed (or confirm the code was already clean).\n\n## Doc search\n\n**Documentation management:** delegate create \u002F update \u002F delete \u002F retrieve of generated documents (excluding docs\u002Fplans) to the best available documentation agent (bundled documentation capability as fallback) — the main and only documentation owner (see dh-create-documentation).\n\nSearch generated documentation quickly: `notesmd-cli search-content \"\u003Cterm>\" --vault \"\u003Cproject-name>\"` or `obsidian search query=\"\u003Cterm>\"` (fallback: `rg --glob '*.md' \"\u003Cterm>\" docs\u002F`).\n",{"name":5,"license":15,"metadata":24,"description":27,"allowed-tools":28,"compatibility":29},{"audience":25,"workflow":26},"developers","development","Review changed code for reuse, quality, and efficiency (three parallel reviews), then fix findings directly. Use after making changes or when asked to clean up, refactor, simplify, or improve this code.\n","bash, read, write, edit","opencode, copilot, antigravity","main","f7ddc0c3b3190e379bda1059d53f861bd4e1f30d","skills\u002Fdh-simplify",1,"https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness","https:\u002F\u002Fgithub.com\u002Fandrescevp","2026-11-10 07:43:44",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add andrescevp\u002Fdevelopment-harness --skill dh-simplify",{"tool":43,"command":44},"bunx","bunx skills add andrescevp\u002Fdevelopment-harness --skill dh-simplify",{"tool":46,"command":47},"pnpm","pnpm dlx skills add andrescevp\u002Fdevelopment-harness --skill dh-simplify","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness\u002Fblob\u002Fmain\u002Fskills\u002Fdh-simplify\u002FSKILL.md",true,[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7DK6BFEQ9PVZTHKV0DR66BR","dh-setup","Audit system software, configure user MCPs\u002Fplugins, scaffold project QA (hooks + per-stack tools), bootstrap docs\u002Farchitecture with the selected architecture agent, and write harness directives into AGENTS.md. Use to check requirements or setup the environment.","https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness\u002Fblob\u002Fmain\u002Fskills\u002Fdh-setup\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7DK62N6CDZ2TH890AX2Z7P9","dh-semver","Apply strict Semantic Versioning — analyze commits since the last tag to determine the bump type (major\u002Fminor\u002Fpatch from conventional commit prefixes), generate an automated changelog grouped by breaking changes, features, fixes, and chores, and create a git tag locally without pushing until confirmed, handling both conventional commits and manual version decisions. Use when preparing a release, invoked by dh-execute-plan after plan completion and dh-final-review for release readiness, or when the user asks \"what version is next?\", \"bump version\", \"generate changelog\", \"tag release\", or \"what changed since last release?\".","https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness\u002Fblob\u002Fmain\u002Fskills\u002Fdh-semver\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7DK5SM44RAH10HM59JC6ZPZ","dh-review","Verify a plan sub-task against acceptance criteria, scope, done-when; review diff, validation, regression risk; structured verdict to tasks\u002Freview.md. Plan Alignment Mode (fast execution) is a separate mode: no sub-task selection, no diff review, no code review — it compares plan.md with plan_fast.md and writes tasks\u002Freview-fast.md (pre-execution) or tasks\u002Freview-fast-final.md (plan-end). Use after implementation, to review\u002Fverify the sub-task, or to check fast-plan alignment.","https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness\u002Fblob\u002Fmain\u002Fskills\u002Fdh-review\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7DK5KKZ05K0FR0ARFHA58KG","dh-resume-plan","Resume a paused phased plan from docs\u002Fplans\u002F\u003Cslug>\u002Fhandoff.md: validate the contract, detect drift, rehydrate context, mark the handoff resumed, and continue via dh-execute-plan resume mode. Use when the user says \"resume the plan\", \"continue where we stopped\", \"pick up the plan\", or \"resume after a pause\".","https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness\u002Fblob\u002Fmain\u002Fskills\u002Fdh-resume-plan\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7DK5E10T47JWQAJSAXJHHGD","dh-preflight","Run tests, linters, static analysis as a release gate: auto-detect tooling, check dirty state, pass\u002Ffail verdict with actionable failures (no auto-fixes). Use to run preflight, pre-release check, or validate before release.","https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness\u002Fblob\u002Fmain\u002Fskills\u002Fdh-preflight\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7DK58BHEGQZNQXAA42RGS79","dh-planning","Write phased plans to .\u002Fdocs\u002Fplans\u002F\u003Cslug>\u002Fplan.md: phases with sub-tasks, requirements mapping (stable IDs), scope, acceptance criteria. SDD gate: invoke dh-grill-sdd when .\u002Fdocs\u002Fplans\u002F\u003Cslug>\u002Fsdd.md is absent. Use to plan this or create a plan.","https:\u002F\u002Fgithub.com\u002Fandrescevp\u002Fdevelopment-harness\u002Fblob\u002Fmain\u002Fskills\u002Fdh-planning\u002FSKILL.md",[],[]]