用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cwilliams5/Alt-Tabby --skill review-static-history命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
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
基于 SOC 职业分类
正在显示 SKILL.md
| name | review-static-history |
| description | Mine git history for bug patterns that static analysis could have caught |
| user-invocable | true |
| disable-model-invocation | true |
Enter planning mode. Mine git history for bugs that shipped and were later fixed, to find patterns a static analysis check could have prevented. This is evidence-driven — only propose checks backed by real bug occurrences.
Review the last 50 commits (or more if the repo is active) for fix commits. Look for:
global declaration, add Critical "Off", fix a DllCall signature, correct a variable name, etc.For each fix commit, categorize the root cause:
Group fix commits by root cause class. Use occurrence count as a signal, not a hard gate:
Cross-reference each pattern against the current pre-gate inventory:
Already caught (validate these are working):
global declaration → check_batch_simple_b.ps1 (switch_global sub-check) + query_global_ownership.ps1 -Checkquery_function_visibility.ps1 -Checkquery_global_ownership.ps1 -CheckIf a pattern IS already caught but the bug still shipped, that's a different problem — the check may have a gap or the developer bypassed pre-gate. Flag it.
For surviving patterns (not already caught, statically detectable):
Feasibility test for each:
Hard limit: propose at most 2 new checkers. Keep the plan focused on the highest-value patterns.
For each proposed check, specify placement:
check_batch_simple.ps1)review-static-speed for batch architecture context if neededSection 1 — Evidence table (all fix commits analyzed):
| Commit | Message | Root Cause Class | Already Caught? |
|---|---|---|---|
abc1234 | Fix missing global in foo | Missing declaration | Yes — check_batch_simple |
def5678 | Fix Critical not released on early return | Unmatched Critical | No |
Section 2 — Pattern frequency:
| Pattern | Occurrences | Commits | Already Caught? | Severity |
|---|---|---|---|---|
Unmatched Critical "Off" | 4 | abc, def, ghi, jkl | No | Silent corruption |
Section 3 — Proposed checks (max 2, highest-value patterns):
| Pattern | Detection Sketch | False Positive Est. | Placement | Evidence |
|---|---|---|---|---|
| Unmatched Critical | Track Critical "On" → scan for return/continue without prior Critical "Off" | Low — structural | check_batch_guards.ps1 | 4 bugs in last 50 commits |
Ignore any existing plans — create a fresh one.