بنقرة واحدة
explain-op
Explain what an Arizona op code does on both server and client. Use when understanding patch operations.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Explain what an Arizona op code does on both server and client. Use when understanding patch operations.
التثبيت باستخدام 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 | explain-op |
| description | Explain what an Arizona op code does on both server and client. Use when understanding patch operations. |
| argument-hint | ["op_name_or_number"] |
| allowed-tools | Read, Grep, Glob |
Explain the $ARGUMENTS op code.
| Code | Name | Args |
|---|---|---|
| 0 | OP_TEXT | [target, value] |
| 1 | OP_SET_ATTR | [target, attr, value] |
| 2 | OP_REM_ATTR | [target, attr] |
| 3 | OP_UPDATE | [target, html] |
| 4 | OP_REMOVE_NODE | [target] |
| 5 | OP_INSERT | [target, key, pos, html] |
| 6 | OP_REMOVE | [target, key] |
| 7 | OP_ITEM_PATCH | [target, key, innerOps] |
| 8 | OP_REPLACE | [target, html] |
| 9 | OP_MOVE | [target, key, afterKey] |
For the requested op, explain:
Find where this op is produced in src/arizona_diff.erl:
make_op or make_child_op clause generates itFind how assets/js/arizona.js handles this op in applyOps:
resolveElWhich hook callbacks fire:
mounted() -- for newly added elementsupdated() -- for modified elementsdestroyed() -- for removed elementsdestroyHooks or destroyChildHooks is usedShow a concrete scenario where this op is produced and applied.