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.
npx agentmods add skills/matteing/opal/elixir-cyclic-depsnpx skills add matteing/opal --skill elixir-cyclic-depsgit clone --depth 1 https://github.com/matteing/opalWhat 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 | $0.00065 | $0.01023 |
| Opus 5 | $0.00032 | $0.00511 |
| Sonnet 5 | $0.00013 | $0.00205 |
| Haiku 4.5 | $0.00006 | $0.00102 |
Grade A, and why
elixir-cyclic-deps 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 2d 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 — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Elixir Cyclic Dependencies
When to Use
Apply this skill only when the user explicitly asks to check or remove cyclic dependencies (e.g. "check for cycles", "remove cyclic dependencies", "fix xref cycles").
Prerequisite: Elixir Version
Cycle detection is correct only on Elixir 1.19 or higher. Before running any cycle checks:
- Verify version:
elixir -vor inside the project runmix run -e 'IO.inspect(System.version())'. - If the version is below 1.19, stop and inform the user that upgrading to Elixir 1.19+ is required for reliable cycle detection.
Detecting Cycles
Run both commands from the project root. Start with a relaxed threshold, then tighten:
mix xref graph --format cycles --label compile-connected --fail-above 3
mix xref graph --format cycles --label compile --fail-above 3
- compile-connected: cycles in the compile-time dependency graph (modules that compile in a cycle).
- compile: same graph, different label; both should be run.
- --fail-above N: exit code fails when cycle count is above N. Use
3initially, goal is 0.
To list cycles without failing (for inspection), omit --fail-above or set it high:
mix xref graph --format cycles --label compile-connected
mix xref graph --format cycles --label compile
Goal: reach --fail-above 0 for both commands (no cycles).
Workflow
- Check Elixir version (must be ≥ 1.19).
- Establish baseline: run both xref commands with
--fail-above 3(or current project setting). Note cycle count and which modules appear in cycles. - Inspect cycles: run without
--fail-aboveto see full cycle output; identify the smallest set of edges (module A → module B) that, if removed, break cycles. - Plan minimal changeset:
- Prefer breaking a single dependency (e.g. move shared code to a new module both can depend on) over large refactors.
- Helper modules are allowed if they yield the smallest change: extract shared logic into a new module that the cycle participants depend on, so the cycle is broken.
- Avoid duplication; follow existing repository guidelines (e.g. AGENTS.md, .cursor rules) and prior patterns in the codebase.
- Implement: make the chosen change, then re-run both xref commands with
--fail-above 0(or gradually lower from 3 → 0). - Verify:
mix compile --warnings-as-errors, tests, and any project lint (e.g.mix lintormix cyclecheckif defined).
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.
- 2d ago First seen · 82 lines · 65 tokens per session scan A 7dfa7784b5f0
elixir-cyclic-deps is a skill published in the GitHub repository matteing/opal (59 stars, last pushed 21d ago), licensed MIT. It adds 65 tokens to every session and 1,023 once invoked, about $0.0003 per session on Opus 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.
Other skills, from other repositories
agent-pattern-verification
Verify AI agent code for dangerous patterns including infinite loops, unbounded retries, tool hallucinations, and context overflow. Use before deploying agent workflows or when reviewing agent code.
cloudflare-agent
Enable ControlKeel governance for Cloudflare Agents with policy gates, budget enforcement, PII detection, and secure execution.
continuity
Learn, record, audit, and apply codebase patterns consistently across a repo by comparing current code to canonical local examples stored in CK memory. Use when asked to preserve continuity, learn a pattern, check drift, fix inconsistent implementations, or enforce local conventions.
controlkeel-governance
Operate inside a ControlKeel-governed session. Use this before code edits, shell execution, delegation, deploy work, or any task that needs CK validation, findings, budget, proof, or routing context.
plan-slice
Decompose an aligned goal into independently executable vertical slices with explicit blocking relationships. Each slice must cross all touched system layers — not a single layer. Submit for human approval before any implementation begins.
bounded-loop
Run objective, repeatable improvement work under an immutable verifier and hard iteration, cost, time, and no-progress limits. Use for approved experiments with an automated metric and sandboxed worker.