init
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.
npx skills add oliver-kriska/claude-elixir-phoenix --skill init --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Plugin Initialization Install the Elixir/Phoenix plugin's behavioral instructions into the project's CLAUDE.md. ## Usage ``` /phx:init # First-time installation /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 Mo
- Usage
- Iron Laws
- Workflow
- Step 1: Check Existing CLAUDE.md
- Step 2: Detect Project Stack
- Step 3: Handle Installation Modes
- Step 4: Generate Content
- Step 4b: Offer Codex Review Guidelines (optional)
- Step 5: Output Summary
- Content Template
- Validation
- Error Handling
- Relationship to Other Commands
What does the init skill do?
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.
How do I install it?
Run `npx skills add oliver-kriska/claude-elixir-phoenix --skill init --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From oliver-kriska/claude-elixir-phoenix, a repository with 515 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
