Borrowing it
Nothing to install: this file belongs to Contrast-Security-OSS/mcp-contrast. 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/Contrast-Security-OSS/mcp-contrast/main/.claude/skills/archunit/SKILL.mdgit clone --depth 1 https://github.com/Contrast-Security-OSS/mcp-contrastWrote 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/contrast-security-oss/mcp-contrast/archunit)<a href="https://agentmods.dev/skills/contrast-security-oss/mcp-contrast/archunit"><img src="https://agentmods.dev/badge/skills/contrast-security-oss/mcp-contrast/archunit/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/contrast-security-oss/mcp-contrast/archunit"><img src="https://agentmods.dev/badge/skills/contrast-security-oss/mcp-contrast/archunit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00058 | $0.00903 |
| Opus 5.5 | $0.00023 | $0.00361 |
| Sonnet 5.5 | $0.00012 | $0.00181 |
| Haiku 4.5 | $0.00006 | $0.00090 |
Grade A, and why
archunit 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 — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ArchUnit Violation Workflow
ArchUnit rules in ArchitectureTest enforce layering, SDK containment, domain isolation, and conventions. Violations are design feedback. Fix the design, never work around the test.
When this skill applies
- An ArchUnit test fails during
make checkor./gradlew :contrast-mcp-core:test - You are fixing a grandfathered violation from the freeze store
- New code you wrote introduces a dependency the architecture rules forbid
The freeze store
Grandfathered violations live in contrast-mcp-core/src/test/resources/archunit-store/. Each file corresponds to one frozen rule (mapping in stored.rules).
The store is shrink-only by design. -ParchStoreUpdate lets ArchUnit remove stale entries for violations that no longer exist. New violations always fail regardless of any flag. ArchUnit will never auto-add new violations to the store.
Never edit store files manually. Only ./gradlew :contrast-mcp-core:test -ParchStoreUpdate may modify them.
Fix-then-shrink workflow
- Fix the code. Change the production code so the violation no longer exists.
- Run the store update.
./gradlew :contrast-mcp-core:test -ParchStoreUpdateremoves fixed entries. - If tests still fail, the remaining violations need code fixes, not more store entries. Go back to step 1.
- Run the full gate.
make checkmust pass. - Commit the shrunken store alongside the code changes.
Fixing SDK containment violations
The rule "Only client and sdkextension may depend on the Contrast SDK directly" means tool classes and result models must not import com.contrastsecurity types.
The fix is always a new abstraction in sdkextension.data. Create a record or class that wraps the SDK type's fields, with a from(SdkType) factory method. Have the caller map through YourType.from(sdkObject) and pass your type downstream.
Do not replace a typed parameter with loose strings. Do not decompose a domain object into primitive arguments. The goal is to move the SDK boundary, not remove the type contract.
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 · 60 lines · 58 tokens per session scan A 646115e64e07
archunit is a skill published in the GitHub repository Contrast-Security-OSS/mcp-contrast (23 stars, last pushed 6d ago), licensed Apache-2.0. It adds 58 tokens to every session and 903 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-30.
Other skills, from other repositories
sync-bridge
Reviews and guides Chromium Sync Model API (DataTypeSyncBridge) implementations, including DataTypeStore persistence and forwards/backwards compatibility for sync specifics. Use when implementing or reviewing a DataTypeSyncBridge subclass, DataTypeStore usage, sync metadata persistence, conflict resolution, or…
sync-model-processor
Reviews changes to Chromium Sync model internals in components/sync/model/, including ClientTagBasedDataTypeProcessor, ClientTagBasedRemoteUpdateHandler, ProcessorEntity, ProcessorEntityMetadata, and ProcessorEntityTracker. Use when modifying or reviewing processor state transitions, entity metadata tracking, conflict…
adversarial-reviewer
Stress-test a code change for concrete correctness defects, unsafe assumptions, and failure modes. Use when the user explicitly asks for an adversarial review, a deep bug hunt, or to tear a change apart, or to check your own change before submitting it. Do not use for ordinary review, style feedback, or general…
gsd-ns-review
Invoke this Pi skill with /skill:gsd-ns-review.
gitnexus
A code-graph analysis add-on for examining an existing codebase, including symbols, call paths, execution flows, and effects across repositories. It can query GitNexus through its command-line or MCP interfaces.
issue
Use when starting a chain from a GitHub issue — turning an issue URL or number into a triaged, planned, dispatched, and reviewed pull request. Classifies the thread (bug → root-cause discipline, feature → plan chain, question → drafted reply), synthesizes a spec from the issue's own acceptance criteria, then runs the…