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).
$npx -y skills add onflow/flow-ai-tools --skill cadence-scaffoldInstalls into the current project.
Run `npx skills use "https://github.com/onflow/flow-ai-tools" --skill "onflow/flow-ai-tools/cadence-scaffold"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/onflow/flow-ai-tools" that are relevant to the current task. Run `npx skills add "https://github.com/onflow/flow-ai-tools"` and select the relevant skills, then follow their instructions.