スキル一覧に戻る
gabrielkuettel

build-smart-contracts

by gabrielkuettel

A 100% vibe coded NFT gallery

0🍴 0📅 2026年1月20日
GitHubで見るManusで実行

SKILL.md


name: build-smart-contracts description: 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".

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

スコア

総合スコア

40/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です