All skills

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.

Use this Skill: https://skilld.dev/gh/algorand-devrel/algorand-agent-skills/algokit-utils-ts

This session only. Nothing lands on disk.

referencesconfiguration-and-global-settings.md

≈573 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Configuration and global settings

Set populateAppCallResources globally

Enable automatic resource population for all application calls so you don't have to manually specify boxes, accounts, apps, and assets.

import { Config } from "@algorandfoundation/algokit-utils";

Config.configure({ populateAppCallResources: true });

What just happened: You turned on automatic resource population library-wide. Every application call sent through AlgorandClient will now use simulation to discover and attach the required reference arrays before submitting.

Set maxRoundsToWaitForConfirmation

Control how many rounds the library waits for a transaction to be confirmed before timing out.

const result = await algorand.send.payment({
  sender: alice.addr,
  receiver: bob.addr,
  amount: (1).algo(),
  maxRoundsToWaitForConfirmation: 5,
});

What just happened: You sent a payment that will wait up to 5 rounds for confirmation. If the transaction is not confirmed within that window the call throws. This parameter can be added to any send call; set it to 0 to skip waiting entirely (fire-and-forget).

Configure logging

Replace the default console logger with your own implementation to control how the library reports internal activity.

import { Config } from "@algorandfoundation/algokit-utils";

// Silence all library output
Config.configure({
  logger: {
    error: () => {},
    warn: () => {},
    info: () => {},
    verbose: () => {},
    debug: () => {},
  },
});

// Or route logs through your application's logger
Config.configure({
  logger: {
    error: (msg, ...args) => myLogger.error(msg, ...args),
    warn: (msg, ...args) => myLogger.warn(msg, ...args),
    info: (msg, ...args) => myLogger.info(msg, ...args),
    verbose: (msg, ...args) => myLogger.trace(msg, ...args),
    debug: (msg, ...args) => myLogger.debug(msg, ...args),
  },
});

What just happened: You swapped out the library's default console-based logger. The first example silences all output; the second pipes everything through a custom myLogger instance. The Logger interface has five levels — error, warn, info, verbose, and debug — each accepting a message string and optional extra parameters.

Source: SKILL.md on GitHub

1 alert1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill provides a comprehensive guide for using the AlgoKit Utils TypeScript library. It follows security best practices, such as recommending environment variables for secrets, and uses standard testing mnemonics and placeholder domains in its code examples. No malicious patterns or security risks were detected.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: HIGH · 2 issues

Signed by skilld at 4235fb8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 6 months ago

README badge

README badge for algorand-devrel/algorand-agent-skills/algokit-utils-ts