onflow/flow-ai-tools/cadence-scaffold

Claude Code and agent skill by onflow/flow-ai-tools

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate production-ready Cadence smart contracts, transactions, and DeFi transactions from scratch following security-first standards. Scaffolds secure code with proper access control, entitlements, events, storage paths, and phase discipline. TRIGGER when: creating new Cadence contracts, generating transactions, scaffolding DeFi transactions, building smart contracts from scratch, "generate contract", "create transaction", "scaffold", "new contract", "new transaction", "build a contract for", "write me a contract", "help me create a", "template for", "boilerplate", "starter contract", "create an NFT contract", "generate a transfer transaction". DO NOT TRIGGER when: reviewing or auditing existing code (use cadence-audit), asking about Cadence syntax or language rules (use cadence-lang), configuring flow.json (use flow-project-setup).

Install

npx vskill@latest install onflow/flow-ai-tools/cadence-scaffold

SKILL.md

Cadence Code Scaffold

Generate production-ready Cadence contracts, transactions, and DeFi transactions following security-first standards.

Scaffold Types

Determine what the user needs and follow the appropriate reference:

What to generateReference
Smart contract (NFT, FT, general, admin)scaffold-contract.md
Transaction (transfer, setup, mint, multi-sig)scaffold-transaction.md
DeFi Actions transaction (restake, swap, auto-balance)scaffold-defi.md

General Principles

All generated code must follow:

  1. access(self) by default for all fields/functions
  2. Entitlements for all privileged operations
  3. String-based imports (import "ContractName")
  4. Descriptive panic messages with interpolated values
  5. Events for significant state changes
  6. Complete init() with all state initialized

Companion Skills

  • `cadence-lang` — Always consult when generating code. Every scaffolded contract and transaction must follow Cadence access control, entitlement, resource safety, and design pattern rules.
  • `cadence-tokens` — Consult when scaffolding NFT or FT contracts for standard interface requirements and MetadataViews.
  • `cadence-audit` — Run an audit on generated code to verify it follows security best practices before the user deploys.
  • `flow-cli` — Use to deploy and test scaffolded contracts and transactions.
  • `cadence-testing` — Use to write tests for any scaffolded contract or transaction before deployment.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/onflow/flow-ai-tools/cadence-scaffold/badge)](https://verified-skill.com/skills/onflow/flow-ai-tools/cadence-scaffold)

Something wrong with this skill or its page? Tell us.