基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cwilliams5/Alt-Tabby --skill review-race-conditions-open命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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-race-conditions-open |
| description | Open Audit for race conditions in timers, hotkeys, callbacks, and shared state |
| user-invocable | true |
| disable-model-invocation | true |
Enter planning mode. Systematically audit the codebase for race conditions. Use maximum parallelism — spawn explore agents for independent areas.
AHK v2 is single-threaded but not atomic — timers, hotkeys, and callbacks CAN interrupt each other mid-execution. Critical "On" prevents interruption for the current thread. This is the only synchronization primitive available. See .claude/rules/ahk-patterns.md (Race Conditions section) and .claude/rules/keyboard-hooks.md for established patterns.
These have been deliberately designed and tested — flagging them wastes time:
Critical "On" held through the entire GUI_OnInterceptorEvent handler including rendering (~16ms). This is intentional — releasing early causes corruption.SendMode("Event") instead of SendInput — prevents hook uninstall during sends.gGUI_EventBuffer — events buffered while gGUI_Pending.phase != "".ALT_DN + ALT_UP without TAB).FR_Record() — pre-allocated ring buffer, writes are inherently safe._GUI_LogError() — always-on by design.After explore agents report back, validate every finding yourself. Race conditions are easy to hypothesize and hard to confirm. Many "races" identified by exploration are actually guarded by Critical sections or by AHK's threading model (only one pseudo-thread runs at a time; interruption only happens at specific yield points).
For each candidate:
file.ahk lines X–Y" with actual code quoted. Vague line references are not sufficient.Group by severity (data corruption > logic error > cosmetic):
| File | Lines | Race Description | Interrupt Source | Severity | Fix |
|---|---|---|---|---|---|
file.ahk | 42–58 | gFoo read-then-write without Critical | Timer _HeartbeatTick | Data corruption | Wrap in Critical "On" / Critical "Off" |
For each fix, note:
Ignore any existing plans — create a fresh one.