Initialize plugin in a project — install Iron Laws, auto-activation; Use when setting up or updating the plugin.

MITAuto-check passedAgent Workflows

Install Phx Init

skills CLI
$ npx skills add oliver-kriska/claude-elixir-phoenix --skill phx-init -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install oliver-kriska/claude-elixir-phoenix phx-init --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/oliver-kriska/claude-elixir-phoenix.git skills-src && mkdir -p .claude/skills && cp -r skills-src/targets/codex/skills/phx-init .claude/skills/phx-init && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
phx-init
GitHub stars
565
Token cost
~1.4k tokens
SKILL.md length
523 words
Files
3 (incl. references)
Skills in repo
111
Repo updated
First seen
Licence
MIT

At a glance

Initialize plugin in a project — install Iron Laws, auto-activation; Use when setting up or updating the plugin.

  • Works in 5 steps: Check Existing CLAUDE.md → Detect Project Stack → Handle Installation Modes → …
  • Updating the plugin
  • SKILL.md covers Usage, Iron Laws, Workflow and Content Template, plus 3 more sections
  • Calls codex

What it does

Phx Init is an agent skill from oliver-kriska/claude-elixir-phoenix. Initialize plugin in a project — install Iron Laws, auto-activation; Use when setting up or updating the plugin.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/codex-review-guidelines.md` and `references/injectable-template.md`).

It sits in Agent Workflows. It works with Elixir. The repository describes itself as: Claude Code plugin for Elixir/Phoenix/LiveView — 26 specialist agents, Iron Laws enforcement, and Tidewave MCP integration. Plan features with parallel research agents, execute… The licence is MIT.

When your agent uses it

  • Updating the plugin

Example prompts

  • “/phx-init”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Check Existing CLAUDE.md
  2. Detect Project Stack
  3. Handle Installation Modes
  4. Generate Content
  5. Output Summary

What it can do on your machine

Read from SKILL.md and the folder at commit 9767a82. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • codex

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Phx Init loads about 1.4k tokens when it runs, and up to ~4k if it reads all its reference files. Until then it costs about 30 tokens; SKILL.md has 523 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from oliver-kriska/claude-elixir-phoenix at commit 9767a82, republished under its MIT licence (© oliver-kriska). 523 words, ~1,420 tokens.

Download SKILL.mdSave it as .claude/skills/phx-init/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
phx-init
description
Initialize plugin in a project — install Iron Laws, auto-activation; Use when setting up or updating the plugin.

Plugin Initialization

Install the Elixir/Phoenix plugin's behavioral instructions into the project's CLAUDE.md.

Usage

$elixir-phoenix:phx-init           # First-time installation
$elixir-phoenix:phx-init --update  # Update existing installation with latest rules

Iron Laws

  1. NEVER overwrite content outside plugin markers — User-written CLAUDE.md rules must be preserved verbatim
  2. Always detect stack before generating — Never assume Phoenix/Ecto versions
  3. Always validate after installation — Verify markers present and stack correct

Workflow

Step 1: Check Existing CLAUDE.md

Use Glob to check if CLAUDE.md exists. Then use Grep to check for existing ELIXIR-PHOENIX-PLUGIN:START marker in CLAUDE.md.

Step 2: Detect Project Stack

Scan the project to customize the injected instructions:

Read mix.exs and use Grep to extract:

  • Phoenix version: search for phoenix.*"~> in mix.exs
  • Ecto version: search for ecto.*"~> in mix.exs
  • Oban: search for "oban" and "oban_pro" in mix.exs
  • Frameworks: search for "ash", "surface" in mix.exs
  • Tidewave: search for "tidewave" in mix.exs
  • Project size: use Glob to count lib/**/*.ex files
Step 3: Handle Installation Modes

Mode A: Fresh Install (no CLAUDE.md or no markers)

  1. Create/append to CLAUDE.md
  2. Insert full behavioral instructions between markers
  3. Include only relevant sections based on detected stack

Mode B: Update (--update flag or markers exist)

  1. Find content between <!-- ELIXIR-PHOENIX-PLUGIN:START --> and <!-- ELIXIR-PHOENIX-PLUGIN:END -->
  2. Replace with latest behavioral instructions
  3. Preserve everything outside the markers

In both modes, CLAUDE.md content outside the plugin markers — user-written rules, project conventions, other plugin sections — stays verbatim (Iron Law 1)

Step 4: Generate Content

Write the following structure to CLAUDE.md:

markdown
<!-- 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 -->
Step 4b: Offer Codex Review Guidelines (optional)

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 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.

Show full SKILL.md (204 more words)Show less
Step 5: Output Summary
✅ 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 $elixir-phoenix:phx-init --update after plugin updates.
Run $elixir-phoenix:phx-audit for a full project health check.

Content Template

The exact content to inject is in references/injectable-template.md.

Key structure:

  1. Routing table — which $elixir-phoenix:phx-* command fits which kind of request
  2. Iron Laws — STOP behavior on violations
  3. Conditional Sections — Include based on detected stack:
    • {OBAN_SECTION} — If Oban detected (not Pro)
    • {OBAN_PRO_SECTION} — If Oban Pro detected
    • {ASH_SECTION} — If Ash Framework detected
    • {TIDEWAVE_SECTION} — If Tidewave detected
  4. Verification — Mandatory after code changes
  5. Quick Reference — Skill routing table

Placeholder substitution:

PlaceholderSource
{DATE}Current date
{PHOENIX_VERSION}From mix.exs
{ECTO_VERSION}From mix.exs
{OPTIONAL_STACK}Detected optional deps

See references/injectable-template.md for full template with all placeholders and conditional sections.

Validation

After running $elixir-phoenix:phx-init:

  1. Check CLAUDE.md contains markers
  2. Verify detected stack matches actual project
  3. New session should:
    • Auto-detect complexity when given tasks
    • Stop on Iron Law violations
    • Offer relevant workflows based on task

Error Handling

ScenarioAction
CLAUDE.md read-onlyError: "Cannot modify CLAUDE.md - check permissions"
Markers corruptedWarn, offer to remove and reinstall
Unknown Phoenix versionUse conservative defaults (all features enabled)
Not an Elixir projectError: "No mix.exs found - is this an Elixir project?"

Relationship to Other Commands

CommandWhen to Use
$elixir-phoenix:phx-initFirst time, or after plugin updates
$elixir-phoenix:phx-auditPeriodic project health check
$elixir-phoenix:phx-verifyAfter code changes

© oliver-kriska, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in targets/codex/skills/phx-init of oliver-kriska/claude-elixir-phoenix.

  • SKILL.md
  • references/codex-review-guidelines.md
  • references/injectable-template.md

Open the folder on GitHubat commit 9767a82

Compare with similar skills

Phx Init next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Phx Init compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Phx Init this skilloliver-kriska/claude-elixir-phoenix565—~1.4kAutomated safety check: PassMIT
Flow SwarmLeoYeAI/openclaw-master-skills2.2k—~5.3kAutomated safety check: PassMIT
Membrane Frameworkmembraneframework/membrane_core1.5k—~4.2kAutomated safety check: PassApache-2.0
Web Ng Docker Loopcarverauto/serviceradar921—~737Automated safety check: PassApache-2.0
Ash Frameworkpodlove/radiator136—~2.1kAutomated safety check: PassMIT
Ecto Persistence Patternsgeorgeguimaraes/elixir-agent-tools184—~1.2kAutomated safety check: PassApache-2.0

Similar skills

  • Flow Swarm

    LeoYeAI/openclaw-master-skills

    Multi-agent swarm orchestration via RuFlo + Claude Code. An agent skill from LeoYeAI/openclaw-master-skills.

    2.2k GitHub stars~5.3k tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed
  • Membrane Framework

    membraneframework/membrane_core

    Work with the Membrane multimedia streaming framework in Elixir.

    1.5k GitHub stars~4.2k tokensUpdated 8 days ago
    DevelopmentAuto-check passed
  • Web Ng Docker Loop

    carverauto/serviceradar

    Run ServiceRadar elixir/web-ng locally against the Docker Compose CNPG database with copied mTLS certs and Docker secrets, then verify dashboard UI changes with Playwright.

    921 GitHub stars~737 tokensUpdated today
    DevOps & CloudAuto-check passed
  • Ash Framework

    podlove/radiator

    Use this skill working with Ash Framework or any of its extensions.

    136 GitHub stars~2.1k tokensUpdated 14 days ago
    AI & LLM EngineeringAuto-check passed
  • Ecto Persistence Patterns

    georgeguimaraes/elixir-agent-tools

    Designs and debugs Elixir persistence with Ecto: schemas, changesets, queries, preloads, migrations and multi-tenancy, kept within application contexts.

    184 GitHub stars~1.2k tokensUpdated 19 days ago
    Backend & APIsAuto-check passed
  • Sentry Elixir SDK

    getsentry/sentry-for-ai

    Official

    Full Sentry SDK setup for Elixir. An agent skill from getsentry/sentry-for-ai.

    268 GitHub stars~3.5k tokensUpdated today
    AI & LLM EngineeringAuto-check passed

More from oliver-kriska/claude-elixir-phoenix

All 111 skills in this repo
  • Codex Ab

    oliver-kriska/claude-elixir-phoenix

    Run an A/B codex review experiment — holistic codex review vs 3 focused dimension passes (security, ecto, liveview) on the branch diff, classify findings, report a panel-value verdict.

    565 GitHub stars~977 tokensUpdated 4 days ago
    Auto-check passed
  • Audit

    oliver-kriska/claude-elixir-phoenix

    Project health audit and health check — architecture, performance, tests, dependencies, code quality.

    565 GitHub stars~2k tokensUpdated 4 days ago
    Auto-check passed
  • Compound Docs

    oliver-kriska/claude-elixir-phoenix

    Searchable Elixir/Phoenix/Ecto solution documentation system with; Use when consulting past solutions…

    565 GitHub stars~528 tokensUpdated 4 days ago
    Auto-check passed
  • Compound Docs

    oliver-kriska/claude-elixir-phoenix

    Searchable Elixir/Phoenix/Ecto solution documentation system with YAML frontmatter.

    565 GitHub stars~547 tokensUpdated 4 days ago
    Auto-check passed
  • Deploy

    oliver-kriska/claude-elixir-phoenix

    Elixir/Phoenix deployment patterns — Dockerfile, fly.toml, runtime.exs, mix release, rel/ overlays.

    565 GitHub stars~1.1k tokensUpdated 4 days ago
    Auto-check passed
  • Deps Update

    oliver-kriska/claude-elixir-phoenix

    Bump outdated Hex deps — inventory, snapshot changelogs, update, fix breaks, split reviewable PRs (patches bundled, majors solo).

    565 GitHub stars~1.4k tokensUpdated 4 days ago
    Auto-check passed

Works with

Categories

Questions about Phx Init

What does Phx Init do?

Initialize plugin in a project — install Iron Laws, auto-activation; Use when setting up or updating the plugin. Phx Init is an agent skill from oliver-kriska/claude-elixir-phoenix. Initialize plugin in a project — install Iron Laws, auto-activation; Use when setting up or updating the plugin.

When should I use Phx Init?

Phx Init fits situations like: updating the plugin.

How do I install Phx Init in Claude Code?

Run `npx skills add oliver-kriska/claude-elixir-phoenix --skill phx-init -a claude-code`. Or copy the skill folder (targets/codex/skills/phx-init in oliver-kriska/claude-elixir-phoenix) into .claude/skills/phx-init in your project. Claude Code loads it when a task matches its description.

How do I install Phx Init in Codex?

Run `npx skills add oliver-kriska/claude-elixir-phoenix --skill phx-init -a codex`. Or copy the skill folder (targets/codex/skills/phx-init in oliver-kriska/claude-elixir-phoenix) into .agents/skills/phx-init in your project. Codex loads it when a task matches its description.

Can I use Phx Init in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add oliver-kriska/claude-elixir-phoenix --skill phx-init -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/phx-init, .gemini/skills/phx-init, .github/skills/phx-init and .opencode/skills/phx-init in your project.

What does Phx Init need to run?

Going by SKILL.md and its folder, Phx Init needs the command-line tools its instructions call (codex).

Does Phx Init access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Phx Init safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Phx Init use?

Phx Init is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Phx Init use?

About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.6k tokens, read only when the agent opens those files.

What are the alternatives to Phx Init?

Skills that share tags, products or a category with Phx Init: Flow Swarm (LeoYeAI/openclaw-master-skills, 2.2k stars), Membrane Framework (membraneframework/membrane_core, 1.5k stars), Web Ng Docker Loop (carverauto/serviceradar, 921 stars) and Ash Framework (podlove/radiator, 136 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Phx Init?

oliver-kriska (a GitHub user) maintains it in oliver-kriska/claude-elixir-phoenix, which has 565 GitHub stars. The repository holds 111 skills in this directory. The repository was last updated on October 5, 2026.

Source: oliver-kriska/claude-elixir-phoenix on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.