agentleFS
alchemyplatformalchemyplatform/aa-sdk/AGENTS.md

aa-sdk

AGENTS.md321 starsChanged 5 months agoMITView on GitHub

AI assistants should load skills from .agents/skills/ based on the task context. The v5 SDK now lives on main (graduated from v5.x.x on 2026-05-20). Use main as the audit source, comparison base, and PR base unless the user explicitly asks for another branch. The legacy v4 SDK lives on the v4.x.x branch and only receives backports/security fixes. Do not treat untracked top-level directories as source truth. On main, the tracked workspace is the root config plus .agents/, .claude/, .cursor/, .github/,…

  • Installs packages

We split this AGENTS.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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
  1. Very specific:

    Do not treat untracked top-level directories as source truth.

    line 9
  2. Very specific:

    Check docs/solutions/ for gotchas before changing workflows, generated docs, tests, or package boundaries.

    line 101

≈ “Common” is an estimate: at least 1 in 5 of the 36,368 AGENTS.md 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Agent Router

AI assistants should load skills from .agents/skills/ based on the task context. The v5 SDK now lives on main (graduated from v5.x.x on 2026-05-20). Use main as the audit source, comparison base, and PR base unless the user explicitly asks for another branch. The legacy v4 SDK lives on the v4.x.x branch and only receives backports/security fixes.

Do not treat untracked top-level directories as source truth. On main, the tracked workspace is the root config plus .agents/, .claude/, .cursor/, .github/, .vitest/, docs/, halp/, packages/, scripts/, and templates/.

Quick Reference

pnpm install
pnpm run build:libs
pnpm run lint:check
pnpm run lint:write
pnpm run test:ci
pnpm run test:typecheck
./scripts/run-affected-tests.sh main
pnpm run docs:sdk
pnpm run lint:docs
pnpm run docs:broken-links

For Alchemy engineers, run npx turbo login --sso-team=alchemy-dot-com once to use remote caching.

Available Skills

SkillDescription
toolingpnpm, Turborepo, Lerna, local validation, and generated-output boundaries.
package-exportsPackage export maps, ESM import paths, public/internal/experimental surfaces.
error-handlingSDK error hierarchy, BaseError, and package error conventions.
wallet-apisWallet API client, Zod codecs, signer/client model, and Solana support.
smart-accountsLight Account, Modular Account v1/v2, modules, permissions, and deferred actions.
testingVitest projects, Anvil/Foundry/Rundler setup, and affected test execution.
documentationMDX docs, TypeDoc reference generation, docs/docs.yml, and code snippet preservation.
release-workflowsnpm publish (publish-package.yml) and post-merge docs hooks (revalidate, indexer).

Skill Loading

TaskSkills to load
Adding or changing package exports, barrels, or package.json exportspackage-exports, tooling
Editing TypeScript source in packages/package-exports, error-handling, plus package-specific skills
Working on Wallet API client, transport, actions, schemas, or codecswallet-apis, error-handling, testing
Working on account implementations, modules, permissions, or deferred actionssmart-accounts, error-handling, testing
Writing or modifying teststesting, tooling
Editing .vitest/, vitest.config.ts, or test setuptesting, tooling
Editing docs or TypeDoc commentsdocumentation
Editing docs/pages/reference/, typedoc.json, or docs/docs.ymldocumentation, tooling
Editing .github/workflows/, lerna.json, version injection, or publish automationrelease-workflows, tooling
Creating a PR or evaluating deploy/release safetyrelease-workflows, tooling

Directory Mapping

PathRelevant skills
packages/common/package-exports, error-handling, testing
packages/aa-infra/package-exports, error-handling, testing
packages/smart-accounts/smart-accounts, package-exports, error-handling, testing
packages/wallet-apis/wallet-apis, package-exports, error-handling, testing
.vitest/, vitest.config.ts, packages/*/vitest.config.tstesting, tooling
templates/, halp/, turbo.json, pnpm-workspace.yaml, package.jsontooling
docs/**/*.mdx, docs/docs.yml, typedoc.json, tsconfig.typedoc.jsondocumentation
docs/pages/reference/documentation
.github/workflows/, .github/actions/, lerna.json, packages/*/inject-version.tsrelease-workflows, tooling

Project Structure

aa-sdk/
├── .agents/            # Agent skills, commands, and repo guidance
├── packages/
│   ├── common/          # Shared transport, chain, logging, config, and errors
│   ├── aa-infra/        # Rundler fee estimation and RPC types
│   ├── smart-accounts/  # Light Account, Modular Account, modules, permissions
│   └── wallet-apis/     # High-level Wallet API viem client and actions
├── .vitest/             # Shared Vitest setup, Anvil/Rundler fixtures, test helpers
├── docs/                # Fern-style docs and TypeDoc-generated reference MDX
├── scripts/             # TypeDoc navigation, docs sync, affected-test helpers
├── templates/           # Shared TypeScript and ESLint workspace packages
├── halp/                # Internal package scaffolding CLI
└── .github/             # PR checks, publish workflows, docs sync, and instructions

Slash Commands

CommandDescription
/docs-reviewerExisting Claude command for MDX documentation review.
/publish-packageChecklist for dry-running or publishing via the publish-package.yml flow.

Documentation Discovery

  • Check docs/solutions/ for gotchas before changing workflows, generated docs, tests, or package boundaries.
  • Trust source files, package configs, scripts, and workflow YAML over stale prose.
  • Existing docs AI guidance lives in .claude/commands/docs-reviewer.md, .cursor/rules/docs-reviewer.mdc, .github/copilot-instructions.md, and .github/instructions/docsreview.instructions.md.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.