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 skills add a-pavithraa/springboot-skills-marketplace --skill add-rulegit clone --depth 1 https://github.com/a-pavithraa/springboot-skills-marketplaceWrote 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/skills/a-pavithraa/springboot-skills-marketplace/add-rule)<a href="https://agentmods.dev/skills/a-pavithraa/springboot-skills-marketplace/add-rule"><img src="https://agentmods.dev/badge/skills/a-pavithraa/springboot-skills-marketplace/add-rule/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/skills/a-pavithraa/springboot-skills-marketplace/add-rule"><img src="https://agentmods.dev/badge/skills/a-pavithraa/springboot-skills-marketplace/add-rule.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.00105 | $0.01083 |
| Opus 5.5 | $0.00042 | $0.00433 |
| Sonnet 5.5 | $0.00021 | $0.00217 |
| Haiku 4.5 | $0.00011 | $0.00108 |
Grade A, and why
add-rule 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 4d 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 — 23 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add a rule
The harness's CodeRulesTests holds rules every Spring Boot project shares. A rule that belongs to this project, such as "only caller reads the patient database" or "only AccessDecisions makes an AccessGrant", goes in its own test, so the build fails on the next break instead of a reviewer having to remember it.
When asked to find rules nobody wrote down, list candidates before writing any test. A candidate is a pattern every current caller follows: one package builds a type, one module asks for a bean, no controller touches a lookup. Give each one its evidence (the callers that follow it, a fix in git log that restored it, a decision record that implies it) and any code that already breaks it, which may be a bug. The user picks which ones become rules; take each through the steps below. A rule about values rather than structure, such as "a balance never goes negative", is a property test, not an ArchUnit rule: use writing-springboot-tests.
- Write the rule in one sentence, with its reason, and agree it with the user. Add that sentence to the
Failureslist inREVIEW.md, since a reviewer must still catch what the test can't see. - Pick the shape that fits. Each is one ArchUnit rule on the production classes:
- Only package P may construct type T. For an access proof, a grant, a scope, or a token that other modules receive but must never make.
noClasses().that().resideOutsideOfPackage("{{BASE_PACKAGE}}.access..").should().callConstructor(Grant.class, ...). Spring Modulith lets any module use a type a published method returns, so this is the only thing that stops a module building its own proof. Also cover static factories:.orShould().callMethod(Grant.class, "of", ...). - Only package P may ask for bean B. For a datasource, a client or a connection picked by bean name. Check every way Spring injects it:
@Qualifier("name")on a parameter, field, constructor or method; an annotation that carries@Qualifieritself;@Resource(name = ...); a setter@Resourcenamed after the bean; and a bare parameter or field named after the bean, which Spring matches when no candidate is@Primary. ArchUnit doesn't read parameter names;parameter.getOwner().reflect()does, since Boot compiles with-parameters. - No class of kind K may depend on type or package X. For a lookup that trusts its input, a vendor type that must stay in one module, or a module's named interface meant for background jobs only.
noClasses().that().areMetaAnnotatedWith(Controller.class).should().dependOnClassesThat(...).
- Only package P may construct type T. For an access proof, a grant, a scope, or a token that other modules receive but must never make.
- Create
src/test/java/{{BASE_PATH}}/<Rule>ArchRuleTests.java. The name ends inArchRuleTests, which no domain test takes by accident: the harness's guard refuses edits to such a file, CI fails a pull request that changes it without theharness-rule-changelabel, and the Stop hook runs it with the other fast gates. Import the classes once, withImportOption.Predefined.DO_NOT_INCLUDE_TESTS, and give the rule abecausethat says what to do instead. - Prove the rule fires. A rule that matches nothing passes forever. Put a class that breaks it under
src/test/java/{{BASE_PATH}}/archfixture/, one per way of breaking it, and add a second test that imports only those fixtures withnew ClassFileImporter().importClasses(...)and assertsrule.evaluate(fixtures).getFailureReport().getDetails()names each one. For the bean-name shape, that is seven fixtures: constructor qualifier, field qualifier,@Beanmethod parameter, name only,@Resource, composed qualifier, setter. - Run
{{VERIFY}}. If existing code breaks the rule, don't weaken it: list the breaks for the user, who decides between fixing them in this change and recording them indocs/as known drift, with a test that passes while the break exists and a comment saying to turn it around once fixed. - If the rule guards a decision, add the test's name to that decision's record, so a reader of the decision finds its guard.
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.
- 4d ago First seen · 23 lines · 105 tokens per session scan A 6b750b3c3e75
add-rule is a skill published in the GitHub repository a-pavithraa/springboot-skills-marketplace (82 stars, last pushed 4d ago), licensed MIT. It adds 105 tokens to every session and 1,083 once invoked, about $0.0004 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-12-01.
add-rule compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-rulea-pavithraa/springboot-skills-marketplace | Skill | 82 | 4d ago | MIT | A | 105 | Claude Code |
| understand-diffEgonex-AI/Understand-Anything | Skill | 95k | 10d ago | MIT | A | 27 | Claude Code |
| auto-test-codehuangwb8/skills | Skill | 51 | 5d ago | MIT | A | 56 | Claude Code, Codex |
| git-pr-reviewhuangwb8/skills | Skill | 51 | 5d ago | MIT | A | 76 | Claude Code, Codex |
| reviewdatit309/supergraph | Skill | 23 | 10d ago | MIT | A | 24 | Claude Code |
| code-reviewerhuangwb8/skills | Skill | 51 | 5d ago | MIT | A | 40 | Claude Code, Codex |
| flutter-dart-code-reviewdatit309/supergraph | Skill | 23 | 10d ago | MIT | A | 56 | Claude Code |