Agent skill

Cid Capability Safety

by PlamenTSV in PlamenTSV/plamen

Trigger Pattern Always required for DAML audits - Inject Into Breadth agents, depth-external, depth-edge-case

MITAuto-check passed

Install Cid Capability Safety

skills CLI
$ npx skills add PlamenTSV/plamen --skill cid-capability-safety -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install PlamenTSV/plamen cid-capability-safety --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/PlamenTSV/plamen.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agents/skills/daml/cid-capability-safety .claude/skills/cid-capability-safety && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cid-capability-safety
GitHub stars
303
Token cost
~1.5k tokens
SKILL.md length
606 words
Files
1
Skills in repo
87
Repo updated
First seen
Licence
MIT

At a glance

Trigger Pattern Always required for DAML audits - Inject Into Breadth agents, depth-external, depth-edge-case

  • Works in 4 steps: Caller-Supplied CID Inventory → Config / Whitelist CID Fail-Open → Hardcoded / Stale Config CID Brick → …
  • Pattern Always required for DAML audits - Inject Into Breadth agents
  • SKILL.md covers 1. Caller-Supplied CID Inventory, 2. Config / Whitelist CID…, 3. Hardcoded / Stale Config… and 4. Wrong-CID / Type Confusion…, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Cid Capability Safety is an agent skill from PlamenTSV/plamen. Trigger Pattern Always required for DAML audits - Inject Into Breadth agents, depth-external, depth-edge-case

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Autonomous Web3 security audit agent for Claude Code. The licence is MIT.

When your agent uses it

  • Pattern Always required for DAML audits - Inject Into Breadth agents
  • Depth-edge-case

Example prompts

  • “/cid-capability-safety”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Caller-Supplied CID Inventory
  2. Config / Whitelist CID Fail-Open
  3. Hardcoded / Stale Config CID Brick
  4. Wrong-CID / Type Confusion (interface coercion)

What it can do on your machine

Read from SKILL.md and the folder at commit 795962b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cid Capability Safety loads about 1.5k tokens when it runs. Until then it costs about 33 tokens; SKILL.md has 606 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~33
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from PlamenTSV/plamen at commit 795962b, republished under its MIT licence (© PlamenTSV). 606 words, ~1,529 tokens.

