بنقرة واحدة
new-component
Scaffold a new stateless Arizona component module with render/1.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Scaffold a new stateless Arizona component module with render/1.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | new-component |
| description | Scaffold a new stateless Arizona component module with render/1. |
| argument-hint | ["module_name"] |
| allowed-tools | Write, Glob |
Create a new stateless component module named $ARGUMENTS in src/.
Use this template:
-module($ARGUMENTS).
-include("arizona_stateless.hrl").
-export([render/1]).
render(Bindings) ->
?html({'div', [], [
<<"$ARGUMENTS">>
]}).
Rules:
src/$ARGUMENTS.erlarizona_stateless.hrl (sets parse transform + macros, no behaviour)render/1 takes a Bindings map (props passed from parent via ?stateless)?get(Key) or ?get(Key, Default) to access bindingsmount, handle_event, or handle_info -- stateless components are pure render functionsAdd 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.