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 PlamenTSV/plamen --skill contract-key-safetygit clone --depth 1 https://github.com/PlamenTSV/plamenWrote 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/plamentsv/plamen/contract-key-safety)<a href="https://agentmods.dev/skills/plamentsv/plamen/contract-key-safety"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/contract-key-safety/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/plamentsv/plamen/contract-key-safety"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/contract-key-safety.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.00035 | $0.01559 |
| Opus 5.5 | $0.00014 | $0.00624 |
| Sonnet 5.5 | $0.00007 | $0.00312 |
| Haiku 4.5 | $0.00003 | $0.00156 |
Grade A, and why
contract-key-safety 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 3mo 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 — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CONTRACT_KEY_SAFETY Skill (DAML)
Trigger Pattern: Always required for DAML audits — self-skip if no template defines a
keyInject Into: Breadth agents, depth-state-trace Finding prefix:[DML-CK-N]Rules referenced: R8, R12
A DAML contract key is a uniqueness handle plus a maintainer set. The single most dangerous DAML key bug is the lookupByKey false-None: a None result means "no contract with this key is visible to the reading parties" — NOT "no such contract exists". A choice that treats None as "absent" and creates fresh state can mint duplicates. Additionally, maintainer parties MUST be signatories of the keyed contract; a maintainer/signatory gap breaks key authority. If no template in scope defines a key, this skill self-skips (every section ✗(N/A — no keyed templates)).
1. Key + Maintainer Inventory
For every template that defines a key:
| Template | Key Type/Expr | Maintainer Expr | Maintainers ⊆ Signatories? | Key Globally Unique? | Finding? |
|---|---|---|---|---|---|
{T} |
key (owner, id) : (Party, Text) |
maintainer key._1 |
YES/NO | YES/NO | [DML-CK-N] if maintainer not signatory |
Critical patterns to flag:
- A
maintainerparty that is NOT in the template'ssignatoryset — DAML requires maintainers be signatories; if the code attempts otherwise it will not compile, but a refactor that drops a signatory while keeping the maintainer is a latent break. Verify the binding holds. - A key whose maintainer set is a single party where the keyed value represents joint state (one party can unilaterally re-key).
DAML note: A negative lookupByKey (the None branch) requires the maintainers' authority to assert non-existence. If the reading party is not a maintainer, they cannot get an authoritative None.
2. lookupByKey False-None Audit
For every lookupByKey/visibleByKey call, determine what the None branch does and whether None is correctly interpreted:
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.
- 3mo ago First seen · 91 lines · 35 tokens per session scan A a0d73771d819
contract-key-safety is a skill published in the GitHub repository PlamenTSV/plamen (320 stars, last pushed 2mo ago), licensed MIT. It adds 35 tokens to every session and 1,559 once invoked, about $0.0001 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.
contract-key-safety compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| contract-key-safetyPlamenTSV/plamen | Skill | 320 | 2mo ago | MIT | A | 35 | Claude Code, Codex |
| prowler-complianceprowler-cloud/prowler | Skill | 15k | 3d ago | Apache-2.0 | A | 189 | Claude Code |
| jsonapiprowler-cloud/prowler | Skill | 15k | 3d ago | Apache-2.0 | A | 34 | Claude Code, Codex |
| prowler-compliance-reviewprowler-cloud/prowler | Skill | 15k | 3d ago | Apache-2.0 | A | 62 | Claude Code |
| prowler-readme-tableprowler-cloud/prowler | Skill | 15k | 3d ago | Apache-2.0 | A | 47 | Claude Code |
| tax-lawyer-au-cryptoelasticdotventures/_b00t_ | Skill | 15 | 1mo ago | none | A | 67 | Claude Code |
| law-18-07-auditorkarim-embarek/antigravity-operator | Skill | 5 | 3mo ago | none | A | 54 | Claude Code, Codex |