Ash Framework — resources, actions, policies, aggregates; Use when generating resources via mix ash.codegen, editing…
日本語の概要は準備中です。原文の説明を表示しています。
Initialize plugin in a project — install Iron Laws, auto-activation rules, and reference auto-loading into CLAUDE.md. Use when setting up or updating the plugin.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Install the Elixir/Phoenix plugin's behavioral instructions into the project's CLAUDE.md.
/phx:init # First-time installation
/phx:init --update # Update existing installation with latest rules
Use Glob to check if CLAUDE.md exists. Then use Grep to check for existing ELIXIR-PHOENIX-PLUGIN:START marker in CLAUDE.md.
Scan the project to customize the injected instructions:
Read mix.exs and use Grep to extract:
phoenix.*"~> in mix.exsecto.*"~> in mix.exs"oban" and "oban_pro" in mix.exs"ash", "surface" in mix.exs"tidewave" in mix.exslib/**/*.ex filesMode A: Fresh Install (no CLAUDE.md or no markers)
Mode B: Update (--update flag or markers exist)
<!-- ELIXIR-PHOENIX-PLUGIN:START --> and <!-- ELIXIR-PHOENIX-PLUGIN:END -->In both modes, CLAUDE.md content outside the plugin markers — user-written rules, project conventions, other plugin sections — stays verbatim (Iron Law 1)
Write the following structure to CLAUDE.md:
<!-- ELIXIR-PHOENIX-PLUGIN:START -->
<!-- Last updated: {date} | Plugin version: 1.0 | Stack: Phoenix {version}, Ecto {version}, {optional: Oban, Tidewave} -->
# Elixir/Phoenix Plugin - Auto-Activation Rules
{Include all sections from the Content Template below, filtered by detected stack}
<!-- ELIXIR-PHOENIX-PLUGIN:END -->
If command -v codex succeeds (or the user asks): offer to install a
managed ## Review guidelines block into the project's AGENTS.md —
honored by BOTH codex exec review locally and the Codex cloud PR
reviewer. Follow the install rules and exact block in
${CLAUDE_SKILL_DIR}/references/codex-review-guidelines.md: markers
ELIXIR-PHOENIX-REVIEW-GUIDELINES:START/END, upsert in place on
--update, never touch content outside markers, and STOP to ask if an
unmanaged ## Review guidelines section already exists. When codex is
absent and not requested, skip silently — never mention codex to users
who don't have it.
✅ Elixir/Phoenix plugin initialized
Detected stack:
- Phoenix {version}
- Ecto {version}
- {Oban standard | Oban Pro | not detected}
- {Tidewave ✓ | Tidewave not detected}
- {Ash Framework detected - Ecto patterns disabled | not detected}
Added to CLAUDE.md:
- Auto-activation rules (complexity detection, interview mode)
- Agent trigger patterns ({n} agents available)
- Reference auto-loading ({n} reference docs)
- Iron Laws enforcement ({n} laws)
- Verification rules
{- Codex review guidelines → AGENTS.md (only if installed in Step 4b)}
Run /phx:init --update after plugin updates.
Run /phx:audit for a full project health check.
The exact content to inject is in ${CLAUDE_SKILL_DIR}/references/injectable-template.md.
Key structure:
/phx:* command fits which kind of request{OBAN_SECTION} — If Oban detected (not Pro){OBAN_PRO_SECTION} — If Oban Pro detected{ASH_SECTION} — If Ash Framework detected{TIDEWAVE_SECTION} — If Tidewave detectedPlaceholder substitution:
| Placeholder | Source |
|---|---|
{DATE} | Current date |
{PHOENIX_VERSION} | From mix.exs |
{ECTO_VERSION} | From mix.exs |
{OPTIONAL_STACK} | Detected optional deps |
See ${CLAUDE_SKILL_DIR}/references/injectable-template.md for full template with all placeholders and conditional sections.
After running /phx:init:
| Scenario | Action |
|---|---|
| CLAUDE.md read-only | Error: "Cannot modify CLAUDE.md - check permissions" |
| Markers corrupted | Warn, offer to remove and reinstall |
| Unknown Phoenix version | Use conservative defaults (all features enabled) |
| Not an Elixir project | Error: "No mix.exs found - is this an Elixir project?" |
| Command | When to Use |
|---|---|
/phx:init | First time, or after plugin updates |
/phx:audit | Periodic project health check |
/phx:verify | After code changes |
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Ash Framework — resources, actions, policies, aggregates; Use when generating resources via mix ash.codegen, editing…
日本語の概要は準備中です。原文の説明を表示しています。
Ash Framework — resources, actions, policies, aggregates, calculations, AshPhoenix.Form, LiveView, migrations. Use when generating resources via mix ash.codegen, editing changes, checks, types, validations, or domain code interfaces.
日本語の概要は準備中です。原文の説明を表示しています。
Compatibility alias for the Elixir/Phoenix plugin's LiveView assigns audit. Invoke explicitly with /lv:assigns.
日本語の概要は準備中です。原文の説明を表示しています。
Inspect LiveView socket assigns for memory bloat — missing temporary_assigns, unused assigns, unbounded lists needing streams, memory estimates. Use when LiveView memory grows or you need to add temporary_assigns.
日本語の概要は準備中です。原文の説明を表示しています。
Project health audit and health check — architecture, performance, tests, dependencies, code quality. Use when assessing overall project health, before releases, or after refactors.
日本語の概要は準備中です。原文の説明を表示しています。
Analyze Phoenix context boundaries and module coupling via mix xref. Use when checking cross-context calls, validating dependencies, before splitting modules, or reviewing architecture.
日本語の概要は準備中です。原文の説明を表示しています。