Skip to content
Back to skills

Cadence Scaffold

ASecurity

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...

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
blockchaintestingsecurity

Works with

  • cli

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add onflow/flow-ai-tools --skill cadence-scaffold --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cadence Scaffold?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cadence Scaffold
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/onflow-cadence-scaffold/badge)](https://www.skillsdirectory.com/skills/onflow-cadence-scaffold)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cadence-scaffold
description: |
  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).
---

# 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 generate | Reference |
|-----------------|-----------|
| Smart contract (NFT, FT, general, admin) | [scaffold-contract.md](references/scaffold-contract.md) |
| Transaction (transfer, setup, mint, multi-sig) | [scaffold-transaction.md](references/scaffold-transaction.md) |
| DeFi Actions transaction (restake, swap, auto-balance) | [scaffold-defi.md](references/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.

Files in this skill

  • SKILL.md2.5 KB
  • references/scaffold-contract.md4.3 KB
  • references/scaffold-defi.md5.1 KB
  • references/scaffold-transaction.md4.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.