[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CGYS5E4HBWM2PK373CWH7D":3,"skill-same:01M7CGYS5E4HBWM2PK373CWH7D":45},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7CGYS5E4HBWM2PK373CWH7D","dead-code-audit",null,"コードベース全体の未使用コード・孤立設定・陳腐化テストを安全に探索・削除し、真のバグ修正と決定論的チェックの通過を確認する。","harunonsystem\u002Fharunon-harness-slim","harunonsystem","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F34958457?v=4","01M7CGJNZEEY4GZ845775PPBV1","harunon","01M7CGJP01K9B4N0F5HMNGYC8Q",0,"MIT","https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fdead-code-audit\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: dead-code-audit\ndescription: コードベース全体の未使用コード・孤立設定・陳腐化テストを安全に探索・削除し、真のバグ修正と決定論的チェックの通過を確認する。\ncompatibility: codex opencode pi omp claude\n---\n\n# Dead Code Audit\n\nコードベース全体を深層探索し、使われなくなったレガシーコード、孤立した設定・ドキュメント・フラグメント、不要なテストを安全に削除し、真のバグを修正する自律ワークフロー。\n\nテストの価値判断や保持基準は `test-audit` skill の基準（Junk patterns \u002F Retention bar）に従う。\n\n## 原則\n\n1. **サブエージェントによる並行探索（Parallel Recon）**:\n   大規模コードベースでは、テスト層（低価値テスト・重複・壊れたテスト）と本番コード／SSOT設定層（孤立ファイル・未使用シンボル・不要設定）に探索軸を分割し、Read-only サブエージェントを活用して探索を並行化する。\n2. **削除前の陳腐化証明（Prove Obsolete Before Removal）**:\n   「参照が見当たらない」という理由だけで安易に削除しない。静的検索（`rg`）、リポジトリ設定（targets, manifest, router）、動的ディスパッチの有無を検証し、真に obsolete である証拠（呼び出し元ゼロ・非参照）を提示する。\n3. **真のバグ修正（Fix Genuine Bugs, Don't Hide Failures）**:\n   テストが失敗しているとき、テストを削除したりアサーションを緩めて無理やり Green に偽装（hiding failures）することを厳禁とする。仕様変更に伴い真に不要になったテストのみ削除し、実装・設定・環境の不整合が原因の真のバグは修正する。\n4. **有用なカバレッジと公開契約の維持（Preserve Meaningful Coverage）**:\n   `test-audit` の Retention bar（公開 API・セキュリティ・アーキテクチャ・回帰防止）を満たすテスト・コードは一切消さない。削除対象は Junk patterns に該当するもの、および削除されたコードに伴う不要テストに限定する。\n5. **決定論的チェックの全通過（Preserve Deterministic Checks）**:\n   変更後はプロジェクト必須のチェック（lint, typecheck, target drift check, test suite）を全件パスさせる。直せない本質的課題は推測で触らず残存ブロッカーとして報告する。\n\n## ワークフロー\n\n### Phase 1: Recon & 探索軸の分割\n- リポジトリの検証コマンド、テスト構成、パッケージ境界、SSOT レイアウトを把握する。\n- repo が未使用コードの検出 task（knip \u002F vulture \u002F ts-prune 等）を持つなら先に実行し、出力を候補の起点にする。CLI subcommand や tool 定義から辿れるが運用で誰も呼ばない API は静的検出に出ないので、利用実態（呼び出し元・ログ）で別に確かめる。\n- 探索軸を独立した関心事に分割する（例: サブエージェント1「テストコード監査・重複／壊れたテスト特定」、サブエージェント2「本番コード・設定・SSOTの孤立／デッドコード特定」）。\n\n### Phase 2: 並行監査（Subagent \u002F Focused Search）\n- 各サブエージェントは Read-only で調査を行う。\n- 候補ごとに次を記録・報告する：\n  - 対象ファイルパスとシンボル／テスト名\n  - 陳腐化の証明（呼び出し元ゼロ、静的参照なし、外部契約なし）\n  - 削除リスクと影響範囲\n\n### Phase 3: 親による検証・選別（Vetting & Confirmation）\n- サブエージェントの過剰報告や False Positive（動的ディスパッチ、`__all__`、他ターゲットの設定、外部契約）を親が直接ファイルを開いて除外する。\n- ユーザーに「削除候補」「バグ修正候補」「保持理由」を提示し、合意を形成する。\n\n### Phase 4: 適用・バグ修正・全件検証\n- 孤立コード・不要テストの安全な削除と、本質的バグの修正を適用する。\n- プロジェクト標準の検証コマンド群（lint, test, build, distribute check）を実行し、全 Green を確認する。\n\n### Phase 5: メトリクス付き報告\n- 削除したコード行数 \u002F テスト数\n- 修正した真のバグと原因\n- 保持した重要な契約\n- 残存ブロッカー（Remaining Blockers）\n","# Dead Code Audit\n\nコードベース全体を深層探索し、使われなくなったレガシーコード、孤立した設定・ドキュメント・フラグメント、不要なテストを安全に削除し、真のバグを修正する自律ワークフロー。\n\nテストの価値判断や保持基準は `test-audit` skill の基準（Junk patterns \u002F Retention bar）に従う。\n\n## 原則\n\n1. **サブエージェントによる並行探索（Parallel Recon）**:\n   大規模コードベースでは、テスト層（低価値テスト・重複・壊れたテスト）と本番コード／SSOT設定層（孤立ファイル・未使用シンボル・不要設定）に探索軸を分割し、Read-only サブエージェントを活用して探索を並行化する。\n2. **削除前の陳腐化証明（Prove Obsolete Before Removal）**:\n   「参照が見当たらない」という理由だけで安易に削除しない。静的検索（`rg`）、リポジトリ設定（targets, manifest, router）、動的ディスパッチの有無を検証し、真に obsolete である証拠（呼び出し元ゼロ・非参照）を提示する。\n3. **真のバグ修正（Fix Genuine Bugs, Don't Hide Failures）**:\n   テストが失敗しているとき、テストを削除したりアサーションを緩めて無理やり Green に偽装（hiding failures）することを厳禁とする。仕様変更に伴い真に不要になったテストのみ削除し、実装・設定・環境の不整合が原因の真のバグは修正する。\n4. **有用なカバレッジと公開契約の維持（Preserve Meaningful Coverage）**:\n   `test-audit` の Retention bar（公開 API・セキュリティ・アーキテクチャ・回帰防止）を満たすテスト・コードは一切消さない。削除対象は Junk patterns に該当するもの、および削除されたコードに伴う不要テストに限定する。\n5. **決定論的チェックの全通過（Preserve Deterministic Checks）**:\n   変更後はプロジェクト必須のチェック（lint, typecheck, target drift check, test suite）を全件パスさせる。直せない本質的課題は推測で触らず残存ブロッカーとして報告する。\n\n## ワークフロー\n\n### Phase 1: Recon & 探索軸の分割\n- リポジトリの検証コマンド、テスト構成、パッケージ境界、SSOT レイアウトを把握する。\n- repo が未使用コードの検出 task（knip \u002F vulture \u002F ts-prune 等）を持つなら先に実行し、出力を候補の起点にする。CLI subcommand や tool 定義から辿れるが運用で誰も呼ばない API は静的検出に出ないので、利用実態（呼び出し元・ログ）で別に確かめる。\n- 探索軸を独立した関心事に分割する（例: サブエージェント1「テストコード監査・重複／壊れたテスト特定」、サブエージェント2「本番コード・設定・SSOTの孤立／デッドコード特定」）。\n\n### Phase 2: 並行監査（Subagent \u002F Focused Search）\n- 各サブエージェントは Read-only で調査を行う。\n- 候補ごとに次を記録・報告する：\n  - 対象ファイルパスとシンボル／テスト名\n  - 陳腐化の証明（呼び出し元ゼロ、静的参照なし、外部契約なし）\n  - 削除リスクと影響範囲\n\n### Phase 3: 親による検証・選別（Vetting & Confirmation）\n- サブエージェントの過剰報告や False Positive（動的ディスパッチ、`__all__`、他ターゲットの設定、外部契約）を親が直接ファイルを開いて除外する。\n- ユーザーに「削除候補」「バグ修正候補」「保持理由」を提示し、合意を形成する。\n\n### Phase 4: 適用・バグ修正・全件検証\n- 孤立コード・不要テストの安全な削除と、本質的バグの修正を適用する。\n- プロジェクト標準の検証コマンド群（lint, test, build, distribute check）を実行し、全 Green を確認する。\n\n### Phase 5: メトリクス付き報告\n- 削除したコード行数 \u002F テスト数\n- 修正した真のバグと原因\n- 保持した重要な契約\n- 残存ブロッカー（Remaining Blockers）\n",{"name":5,"description":7,"compatibility":24},"codex opencode pi omp claude","main","d7d37ad7e79d10fc5b881a8a401979484b6ee1ac","shared-agents\u002Fskills\u002Fdead-code-audit","https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim","https:\u002F\u002Fgithub.com\u002Fharunonsystem","2026-11-14 07:03:55",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add harunonsystem\u002Fharunon-harness-slim --skill dead-code-audit",{"tool":37,"command":38},"bunx","bunx skills add harunonsystem\u002Fharunon-harness-slim --skill dead-code-audit",{"tool":40,"command":41},"pnpm","pnpm dlx skills add harunonsystem\u002Fharunon-harness-slim --skill dead-code-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fdead-code-audit\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7CH39JSS2D4J52SCASDTJ9Q","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7CH36HM1KX4VEFNKNQZ37WP","wrangler","Run or troubleshoot Wrangler CLI commands in projects that have a wrangler.jsonc, wrangler.json, or wrangler.toml file, including local development, Previews, deployment, and resource management. For new projects and projects without a Wrangler configuration file, use the cf CLI instead.","https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fwrangler\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7CH335A6PP55E1VE1R7EXB1","workflow-modernize","パッケージ\u002FCLI更新時や定期見直し時に、自作スキル・ワークフロー・設定を監査し、不要なworkaroundの撤廃・新機能の適用・プロンプトの簡素化をGrill（壁打ち）と多角比較で提案・修正する。「workflow-modernize」「スキル監査」「ワークフロー改善」「パッケージ更新後の見直し」「モダナイズ」で起動。","https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fworkflow-modernize\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7CH303YN7MP9VCSFAB7KSG7","workers-best-practices","Cloudflare Workers best practices for production applications. Use when writing, reviewing, or configuring Workers.","https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fworkers-best-practices\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7CH2XJPDFMHNRBKZXQD16S0","web-perf","Audit, diagnose, or optimize website loading and interaction performance, Core Web Vitals, and Lighthouse performance scores.","https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fweb-perf\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7CH2V3AFZB7F055Y9KAFXZ3","wayfinder","Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.","https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[]]