Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add algorand-devrel/algorand-agent-skills --skill "use-algokit-cli"
Install specific skill from multi-skill repository
# Description
AlgoKit CLI commands for building, testing, and deploying Algorand applications. Use when building or compiling smart contracts, running test suites, deploying to localnet, managing local Algorand network, or understanding the development workflow. Strong triggers include "build the contract", "run the tests", "start localnet", "deploy to localnet", "algokit project run", "localnet status".
# SKILL.md
name: use-algokit-cli
description: AlgoKit CLI commands for building, testing, and deploying Algorand applications. Use when building or compiling smart contracts, running test suites, deploying to localnet, managing local Algorand network, or understanding the development workflow. Strong triggers include "build the contract", "run the tests", "start localnet", "deploy to localnet", "algokit project run", "localnet status".
AlgoKit Commands
Standard commands for Algorand development with AlgoKit CLI.
Overview / Core Workflow
- Write contract code
- Build:
algokit project run build - Write tests using generated clients
- Test:
algokit project run test - Deploy:
algokit project deploy localnet
How to proceed
-
Build contracts:
bash algokit project run build
This compiles contracts via Puya, generates ARC56 specs, and creates typed clients. -
Run tests:
bash algokit project run test
Executes the test suite using Vitest. -
Start localnet (if needed):
bash algokit localnet start -
Deploy to localnet:
bash algokit project deploy localnet -
Check build artifacts:
artifacts/β Compiled contracts, ARC56 specs- Generated client files for TypeScript/Python
Important Rules / Guidelines
- Always build before testing β Tests use generated clients
- Only deploy when explicitly requested β Don't auto-deploy
- Check localnet status before deployment operations
- Reset localnet if you need a clean state
Common Variations / Edge Cases
| Scenario | Command |
|---|---|
| Start local network | algokit localnet start |
| Stop local network | algokit localnet stop |
| Reset network state | algokit localnet reset |
| Check network status | algokit localnet status |
| Build fails | Check Puya compiler errors, fix contract code |
| Tests fail | Check test assertions, fix contract or test code |
References / Further Reading
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.