agentleFS
youhei-ushioyouhei-ushio/dotclaude-public/skills/global/livewire-v3-syntax/SKILL.md

livewire-v3-syntax

Skill1 starsChanged 59 days agoMITView on GitHub

Livewire コンポーネントを書く・編集するときに必ず確認する。 特に <livewire:...> タグ、@livewire ディレクティブ、wire:key / :key 属性のいずれかを書こうとしているとき。 Livewire v2 と v3 で構文が大きく異なるため。

The file

Files
SKILL.md

Livewire v3 構文ルール

Livewire 3.x を使うプロジェクトで、v2 系の書き方が混入するのを防ぐ。 本 skill を有効にした状態では v2 構文は禁止。

タグ記法

正解 (v3):

<livewire:component-name :key="$key" />
<livewire:component-name :prop="$value" />
<livewire:component-name :prop="$value" :key="$id" />

NG (v2 系):

@livewire('component-name')
<livewire:component-name wire:key="key" />

キー属性

繰り返し描画時のキーは :key を使う。wire:key は v2 構文。

不確実な場合

claude.ai Context7 MCP で最新仕様を確認する:

  1. mcp__claude_ai_Context7__resolve-library-id で Livewire の ID を取得
  2. mcp__claude_ai_Context7__query-docs で最新仕様を確認
  3. それに従って実装

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.