onflow/flow-ai-tools/cadence-audit
Claude Code and agent skill by onflow/flow-ai-tools
- community
Checking that the SKILL.md file is still in the repository.
Comprehensive audit and review skill for Cadence smart contracts on the Flow blockchain. Identifies security vulnerabilities, bugs, code quality issues, and optimization opportunities. Produces severity-rated findings (Critical/High/Medium/Low) with actionable fixes. TRIGGER when: auditing, reviewing, or improving Cadence code, checking for security issues, performing code review on .cdc files, looking for anti-patterns or vulnerabilities, optimizing smart contract code, "review cadence", "audit cadence", "check cadence security", "validate cadence contract", "review my .cdc file", "security review", "code review", "find vulnerabilities", "check this contract", "is this code secure", "audit my project". DO NOT TRIGGER when: writing new contracts from scratch (use cadence-scaffold), asking about Cadence syntax or patterns (use cadence-lang), building token contracts (use cadence-tokens).
Install
npx vskill@latest install onflow/flow-ai-tools/cadence-auditSKILL.md
Cadence Smart Contract Audit
Conduct comprehensive security, quality, and performance reviews of Cadence smart contracts.
Audit Modes
Single File Review
When reviewing a specific file or code snippet, analyze it across four dimensions and produce a structured report.
Project-Wide Audit
When auditing a full project:
- Discover all
.cdcfiles:cadence/contracts/*.cdc,cadence/transactions/*.cdc,cadence/scripts/*.cdc - If none found, search recursively from project root for
*.cdc - Systematically audit each file using the checklist
- Produce a project-level summary with file-by-file findings
Review Dimensions
- Security — Vulnerabilities, access control, resource safety, capability management
- Bugs — Nil dereferences, resource loss, type confusion, infinite loops
- Code Quality — Readability, naming, documentation, patterns compliance
- Optimization — Unnecessary copies, storage inefficiencies, gas usage
Quick Per-Function Checklist
- Can the field be
letinstead ofvar? - Can the function be
view? - Can access be more restrictive (
access(self), entitled)? - Are inputs validated with pre-conditions?
- Are results verified with post-conditions?
- Are error messages descriptive with interpolated values?
Navigation
| Reference | Content | |
|---|---|---|
| audit-checklist.md | Full security, bugs, quality, DeFi, optimization checklists | |
| review-format.md | Structured output format, severity levels, verdict criteria |
Companion Skills
- `cadence-lang` — Essential during audits. Consult for access control rules, entitlement patterns, resource safety, anti-patterns, and design patterns. Every audit finding should reference the specific Cadence rule being violated.
- `cadence-tokens` — Consult when auditing NFT/FT contracts for standard compliance (NonFungibleToken interface, MetadataViews requirements).
- `cadence-testing` — Use to follow up on audit findings like "missing test coverage" or "edge case not tested" with concrete test-writing guidance.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/flow-dev/skills/cadence-audit/SKILL.md
Popularity
- Repository stars
- 6
- Repository forks
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/onflow/flow-ai-tools/cadence-audit)