跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
部署与云服务

algorand-project-setup

Scaffolds Algorand projects using AlgoKit CLI, manages LocalNet, and retrieves code examples from official GitHub repositories. Use when initializing projects with algokit init, running build/test/deploy commands, starting or resetting LocalNet, or searching for Algorand contract examples and patterns.

algorand-devrel · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add algorand-devrel/algorand-agent-skills --skill algorand-project-setup

技能说明


name: algorand-project-setup description: Scaffolds Algorand projects using AlgoKit CLI, manages LocalNet, and retrieves code examples from official GitHub repositories. Use when initializing projects with algokit init, running build/test/deploy commands, starting or resetting LocalNet, or searching for Algorand contract examples and patterns.

AlgoKit Project Setup & Examples

Quick Start

# Install AlgoKit
pipx install algokit

# Create a fullstack project — smart contracts + React frontend (default)
algokit init -n my-project -t fullstack --answer preset_name production --answer contract_template typescript --defaults

# Development cycle
cd my-project
algokit project run build    # Compile contracts
algokit project run test     # Run tests
algokit localnet start       # Start local network
algokit project deploy localnet  # Deploy

Reference Guide

Creating Projects

Initialize new Algorand projects using AlgoKit templates and presets.

  • project-templates.md — Templates, presets, CLI flags, and customization options

CLI Commands

Build, test, deploy, and manage LocalNet with AlgoKit CLI.

  • cli-commands.md — Full CLI command reference and workflow

Searching Examples

Find working contract examples from Algorand Foundation repositories using GitHub tools.

  • github-search-tools.md — GitHub MCP tools, priority repos, search patterns

Important Rules

  • Always confirm with user before running algokit init
  • Default to fullstack template (-t fullstack) with TypeScript contracts and production preset — MUST pass --answer contract_template typescript since the default is Python
  • Always build before testing — tests use generated clients
  • Search algorandfoundation repos first — official, vetted examples

Canonical Example Repos

RepositoryBest For
algorandfoundation/devportal-code-examplesBeginner-friendly contract examples (TypeScript + Python)
algorandfoundation/puya-tsAdvanced TypeScript contract examples
algorandfoundation/puyaAdvanced Python contract examples
algorandfoundation/algokit-fullstack-templateFullstack project template (contracts + React)

Always fetch corresponding test files alongside contract examples.

Cross-References

  • algorand-core — AVM mental model, transaction types, protocol concepts
  • algorand-typescript / algorand-python — Contract development syntax and patterns
  • algorand-frontend — React frontend integration and wallet connection