starknet.js is a JavaScript library for interacting with Starknet, a layer-2 blockchain network that uses zero-knowledge technologies and connects with Ethereum. JavaScript developers use it to build applications that work with Starknet. Its catalogue skill provides coding agents with current guidance for using the library.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/starknet-io/starknet.js/agents-mdgit clone --depth 1 https://github.com/starknet-io/starknet.jsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/starknet-io/starknet.js/agents-md)<a href="https://agentmods.dev/instructions/starknet-io/starknet.js/agents-md"><img src="https://agentmods.dev/badge/instructions/starknet-io/starknet.js/agents-md.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.01748 | $0.01748 |
| Opus 5 | $0.00874 | $0.00874 |
| Sonnet 5 | $0.00350 | $0.00350 |
| Haiku 4.5 | $0.00175 | $0.00175 |
Grade A, and why
starknet.js AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Guidance for AI coding agents (Claude Code, Cursor, Copilot, etc.) working in this repository. Humans: see CONTRIBUTING.md — this file is a condensed, agent-oriented companion to it, not a replacement.
starknet.js is the JavaScript/TypeScript SDK for Starknet. It is a published npm
library (starknet), so the public API surface is a contract — treat breaking
changes deliberately (see Conventions).
Setup & core commands
- Node
>=22is required. Install withnpm install. npm run build— full build viatsup(CJS + ESM + IIFE +.d.ts). Required before publishing-related tasks; not needed just to run unit tests.npm run lint— ESLint (airbnb + prettier), autofix on.npm run ts:check— type-check only (tsc --noEmit).npm run format— Prettier write.
Verifying your changes (read this before running tests)
There are two kinds of tests, and the default command needs live infrastructure:
-
Unit tests — no infra needed. Use this loop.
npm run test:unit # all pure unit tests (~1400 tests, ~20s) npm run test:unit -- __tests__/utils/uint256.test.ts # a single fileThis uses
jest.unit.config.ts, which runs the pure suites under__tests__/utils/and skips the devnet-connecting global setup. Use it to verify changes tosrc/utils/**and other logic with unit coverage. -
Integration tests — require a running Starknet devnet or RPC node.
npm test,npm run test:coverage, andnpm run test:watchrun the full suite viajest.config.ts, whoseglobalSetupthrows if it cannot reach a devnet (http://127.0.0.1:5050) and noTEST_ACCOUNT_*env vars are set. The root-level__tests__/*.test.tssuites (account, contract, provider, paymaster, wallet…) exercise real RPC calls. To run them, start a devnet (Docker:shardlabs/starknet-devnet-rs) or point at a node viaTEST_RPC_URL+TEST_ACCOUNT_ADDRESS+TEST_ACCOUNT_PRIVATE_KEY(see CONTRIBUTING.md). Two suites under__tests__/utils/(ethSigner,batch) also need a node and are excluded fromtest:unit.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 110 lines · 1,748 tokens per session scan A 1d54ed746150
starknet.js AGENTS.md is an instructions file published in the GitHub repository starknet-io/starknet.js (1,256 stars, last pushed yesterday), licensed MIT. It adds 1,748 tokens to every session, about $0.0087 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
evmole AGENTS.md
Instructions for cdump/evmole: EVMole extracts structured facts from deployed EVM runtime bytecode.
plamen CLAUDE.md
Claude Code instructions for PlamenTSV/plamen, covering plamen — security auditor, execution model, reference files and shared.
experiencer CLAUDE.md
Claude Code instructions for vincentlaucsb/experiencer: The canonical repository instructions are in AGENTS.md. Read and follow that file; this compatibility entrypoint intentionally defines no independent rules.
pip-web CLAUDE.md
Claude Code instructions for playpip/pip-web, covering claude.md — agent guide for pip, read first (by task), the three layers (respect the boundaries), non-negotiables and commands / definition of done.
kya-hub AGENTS.md
AGENTS.md instructions for UMBRAXON/kya-hub, covering agents.md — instructions for ai agents, 1. what kya-hub is, in one paragraph, 2. should you integrate?, 3. quickstart for an llm agent and 4. signing rules — the part that breaks everyone.
bitcoin-mcp copilot-instructions.md
Instructions for Bortlesboat/bitcoin-mcp, covering bitcoin-mcp copilot instructions, rules, satoshi api reference and verification.