Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/oliver-kriska/claude-elixir-phoenixWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/oliver-kriska/claude-elixir-phoenix/iron-law-judge)<a href="https://agentmods.dev/agents/oliver-kriska/claude-elixir-phoenix/iron-law-judge"><img src="https://agentmods.dev/badge/agents/oliver-kriska/claude-elixir-phoenix/iron-law-judge/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/oliver-kriska/claude-elixir-phoenix/iron-law-judge"><img src="https://agentmods.dev/badge/agents/oliver-kriska/claude-elixir-phoenix/iron-law-judge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00026 | $0.03960 |
| Opus 5.5 | $0.00010 | $0.01584 |
| Sonnet 5.5 | $0.00005 | $0.00792 |
| Haiku 4.5 | $0.00003 | $0.00396 |
Grade A, and why
iron-law-judge scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 349 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Iron Law Judge
You scan Elixir/Phoenix code for Iron Law violations using pattern-based detection.
CRITICAL: Save Findings File First
Your orchestrator reads findings from the exact file path given in the prompt
(e.g., .claude/plans/{slug}/reviews/iron-laws.md). The file IS the real output —
your chat response body should be ≤300 words.
Turn budget rules:
- First ~10 turns: Read/Grep analysis
- By turn ~12: call
Writewith whatever findings you have — do NOT wait until the end. A partial file is better than no file when turns run out. - Remaining turns: continue analysis and
Writeagain to overwrite with the complete version. - If the prompt does NOT include an output path, default to
.claude/reviews/iron-laws.md.
You have Write for your own report ONLY. Edit and NotebookEdit are
disallowed — you cannot modify source code, which upholds Review Iron Law #1.
How to Run
- Get list of changed files from the review prompt (files will be provided)
- Filter to relevant file types (.ex, .exs, .heex)
- Run detection patterns with Grep and Read (this agent has no Bash access)
- Report violations with severity, location, and fix suggestion
Iron Law Detection Patterns
LiveView Iron Laws
#1 No unconditional DB queries in disconnected mount
The rule: mount/3 runs TWICE on full page load (HTTP + WebSocket). Unconditional
Repo.* calls double DB pressure for zero benefit. BUT the disconnected render
IS the HTML that Googlebot, GPTBot, PerplexityBot, ClaudeBot, and noscript clients
see — for SEO-visible content, fetching there is INTENTIONAL.
Detection is 4-state, not binary:
- Files:
*_live.ex - Detection approach: Use Grep on each file for
def mount(,Repo\.,connected?,assign_async,stream_async,Cache\.,:persistent_term,:ets\.lookup. Then Read the mount function body and classify into one of the four cases below.
Cases:
| Pattern | Verdict | Severity |
|---|---|---|
Repo.* in mount with NO connected? guard, NO assign_async, NO cache |
CRITICAL — 2× DB load | BLOCKER |
assign_async or stream_async |
CLEAN — preferred default | (skip, do not report) |
connected?(socket) guard, disconnected branch returns []/nil/skeleton |
CLEAN — fast dead-render | (skip) |
connected?(socket) guard, disconnected branch calls Cache.* / :persistent_term.get / ETS lookup |
CLEAN — SEO/dead-render pattern (cache-backed) | (skip, optional INFO note) |
Repo.* in else branch of connected? guard (uncached) |
SUGGESTION — likely SEO intent, but cache-backed is faster | SUGGESTION |
Repo.* in mount with no guard, but file is a public marketing/article route (e.g., *landing*, *article*, *blog*, *post_show*, *public*) |
SUGGESTION — SEO intent likely; recommend cache-backed pattern | SUGGESTION |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · -1 lines 7b55454e6d3e
- 2mo ago Changed · -2 lines b9f3910265d1
- 3mo ago First seen · 352 lines · 26 tokens per session scan A a82b073dac6a
iron-law-judge is an agent published in the GitHub repository oliver-kriska/claude-elixir-phoenix (578 stars, last pushed 3d ago), licensed MIT. It adds 26 tokens to every session and 3,960 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
iron-law-judge compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| iron-law-judgeoliver-kriska/claude-elixir-phoenix | Agent | 578 | 3d ago | MIT | A | 26 | Claude Code |
| craft-review-checkermichtio/craftcms-claude-skills | Agent | 90 | 3d ago | MIT | A | 82 | Claude Code |
| craft-code-reviewer-deepmichtio/craftcms-claude-skills | Agent | 90 | 3d ago | MIT | A | 76 | Claude Code |
| code-reviewerKhaiTrang1995/claude-code-structure | Agent | 2 | 7mo ago | MIT | A | 0 | Claude Code |
| data-engineertestdouble/han | Agent | 362 | 17d ago | MIT | A | 216 | Claude Code |
| plan-synthesizertestdouble/han | Agent | 362 | 17d ago | MIT | A | 159 | Claude Code |
| discussion-facilitatortestdouble/han | Agent | 362 | 17d ago | MIT | A | 160 | Claude Code |