BU

build-smart-contracts

Supports Algorand smart contract development with Puya TypeScript and Python toolkits.

Install

mkdir -p .claude/skills/build-smart-contracts && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10716" && unzip -o skill.zip -d .claude/skills/build-smart-contracts && rm skill.zip

Installs to .claude/skills/build-smart-contracts

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Build Algorand smart contracts using Algorand TypeScript (PuyaTs) or Algorand Python (PuyaPy). Use when creating new smart contracts from scratch, adding features or methods to existing contracts, understanding Algorand contract development patterns, or getting guidance on contract architecture. Strong triggers include "create a smart contract", "write a contract that...", "build a voting contract", "implement an NFT contract", "add a method to the contract".
463 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • Generate Algorand smart contracts
  • Implement ARC-4 methods
  • Write integration tests
  • Compile TEAL bytecode

How it works

It uses the Puya compiler to transform statically-typed TypeScript or Python code into TEAL bytecode for the Algorand blockchain.

Inputs & outputs

You give it
Contract requirements
You get back
Smart contract source code

When to use build-smart-contracts

  • Creating new smart contracts
  • Implementing NFT or voting logic
  • Writing contract integration tests
  • Architecting blockchain applications

About this skill

Building Smart Contracts

Create modern Algorand smart contracts in Algorand TypeScript or Algorand Python—statically-typed subsets compiled to TEAL bytecode by the Puya compiler.

Overview / Core Workflow

  1. Search Algorand documentation for concepts and best practices
  2. Retrieve canonical examples from priority repositories
  3. Generate code adapting examples to requirements
  4. Include integration tests using generated clients
  5. Build and test with AlgoKit commands

How to proceed

  1. Search documentation first:

    • Use kappa_search_algorand_knowledge_sources MCP tool for conceptual guidance
    • If MCP unavailable, use web search: "site:dev.algorand.co {concept}"
    • If no results, proceed with caution using known patterns
  2. Retrieve canonical examples:

    • Priority 1: algorandfoundation/devportal-code-examples
    • Priority 2: algorandfoundation/puya-ts (examples/)
    • Priority 3: algorandfoundation/algokit-typescript-template
    • Always include corresponding test files
  3. Generate code:

    • Default to TypeScript unless user explicitly requests Python
    • Adapt examples carefully, preserving safety checks
    • Follow syntax rules from algorand-typescript skill
  4. Include tests:

    • Always include or suggest integration tests
    • Use generated clients for testing contracts
    • See test-smart-contracts skill for patterns
  5. Build and test:

    algokit project run build   # Compile contracts
    algokit project run test    # Run tests
    

Important Rules / Guidelines

  • NEVER use PyTEAL or Beaker — these are legacy, superseded by Puya
  • NEVER write raw TEAL — always use Algorand TypeScript/Python
  • NEVER import external libraries into contract code
  • Default to TypeScript unless user explicitly requests Python
  • Always search docs first before writing code
  • Always retrieve examples from priority repositories

Common Variations / Edge Cases

ScenarioApproach
Box storage patternsCheck devportal-code-examples/contracts/BoxStorage/
Inner transactionsSearch for "itxn" patterns in puya-ts examples
ARC-4 methodsSee puya-ts/examples/hello_world_arc4/
State managementCheck GlobalState, LocalState patterns in examples
Python contractsUse algorandfoundation/puya instead of puya-ts
Python syntax helpConsult references/python/ subfolder for Python-specific patterns

References / Further Reading

When not to use it

  • Legacy PyTEAL or Beaker projects
  • Non-Algorand blockchain development

Prerequisites

AlgoKitPuya compiler

Limitations

  • No external library imports in contract code

How it compares

It enforces modern Puya-based development patterns, strictly prohibiting legacy tools like PyTEAL.

Compared to similar skills

build-smart-contracts side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
build-smart-contracts (this skill)06moReviewAdvanced
stripe-integration482moNo flagsAdvanced
telegram-dev28moReviewIntermediate
groq-sdk-patterns026dReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

stripe-integration

wshobson

Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.

48165

telegram-dev

2025Emma

Telegram 生态开发全栈指南 - 涵盖 Bot API、Mini Apps (Web Apps)、MTProto 客户端开发。包括消息处理、支付、内联模式、Webhook、认证、存储、传感器 API 等完整开发资源。

232

groq-sdk-patterns

jeremylongshore

Apply production-ready Groq SDK patterns for TypeScript and Python. Use when implementing Groq integrations, refactoring SDK usage, or establishing team coding standards for Groq. Trigger with phrases like "groq SDK patterns", "groq best practices", "groq code patterns", "idiomatic groq".

01

assets

salazarsebas

Stellar Assets (classic) + trustlines + Stellar Asset Contract (SAC) bridge to Soroban. Covers asset issuance, distribution, authorization flags, clawback, regulated assets, trustline management, and the SAC interop layer that exposes classic assets as Soroban tokens. Use when tokenizing real-world

00

mcp-builder

anthropics

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

136215

copilot-sdk

github

Build agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools, implementing streaming responses, managing sessions, connecting to MCP servers, or creating custom agents. Triggers on Copilot SDK, GitHub SDK, agentic app, embed Copilot, programmable agent, MCP server, custom agent.

763

Search skills

Search the agent skills registry