From cardano-dev-skills
Performs structured security reviews of Cardano smart contracts written in Aiken, Plutus, or OpShin, identifying vulnerabilities with severity ratings and remediation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cardano-dev-skills:review-contractThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- Documentation lookup path: ${CLAUDE_SKILL_DIR}/../../docs/sources/ -->
Perform a structured security review of a Cardano smart contract (validator, minting policy, or staking script). Produces findings with severity ratings and actionable remediation.
Read the validator source files and any associated documentation.
Search the project for related files:
Search the bundled documentation for relevant content:
${CLAUDE_SKILL_DIR}/../../docs/sources/aiken/ - Aiken language docs${CLAUDE_SKILL_DIR}/../../docs/sources/aiken-design-patterns/ - Aiken design patterns${CLAUDE_SKILL_DIR}/../../docs/sources/smart-contract-vulnerabilities/ - Smart contract vulnerability reference${CLAUDE_SKILL_DIR}/../../docs/sources/plutus/ - Plutus docsGo through every item in the vulnerability checklist (see References below). For each pattern:
Key checks by contract type:
Spending validators:
Minting policies:
Staking validators:
Aiken:
expect vs when/is -- expect causes script failure on mismatch; sometimes this is desired, sometimes it hides logic errorsbuiltin functions vs stdlibPlutus (Haskell):
error vs returning FalsePlutusTx.IsData derivationsOpShin (Python):
Organize findings by severity:
For each finding, provide:
### [Severity] Finding title
**Location**: file:line
**Pattern**: Which vulnerability pattern from the checklist
**Description**: What the issue is
**Impact**: What an attacker could do
**Recommendation**: How to fix it
End with a summary table and overall risk assessment.
references/vulnerability-checklist.md -- The 26 eUTxO vulnerability patterns with detection and mitigation guidance${CLAUDE_SKILL_DIR}/../../docs/sources/ for protocol specifications, design documents, and architecture notesnpx claudepluginhub cardano-foundation/cardano-dev-skills --plugin cardano-dev-skillsGuides writing Cardano smart contracts (validators, minting policies, staking scripts) from specification through secure implementation with datum/redeemer design, security checks, and test planning. Default language is Aiken.
This skill should be used when reviewing Compact smart contract code, TypeScript witness implementations, or test files for a Midnight project. Applies when a user asks to "review my Compact contract", "audit this smart contract", "check my Midnight code", or "run a code review checklist". Provides category-specific checklists covering privacy, security, cryptographic correctness, token economics, concurrency, compilation, performance, architecture, code quality, testing, and documentation, plus mechanical verification via /midnight-verify:verify.
Audits EVM smart contracts for security vulnerabilities using 500+ checklist items across 19 domains via parallel sub-agents; synthesizes findings and files GitHub issues.