/abstract-skills:erc8004-on-abstractfrom abstract-skills
Registers AI agents onchain, tracks reputation via ERC-8004 on Abstract, and queries agent identity and feedback from the IdentityRegistry and ReputationRegistry.
Ships in abstract-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
ERC-8004 gives AI agents onchain identity and reputation on Abstract. Agents mint an NFT identity, publish a metadata URI describing their capabilities, and accumulate reputation feedback from clients who use them.
Abstract has the IdentityRegistry and ReputationRegistry deployed on mainnet. For the full deployed contract list, see connecting-to-abstract skill → references/deployed-contracts.md.
| Contract | Address |
|---|---|
| IdentityRegistry | 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 |
| ReputationRegistry | 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63 |
import { createWalletClient, http } from "viem";
import { abstract } from "viem/chains";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const client = createWalletClient({ account, chain: abstract, transport: http() });
const agentId = await client.writeContract({
address: "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432",
abi: [{ name: "register", type: "function", stateMutability: "nonpayable", inputs: [{ name: "agentURI", type: "string" }], outputs: [{ name: "agentId", type: "uint256" }] }],
functionName: "register",
args: ["https://your-agent.com/agent.json"],
});
The agentURI points to a JSON file describing your agent. See references/agent-uri-schema.md for the schema.
import { createPublicClient, http } from "viem";
import { abstract } from "viem/chains";
const client = createPublicClient({ chain: abstract, transport: http() });
const [count, summaryValue, decimals] = await client.readContract({
address: "0x8004BAa17C55a88189AE136b182e5fdA19dE9b63",
abi: [{ name: "getSummary", type: "function", stateMutability: "view", inputs: [{ name: "agentId", type: "uint256" }, { name: "clientAddresses", type: "address[]" }, { name: "tag1", type: "string" }, { name: "tag2", type: "string" }], outputs: [{ name: "count", type: "uint64" }, { name: "summaryValue", type: "int128" }, { name: "summaryValueDecimals", type: "uint8" }] }],
functionName: "getSummary",
args: [22n, [], "starred", ""],
});
Pass specific clientAddresses to filter by trusted reviewers, or [] for all feedback.
await client.writeContract({
address: "0x8004BAa17C55a88189AE136b182e5fdA19dE9b63",
abi: [{ name: "giveFeedback", type: "function", stateMutability: "nonpayable", inputs: [{ name: "agentId", type: "uint256" }, { name: "value", type: "int128" }, { name: "valueDecimals", type: "uint8" }, { name: "tag1", type: "string" }, { name: "tag2", type: "string" }, { name: "endpoint", type: "string" }, { name: "feedbackURI", type: "string" }, { name: "feedbackHash", type: "bytes32" }], outputs: [] }],
functionName: "giveFeedback",
args: [
22n, // agentId
85n, // value (e.g. 85/100 rating)
0, // valueDecimals
"starred", // tag1 — category
"", // tag2 — subcategory (optional)
"https://agent.example.com/GetPrice", // endpoint used
"", // feedbackURI — link to off-chain evidence (optional)
"0x0000000000000000000000000000000000000000000000000000000000000000", // feedbackHash
],
});
| Goal | Registry | Function |
|---|---|---|
| Give an agent an onchain identity | IdentityRegistry | register(agentURI) |
| Update agent metadata/URI | IdentityRegistry | setAgentURI(agentId, newURI) |
| Set a payment wallet for an agent | IdentityRegistry | setAgentWallet(agentId, wallet, deadline, sig) |
| Store key-value metadata | IdentityRegistry | setMetadata(agentId, key, value) |
| Rate an agent after using it | ReputationRegistry | giveFeedback(...) |
| Check an agent's reputation score | ReputationRegistry | getSummary(agentId, clients, tag1, tag2) |
| Read individual feedback entries | ReputationRegistry | readAllFeedback(...) |
| Revoke feedback you gave | ReputationRegistry | revokeFeedback(agentId, feedbackIndex) |
| Discover agents | IdentityRegistry | Enumerate via ERC-721 tokenURI |
| tag1 | What it measures | Example value | decimals |
|---|---|---|---|
starred | Quality rating (0-100) | 87 | 0 |
uptime | Endpoint uptime (%) | 9977 (99.77%) | 2 |
responseTime | Response latency (ms) | 560 | 0 |
tradingYield | Yield (tag2=day/week/month) | -32 (-3.2%) | 1 |
clientAddresses filtering is critical — passing [] returns all feedback including potential Sybil spam; pass trusted reviewer addresses for meaningful scoresagentWallet requires a signature — setting a payment wallet needs an EIP-712 or ERC-1271 signature proving wallet ownership| Topic | Where to look |
|---|---|
| Full IdentityRegistry functions | references/identity-registry.md |
| Full ReputationRegistry functions | references/reputation-registry.md |
| Agent registration JSON schema | references/agent-uri-schema.md |
| Abstract deployed contracts | connecting-to-abstract skill → references/deployed-contracts.md |
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (abstract-foundation/abstract-skills) — no native marketplace selected
npx claudepluginhub p/abstract-foundation-abstract-skills7 skills in this plugin
/abstract-global-walletIntegrate Abstract Global Wallet (AGW) into React applications — email/social/passkey login, smart contract wallet, session keys, gas sponsorship, and wallet provider integrations for the Abstract Ethereum L2. This skill should be used when working with AGW, AbstractWalletProvider, useLoginWithAbstract, useAbstractClient, useWriteContractSponsored, agw-react, agw-client, create-abstract-app, session keys on Abstract, or gas-sponsored transactions on Abstract./connecting-to-abstractAbstract network configuration — chain IDs, RPC endpoints, WebSocket URLs, block explorers, and wallet setup for the Abstract Ethereum L2. This skill should be used when configuring clients, wallets, or dev environments for Abstract, including questions about Abstract RPC URLs, chain IDs (2741/11124), testnet config, Abscan explorer, connecting to the Abstract network, or importing abstract/abstractTestnet from viem/chains./deploying-contracts-on-abstractDeploy smart contracts on Abstract using Foundry (default) or Hardhat. Covers zksolc compilation, deployment, Abscan verification, and testnet faucets for the Abstract Ethereum L2. This skill should be used when deploying or compiling contracts on Abstract, using forge/foundry-zksync, forge build --zksync, forge create --zksync, anvil-zksync, verifying on Abscan, or working with the zkSync compiler on Abstract./myriad-on-abstractIntegrate Myriad Protocol prediction markets on Abstract — REST API for market data, polkamarkets-js SDK for trading outcome shares, builder revenue sharing via referralBuy, and contract addresses. This skill should be used when working with Myriad API, prediction markets on Abstract, polkamarkets-js SDK, trading or buying/selling prediction shares, builder codes, referralBuy, claiming winnings, Myriad contract addresses, or Myriad Protocol integration./safe-multisig-on-abstractCreate and manage Safe multi-signature wallets on Abstract — deploy new Safes, configure owners and thresholds, propose and execute multi-sig transactions using the Safe SDK or the Safe UI. This skill should be used when working with Safe on Abstract, creating a multisig wallet on Abstract, safe.abs.xyz, Safe Protocol Kit on Abstract, multi-sig transactions, SafeL2, SafeProxyFactory, or managing shared wallets with multiple signers on Abstract./using-agw-mcpGive AI agents wallet capabilities on Abstract via the Abstract Global Wallet MCP server — read chain data, check balances, and (coming soon) send transactions on behalf of users. This skill should be used when setting up agw-mcp, giving AI agents wallet access on Abstract, or building MCP-powered agent workflows that interact with Abstract chain data.Other plugins' skills for the same job