基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cwilliams5/Alt-Tabby --skill review-dead-code命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Audit all lint-ignore suppressions for appropriateness and overuse
Pre-flight checklist — run high-signal review skills before a release
Discover functions that block the main thread, then micro-audit each for internal optimization opportunities
| name | review-dead-code |
| description | Find and plan removal of dead code (unused functions, variables, unreachable paths) |
| user-invocable | true |
| disable-model-invocation | true |
Enter planning mode. Systematically audit the codebase for dead code and write a removal plan.
This project has changed significantly over time. Find code that is no longer serving a purpose: unused functions, unread variables, unreachable branches, orphaned helpers. Use maximum parallelism — spawn explore agents for independent areas of the codebase.
SetTimer)return, throw, or ExitApp#Include files whose exports are entirely unusedsrc/lib/ (third-party code — excluded from analysis)Use the query tools to validate findings — do NOT rely on grep alone:
query_function_visibility.ps1 <funcName> — authoritative caller list (public/private, all call sites)query_global_ownership.ps1 <globalName> — who declares, writes, and reads a globalquery_interface.ps1 <filename> — public surface of a file (spot unused exports)query_visibility.ps1 — lists public functions with 0 or 1 external callers (direct dead code signal)query_includes.ps1 — include tree for finding orphaned #Include files whose exports are entirely unusedFor each candidate:
file.ahk lines X–Y" with the actual code. Vague references without quoting code are not sufficient.Split the codebase into independent zones and explore in parallel:
src/gui/ — GUI rendering, state machine, overlaysrc/core/ — Producers (WinEventHook, Komorebi, pumps)src/shared/ — Window list, config, IPC, blacklist, themesrc/editors/ — Config/blacklist editorssrc/pump/ — EnrichmentPump subprocesssrc/ files — Entry points, launcher, installation, updateAfter explore agents report back, validate every finding yourself before including it in the plan. Explore agents sometimes identify issues that are handled elsewhere in a larger context. Read the cited lines, trace the usage, and confirm it's genuinely dead.
Group findings by file. For each item:
| File | Lines | What | Evidence | Counter-argument |
|---|---|---|---|---|
file.ahk | 42–58 | _UnusedHelper() — 0 callers | query_function_visibility.ps1 shows no call sites | None — private function, safe to remove |
Then list the removals as action items. Order by risk (safest first). Note any removals that should be tested together because they're interdependent.
Ignore any existing plans — create a fresh one.