starknet-identity
What it does
This skill guides registering AI agents on Starknet with an on-chain identity, metadata, reputation feedback, and third-party validation. It is for developers who need their agents to have a verifiable identity on-chain.
When to use it
- ✓When you want to register an AI agent on Starknet as an on-chain identity.
- ✓When you need to update an agent's metadata or manage its reputation feedback.
- ✓When you want a third-party validator to assess an agent.
Skill link
https://github.com/internet-court/internet-court-skill/blob/main/vendored/starknet/starknet-identity/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you register my AI agent on Starknet using the ERC-8004 standard so it has an on-chain identity?”
5 new skills a week. 1 minute to read.
How it works
The agent connects a funded Starknet account to the ERC-8004 registry, then registers the agent as an NFT identity with its metadata. It also covers the feedback and validation registries that build trust over time.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Starknet Identity Skill
Register and manage AI agent identities on Starknet using the ERC-8004 standard.
When to Use
- Registering agents on-chain, updating agent metadata, or managing reputation and validation flows.
- Building features that depend on ERC-8004 identity, feedback, or validator attestations.
When NOT to Use
- Simple wallet, payment, or DeFi flows that do not depend on ERC-8004 registries.
- Cairo contract authoring, deployment-only tasks, or security auditing.
Quick Start
- Install
starknetand connect a funded account to the target ERC-8004 registry deployment. - Use skills catalog if the flow also needs wallet setup, deployment, or contract auditing.
Overview
ERC-8004 defines three interconnected on-chain registries for AI agents:
- Identity Registry -- Agents as ERC-721 NFTs with metadata
- Reputation Registry -- Feedback system with cryptographic authorization
- Validation Registry -- Third-party assessments (zkML, TEE, staker)
Reference implementation: erc8004-cairo
Prerequisites
npm install starknet
Agent Registration
Register a New Agent
import { Account, RpcProvider, Contract, CallData } from "starknet";
const provider = new RpcProvider({ nodeUrl: process.env.STARKNET_RPC_URL });
const account = new Account({ provider, address, signer: privateKey });
const identityRegistry = new Contract({
abi: identityRegistryAbi,
address: registryAddress,
providerOrAccount: account,
});
// Register with metadata
const metadata = [
{ key: "agentName", value: "MyTradingAgent" },
{ key: "agentType", value: "defi-trader" },
{ key: "version", value: "1.0.0" },
{ key: "model", value: "claude-opus-4-5" },
{ key: "status", value: "active" },
];
const tokenUri = "ipfs://QmYourAgentSpecHash"; // IPFS link to full agent spec
const { transaction_hash } = await account.execute({
contractAddress: registryAddress,
entrypoint: "register_with_metadata",
calldata: CallData.compile({
token_uri: tokenUri,
metadata: metadata,
}),
});
const receipt = await account.waitForTransaction(transaction_hash);
// Parse agent_id from events
Query Agent Information
// Check if agent exists
const exists = await identityRegistry.agent_exists(agentId);
// Get total registered agents
const totalAgents = await identityRegistry.total_agents();
// Get agent metadata
const name = await identityRegistry.get_metadata(agentId, "agentName");
const agentType = await identityRegistry.get_metadata(agentId, "agentType");
// Get agent owner (ERC-721)
const owner = await identityRegistry.owner_of(agentId);
Update Agent Metadata
// Only the agent owner can update metadata
await account.execute({
contractAddress: registryAddress,
entrypoint: "set_metadata",
calldata: CallData.compile({
agent_id: agentId,
key: "status",
value: "upgraded",
}),
});
Reputation System
Authorize and Submit Feedback
The reputation system uses a cryptographic authorization flow:
- Agent owner creates a FeedbackAuth struct and signs it
- Client submits feedback with the authorization
// Step 1: Agent owner creates authorization
const feedbackAuth = {
agent_id: agentId,
client_address: clientAddress,
index_limit: 10, // Max feedback entries allowed
expiry: Math.floor(Date.now() / 1000) + 3600, // 1 hour
chain_id: chainId,
identity_registry: registryAddress,
signer_address: ownerAddress,
};
// Sign the authorization (using agent owner's account)
const messageHash = computePoseidonHash(feedbackAuth); // EIP-712 style
const signature = await ownerAccount.signMessage(messageHash);
// Step 2: Client submits feedback
await clientAccount.execute({
contractAddress: reputationRegistryAddress,
entrypoint: "give_feedback",
calldata: CallData.compile({
agent_id: agentId,
score: 85, // 0-100
tag1: encodedTag("reliability"),
tag2: encodedTag("speed"),
fileuri: "",
filehash: 0,
feedback_auth: feedbackAuth,
signature: signature,
}),
});
Query Reputation
const reputationRegistry = new Contract({
abi: reputationAbi,
address: reputationAddress,
providerOrAccount: provider,
});
// Get summary for an agent (count + average score)
const [count, avgScore] = await reputationRegistry.get_summary(
agentId,
[], // all client addre
FAQ
What are the three registries?
The skill describes an identity registry, a reputation registry, and a validation registry.
How is the agent represented?
The skill says agents are represented as ERC-721 NFTs with metadata.
Is it for simple payment flows?
No. The skill says flows that do not use ERC-8004 registries are better served by other skills.
Details
Original description by the author
Register AI agents on-chain using the ERC-8004 Trustless Agents standard. Manage agent identity as NFTs, build reputation through feedback, and request third-party validation.
Popularity
- GitHub stars
- 7.0k
- Ranking position
- #13686
- License
- —
- Updated
- 10/26/2026
Comments
- …
More skills from this repository
internet-court
7.0kHelps your agent pay, hire, or deal safely with another AI agent or paid service, and points it to the right specialized guide.
genlayer-erc7710-connector
7.0kHelps your agent connect an AI review result to a permission system, so a bad review can limit or cancel an agent's permissions.
genlayer-intelligent-contracts
7.0kHelps your agent define the rules, evidence and outputs of an AI judge that checks whether another agent followed its mandate.
x402-erc7710
7.0kHelps your agent pay for web services one request at a time, and set up ongoing spending that stays within a permission budget.
Similar skills
api-connector-builder
280kHas your agent build new API connections following the existing pattern. Use when you need to add one more integration without creating a new way of doing things.
api-design
280kHelps your agent design REST APIs following best practices. It's useful for defining how APIs communicate, how errors are shown, and how to organize data.
backend-patterns
280kHelps your agent with server-side architecture patterns and database optimization. It's useful for building or reviewing code that runs on the server.