[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6X75GHTXH2S42VRTA7NCNK6":3,"skill-same:01M6X75GHTXH2S42VRTA7NCNK6":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":55,"ownerHtmlUrl":56,"ownerBlogUrl":55,"ownerDescription":57,"updatedAt":58,"install":59,"resources":71},"01M6X75GHTXH2S42VRTA7NCNK6","livewire",null,"Use when the project's frontend stack is Livewire — dispatched by `directives\u002Fui\u002F{apply,review,polish}.ts`. Covers reactive state, events, lifecycle hooks, and component\u002Fview separation.","event4u-app\u002Fagent-config","event4u-app","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F199339632?v=4","01M6X5TWBNCQCE1VDKT4E9KF7N","event4u.app","01M6X5TWF4HRM266RG2Q5VVH1X",19,"MIT","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Flivewire\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"hooks","when","directives","reactive","true","separation","professional","events","false","project","frontend","view","laravel","stack","polish","lifecycle","ui","component","review","2026-11-10 10:12:30",false,"---\nmodel_tier: medium\nname: livewire\ndescription: \"Use when the project's frontend stack is Livewire — dispatched by `directives\u002Fui\u002F{apply,review,polish}.ts`. Covers reactive state, events, lifecycle hooks, and component\u002Fview separation.\"\ndomain: engineering\nworkspaces:\n  - engineering\npacks:\n  - laravel\ntrust:\n  level: professional\ninstall:\n  default: false\n  removable: true\n---\n\n# livewire\n\n> **Grounded stack guidance:** pull idiomatic Blade\u002FUI Do\u002FDon't + docs URLs\n> via `node \u003Cskills-root>\u002Fcorpus-grounding\u002Fscripts\u002Fground.mjs search\n> --manifest \u003Cskills-root>\u002Fdesign-intelligence\u002Fdata\u002Fmanifest.json\n> --stack laravel \"\u003Ctopic>\"` (UI-scoped corpus). See\n> [`design-intelligence`](..\u002Fdesign-intelligence\u002FSKILL.md).\n\n## Positioning — dispatched, not standalone\n\n`livewire` is the **apply-step executor** for the Livewire stack. It is\ninvoked by [`directives\u002Fui\u002Fapply.ts`](..\u002F..\u002Ftemplates\u002Fscripts\u002Fwork_engine\u002Fdirectives\u002Fui\u002Fapply.ts)\nonce the design brief is locked, and revisited by `review.ts` \u002F\n`polish.ts` during the design-review loop. It does **not** own the\nflow, does **not** drive the audit, and does **not** lock the design.\n\n| Concern | Owner |\n|---|---|\n| Audit + token inventory (mandatory pre-step) | [`existing-ui-audit`](..\u002Fexisting-ui-audit\u002FSKILL.md) |\n| Design brief (layout \u002F states \u002F microcopy) | [`directives\u002Fui\u002Fdesign.ts`](..\u002F..\u002Ftemplates\u002Fscripts\u002Fwork_engine\u002Fdirectives\u002Fui\u002Fdesign.ts) |\n| Universal design heuristics | [`fe-design`](..\u002Ffe-design\u002FSKILL.md) |\n| Static Blade partials inside the view | [`blade-ui`](..\u002Fblade-ui\u002FSKILL.md) |\n| Flux primitives inside the view | [`flux`](..\u002Fflux\u002FSKILL.md) |\n\n## When to use\n\nCite this skill when:\n\n- `state.stack.frontend == \"livewire\"` and `directives\u002Fui\u002Fapply.ts` dispatches to this skill\n- Editing or creating Livewire components — reactive state, forms, tables, real-time updates\n\nDo NOT use when:\n\n- Static Blade views with no interactivity (use `blade-ui` skill)\n- Flux UI primitives (use `flux` skill — `livewire` composes Flux internally)\n- Driving the full UI flow yourself — that is the `directives\u002Fui\u002F` orchestrator\n\n## Procedure: Create a Livewire component\n\n### Step 0: Inspect\n\n1. Detect Livewire version — `composer.json` for `livewire\u002Flivewire`.\n   - v3: `#[Layout]`, `#[Title]`, property attributes.\n   - v2: `$layout`, `$listeners`, method-based hooks.\n2. Check existing components — `app\u002FLivewire\u002F` or `app\u002FHttp\u002FLivewire\u002F`.\n3. Check views — `resources\u002Fviews\u002Flivewire\u002F`.\n4. **Control roles.** For every control you add, look up its role in the `control_roles` of `agent-config ui:audit` (re-run it when the artifact is older than your last UI edit): use the canonical implementation and the siblings' box metrics. Role missing or tied → ask before inventing a control kind; a native control beside an existing primitive needs a stated `native_control_reason`.\n\n### Step 1: Create component class\n\n1. `declare(strict_types=1)`, `final` class.\n2. Typed public properties for state — keep minimal.\n3. `#[Locked]` for tamper-proof properties.\n4. `#[Url]` for URL-synced properties.\n\n### Step 2: Implement actions\n\n1. Public methods callable from frontend.\n2. Validate before processing: `$this->validate()`.\n3. `$this->dispatch()` for cross-component communication (v3).\n\n### Step 3: Create view\n\n1. One root element (`\u003Cdiv>`).\n2. `wire:key` on dynamic lists.\n3. `wire:loading` for user feedback.\n4. `wire:model.live` for real-time updates (v3 default is deferred).\n\n### Step 4: Test\n\n- `Livewire::test(ComponentClass::class)`\n- `->set()`, `->call()`, `->assertSee()`, `->assertHasNoErrors()`\n\n## Conventions\n\n→ See guideline `php\u002Flivewire.md` for state management, forms, performance, Alpine.js, templates.\n\n## Output format\n\n1. Livewire component class with typed properties and actions\n2. Blade view with wire: bindings and Flux components\n\n### Review pass — a11y findings + preview envelope\n\nWhen this skill is dispatched by `directives\u002Fui\u002Freview.ts` (test slot)\nor `directives\u002Fui\u002Fpolish.ts` (verify slot) — i.e. a review\u002Fpolish run,\nnot the initial apply — it also emits:\n\n- `state.ui_review.a11y` — `{violations: [{rule, selector, severity}, ...],\n  severity_floor?, accepted_violations?}`. Use the same `(rule, selector)`\n  shape as `state.ui_audit.a11y_baseline` so the engine's de-dup matches\n  pre-existing entries on replay. Omit the envelope on apply passes; the\n  engine's `_apply_a11y_gate` only fires when a baseline is present.\n- `state.ui_review.preview` — `{render_ok: bool, screenshot_path?,\n  dom_dump_path?, error?, skipped?}`. `render_ok: false` with `error`\n  populated triggers the `preview_render_failed` halt; `render_ok: true`\n  with `screenshot_path` threads the screenshot into the delivery\n  report's `artifacts` list. Browser tooling (Playwright\u002FCypress\u002F…) is\n  a consumer-project dependency — this package does not ship one.\n\nPolish dispatch: when the dispatcher skips `review` because a previous\nreview pass already returned `SUCCESS`, this skill MUST itself\nsynthesise the updated `state.ui_review.findings` (including any\nremaining `a11y_violation` entries) so the engine's gate sees the\ncurrent state on the next polish round.\n\n## Gotcha\n\n- Public properties serialize between requests — don't put large objects in state.\n- `wire:model` is deferred by default in v3 — use `wire:model.live` for real-time.\n- `$this->redirect()` + `$this->dispatch()` in same method — only redirect executes.\n\n## Do NOT\n\n- Do NOT put heavy computation in `render()` — it runs on every update.\n- Do NOT nest Livewire components deeply — keep the tree shallow.\n- Do NOT expose sensitive data as public properties.\n\n## Anti-slop\n\nWhen a Livewire component renders UI, pull\n[`docs\u002Fguidelines\u002Fdesign-antipatterns.md`](..\u002F..\u002F..\u002Fdocs\u002Fguidelines\u002Fdesign-antipatterns.md)\nfor the Visual \u002F Layout \u002F Motion checks (loading states that animate layout\nproperties — M2 — are a common Livewire `wire:loading` pitfall). Stack styling\nbans: [`tailwind-engineer`](..\u002Ftailwind-engineer\u002FSKILL.md).\n\n## Auto-trigger keywords\n\n- Livewire\n- reactive component\n- wire:model\n- lifecycle\n- real-time UI\n","# livewire\n\n> **Grounded stack guidance:** pull idiomatic Blade\u002FUI Do\u002FDon't + docs URLs\n> via `node \u003Cskills-root>\u002Fcorpus-grounding\u002Fscripts\u002Fground.mjs search\n> --manifest \u003Cskills-root>\u002Fdesign-intelligence\u002Fdata\u002Fmanifest.json\n> --stack laravel \"\u003Ctopic>\"` (UI-scoped corpus). See\n> [`design-intelligence`](..\u002Fdesign-intelligence\u002FSKILL.md).\n\n## Positioning — dispatched, not standalone\n\n`livewire` is the **apply-step executor** for the Livewire stack. It is\ninvoked by [`directives\u002Fui\u002Fapply.ts`](..\u002F..\u002Ftemplates\u002Fscripts\u002Fwork_engine\u002Fdirectives\u002Fui\u002Fapply.ts)\nonce the design brief is locked, and revisited by `review.ts` \u002F\n`polish.ts` during the design-review loop. It does **not** own the\nflow, does **not** drive the audit, and does **not** lock the design.\n\n| Concern | Owner |\n|---|---|\n| Audit + token inventory (mandatory pre-step) | [`existing-ui-audit`](..\u002Fexisting-ui-audit\u002FSKILL.md) |\n| Design brief (layout \u002F states \u002F microcopy) | [`directives\u002Fui\u002Fdesign.ts`](..\u002F..\u002Ftemplates\u002Fscripts\u002Fwork_engine\u002Fdirectives\u002Fui\u002Fdesign.ts) |\n| Universal design heuristics | [`fe-design`](..\u002Ffe-design\u002FSKILL.md) |\n| Static Blade partials inside the view | [`blade-ui`](..\u002Fblade-ui\u002FSKILL.md) |\n| Flux primitives inside the view | [`flux`](..\u002Fflux\u002FSKILL.md) |\n\n## When to use\n\nCite this skill when:\n\n- `state.stack.frontend == \"livewire\"` and `directives\u002Fui\u002Fapply.ts` dispatches to this skill\n- Editing or creating Livewire components — reactive state, forms, tables, real-time updates\n\nDo NOT use when:\n\n- Static Blade views with no interactivity (use `blade-ui` skill)\n- Flux UI primitives (use `flux` skill — `livewire` composes Flux internally)\n- Driving the full UI flow yourself — that is the `directives\u002Fui\u002F` orchestrator\n\n## Procedure: Create a Livewire component\n\n### Step 0: Inspect\n\n1. Detect Livewire version — `composer.json` for `livewire\u002Flivewire`.\n   - v3: `#[Layout]`, `#[Title]`, property attributes.\n   - v2: `$layout`, `$listeners`, method-based hooks.\n2. Check existing components — `app\u002FLivewire\u002F` or `app\u002FHttp\u002FLivewire\u002F`.\n3. Check views — `resources\u002Fviews\u002Flivewire\u002F`.\n4. **Control roles.** For every control you add, look up its role in the `control_roles` of `agent-config ui:audit` (re-run it when the artifact is older than your last UI edit): use the canonical implementation and the siblings' box metrics. Role missing or tied → ask before inventing a control kind; a native control beside an existing primitive needs a stated `native_control_reason`.\n\n### Step 1: Create component class\n\n1. `declare(strict_types=1)`, `final` class.\n2. Typed public properties for state — keep minimal.\n3. `#[Locked]` for tamper-proof properties.\n4. `#[Url]` for URL-synced properties.\n\n### Step 2: Implement actions\n\n1. Public methods callable from frontend.\n2. Validate before processing: `$this->validate()`.\n3. `$this->dispatch()` for cross-component communication (v3).\n\n### Step 3: Create view\n\n1. One root element (`\u003Cdiv>`).\n2. `wire:key` on dynamic lists.\n3. `wire:loading` for user feedback.\n4. `wire:model.live` for real-time updates (v3 default is deferred).\n\n### Step 4: Test\n\n- `Livewire::test(ComponentClass::class)`\n- `->set()`, `->call()`, `->assertSee()`, `->assertHasNoErrors()`\n\n## Conventions\n\n→ See guideline `php\u002Flivewire.md` for state management, forms, performance, Alpine.js, templates.\n\n## Output format\n\n1. Livewire component class with typed properties and actions\n2. Blade view with wire: bindings and Flux components\n\n### Review pass — a11y findings + preview envelope\n\nWhen this skill is dispatched by `directives\u002Fui\u002Freview.ts` (test slot)\nor `directives\u002Fui\u002Fpolish.ts` (verify slot) — i.e. a review\u002Fpolish run,\nnot the initial apply — it also emits:\n\n- `state.ui_review.a11y` — `{violations: [{rule, selector, severity}, ...],\n  severity_floor?, accepted_violations?}`. Use the same `(rule, selector)`\n  shape as `state.ui_audit.a11y_baseline` so the engine's de-dup matches\n  pre-existing entries on replay. Omit the envelope on apply passes; the\n  engine's `_apply_a11y_gate` only fires when a baseline is present.\n- `state.ui_review.preview` — `{render_ok: bool, screenshot_path?,\n  dom_dump_path?, error?, skipped?}`. `render_ok: false` with `error`\n  populated triggers the `preview_render_failed` halt; `render_ok: true`\n  with `screenshot_path` threads the screenshot into the delivery\n  report's `artifacts` list. Browser tooling (Playwright\u002FCypress\u002F…) is\n  a consumer-project dependency — this package does not ship one.\n\nPolish dispatch: when the dispatcher skips `review` because a previous\nreview pass already returned `SUCCESS`, this skill MUST itself\nsynthesise the updated `state.ui_review.findings` (including any\nremaining `a11y_violation` entries) so the engine's gate sees the\ncurrent state on the next polish round.\n\n## Gotcha\n\n- Public properties serialize between requests — don't put large objects in state.\n- `wire:model` is deferred by default in v3 — use `wire:model.live` for real-time.\n- `$this->redirect()` + `$this->dispatch()` in same method — only redirect executes.\n\n## Do NOT\n\n- Do NOT put heavy computation in `render()` — it runs on every update.\n- Do NOT nest Livewire components deeply — keep the tree shallow.\n- Do NOT expose sensitive data as public properties.\n\n## Anti-slop\n\nWhen a Livewire component renders UI, pull\n[`docs\u002Fguidelines\u002Fdesign-antipatterns.md`](..\u002F..\u002F..\u002Fdocs\u002Fguidelines\u002Fdesign-antipatterns.md)\nfor the Visual \u002F Layout \u002F Motion checks (loading states that animate layout\nproperties — M2 — are a common Livewire `wire:loading` pitfall). Stack styling\nbans: [`tailwind-engineer`](..\u002Ftailwind-engineer\u002FSKILL.md).\n\n## Auto-trigger keywords\n\n- Livewire\n- reactive component\n- wire:model\n- lifecycle\n- real-time UI\n",{"name":5,"packs":43,"trust":44,"domain":45,"install":46,"model_tier":48,"workspaces":49,"description":7},[31],{"level":25},"engineering",{"default":39,"removable":47},true,"medium",[45],"main","12bd765ce1d800501d45dfb8232102793af01290","src\u002Fskills\u002Flivewire",1,"https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config","https:\u002F\u002Fevent4u.app","https:\u002F\u002Fgithub.com\u002Fevent4u-app","Your events in your hand","2026-11-14 02:29:41",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":47},[61,64,67],{"tool":62,"command":63},"npx","npx skills add event4u-app\u002Fagent-config --skill livewire",{"tool":65,"command":66},"bunx","bunx skills add event4u-app\u002Fagent-config --skill livewire",{"tool":68,"command":69},"pnpm","pnpm dlx skills add event4u-app\u002Fagent-config --skill livewire","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Flivewire\u002FSKILL.md",[72],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"evals\u002Ftriggers.json","REFERENCE","参考文档",3261,"https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Flivewire\u002Fevals\u002Ftriggers.json",[79,92,104,115,126,135],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":38},"01M6X84PK96XBPENXH66JCTSD1","unknown-key-fixture","Declares a key the schema does not know.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Fscripts\u002Ffixtures\u002Fbody-portable\u002Funknown-key\u002FSKILL.md",[],[86,87,88,89,90,91],"unknown key fixture","Unknown key","fixture","unknown","schema","package",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":38},"01M6X84HW7NAHZ7GZMQ9RXK1XJ","portable-fixture","Declares only semantics the MCP-lite carrier transports whole.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Fscripts\u002Ffixtures\u002Fbody-portable\u002Fportable\u002FSKILL.md",[],[88,99,100,101,102,91,103],"portable","portable fixture","engineer","only","MCP",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":38},"01M6X84F29FE0RGGZ1ZTFGZTX2","non-portable-fixture","Declares a runtime semantic the carrier drops.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Fscripts\u002Ffixtures\u002Fbody-portable\u002Fnon-portable\u002FSKILL.md",[],[100,111,99,88,112,113,114,91],"non portable fixture","semantic","high","runtime",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":38},"01M6X848F706PT9MDCX75JKJ6B","candidate-zero-width","A candidate whose prose carries an invisible joiner.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-scout-candidates\u002Fzero-width-injection\u002FSKILL.md",[],[122,123,124,125],"candidate zero width","candidate","ZeRO","prose",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":38},"01M6X841SSC2T31VDF41SA6DG1","candidate-disclosure-suppression","A candidate whose prose tells the agent to withhold from the user.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-scout-candidates\u002Fdisclosure-suppression\u002FSKILL.md",[],[133,123,125,134],"candidate disclosure suppression","user",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":38},"01M6X83TFS5AGPBPVTQNWP0BB3","candidate-dangerous-frontmatter","A candidate claiming an unscoped tool grant and a permission bypass.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-scout-candidates\u002Fdangerous-frontmatter\u002FSKILL.md",[],[142,123,143,144,145,146],"candidate dangerous frontmatter","frontmatter","shell","permission","tool"]