Download SKILL.mdSave it as .claude/skills/cid-capability-safety/SKILL.md (or your agent's skills folder).
name
cid-capability-safety
description
Trigger Pattern Always required for DAML audits - Inject Into Breadth agents, depth-external, depth-edge-case

CID_CAPABILITY_SAFETY Skill (DAML)

Trigger Pattern: Always required for DAML audits Inject Into: Breadth agents, depth-external, depth-edge-case Finding prefix: [DML-CC-N] Rules referenced: R4, R8, R12

A ContractId t is a DAML-distinctive capability: holding one lets a party fetch/exercise the referenced contract. When a choice accepts a ContractId as an argument, that CID is attacker-chosen unless the body re-binds it to the operation. The four high-yield bug shapes: (1) caller-supplied CID not bound to the operation (caller passes a lookalike), (2) a config/whitelist CID that is missing → the choice fails open, (3) a hardcoded/stale config CID that has been archived → the choice bricks, (4) wrong-CID / type confusion via unchecked fromInterfaceContractId coercion.

1. Caller-Supplied CID Inventory

For every choice that takes a ContractId argument, determine whether the body binds it to the operation:

Template.ChoiceCID ArgFetched/Exercised?Bound To Operation?Binding CheckFinding?
{T.C}cid : ContractId T2YES/NOYES/NOassertMsg ... (fetched.owner == this.owner) / NONE[DML-CC-N] if unbound

Critical patterns to flag:

  • A choice that fetch cid and then acts on the fetched contract's fields without asserting the fetched contract relates to this (e.g., same owner, same asset, expected template) — caller passes any CID they can see ([ELEVATE:CID_BINDING]).
  • A choice that exercises a caller-supplied CID to move value, with no check that the CID is the intended counterparty contract.

DAML note: fetch cid succeeds for ANY contract the exercising party is a stakeholder of (or that is divulged). There is no implicit "this is the right contract" guarantee — the body MUST assert the relationship.

2. Config / Whitelist CID Fail-Open

A choice that looks up a config or whitelist contract by CID and proceeds when it is absent fails open.

Template.ChoiceConfig/Whitelist CID SourceAbsent-HandlingFail-Open?Finding?
{T.C}arg / template field / keyproceeds / errors / default-permitYES/NO[DML-CC-N] if fail-open

Attack: A choice intended to enforce a whitelist fetches a Whitelist contract and checks membership, but if the whitelist CID is not provided (or lookupByKey returns None), the code path skips the check and permits the action ([ELEVATE:FAIL_OPEN]). Verify the absent/None case DENIES, not permits.

Show full SKILL.md (268 more words)Show less

3. Hardcoded / Stale Config CID Brick

A CID stored in a template field (or hardcoded) that points to a contract which can be archived creates a brick.

Template.FieldHolds A CID?Referenced Contract Archivable?Update Path For The CID?Brick Risk?
{T.f}YES/NOYES/NOYES/NO[DML-CC-N] if no update path

Attack: A long-lived contract stores a ContractId Config field. The referenced Config is archived/superseded; every choice that fetches the stale CID now gets CONTRACT_NOT_FOUND and bricks, with no choice to update the field ([ELEVATE:CID_BRICK]). Verify either the referenced contract is non-archivable or there is an authorized update choice.

4. Wrong-CID / Type Confusion (interface coercion)

fromInterfaceContractId and coerceContractId reinterpret a CID as a different template/interface without runtime proof.

SiteCoercionSource CID Verified As Target Type?fetch-after-coerce Guard?Finding?
{choice:line}fromInterfaceContractId @T cidYES/NOYES/NO[DML-CC-N] if unverified

Attack: A choice coerces an interface CID to a concrete template via fromInterfaceContractId @T and immediately acts, but the underlying contract is a different template implementing the same interface. The subsequent fetch may succeed against an unintended template, or the choice trusts fields that mean something different. Verify a fetch after coercion (which fails for the wrong template) OR an explicit type/field assertion guards the coercion.

Finding Template

markdown
**ID**: [DML-CC-N]
**Severity**: [Critical if value moved on forged CID, High if fail-open/brick, Medium if type-confusion needs setup]
**Step Execution**: ✓1,2,3,4 | ✗(reasons) | ?(uncertain)
**Rules Applied**: [R4:✓/✗, R8:✓/✗, R12:✓/✗]
**Location**: {Module}.daml:LineN (template X, choice Y)
**Title**: Caller-supplied ContractId unbound / fail-open config CID in {Choice} allows {forged-target / bypass / brick}
**Description**: [The CID argument or config CID, the missing binding/absent-handling, and the contract the attacker substitutes]
**Impact**: [Action against attacker-chosen contract / whitelist bypass / permanent brick / type-confused field read]
**PoC steer**: pass a lookalike CID the attacker created and assert harm; or archive the config contract and assert the brick (CONTRACT_NOT_FOUND); or omit the whitelist CID and assert the gated action still succeeds.

Step Execution Checklist (MANDATORY)

SectionRequiredCompleted?Notes
1. Caller-Supplied CID InventoryYES✓/✗/?Every choice taking a ContractId arg
2. Config / Whitelist CID Fail-OpenIF config/whitelist CID lookups present✓/✗(N/A)/?Verify absent → deny
3. Hardcoded / Stale Config CID BrickIF a template field holds a CID✓/✗(N/A)/?Verify update path exists
4. Wrong-CID / Type ConfusionIF fromInterfaceContractId/coerceContractId used✓/✗(N/A)/?Verify coercion is guarded

© PlamenTSV, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in agents/skills/daml/cid-capability-safety of PlamenTSV/plamen.

Open the folder on GitHubat commit 795962b

Compare with similar skills

Cid Capability Safety next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cid Capability Safety compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cid Capability Safety this skillPlamenTSV/plamen303—~1.5kAutomated safety check: PassMIT
Audit Exception Safetyben-manes/caffeine18k—~633Automated safety check: PassApache-2.0
Golang Patternsaffaan-m/ECC276k—~1.1kAutomated safety check: PassMIT
Python Patternsaffaan-m/ECC276k—~2.3kAutomated safety check: PassMIT
React Audit Grep Patternsgithub/awesome-copilot40k1 repos~461Automated safety check: PassMIT
Dotnet Patternsaffaan-m/ECC276k1 repos~2.3kAutomated safety check: PassMIT

Similar skills

  • Audit Exception Safety

    ben-manes/caffeine

    Audit exception safety and failure atomicity across all throw sites

    18k GitHub stars~633 tokensUpdated today
    Auto-check passed
  • Golang Patterns

    affaan-m/ECC

    Go-specific design patterns and best practices including functional options, small interfaces, dependency injection, concurrency patterns, error handling, and package organization.

    276k GitHub stars~1.1k tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • Python Patterns

    affaan-m/ECC

    Python-specific design patterns and best practices including protocols, dataclasses, context managers, decorators, async/await, type hints, and package organization.

    276k GitHub stars~2.3k tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • React Audit Grep Patterns

    github/awesome-copilot

    Official

    Provides the complete, verified grep scan command library for auditing React codebases before a React 18.3.1 or React 19 upgrade.

    40k GitHub starsUsed in 1 repo~461 tokens
    Auto-check passed
  • Dotnet Patterns

    affaan-m/ECC

    Idiomatic C and .NET patterns, conventions, dependency injection, async/await, and best practices for building robust, maintainable .NET applications.

    276k GitHub starsUsed in 1 repo~2.3k tokens
    DevelopmentAuto-check passed
  • Fastapi Patterns

    affaan-m/ECC

    FastAPI patterns for async APIs, dependency injection, Pydantic request and response models, OpenAPI docs, tests, security, and production readiness.

    276k GitHub stars~2.3k tokensUpdated 4 days ago
    Backend & APIsAuto-check passed

More from PlamenTSV/plamen

All 87 skills in this repo
  • Audit Prep

    PlamenTSV/plamen

    Prepare Solidity projects for a security audit — test coverage, test quality, NatSpec docs, code hygiene, dependency health, best-practice enforcement, deployment readiness, and project…

    303 GitHub stars~3.7k tokensUpdated 13 days ago
    Auto-check passed
  • Verification Protocol

    PlamenTSV/plamen

    Trigger Pattern Always (used by all verifier agents) - Inject Into security-verifier agents (Phase 5)

    303 GitHub stars~3.5k tokensUpdated 13 days ago
    Auto-check passed
  • Ability Analysis

    PlamenTSV/plamen

    Trigger Pattern Always (Aptos Move) - foundational security check - Inject Into Breadth agents, depth agents

    303 GitHub stars~3.3k tokensUpdated 13 days ago
    Auto-check passed
  • Ability Analysis

    PlamenTSV/plamen

    Trigger Pattern Always (Sui Move) -- foundational security check - Inject Into Breadth agents, depth agents

    303 GitHub stars~3.2k tokensUpdated 13 days ago
    Auto-check passed
  • Account Lifecycle

    PlamenTSV/plamen

    Trigger Pattern ACCOUNTCLOSING flag detected (close/CloseAccount usage) - Inject Into Breadth agents, depth agents

    303 GitHub stars~1.2k tokensUpdated 13 days ago
    Auto-check passed
  • Account Validation

    PlamenTSV/plamen

    Trigger Pattern Always required for Solana audits - Inject Into Breadth agents, depth agents

    303 GitHub stars~1.7k tokensUpdated 13 days ago
    Auto-check passed

Questions about Cid Capability Safety

What does Cid Capability Safety do?

Trigger Pattern Always required for DAML audits - Inject Into Breadth agents, depth-external, depth-edge-case. Cid Capability Safety is an agent skill from PlamenTSV/plamen.

When should I use Cid Capability Safety?

Cid Capability Safety fits situations like: pattern Always required for DAML audits - Inject Into Breadth agents; depth-edge-case.

How do I install Cid Capability Safety in Claude Code?

Run `npx skills add PlamenTSV/plamen --skill cid-capability-safety -a claude-code`. Or copy the skill folder (agents/skills/daml/cid-capability-safety in PlamenTSV/plamen) into .claude/skills/cid-capability-safety in your project. Claude Code loads it when a task matches its description.

How do I install Cid Capability Safety in Codex?

Run `npx skills add PlamenTSV/plamen --skill cid-capability-safety -a codex`. Or copy the skill folder (agents/skills/daml/cid-capability-safety in PlamenTSV/plamen) into .agents/skills/cid-capability-safety in your project. Codex loads it when a task matches its description.

Can I use Cid Capability Safety in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PlamenTSV/plamen --skill cid-capability-safety -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cid-capability-safety, .gemini/skills/cid-capability-safety, .github/skills/cid-capability-safety and .opencode/skills/cid-capability-safety in your project.

What does Cid Capability Safety need to run?

SKILL.md names no scripts, command-line tools or credentials: Cid Capability Safety is instructions for the agent only.

Does Cid Capability Safety access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Cid Capability Safety safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cid Capability Safety use?

Cid Capability Safety is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cid Capability Safety use?

About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cid Capability Safety?

Skills that share tags, products or a category with Cid Capability Safety: Audit Exception Safety (ben-manes/caffeine, 18k stars), Golang Patterns (affaan-m/ECC, 276k stars), Python Patterns (affaan-m/ECC, 276k stars) and React Audit Grep Patterns (github/awesome-copilot, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cid Capability Safety?

PlamenTSV (a GitHub user) maintains it in PlamenTSV/plamen, which has 303 GitHub stars. The repository holds 87 skills in this directory. The repository was last updated on September 26, 2026.

Source: PlamenTSV/plamen on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.