用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cwilliams5/Alt-Tabby --skill flight-recorder命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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 | flight-recorder |
| description | Analyze flight recorder dumps to diagnose bugs from event traces |
| user-invocable | true |
| disable-model-invocation | true |
| argument-hint | [dump file or bug description] |
Analyze flight recorder dump(s) to diagnose a bug or anomaly. The user may describe the bug, specify files, or both. If invoked with no arguments, load the newest dump and use the USER NOTE in the dump as the bug description.
release/recorder/, pick the newest fr_*.txt by modification time. The USER NOTE inside the dump describes what happened.release/recorder/fr_*.txt files from today in release/recorder/release/recorder/ for a matching fileUse ls -t release/recorder/fr_*.txt to find files. Confirm resolved file(s) to the user before analyzing.
Each dump has four sections:
T-SSSSSS.mmm offsets relative to dump time.Read the USER NOTE and any user-provided description. Form a hypothesis about what category of bug this is:
ALT_PENDING with gINT_AltIsDown=0 is suspicious)gINT_BypassMode=1 when it shouldn't be?gGUI_PendingPhase non-empty (stuck async activation)?Use query_state.ps1 to extract the expected state machine branches for comparison with the event trace. Use query_messages.ps1 to identify WM_ message handlers/senders when Windows messages appear in the trace.
Read the event trace bottom-to-top (chronological order). Look for:
Complete sequences — A normal Alt-Tab is:
ALT_DN → TAB_DN → TAB_DECIDE → TAB_DECIDE_INNER(isAltTab=1) → STATE→ACTIVE → FREEZE → ALT_UP → QUICK_SWITCH → ACTIVATE_START → ACTIVATE_RESULT(success=1) → MRU_UPDATE → STATE→IDLE
Broken sequences — Where does the chain deviate? Common patterns:
ALT_DN + ALT_UP with no TAB_DN = Tab was lost (check BYPASS mode)ACTIVATE_RESULT(success=0) = Windows rejected activation (check fg field)ACTIVATE_GONE = Window disappeared between selection and activationFOCUS_SUPPRESS during an Alt-Tab = MRU suppression interferedWS_SWITCH during an Alt-Tab = workspace changed mid-sessionTiming analysis — Calculate gaps between related events. Flag any gap > 50ms between keyboard events or > 100ms between state transitions.
Correlation with live items — Cross-reference hwnds in events with the LIVE ITEMS list. Are referenced windows still present? On the expected workspace?
When analyzing multiple dumps for the same bug:
Use query_events.ps1 <name_or_code> for structured event lookups — shows field meanings (d1-d4) and emitter functions. Use query_events.ps1 with no args for the full index. See docs/USING_RECORDER.md for analysis patterns and worked examples.
Present findings as:
If the cause is clear, suggest where in the code to look (reference the event type to its handler using the architecture knowledge). If uncertain, describe what additional information would help (e.g., "need a dump with DiagEventLog enabled to see the full WinEvent stream").