algokit-utils-ts
Skill33 starsChanged 10 months agoMITView on GitHub
Guide for writing TypeScript code with AlgoKit Utils (`@algorandfoundation/algokit-utils`). Use this skill whenever the user is building on Algorand with TypeScript — client setup, account management, payments, asset operations, atomic transaction groups, smart contract deployment and interaction (AppFactory, AppClient, ARC-56/ARC-32 specs), raw app calls, key registration, network management, testing with algorandFixture, error handling, and the low-level crypto primitives under `@algorandfoundation/algokit-utils/crypto` (Ed25519 keygen/signing/verification, SHA-512/256 `hash`, Peikert xHD BIP44 wallets, wrapped-secret patterns). Trigger on imports from `@algorandfoundation/algokit-utils` (incl. `/crypto`, `/testing`, `/transact` subpaths), references to `AlgorandClient`, `AppFactory`, `AppClient`, `AlgoAmount`, `algorandFixture`, `ed25519Generator`, `peikertXHdWalletGenerator`, `hash`, `WrappedEd25519Seed`, or `RawEd25519Signer`. Also on any TypeScript or JavaScript code that builds on Algorand.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- setups/AGENTS.mdAGENTS.md
- skill-creatorSkill
- algokit-utils-pySkill
- algorand-coreSkill
- algorand-ecosystemSkill
- algorand-frontendSkill
- algorand-project-setupSkill
- algorand-pythonSkill
- algorand-typescriptSkill
- algorand-x402-pythonSkill
- algorand-x402-typescriptSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
When helping users, prefer the patterns below over raw algosdk calls — AlgoKit Utils wraps the SDK with higher-level, type-safe …
- Distinctive: line 59
Read only the file(s) relevant to the user's current question.
- Very specific: line 92
Use Config.configure({ populateAppCallResources: true }) to auto-populate app call resources.
≈ “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
AlgoKit Utils TypeScript — Quick Reference
This skill targets version 10.x of @algorandfoundation/algokit-utils.
This skill provides idiomatic patterns for @algorandfoundation/algokit-utils (TypeScript).
When helping users, prefer the patterns below over raw algosdk calls — AlgoKit Utils wraps the
SDK with higher-level, type-safe abstractions.
How to use this skill
Reference docs are split into individual files under references/. Only read the file(s) relevant
to the user's question — this keeps context lean. The table below maps topics to filenames.
Key concepts
- AlgorandClient is the single entry point. Create one via
AlgorandClient.defaultLocalNet(),.testNet(),.mainNet(),.fromConfig(), or.fromEnvironment(). - AlgoAmount provides type-safe Algo/microAlgo values. Use
algo(5),microAlgo(1000),AlgoAmount.Algo(5), or the prototype extensions(5).algo(). - AccountManager (
algorand.account.*) handles key generation, mnemonics, multisig, logic sigs, funding, and signer registration. - TransactionComposer (
algorand.newGroup()) builds atomic groups with fluent chaining. Supports.addPayment(),.addAssetTransfer(),.addAppCallMethodCall(), etc. - AppFactory creates and deploys smart contracts from ARC-56/ARC-32 app specs. Supports
idempotent deploy with
onUpdate/onSchemaBreakstrategies and template variable substitution. - AppClient interacts with deployed contracts — ABI method calls, state reads (global, local,
box), bare calls, and the
paramsbuilder for deferred composition. - Raw app calls via
algorand.send.appCall(),.appCreate(),.appUpdate(),.appDelete(),.appCallMethodCall(),.appCreateMethodCall()when you don't have an app spec. - Crypto primitives are exposed via
@algorandfoundation/algokit-utils/crypto(re-exporting@algorandfoundation/algokit-crypto). This subpath carries Ed25519 keypair generation/signing/verification (ed25519Generator,ed25519Verifier), Algorand's SHA-512/256hash, the Peikert xHD BIP44 wallet (peikertXHdWalletGenerator), and the wrapped-secret pattern for HSM/KMS-backed keys (WrappedEd25519Seed,WrappedHdExtendedPrivateKey,ed25519SigningKeyFromWrappedSecret). Reach for it when you are building a customRawEd25519Signer, deriving deterministic accounts from a seed, or computing Algorand-compatible hashes outside the transaction path.
Reference file index
Read only the file(s) relevant to the user's current question.
| File | What it covers |
references/getting-started.md | Installation, imports, LocalNet prerequisites |
references/client-initialization.md | LocalNet, TestNet, MainNet, custom config, env vars |
references/account-management.md | Random accounts, mnemonics, multisig, logic sigs, funding, signers |
references/algoamount-and-value-handling.md | algo(), microAlgo(), conversions, prototype extensions, fees |
references/payment-transactions.md | Simple payments, unsigned txns, notes, leases, fee control |
references/asset-operations.md | Create, opt-in/out, transfer, freeze, config, destroy, bulk ops, get info |
references/key-registration.md | Online/offline key registration for consensus participation |
references/transaction-composition.md | Atomic groups, build/send/simulate, fee control, clone |
references/smart-contract-deployment.md | AppFactory, bare/ABI create, idempotent deploy, template vars |
references/smart-contract-interaction.md | AppClient, ABI calls, bare calls, global/local/box state, params builder |
references/raw-app-calls.md | Low-level app create/call/update/delete, ABI method calls without app spec |
references/network-and-client-management.md | Algod/indexer/kmd access, LocalNet detection, rounds, timestamps, time/block warp |
references/configuration-and-global-settings.md | populateAppCallResources, confirmation rounds, logging |
references/testing-utilities.md | algorandFixture, newScope, generateAccount, transaction logger, log capture, indexer waits |
references/error-handling.md | Try/catch patterns, error transformers, overspend, app call rejections |
references/ed25519.md | Ed25519 keypair generation, raw signers, signature verification, pinned Noble backend |
references/hashing.md | Algorand SHA-512/256 hash, multisig and logic sig address construction |
references/hd-wallets.md | peikertXHdWalletGenerator, BIP44 paths, multi-account derivation, wiring into AccountManager |
references/wrapped-secrets.md | WrappedEd25519Seed, WrappedHdExtendedPrivateKey, ed25519SigningKeyFromWrappedSecret, HSM/KMS patterns |
Common patterns to remember
algorand.send.*builds, signs, and submits in one call.algorand.createTransaction.*builds without signing or sending.appClient.params.*builds call params for deferred use in groups or nested args.appClient.send.bare.*for bare calls;appClient.send.call()for ABI calls.- Readonly ABI methods (marked in ARC-56) automatically use
simulate— no fees spent. algorand.account.ensureFunded()is idempotent — skips if balance is already sufficient.factory.deploy()is idempotent — creates, updates, replaces, or no-ops based on state.- Use
Config.configure({ populateAppCallResources: true })to auto-populate app call resources. generateAddressWithSignersfrom@algorandfoundation/algokit-utils/transactaccepts anything shaped like{ ed25519Pubkey, rawEd25519Signer }(i.e.Ed25519SigningKey) and returns anAddressWithSigners. Pass its.signertoAccountManager.setSigner(addr, signer)— hardware wallets, KMS, and HD-derived keys all plug in through this single shape.ed25519Generator,ed25519Verifier, anded25519SigningKeyFromWrappedSecretare aliases that currently point at the@noble/ed25519-backednoble*variants. Import thenoble*names directly when you need to pin the backend across future releases.ed25519SigningKeyFromWrappedSecretalways zeroes the unwrapped secret after use and throws anAggregateErrorwhen both the operation and the re-wrap fail — never catch and discard it silently.
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.

