基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cwilliams5/Alt-Tabby --skill review-function-visibility命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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-function-visibility |
| description | Audit function visibility boundaries and rename misclassified public/private functions |
| user-invocable | true |
| disable-model-invocation | true |
Enter planning mode. Audit function visibility boundaries for cleanup opportunities. Use parallelism where possible.
Primary — run this first to get the candidate list:
| Command | Purpose |
|---|---|
query_visibility.ps1 | Public functions with 0 external callers (default) |
query_visibility.ps1 -MinCallers 1 | Also include functions with exactly 1 external caller |
Verification — for investigating specific functions:
| Command | Purpose |
|---|---|
query_function_visibility.ps1 <funcName> | Where defined, public/private, all callers |
query_interface.ps1 <file> | Public/private function ratios for a file |
query_impact.ps1 <funcName> | Blast radius of making a function public (downstream callers/readers) |
query_includes.ps1 | Include tree — verify cross-file boundaries when assessing visibility |
These are private functions missing the _ prefix. Rename them.
Before renaming, verify:
SetTimer, Hotkey, OnEvent, OnExit, OnError, IPC function refs). Use query_function_visibility.ps1 to check — it detects indirect references, not just direct calls.Flag these but apply judgment. Only propose making private when:
Skip when the function is:
Never use replace_all when the function name is a substring of another function name. For example, renaming _Init would corrupt WL_Init.
Before every rename:
query_function_visibility.ps1 <funcName> to get all call sitesFoo, check for BarFoo, BazFoo)replace_allSection 1 — Zero-caller renames (high confidence):
| File | Function | Rename To | Verified No Callers | Substring Safe? |
|---|---|---|---|---|
gui_paint.ahk | BuildLayout() | _BuildLayout() | query_visibility.ps1 — 0 callers | Yes — no XBuildLayout exists |
Section 2 — Single-caller candidates (needs judgment):
| File | Function | Caller | Same File? | Recommendation | Reason |
|---|---|---|---|---|---|
gui_data.ahk | FormatTitle() | gui_paint.ahk | No | Keep public | Cross-file caller, legitimate API |
Section 3 — Public/private ratio observations (informational):
| File | Public | Private | Notes |
|---|---|---|---|
gui_state.ahk | 12 | 3 | High public ratio — may warrant review |
Order section 1 by file for efficient batch renaming. Run tests after all renames: .\tests\test.ps1 --live
Ignore any existing plans — create a fresh one.