smartpy-new-syntax

Apply SmartPy v0.17+ new syntax to Tezos contract development.

2|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/mochi-minds/mochiminds --skill smartpy-new-syntax
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smartpy-new-syntax
Source: https://github.com/mochi-minds/mochiminds/tree/main/.claude/skills/smartpy-new-syntax
Command: npx skills add https://github.com/mochi-minds/mochiminds --skill smartpy-new-syntax

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Smart contracts on Tezos can be complex to write and audit when using older tooling and syntax. This Skill provides up-to-date SmartPy new-syntax guidance, templates, and references to help developers write correct, modern Tezos contracts with confidence.

Core Features & Use Cases

  • Comprehensive templates and references for SmartPy v0.17+ syntax, module structure, entrypoints, views, and storage patterns.
  • Coverage of common contract patterns (FA2 templates, inter-contract calls, metadata) and advanced concepts (upgradable logic, contract factories, dynamic creation).
  • Real-world use cases include scaffolding basic contracts, building FA2 variants, and implementing robust testing and security patterns.

Quick Start

Begin by inspecting the included templates and references to scaffold your SmartPy v0.17+ Tezos contract.

Frequently Asked Questions about smartpy-new-syntax

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write Tezos smart contracts using SmartPy new syntax?

SmartPy new syntax for Tezos contracts uses @sp.module and @sp.entrypoint decorators to define contract structure. This Skill provides v0.17+ templates and references for storage patterns, views, and type-safe syntax to scaffold basic contracts and FA2 token workflows.

What is the structure of an FA2 token contract in SmartPy?

An FA2 token contract in SmartPy uses @sp.module to define storage and @sp.entrypoint for token operations. This Skill provides FA2 templates covering token workflows, inter-contract calls, and metadata handling for building correct FA2 variants on Tezos.

Can I implement upgradable logic and contract factories in SmartPy?

Yes, SmartPy supports upgradable logic and contract factories. This Skill provides templates and best practices for advanced concepts including dynamic contract creation, upgradable patterns, and contract factories for complex Tezos contract architectures.

Do I need to know SmartPy concepts before using the new syntax?

Yes, SmartPy new syntax requires familiarity with @sp.module, @sp.entrypoint, and on-chain views. This Skill applies type-safe syntax usage to contract development tasks, assuming you understand foundational Tezos contract concepts.

What's the best way to scaffold a basic Tezos contract with SmartPy?

The best way to scaffold a basic Tezos contract with SmartPy is to inspect the included v0.17+ templates and references. This Skill provides modern syntax guidance for basic storage patterns and entrypoints, enabling confident scaffolding for real-world use cases.

Why should I migrate my Tezos contracts to SmartPy new syntax?

Migrate to SmartPy new syntax because older tooling makes Tezos contracts complex to write and audit. This Skill provides up-to-date v0.17+ guidance, templates, and best practices to help developers write correct, modern contracts with confidence.