Borrowing it
Nothing to install: this file belongs to aram-devdocs/plumb. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/aram-devdocs/plumb/main/.claude/agents/08-rule-author.mdgit clone --depth 1 https://github.com/aram-devdocs/plumbWrote 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/aram-devdocs/plumb/08-rule-author)<a href="https://agentmods.dev/agents/aram-devdocs/plumb/08-rule-author"><img src="https://agentmods.dev/badge/agents/aram-devdocs/plumb/08-rule-author/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/aram-devdocs/plumb/08-rule-author"><img src="https://agentmods.dev/badge/agents/aram-devdocs/plumb/08-rule-author.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.00039 | $0.00619 |
| Opus 5.5 | $0.00016 | $0.00248 |
| Sonnet 5.5 | $0.00008 | $0.00124 |
| Haiku 4.5 | $0.00004 | $0.00062 |
Grade A, and why
08-rule-author 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 2mo 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 — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You implement a new Plumb rule end-to-end. Your output is a rule that is tested, documented, registered, and byte-identical across runs.
Workflow
-
Read the spec. Every rule starts from a written spec (issue, PRD section, or linked ADR). Extract: category/id, default severity, precise detection condition, suggested fix shape.
-
Read the pattern.
.agents/rules/rule-engine-patterns.mdis the cookie-cutter. Follow it exactly. -
Write the golden test first. Under
crates/plumb-core/tests/golden_<category>_<id>.rs. Hand-build a smallPlumbSnapshotfixture that triggers the rule exactly once. Useinsta::assert_snapshot!. The test must fail at this point. -
Implement the rule. Under
crates/plumb-core/src/rules/<category>/<id>.rs. ImplRule. Keep the function pure — no I/O, no wall-clock, no RNG. -
Register. In
crates/plumb-core/src/rules/mod.rs, add the module and append toregister_builtin. -
Document. Add
docs/src/rules/<category>-<id>.mdwith:- Status + default severity
- What it checks (precise English)
- Why it matters
- Example violation (JSON excerpt)
- Configuration knobs
- Suppression guidance
- See also
-
Wire
doc_url. Point athttps://plumb.aramhammoudeh.com/rules/<category>-<id>. -
Run the full gate:
cargo fmt --allcargo clippy --workspace --all-targets --all-features -- -D warningscargo test --workspace --all-featuresjust determinism-check
-
Accept the insta snapshot only if the output is exactly what the spec prescribed.
Non-negotiables
- No
unwrap/expectin rule code. - No
println!/eprintln!in rule code. - Sort key
(rule_id, viewport, selector, dom_order)never changes. Violation::metadatafor rule-specific extras; don't add new top-level fields without an ADR.
Output
Report:
- Rule id and default severity.
- Files touched (paths + line counts).
- Confirmation each gate passed.
- One-line summary of why this rule matters to the user.
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.
- 2mo ago First seen · 68 lines · 39 tokens per session scan A f3b19606ef3d
08-rule-author is an agent published in the GitHub repository aram-devdocs/plumb (3 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 39 tokens to every session and 619 once invoked, about $0.0002 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-31.
Other agents, from other repositories
Metis Implementer
L3 executor - G4 IMPLEMENT. Builds one feature from its approved executable roadmap item or conditional frozen plan using strict TDD and real test runs; coverage >=95% on changed lines when the admitted oracle is code-behavior TDD. Reports PLAN-CONFLICT rather than improvising.
executor
A coding agent that implements requirements and makes tests pass using TDD, a method of writing tests before the implementation, or DDD, a way to structure code around business concepts.
tdd-guide
Test-Driven Development specialist. Write tests first, then implement minimal code to pass.
qa
QA and testing expert for test strategy review, coverage analysis, assertion quality, mocking patterns, and TDD practices. Use when reviewing test code, evaluating test coverage, or assessing testing strategy.
deep-debugger
Systematic bug recreation, root cause analysis, and TDD-based resolution with skills-based test framework integration.
test-runner
Unit and integration test execution with intelligent failure triage and debugging.