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 OneDro1d/dark-factory --skill contract-checkgit clone --depth 1 https://github.com/OneDro1d/dark-factoryWrote 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/onedro1d/dark-factory/contract-check)<a href="https://agentmods.dev/skills/onedro1d/dark-factory/contract-check"><img src="https://agentmods.dev/badge/skills/onedro1d/dark-factory/contract-check/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/onedro1d/dark-factory/contract-check"><img src="https://agentmods.dev/badge/skills/onedro1d/dark-factory/contract-check.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.00100 | $0.00864 |
| Opus 5.5 | $0.00040 | $0.00346 |
| Sonnet 5.5 | $0.00020 | $0.00173 |
| Haiku 4.5 | $0.00010 | $0.00086 |
Grade A, and why
contract-check 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 — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.
contract-check — reject incomplete hand-offs before you act on them
Goal: stop a malformed or under-evidenced hand-off from flowing downstream where
the next agent quietly copes — or guesses. This is the data-transform lens'
LOCAL reject rule and the promise-theory unforgeable-evidence rule, made
runnable. The contracts are defined in CONTRACTS in check_contract.py (table below);
the producing skills' output templates use the same section names.
When to run it
- A consuming agent receives an upstream artifact → check it before consuming.
REJECT⇒ kick back to the producer with the listed gaps; do not proceed. - The orchestrator / a human reviews a
Validation Reportclaiming PASS → confirm it carries test-count evidence (not "looks green"). - CI or a pre-commit hook wants a cheap structural gate on agent outputs.
How to run it
# reads a file or stdin (install.sh links this skill into ~/.claude/skills)
python3 ~/.claude/skills/contract-check/check_contract.py <contract> path/to/artifact.txt
# contracts: evidence_bundle | root_cause | design_spec |
# implementation_report | validation_report | knowledge_entry
Exit 0 + OK → consume. Exit 1 + REJECT → kick back; the output lists each
missing section and rule violation. Exit 2 → usage error.
What each contract requires
| contract | produced by | required sections |
|---|---|---|
evidence_bundle |
codebase-understanding / dependency-mapping | SYMPTOM, SCOPE, FLOW, EVIDENCE, RULED OUT, CANDIDATE FAILURE POINTS, UNKNOWNS, PRIOR FINDING |
root_cause |
root-cause-investigation | ROOT CAUSE, MECHANISM, EVIDENCE BASIS, BLAST RADIUS, FIX OPTIONS, CONFIDENCE |
design_spec |
feature-planning | FEATURE/FIX, ACCEPTANCE, APPROACH, FILES TO TOUCH, TEST PLAN, ADR |
implementation_report |
the builder | CHANGED, BUILD, READY FOR |
validation_report |
test-strategy | INTENDED, TESTED, RESULT, VERDICT |
knowledge_entry |
context-management | an F-###/D-### id and a source |
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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 · +10 lines ac1ffc0d06a8
- 3mo ago First seen · 49 lines · 100 tokens per session scan A c03e260e0ede
contract-check is a skill published in the GitHub repository OneDro1d/dark-factory (3 stars, last pushed 2d ago), licensed Apache-2.0. It adds 100 tokens to every session and 864 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-09-01.
contract-check compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| contract-checkOneDro1d/dark-factory | Skill | 3 | 2d ago | Apache-2.0 | A | 100 | Claude Code |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 331k | 3d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |