mcpbeat Sign in

Phx Init Agent Skill

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.

5k tokens
context cost
the whole folder, loaded on every use
3
files
instructions only
0
copies elsewhere
how many repositories repackaged it
514
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/oliver-kriska/claude-elixir-phoenix --skill phx-init

What comes with it

13 139 bytes besides the instruction
references/codex-review-guidelines.md
references/injectable-template.md

The instruction itself

14 sections, as written by the author

Plugin Initialization

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

Usage

/skill:phx-init           # First-time installation
/skill:phx-init --update  # Update existing installation with latest rules

Iron Laws

  • NEVER overwrite content outside plugin markers — User-written CLAUDE.md rules must be preserved verbatim
  • Always detect stack before generating — Never assume Phoenix/Ecto versions
  • 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)

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

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

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

CRITICAL: NEVER overwrite or delete existing CLAUDE.md content outside the plugin markers — user-written rules, project conventions, and other plugin sections must be preserved verbatim

Step 4: Generate Content

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

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.

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 /skill:phx-init --update after plugin updates.
Run /skill:phx-audit for a full project health check.

Content Template

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

Key structure:

  • 7-Step Mandatory Procedure — Claude Code MUST execute before every response
  • Iron Laws — STOP behavior on violations
  • 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
  • Verification — Mandatory after code changes
  • Quick Reference — Skill routing table

Placeholder substitution:

| Placeholder | Source |

|-------------|--------|

| {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 /skill:phx-init:

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

Error Handling

| 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?" |

Relationship to Other Commands

| Command | When to Use |

|---------|-------------|

| /skill:phx-init | First time, or after plugin updates |

| /skill:phx-audit | Periodic project health check |

| /skill:phx-verify | After code changes |

Other skills for the same job

different authors, same section of the catalogue
Protocolsio Integration
by christophacham
×4

Integration with protocols.io API for managing scientific protocols. This skill should be used when working with protocols.io to search, create, update, or publish protocols; manage protocol steps and materials; handle discussions and comments; organize workspaces; upload and manage files; or integrate protocols.io functionality into workflows. Applicable for protocol discovery, collaborative protocol development, experiment tracking, lab protocol management, and scientific documentation.

16k tokens
Tailored Resume Generator
by frostant
×4

Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances

3k tokens
Excalidraw Diagram Generator
by github
vendor ×3

Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.

36k tokens scripts
Expo Dev Client
by openai
vendor ×3

Build and distribute Expo development clients locally or via TestFlight

961 tokens
Executing Plans
by ZhanlinCui
×3

Use when you have a written implementation plan to execute in a separate session with review checkpoints

542 tokens
Anndata
by christophacham
×3

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.

16k tokens
Benchling Integration
by christophacham
×3

Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.

14k tokens
Biopython
by christophacham
×3

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.

24k tokens

How to use it

Copy the folder

Take oliver-kriska/claude-elixir-phoenix-pi-phx-init from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.