一键导入
debug-template
Debug an Arizona template's compile/eval/diff flow. Use when investigating how a template compiles, evaluates, or diffs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Debug an Arizona template's compile/eval/diff flow. Use when investigating how a template compiles, evaluates, or diffs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a new route to the Arizona router configuration. Use when creating new pages or endpoints.
Scaffold a new Arizona handler module. Ask whether it's a route-level view or an embeddable stateful component.
Trace an event through the full Arizona stack from client click to DOM patch. Use when debugging event handling.
Profile Arizona hot paths with eprof/fprof. Use when investigating performance or picking the next optimization.
Add tests for an Arizona module. Use when creating CT suites, inline EUnit tests, or E2E tests.
Format, check, test, and commit changes. Use before committing any code changes.
| name | debug-template |
| description | Debug an Arizona template's compile/eval/diff flow. Use when investigating how a template compiles, evaluates, or diffs. |
| argument-hint | ["module_or_file"] |
| allowed-tools | Read, Grep, Glob |
Debug the template in $ARGUMENTS. Trace the full lifecycle:
Read the module's render/1 function and analyze the ?html(...) call:
#{s => Statics, d => Dynamics, f => Fingerprint}sd with its Az value, type (text/attr/nested), and source locationdiff => false is present (from az-nodiff)fingerprint-N)Trace what happens when render/1 is called with sample bindings:
arizona_eval function handles each dynamic?getExplain what happens on subsequent renders:
diff/2, diff/3, or diff/4)diff => false short-circuitsShow the op codes that would be sent to the client and how arizona.js applies them.
Reference files:
src/arizona_parse_transform.erlsrc/arizona_eval.erlsrc/arizona_render.erlsrc/arizona_diff.erldocs/architecture.md