Agent skill
trace
Spawn agent to trace code flow via query tools — answer only, no context cost
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/trace-cwilliams5-alt-tabby
SKILL.md
Trace the following code flow through the Alt-Tabby codebase: "$ARGUMENTS"
Available Query Tools
Run via powershell -File tools/<name>. These are the primary research tools — always prefer them over reading files directly.
CALL CHAIN (primary tool for tracing)
query_callchain.ps1 <funcName> [-Depth N] [-Reverse]
Forward: shows what <funcName> calls, to N levels deep (default 2).
Reverse: shows what calls <funcName>, to N levels up.
Example: powershell -File tools/query_callchain.ps1 GUI_Repaint -Depth 3
FUNCTION BODY
query_function.ps1 <funcName>
Extracts full function body with line numbers. Use when you need to understand WHAT a function does, not just what it calls.
Example: powershell -File tools/query_function.ps1 GUI_TransitionTo
GLOBAL OWNERSHIP
query_global_ownership.ps1 <globalName>
Shows who declares, writes (with mutation count), and reads a global.
Example: powershell -File tools/query_global_ownership.ps1 gGUI_State
GLOBAL MUTATIONS (detailed)
query_mutations.ps1 <globalName> [-Brief]
Shows every function that mutates a global, with guards (Critical sections, if-conditions) and literal values assigned. More detailed than ownership.
Example: powershell -File tools/query_mutations.ps1 gGUI_State
IMPACT / BLAST RADIUS
query_impact.ps1 <funcName> [-Deep]
Shows callers, globals written, downstream readers of those globals.
-Deep adds transitive callers (callers of callers).
Example: powershell -File tools/query_impact.ps1 GUI_Repaint -Deep
FILE INTERFACE
query_interface.ps1 <filename>
Public functions + globals for a file (like help(module)). Accepts filename with or without .ahk extension.
Example: powershell -File tools/query_interface.ps1 gui_paint
INCLUDE CHAIN
query_includes.ps1 [filename]
No args: full include tree from entry points.
With filename: who includes this file, what it includes, transitive entry points.
Example: powershell -File tools/query_includes.ps1 gui_state.ahk
FUNCTION VISIBILITY
query_function_visibility.ps1 <funcName>
Where defined, public/private, all callers across all files.
Example: powershell -File tools/query_function_visibility.ps1 _GUI_FreezeDisplayList
CONFIG
query_config.ps1 [keyword | -Section <name> | -Usage <propertyName>]
No args: section/group index. Keyword: fuzzy search. -Usage: which files read cfg.X.
Example: powershell -File tools/query_config.ps1 -Usage ThemeMode
IPC MESSAGES
query_ipc.ps1 [message]
No args: list all IPC_MSG_* constants. With message: who sends/handles it.
Example: powershell -File tools/query_ipc.ps1 snapshot
STATE MACHINE
query_state.ps1 [state] [event]
No args: index of all states/events. With args: specific dispatch branch.
Hardcoded to GUI_OnInterceptorEvent in gui_state.ahk.
Example: powershell -File tools/query_state.ps1 ACTIVE TAB_STEP
TIMERS
query_timers.ps1 [keyword]
No args: full SetTimer inventory. With keyword: fuzzy filter.
Example: powershell -File tools/query_timers.ps1 heartbeat
WINDOWS MESSAGES
query_messages.ps1 [query]
No args: list all WM_ handlers. With query: hex, WM_ name, or handler function.
Example: powershell -File tools/query_messages.ps1 WM_CTLCOLORSTATIC
Research Instructions
- ALWAYS prefer query tools over reading files directly — they return semantic answers and cost far less context
- Start with
query_callchain.ps1as the primary tracing tool - Use
query_function.ps1ONLY when call chain output doesn't explain what a step does - Use
query_global_ownership.ps1orquery_mutations.ps1when the question involves data flow through globals - Use
query_impact.ps1when the question is about what a change would affect - Use
query_interface.ps1to understand a module's API surface before diving into specifics
Response Format
Return ONLY a synthesized answer in this exact format:
Summary
One sentence: what the flow does end-to-end.
Path
- FunctionName (file.ahk:line) — what this step does
- FunctionName (file.ahk:line) — what this step does ...
Key State
- globalName (owner: file) — role in this flow
- globalName (owner: file) — role in this flow
Maximum 30 lines total. No raw tool output. No reasoning about your research process.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?