用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cwilliams5/Alt-Tabby --skill review-mcode命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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-mcode |
| description | Scan for hot loops over raw buffers that would benefit from MCode (native C) optimization |
| user-invocable | true |
| disable-model-invocation | true |
Enter planning mode. Scan the codebase for MCode optimization opportunities. Use parallelism where possible.
MCode replaces AHK-interpreted tight loops with native C machine code embedded as base64. The project already has an MCode pipeline (tools/native_benchmark/native_src/) and a working example (src/gui/icon_alpha.ahk). Adding a new function to an existing MCode module is low cost — the infrastructure exists.
All four must be true:
query_function_visibility.ps1 to check call frequency — a loop called 1x/session vs 100x/sec changes the MCode ROI. Use query_callchain.ps1 <funcName> -Reverse to trace all invocation contexts. Use query_timers.ps1 to check if the candidate is inside a timer callback (hot path signal).Buffer / NumGet / NumPut, not AHK objectsStrPut, InStr, SubStr, Sort, RegExMatch etc.NumGet / NumPut inside loops (pixel processing, binary protocol parsing, buffer scanning)src/gui/icon_alpha.ahk — template for MCode embedding (base64 → CryptStringToBinary → VirtualProtect)tools/native_benchmark/native_src/icon_alpha.c — reference C source (no CRT, no imports, pure computation)tools/native_benchmark/ — benchmark harness and native build pipelineFocus on files with buffer/binary operations:
src/gui/gui_paint.ahk — rendering, pixel manipulationsrc/core/ — icon extraction, process info, any binary data handlingsrc/shared/ipc_pipe.ahk — binary pipe protocol parsingsrc/pump/ — icon resolution, bitmap processingNumGet or NumPut usageFor each candidate:
| File | Function | Loop Description | Est. Worst Case | Qualifies? | Why |
|---|---|---|---|---|---|
foo.ahk:42 | ScanBuffer() | NumGet loop over 256KB icon bitmap, ~65k iterations | ~65ms | Yes | Pure buffer, no AHK objects, scales with icon count |
bar.ahk:100 | ParseWindows() | Loop over window array calling WinGetTitle | ~2ms | No | Bottleneck is Win32 calls, not AHK loop |
For qualifying candidates, additionally note:
icon_alpha) or needs a new oneIgnore any existing plans — create a fresh one.