Skip to content

Add anchor-idl-agent-skill (meta-skill: any Anchor IDL → agent tools) #47

Description

@Jay0xx

Adds anchor-idl-agent-skill, a meta-skill that turns any deployed Anchor program on Solana into an agent-callable tool surface.

Where the existing skills teach an agent about one domain (payments, games, oracles, token extensions…), this one teaches it to consume the long tail of thousands of deployed Anchor programs. It covers:

  • IDL ingestion (on-chain / GitHub / file / Anchor.toml) — both v0.29 legacy and v0.30+ specs, with on-chain discriminator verification
  • Tool-schema generation with accounts auto-bucketed into auto/resolved/user
  • Automatic account resolution — PDA/ATA/sysvar/signer resolution from IDL seeds
  • Mandatory pre-flight simulation with CU surfacing, decoded return data, account-diff, explicit confirmation
  • Anchor error decoding0x1771 → enum name → source line
  • Safety rails — mainnet program allowlist, CU/fee caps, simulate-or-die
  • Worked adapters for Jupiter V6, Drift V2, Kamino, MarginFi v2, Squads v4 — incl. propose-via-Squads mode
  • Reference TypeScript impl at code/@solanabr/anchor-agent-toolkit — vitest + Surfpool harness

Subagents: idl-tool-architect (opus), idl-adapter-engineer (sonnet). Commands: /ingest-idl, /explain-ix, /simulate-ix, /decode-error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions