build-on-algorand
Skill27 starsChanged 3 months agoMITView on GitHub
Build and review TypeScript-only Algorand applications using the AVM, PuyaTs, generated clients, tests, browser wallets, and relevant ARCs. Use for contracts, assets and tokens, client or frontend integration, defensive implementation, migrations, and x402 orientation. Excludes structured security audits and finding reports, Python, project lifecycle, LocalNet, accounts, deployment operations, and VibeKit extension development.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- audit-algorandSkill
- build-on-vibekitSkill
- marketing-contentSkill
- update-skillSkill
- use-vibekitSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Read AGENTS.md, package.json, compiler configuration, and existing contract and generated-client patterns before changing code.
- Very specific: line 27
When working in a VibeKit-configured project, load use-vibekit for project lifecycle, LocalNet, accounts, signing, network selection, …
- Very specific: line 53
Do not use the TypeScript number type in contract code.
- Very specific: line 56
Treat arrays, objects, byte strings, storage, and arithmetic according to PuyaTs semantics.
- Distinctive: line 59
Prefer ARC-4 ABI methods and an ARC-56 application specification for public applications and generated clients.
- Distinctive: line 68
Default-deny lifecycle actions the application does not need.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build on Algorand
Build Algorand applications with TypeScript on both sides of the compilation boundary:
- Contract TypeScript is the restricted Algorand TypeScript language that PuyaTs compiles for the AVM. It is not general JavaScript.
- Client TypeScript runs off-chain and uses generated clients, AlgoKit Utils, algosdk, and wallet signers.
Preserve that boundary. Never copy off-chain libraries, asynchronous code, or ordinary JavaScript data models into a contract.
Start with the project
Read AGENTS.md, package.json, compiler configuration, and existing contract
and generated-client patterns before changing code. Use the project's pinned
dependencies and npm scripts. Do not introduce Python or the AlgoKit CLI, and
do not replace the project's stack or add a dependency when its existing tools
cover the task.
When working in a VibeKit-configured project, load use-vibekit for project
lifecycle, LocalNet, accounts, signing, network selection, deployment, and
on-chain operations. This skill covers the application code and design.
Choose the guide
| Task | Guide |
| Reason about applications, Logic Signatures, execution budgets, resources, fees, or protocol capabilities | AVM fundamentals |
| Write or review Algorand TypeScript contract types, methods, control flow, or ABI surfaces | PuyaTs contracts |
| Choose state, use boxes, inspect group transactions, or emit inner transactions | State and transactions |
| Generate or consume typed clients, test contracts, simulate calls, or debug failures | Clients and testing |
| Connect a browser wallet or pass a wallet signer to a generated client | Frontend wallets |
| Harden an implementation or perform an ordinary contract-safety review | Security |
| Move from TEALScript, Algorand TypeScript beta, ARC-32, or older client APIs | Migrations |
| Select an application, ASA, token, NFT, event, or multisig ARC | Standards |
| Orient a TypeScript client or resource server to x402 on Algorand | x402 |
Load only the references needed for the current task.
Load audit-algorand for a structured vulnerability assessment, threat model,
exploit analysis, mainnet-readiness review, or security finding report. This
skill remains the owner of implementation and routine defensive review.
Contract invariants
- Do not use the TypeScript
numbertype in contract code. Use AVM-native types such asuint64,biguint, andbytes, or explicit ARC-4 types. Numeric literals still need an AVM type from context or a constructor. - Treat arrays, objects, byte strings, storage, and arithmetic according to
PuyaTs semantics. Use
clone(value)when an independent array or object is required. - Prefer ARC-4 ABI methods and an ARC-56 application specification for public applications and generated clients. Accept ARC-32 only where existing tools or artifacts require it.
- Validate every relevant field of transaction arguments. A transaction's group position or type alone does not prove its sender, receiver, amount, asset, application, close address, or rekey target.
- Account for opcode budget, program size, transaction fees, app-call resources, box I/O budget, and minimum-balance changes during design.
- Make update, delete, opt-in, close-out, and clear-state behavior explicit. Default-deny lifecycle actions the application does not need.
- On a compile error, read the installed
@algorandfoundation/algorand-typescript/*.d.tsdeclaration the error names, or the linked example, before changing the code. Do not iterate from memory. The package is split by topic:state.d.ts(Global/Local state),box.d.ts,arc4/index.d.ts(abimethod,allowActions, ARC-4 types),itxn.d.ts,gtxn.d.ts,op.d.ts(AVM ops),on-complete-action.d.ts. - Compile and test the generated TEAL behavior. Use
simulatefor execution traces and fee/resource diagnosis; do not use removeddryrunortealdbgworkflows.
Canonical starting points
- Smart-contract overview
- Algorand TypeScript language guide
- PuyaTs examples
- PuyaTs devportal examples
- AlgoKit Utils TypeScript examples
- ARC repository
Material adapted from an upstream MIT-licensed skill set is documented in Attribution.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

