[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GTHXMHNF9DK4QAJKADXCWH":3,"skill-same:01M6GTHXMHNF9DK4QAJKADXCWH":124},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M6GTHXMHNF9DK4QAJKADXCWH","basecred-8004-registration",null,"Interactive ERC-8004 agent registration via chat. Guides users through a prefill form, shows draft, confirms, then registers on-chain using agent0-sdk.","jiayaoqijia\u002Fcryptoskill","jiayaoqijia","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1453879?v=4","01M6GMYTX7Q7S504VC6E756ENR","YQ","01M6GMYV1QKJ1CC75MTTGT9PR0",81,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fbasecred-8004\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"registration","basecred 8004 registration","8004","basecred","guides","prefill","on-chain","8004 agent","form","users","sdk","via","chain","draft","chat","erc-8004","interactive","2026-11-10 10:12:30",false,"---\nname: basecred-8004-registration\ndescription: Interactive ERC-8004 agent registration via chat. Guides users through a prefill form, shows draft, confirms, then registers on-chain using agent0-sdk.\n---\n\n# Basecred ERC-8004 Registration\n\nRegister AI agents on the [ERC-8004](https:\u002F\u002F8004.org) on-chain registry through a guided chat experience.\n\n## Registration Flow\n\n### Step 1: Auto-Prefill\n\nWhen the user triggers registration, **auto-fill every field you can** from:\n- Agent identity files (IDENTITY.md, SOUL.md, USER.md)\n- Environment (`.env` — wallet address derived from private key)\n- Previous context (A2A endpoint, description, image, etc.)\n- Sensible defaults (version: 1.0.0, license: MIT, chain: Base, storage: onchain)\n\n**Do NOT ask questions one by one.** Prefill first, ask later.\n\n### Step 1.5: Explain Config Defaults\n\nBefore showing the draft, briefly explain the config so users understand what's pre-selected and what alternatives exist:\n\n```\n⚙️ Config defaults (you can change these later):\n\nChain:    Base (8453) — where your agent lives on-chain\n          Others: Ethereum, Polygon, BNB, Arbitrum, Celo, Gnosis, Scroll\n\nStorage:  Fully onchain — agent data stored directly on-chain\n          Alternative: IPFS — data pinned to IPFS, hash stored on-chain\n\nTrust:    Reputation — other agents\u002Fusers rate your agent on-chain\n          Others: Crypto-Economic (staking\u002Fslashing guarantees)\n                  TEE Attestation (hardware-level trust proof)\n\nx402:     Off — no payment protocol\n          On: agent can charge for services via x402 payment protocol\n\nActive:   On — agent is discoverable and accepting requests\n          Off: registered but hidden from discovery\n\nWallet:   Your agent's on-chain identity address\n          Two ways to set it:\n\n          Option A: Paste your wallet address\n          → Just paste your 0x... address\n          → Agent will be linked to this address on-chain\n\n          Option B: Add private key to .env (for signing)\n          → Set PRIVATE_KEY=0x... in your .env file\n          → Wallet auto-detected + can sign transactions\n          → Enables setWallet() via EIP-712 after registration\n\n          ? Option A is easier. Option B is needed if you want\n             the agent to sign transactions on your behalf.\n```\n\nShow this once at the start, not repeated on every draft.\n\n### Step 2: Show Full Draft with Buttons (Single Message)\n\nSend the **entire draft + buttons as one message** using the `message` tool. This keeps buttons directly below the draft.\n\n**Important:** Use `message action=send` with both `message` (the draft text) and `buttons` (inline buttons). Do NOT split into reply + separate button message. After sending, reply with `NO_REPLY` to avoid duplicate.\n\nUse ✅ (filled) and ⚠️ (missing\u002Fneeds attention):\n\n```\n? Agent Registration Draft\n\n── Basic Info ──\n✅ Name:        Mr. Tee\n✅ Description: AI agent with a CRT monitor...\n✅ Image:       pbs.twimg.com\u002F...\n✅ Version:     1.0.0\n✅ Author:      0xdas\n✅ License:     MIT\n\n── Endpoints ──\n✅ A2A:         a2a.teeclaw.xyz\u002Fa2a\n⚠️ MCP:         (none)\n\n── Skills & Domains ──\n✅ Skills (5):  natural_language_processing\u002Fnatural_language_processing, \n                natural_language_processing\u002Fnatural_language_generation\u002Fsummarization,\n                natural_language_processing\u002Finformation_retrieval_synthesis\u002Fquestion_answering,\n                analytical_skills\u002Fcoding_skills\u002Fcoding_skills,\n                images_computer_vision\u002Fimages_computer_vision\n✅ Domains (5): technology\u002Fblockchain\u002Fblockchain, technology\u002Fblockchain\u002Fdefi,\n                technology\u002Ftechnology, technology\u002Fsoftware_engineering\u002Fsoftware_engineering,\n                technology\u002Fsoftware_engineering\u002Fdevops\n✅ Custom:      agent_orchestration\u002Fagent_coordination, \n                social_media\u002Fcontent_management\n\n── Config ──\n✅ Chain:       Base (8453)\n✅ Storage:     Fully onchain\n✅ Active:      true\n✅ Trust:       reputation\n✅ x402:        false\n✅ Wallet:      0x1348...e41 (auto .env)\n\nTap to edit a section or register:\n```\n\nButtons (attached to same message):\n```\nRow 1: [✏️ Basic Info] [✏️ Endpoints]\nRow 2: [✏️ Skills & Domains] [✏️ Config]\nRow 3: [✅ Register] [❌ Cancel]\n```\n\n### Step 3: Section Editing (on button tap)\n\n**Instant feedback:** When any button is tapped, immediately acknowledge before doing anything else:\n\n| Button | Instant Feedback |\n|--------|-----------------|\n| ✏️ Basic Info | \"? Editing Basic Info...\" |\n| ✏️ Endpoints | \"? Editing Endpoints...\" |\n| ✏️ Skills & Domains | \"?️ Editing Skills & Domains...\" |\n| ✏️ Config | \"⚙️ Editing Config...\" |\n| ✅ Register | \"⏳ Starting registration on Base...\" |\n| ❌ Cancel | \"❌ Registration cancelled.\" |\n| ↩️ Back to Draft | \"? Back to draft...\" |\n\nThen show the edit form. Always include **↩️ Back to Draft** button.\n\n#### Edit Basic Info\n```\nCurrent values:\n• Name: Mr. Tee\n• Description: AI agent with a CRT...\n• Image: pbs.twimg.com\u002F...\n• Version: 1.0.0\n• Author: 0xdas\n• License: MIT\n\nType field name and new value, e.g. \"name: CoolBot\"\nOr type \"done\" to go back.\n```\nButtons: `[↩️ Back to Draft]`\n\n#### Edit Endpoints\n```\nCurrent:\n• A2A: https:\u002F\u002Fa2a.teeclaw.xyz\u002Fa2a\n• MCP: (none)\n\nPaste a URL to set, or \"clear mcp\" \u002F \"clear a2a\" to remove.\n```\nButtons: `[↩️ Back to Draft]`\n\n#### Edit Skills & Domains\nToggleable inline buttons (multi-select). Each button shows a **human-readable label** but stores the full **OASF taxonomy path** as the value.\n\n**Skills:** (OASF taxonomy paths)\n```\n[NLP ✅] → natural_language_processing\u002Fnatural_language_processing\n[Summarization ✅] → natural_language_processing\u002Fnatural_language_generation\u002Fsummarization\n[Q&A ✅] → natural_language_processing\u002Finformation_retrieval_synthesis\u002Fquestion_answering\n[Code Gen ✅] → analytical_skills\u002Fcoding_skills\u002Fcoding_skills\n[CV ✅] → images_computer_vision\u002Fimages_computer_vision\n[Data Analysis] → analytical_skills\u002Fdata_analysis\u002Fdata_analysis\n[Web Search] → natural_language_processing\u002Finformation_retrieval_synthesis\u002Fweb_search\n[Image Gen] → images_computer_vision\u002Fimage_generation\u002Fimage_generation\n[Translation] → natural_language_processing\u002Fnatural_language_generation\u002Ftranslation\n[Task Automation] → tool_interaction\u002Fworkflow_automation\n[+ Custom] [↩️ Back to Draft]\n```\n\n**Domains:** (OASF taxonomy paths)\n```\n[Blockchain ✅] → technology\u002Fblockchain\u002Fblockchain\n[DeFi ✅] → technology\u002Fblockchain\u002Fdefi\n[Technology ✅] → technology\u002Ftechnology\n[SE ✅] → technology\u002Fsoftware_engineering\u002Fsoftware_engineering\n[DevOps ✅] → technology\u002Fsoftware_engineering\u002Fdevops\n[Finance] → finance\u002Ffinance\n[Healthcare] → healthcare\u002Fhealthcare\n[Education] → education\u002Feducation\n[Entertainment] → entertainment\u002Fentertainment\n[Science] → science\u002Fscience\n[Creative Arts] → creative_arts\u002Fcreative_arts\n[Dev Tools] → technology\u002Fsoftware_engineering\u002Fdevelopment_tools\n[+ Custom] [↩️ Back to Draft]\n```\n\n**Display behavior:**\n- Buttons show **short labels** (e.g., \"NLP\", \"Blockchain\") for readability\n- Values stored are **full OASF paths** (e.g., `natural_language_processing\u002Fnatural_language_processing`)\n- Tapping toggles ✅ on\u002Foff\n- `+ Custom` prompts user to type a custom OASF path or label\n\n#### Edit Config\n**Trust models** (multi-select):\n```\n[Reputation ✅] [Crypto-Economic] [TEE Attestation]\n```\n\n**Other config:**\n```\n[Chain: Base ▼] [Storage: Onchain ▼] [x402: Off ▼]\n[↩️ Back to Draft]\n```\n\n| Trust Model | Description |\n|-------------|-------------|\n| **Reputation** | On-chain feedback & scoring. Default for most agents. |\n| **Crypto-Economic** | Staking\u002Fslashing guarantees. For financial agents. |\n| **TEE Attestation** | Hardware-level trust proof. For high-security agents. |\n\n### Step 4: Back to Draft\n\nAfter any edit, re-send the updated full draft as a **single message with buttons** (same as Step 2). Repeat until user taps **✅ Register**.\n\n### Step 5: Execute\n\nOnly after explicit ✅ Register confirmation.\n\n1. Write the registration JSON to a temp file\n2. Run the script:\n\n```bash\nsource \u002Fpath\u002Fto\u002F.env\nnode scripts\u002Fregister.mjs --json \u002Ftmp\u002Fregistration.json --chain 8453 --yes\n```\n\nThe script handles: `register()` → `setA2A()`\u002F`setMCP()` → `addSkill()`\u002F`addDomain()` → `setWallet()`\n\n### Step 5.5: Progress Updates\n\nSend progress updates during registration:\n\n```\n⏳ Step 1\u002F3: Minting agent NFT on Base...\n✅ Agent minted! ID: 8453:42\n\n⏳ Step 2\u002F3: Setting endpoints & metadata...\n✅ Endpoints configured\n\n⏳ Step 3\u002F3: Linking wallet via EIP-712...\n✅ Wallet linked!\n```\n\n### Step 6: Report Result\n\n```\n✅ Agent Registered on Base!\n\n  Agent ID:    8453:42\n  Wallet:      0x1348...e41\n  A2A:         a2a.teeclaw.xyz\u002Fa2a\n  TX:          0xabc...def\n\n  View: https:\u002F\u002F8004.org\u002Fagent\u002F8453:42\n```\n\n## Error Handling\n\n### Missing Required Fields\nIf **Name** or **Description** are empty after prefill, mark them ⚠️ and block registration. Show: \"Please fill required fields first.\"\n\n### No Wallet\n```\n⚠️ No wallet detected. You need one to register:\n  Option A: Paste your 0x... address\n  Option B: Add PRIVATE_KEY to your .env file\n```\n\n### Transaction Failures\nShow error clearly and offer retry:\n```\n❌ Registration failed: insufficient funds for gas\n[? Retry] [❌ Cancel]\n```\n\n### setWallet Failure\nPublic RPCs (e.g. mainnet.base.org) don't support `eth_signTypedData_v4`. If setWallet fails:\n```\n⚠️ Wallet linking failed (public RPC limitation).\nYou can link your wallet manually at https:\u002F\u002F8004.org\n```\nThis is non-blocking — the agent is registered, just wallet isn't linked on-chain yet.\n\n### Duplicate Registration Prevention\nThe script checks if the wallet already owns agent(s) on the target chain **before** submitting. If detected:\n```\n⚠️ Warning: This wallet already owns 1 agent(s) on Base.\n   Registering again will create a duplicate.\n   Use update.mjs to modify an existing agent instead.\n```\nIn chat flow, warn the user and suggest updating instead of re-registering. The check is non-blocking if `--yes` is passed.\n\n### Already Registered\nIf the agent already has an agentId, offer to **update** instead of register.\n\n## Technical Notes\n\n### Registry Overrides\nThe SDK only ships with Ethereum Mainnet registry addresses. For Base and other chains, the script passes `registryOverrides` with deterministic contract addresses:\n- Identity Registry: `0x8004A169FB4a3325136EB29fA0ceB6D2e539a432`\n- Reputation Registry: `0x8004BAa17C55a88189AE136b182e5fdA19dE9b63`\n\n### Transaction Handling\nThe SDK returns `TransactionHandle` objects. Use `.waitMined()` (not `.wait()`) to await confirmation.\n\n## All Fields Reference\n\n### Basic Info\n| Field | Required | Default | Auto-source |\n|-------|----------|---------|-------------|\n| **Agent Name** | ✅ | — | IDENTITY.md |\n| **Agent Address** | auto | — | `.env` private key or pasted |\n| **Description** | ✅ | — | IDENTITY.md \u002F SOUL.md |\n| **Image** | No | — | Profile image URL |\n| **Version** | No | `1.0.0` | — |\n| **Author** | No | — | USER.md |\n| **License** | No | `MIT` | — |\n\n### Endpoints\n| Field | Required | Default | Auto-source |\n|-------|----------|---------|-------------|\n| **A2A Endpoint** | No | — | IDENTITY.md |\n| **MCP Endpoint** | No | — | — |\n\n### Skills & Domains\n| Field | Required | Default |\n|-------|----------|---------|\n| **Selected Skills** | No | `[]` |\n| **Selected Domains** | No | `[]` |\n| **Custom Skills** | No | `[]` |\n| **Custom Domains** | No | `[]` |\n\n### Advanced Config\n| Field | Required | Default |\n|-------|----------|---------|\n| **Trust Models** | No | `[]` (suggest: reputation) |\n| **x402 Support** | No | `false` |\n| **Storage** | No | `http` (fully onchain) |\n| **Active** | No | `true` |\n| **Chain** | No | `8453` (Base) |\n\n## Supported Chains\n\n| Chain | ID | Default |\n|-------|-----|---------|\n| **Base** | 8453 | ✅ |\n| Ethereum | 1 | |\n| Polygon | 137 | |\n| BNB Chain | 56 | |\n| Arbitrum | 42161 | |\n| Celo | 42220 | |\n| Gnosis | 100 | |\n| Scroll | 534352 | |\n\nAll chains use the same deterministic contract addresses.\n\n## JSON Template (8004.org format)\n\n```json\n{\n  \"basicInfo\": {\n    \"agentName\": \"\",\n    \"agentAddress\": \"\",\n    \"description\": \"\",\n    \"image\": \"\",\n    \"version\": \"1.0.0\",\n    \"author\": \"\",\n    \"license\": \"MIT\"\n  },\n  \"endpoints\": {\n    \"mcpEndpoint\": \"\",\n    \"a2aEndpoint\": \"\"\n  },\n  \"skillsDomains\": {\n    \"selectedSkills\": [],\n    \"selectedDomains\": [],\n    \"customSkills\": [],\n    \"customDomains\": []\n  },\n  \"advancedConfig\": {\n    \"supportedTrusts\": [],\n    \"x402support\": false,\n    \"storageMethod\": \"http\",\n    \"active\": true\n  },\n  \"version\": \"1.0.0\"\n}\n```\n\n## Environment Variables\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `PRIVATE_KEY` \u002F `AGENT_PRIVATE_KEY` \u002F `MAIN_WALLET_PRIVATE_KEY` | Yes | Wallet private key |\n| `RPC_URL` | No | Custom RPC (auto-detected per chain) |\n| `CHAIN_ID` | No | Default chain (8453) |\n\n## Other Operations\n\n```bash\n# Search agents\nnode scripts\u002Fsearch.mjs --name \"AgentName\" --chain 8453\n\n# Update agent\nnode scripts\u002Fupdate.mjs --agent-id \"8453:42\" --name \"NewName\" --yes\n\n# Give feedback\nnode scripts\u002Ffeedback.mjs --agent-id \"8453:42\" --value 5 --tag1 \"reliable\" --yes\n```\n\n## Setup\n\n```bash\nbash scripts\u002Fsetup.sh\n```\n","# Basecred ERC-8004 Registration\n\nRegister AI agents on the [ERC-8004](https:\u002F\u002F8004.org) on-chain registry through a guided chat experience.\n\n## Registration Flow\n\n### Step 1: Auto-Prefill\n\nWhen the user triggers registration, **auto-fill every field you can** from:\n- Agent identity files (IDENTITY.md, SOUL.md, USER.md)\n- Environment (`.env` — wallet address derived from private key)\n- Previous context (A2A endpoint, description, image, etc.)\n- Sensible defaults (version: 1.0.0, license: MIT, chain: Base, storage: onchain)\n\n**Do NOT ask questions one by one.** Prefill first, ask later.\n\n### Step 1.5: Explain Config Defaults\n\nBefore showing the draft, briefly explain the config so users understand what's pre-selected and what alternatives exist:\n\n```\n⚙️ Config defaults (you can change these later):\n\nChain:    Base (8453) — where your agent lives on-chain\n          Others: Ethereum, Polygon, BNB, Arbitrum, Celo, Gnosis, Scroll\n\nStorage:  Fully onchain — agent data stored directly on-chain\n          Alternative: IPFS — data pinned to IPFS, hash stored on-chain\n\nTrust:    Reputation — other agents\u002Fusers rate your agent on-chain\n          Others: Crypto-Economic (staking\u002Fslashing guarantees)\n                  TEE Attestation (hardware-level trust proof)\n\nx402:     Off — no payment protocol\n          On: agent can charge for services via x402 payment protocol\n\nActive:   On — agent is discoverable and accepting requests\n          Off: registered but hidden from discovery\n\nWallet:   Your agent's on-chain identity address\n          Two ways to set it:\n\n          Option A: Paste your wallet address\n          → Just paste your 0x... address\n          → Agent will be linked to this address on-chain\n\n          Option B: Add private key to .env (for signing)\n          → Set PRIVATE_KEY=0x... in your .env file\n          → Wallet auto-detected + can sign transactions\n          → Enables setWallet() via EIP-712 after registration\n\n          ? Option A is easier. Option B is needed if you want\n             the agent to sign transactions on your behalf.\n```\n\nShow this once at the start, not repeated on every draft.\n\n### Step 2: Show Full Draft with Buttons (Single Message)\n\nSend the **entire draft + buttons as one message** using the `message` tool. This keeps buttons directly below the draft.\n\n**Important:** Use `message action=send` with both `message` (the draft text) and `buttons` (inline buttons). Do NOT split into reply + separate button message. After sending, reply with `NO_REPLY` to avoid duplicate.\n\nUse ✅ (filled) and ⚠️ (missing\u002Fneeds attention):\n\n```\n? Agent Registration Draft\n\n── Basic Info ──\n✅ Name:        Mr. Tee\n✅ Description: AI agent with a CRT monitor...\n✅ Image:       pbs.twimg.com\u002F...\n✅ Version:     1.0.0\n✅ Author:      0xdas\n✅ License:     MIT\n\n── Endpoints ──\n✅ A2A:         a2a.teeclaw.xyz\u002Fa2a\n⚠️ MCP:         (none)\n\n── Skills & Domains ──\n✅ Skills (5):  natural_language_processing\u002Fnatural_language_processing, \n                natural_language_processing\u002Fnatural_language_generation\u002Fsummarization,\n                natural_language_processing\u002Finformation_retrieval_synthesis\u002Fquestion_answering,\n                analytical_skills\u002Fcoding_skills\u002Fcoding_skills,\n                images_computer_vision\u002Fimages_computer_vision\n✅ Domains (5): technology\u002Fblockchain\u002Fblockchain, technology\u002Fblockchain\u002Fdefi,\n                technology\u002Ftechnology, technology\u002Fsoftware_engineering\u002Fsoftware_engineering,\n                technology\u002Fsoftware_engineering\u002Fdevops\n✅ Custom:      agent_orchestration\u002Fagent_coordination, \n                social_media\u002Fcontent_management\n\n── Config ──\n✅ Chain:       Base (8453)\n✅ Storage:     Fully onchain\n✅ Active:      true\n✅ Trust:       reputation\n✅ x402:        false\n✅ Wallet:      0x1348...e41 (auto .env)\n\nTap to edit a section or register:\n```\n\nButtons (attached to same message):\n```\nRow 1: [✏️ Basic Info] [✏️ Endpoints]\nRow 2: [✏️ Skills & Domains] [✏️ Config]\nRow 3: [✅ Register] [❌ Cancel]\n```\n\n### Step 3: Section Editing (on button tap)\n\n**Instant feedback:** When any button is tapped, immediately acknowledge before doing anything else:\n\n| Button | Instant Feedback |\n|--------|-----------------|\n| ✏️ Basic Info | \"? Editing Basic Info...\" |\n| ✏️ Endpoints | \"? Editing Endpoints...\" |\n| ✏️ Skills & Domains | \"?️ Editing Skills & Domains...\" |\n| ✏️ Config | \"⚙️ Editing Config...\" |\n| ✅ Register | \"⏳ Starting registration on Base...\" |\n| ❌ Cancel | \"❌ Registration cancelled.\" |\n| ↩️ Back to Draft | \"? Back to draft...\" |\n\nThen show the edit form. Always include **↩️ Back to Draft** button.\n\n#### Edit Basic Info\n```\nCurrent values:\n• Name: Mr. Tee\n• Description: AI agent with a CRT...\n• Image: pbs.twimg.com\u002F...\n• Version: 1.0.0\n• Author: 0xdas\n• License: MIT\n\nType field name and new value, e.g. \"name: CoolBot\"\nOr type \"done\" to go back.\n```\nButtons: `[↩️ Back to Draft]`\n\n#### Edit Endpoints\n```\nCurrent:\n• A2A: https:\u002F\u002Fa2a.teeclaw.xyz\u002Fa2a\n• MCP: (none)\n\nPaste a URL to set, or \"clear mcp\" \u002F \"clear a2a\" to remove.\n```\nButtons: `[↩️ Back to Draft]`\n\n#### Edit Skills & Domains\nToggleable inline buttons (multi-select). Each button shows a **human-readable label** but stores the full **OASF taxonomy path** as the value.\n\n**Skills:** (OASF taxonomy paths)\n```\n[NLP ✅] → natural_language_processing\u002Fnatural_language_processing\n[Summarization ✅] → natural_language_processing\u002Fnatural_language_generation\u002Fsummarization\n[Q&A ✅] → natural_language_processing\u002Finformation_retrieval_synthesis\u002Fquestion_answering\n[Code Gen ✅] → analytical_skills\u002Fcoding_skills\u002Fcoding_skills\n[CV ✅] → images_computer_vision\u002Fimages_computer_vision\n[Data Analysis] → analytical_skills\u002Fdata_analysis\u002Fdata_analysis\n[Web Search] → natural_language_processing\u002Finformation_retrieval_synthesis\u002Fweb_search\n[Image Gen] → images_computer_vision\u002Fimage_generation\u002Fimage_generation\n[Translation] → natural_language_processing\u002Fnatural_language_generation\u002Ftranslation\n[Task Automation] → tool_interaction\u002Fworkflow_automation\n[+ Custom] [↩️ Back to Draft]\n```\n\n**Domains:** (OASF taxonomy paths)\n```\n[Blockchain ✅] → technology\u002Fblockchain\u002Fblockchain\n[DeFi ✅] → technology\u002Fblockchain\u002Fdefi\n[Technology ✅] → technology\u002Ftechnology\n[SE ✅] → technology\u002Fsoftware_engineering\u002Fsoftware_engineering\n[DevOps ✅] → technology\u002Fsoftware_engineering\u002Fdevops\n[Finance] → finance\u002Ffinance\n[Healthcare] → healthcare\u002Fhealthcare\n[Education] → education\u002Feducation\n[Entertainment] → entertainment\u002Fentertainment\n[Science] → science\u002Fscience\n[Creative Arts] → creative_arts\u002Fcreative_arts\n[Dev Tools] → technology\u002Fsoftware_engineering\u002Fdevelopment_tools\n[+ Custom] [↩️ Back to Draft]\n```\n\n**Display behavior:**\n- Buttons show **short labels** (e.g., \"NLP\", \"Blockchain\") for readability\n- Values stored are **full OASF paths** (e.g., `natural_language_processing\u002Fnatural_language_processing`)\n- Tapping toggles ✅ on\u002Foff\n- `+ Custom` prompts user to type a custom OASF path or label\n\n#### Edit Config\n**Trust models** (multi-select):\n```\n[Reputation ✅] [Crypto-Economic] [TEE Attestation]\n```\n\n**Other config:**\n```\n[Chain: Base ▼] [Storage: Onchain ▼] [x402: Off ▼]\n[↩️ Back to Draft]\n```\n\n| Trust Model | Description |\n|-------------|-------------|\n| **Reputation** | On-chain feedback & scoring. Default for most agents. |\n| **Crypto-Economic** | Staking\u002Fslashing guarantees. For financial agents. |\n| **TEE Attestation** | Hardware-level trust proof. For high-security agents. |\n\n### Step 4: Back to Draft\n\nAfter any edit, re-send the updated full draft as a **single message with buttons** (same as Step 2). Repeat until user taps **✅ Register**.\n\n### Step 5: Execute\n\nOnly after explicit ✅ Register confirmation.\n\n1. Write the registration JSON to a temp file\n2. Run the script:\n\n```bash\nsource \u002Fpath\u002Fto\u002F.env\nnode scripts\u002Fregister.mjs --json \u002Ftmp\u002Fregistration.json --chain 8453 --yes\n```\n\nThe script handles: `register()` → `setA2A()`\u002F`setMCP()` → `addSkill()`\u002F`addDomain()` → `setWallet()`\n\n### Step 5.5: Progress Updates\n\nSend progress updates during registration:\n\n```\n⏳ Step 1\u002F3: Minting agent NFT on Base...\n✅ Agent minted! ID: 8453:42\n\n⏳ Step 2\u002F3: Setting endpoints & metadata...\n✅ Endpoints configured\n\n⏳ Step 3\u002F3: Linking wallet via EIP-712...\n✅ Wallet linked!\n```\n\n### Step 6: Report Result\n\n```\n✅ Agent Registered on Base!\n\n  Agent ID:    8453:42\n  Wallet:      0x1348...e41\n  A2A:         a2a.teeclaw.xyz\u002Fa2a\n  TX:          0xabc...def\n\n  View: https:\u002F\u002F8004.org\u002Fagent\u002F8453:42\n```\n\n## Error Handling\n\n### Missing Required Fields\nIf **Name** or **Description** are empty after prefill, mark them ⚠️ and block registration. Show: \"Please fill required fields first.\"\n\n### No Wallet\n```\n⚠️ No wallet detected. You need one to register:\n  Option A: Paste your 0x... address\n  Option B: Add PRIVATE_KEY to your .env file\n```\n\n### Transaction Failures\nShow error clearly and offer retry:\n```\n❌ Registration failed: insufficient funds for gas\n[? Retry] [❌ Cancel]\n```\n\n### setWallet Failure\nPublic RPCs (e.g. mainnet.base.org) don't support `eth_signTypedData_v4`. If setWallet fails:\n```\n⚠️ Wallet linking failed (public RPC limitation).\nYou can link your wallet manually at https:\u002F\u002F8004.org\n```\nThis is non-blocking — the agent is registered, just wallet isn't linked on-chain yet.\n\n### Duplicate Registration Prevention\nThe script checks if the wallet already owns agent(s) on the target chain **before** submitting. If detected:\n```\n⚠️ Warning: This wallet already owns 1 agent(s) on Base.\n   Registering again will create a duplicate.\n   Use update.mjs to modify an existing agent instead.\n```\nIn chat flow, warn the user and suggest updating instead of re-registering. The check is non-blocking if `--yes` is passed.\n\n### Already Registered\nIf the agent already has an agentId, offer to **update** instead of register.\n\n## Technical Notes\n\n### Registry Overrides\nThe SDK only ships with Ethereum Mainnet registry addresses. For Base and other chains, the script passes `registryOverrides` with deterministic contract addresses:\n- Identity Registry: `0x8004A169FB4a3325136EB29fA0ceB6D2e539a432`\n- Reputation Registry: `0x8004BAa17C55a88189AE136b182e5fdA19dE9b63`\n\n### Transaction Handling\nThe SDK returns `TransactionHandle` objects. Use `.waitMined()` (not `.wait()`) to await confirmation.\n\n## All Fields Reference\n\n### Basic Info\n| Field | Required | Default | Auto-source |\n|-------|----------|---------|-------------|\n| **Agent Name** | ✅ | — | IDENTITY.md |\n| **Agent Address** | auto | — | `.env` private key or pasted |\n| **Description** | ✅ | — | IDENTITY.md \u002F SOUL.md |\n| **Image** | No | — | Profile image URL |\n| **Version** | No | `1.0.0` | — |\n| **Author** | No | — | USER.md |\n| **License** | No | `MIT` | — |\n\n### Endpoints\n| Field | Required | Default | Auto-source |\n|-------|----------|---------|-------------|\n| **A2A Endpoint** | No | — | IDENTITY.md |\n| **MCP Endpoint** | No | — | — |\n\n### Skills & Domains\n| Field | Required | Default |\n|-------|----------|---------|\n| **Selected Skills** | No | `[]` |\n| **Selected Domains** | No | `[]` |\n| **Custom Skills** | No | `[]` |\n| **Custom Domains** | No | `[]` |\n\n### Advanced Config\n| Field | Required | Default |\n|-------|----------|---------|\n| **Trust Models** | No | `[]` (suggest: reputation) |\n| **x402 Support** | No | `false` |\n| **Storage** | No | `http` (fully onchain) |\n| **Active** | No | `true` |\n| **Chain** | No | `8453` (Base) |\n\n## Supported Chains\n\n| Chain | ID | Default |\n|-------|-----|---------|\n| **Base** | 8453 | ✅ |\n| Ethereum | 1 | |\n| Polygon | 137 | |\n| BNB Chain | 56 | |\n| Arbitrum | 42161 | |\n| Celo | 42220 | |\n| Gnosis | 100 | |\n| Scroll | 534352 | |\n\nAll chains use the same deterministic contract addresses.\n\n## JSON Template (8004.org format)\n\n```json\n{\n  \"basicInfo\": {\n    \"agentName\": \"\",\n    \"agentAddress\": \"\",\n    \"description\": \"\",\n    \"image\": \"\",\n    \"version\": \"1.0.0\",\n    \"author\": \"\",\n    \"license\": \"MIT\"\n  },\n  \"endpoints\": {\n    \"mcpEndpoint\": \"\",\n    \"a2aEndpoint\": \"\"\n  },\n  \"skillsDomains\": {\n    \"selectedSkills\": [],\n    \"selectedDomains\": [],\n    \"customSkills\": [],\n    \"customDomains\": []\n  },\n  \"advancedConfig\": {\n    \"supportedTrusts\": [],\n    \"x402support\": false,\n    \"storageMethod\": \"http\",\n    \"active\": true\n  },\n  \"version\": \"1.0.0\"\n}\n```\n\n## Environment Variables\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `PRIVATE_KEY` \u002F `AGENT_PRIVATE_KEY` \u002F `MAIN_WALLET_PRIVATE_KEY` | Yes | Wallet private key |\n| `RPC_URL` | No | Custom RPC (auto-detected per chain) |\n| `CHAIN_ID` | No | Default chain (8453) |\n\n## Other Operations\n\n```bash\n# Search agents\nnode scripts\u002Fsearch.mjs --name \"AgentName\" --chain 8453\n\n# Update agent\nnode scripts\u002Fupdate.mjs --agent-id \"8453:42\" --name \"NewName\" --yes\n\n# Give feedback\nnode scripts\u002Ffeedback.mjs --agent-id \"8453:42\" --value 5 --tag1 \"reliable\" --yes\n```\n\n## Setup\n\n```bash\nbash scripts\u002Fsetup.sh\n```\n",{"name":5,"description":7},"main","3df1d0d67b30ff15236561f8c0f9f06d33f42dfd","skills\u002Fidentity\u002Fbasecred-8004",17,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia","https:\u002F\u002Feth2030.com","Hardcore infra. Building @alt-research and applied cryptography.","2026-11-15 02:28:10",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add jiayaoqijia\u002Fcryptoskill --skill basecred-8004-registration",{"tool":56,"command":57},"bunx","bunx skills add jiayaoqijia\u002Fcryptoskill --skill basecred-8004-registration",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jiayaoqijia\u002Fcryptoskill --skill basecred-8004-registration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fbasecred-8004\u002FSKILL.md",true,[64,70,74,78,82,86,90,96,100,104,108,112,116,120],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"_meta.json","REFERENCE","参考文档",145,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fbasecred-8004\u002F_meta.json",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"package-lock.json",37787,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fbasecred-8004\u002Fpackage-lock.json",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"package.json",691,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fbasecred-8004\u002Fpackage.json",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"README.md",6908,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fbasecred-8004\u002FREADME.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fchains.md",1295,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fbasecred-8004\u002Freferences\u002Fchains.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fsdk-reference.md",1430,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fbasecred-8004\u002Freferences\u002Fsdk-reference.md",{"path":91,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":94,"sourceHtmlUrl":95},"scripts\u002Ffeedback.mjs","SCRIPT","脚本",2682,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fbasecred-8004\u002Fscripts\u002Ffeedback.mjs",{"path":97,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":98,"sourceHtmlUrl":99},"scripts\u002Fregister.mjs",16830,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fbasecred-8004\u002Fscripts\u002Fregister.mjs",{"path":101,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":102,"sourceHtmlUrl":103},"scripts\u002Fsearch.mjs",1756,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fbasecred-8004\u002Fscripts\u002Fsearch.mjs",{"path":105,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":106,"sourceHtmlUrl":107},"scripts\u002Fsetup.sh",1006,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fbasecred-8004\u002Fscripts\u002Fsetup.sh",{"path":109,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":110,"sourceHtmlUrl":111},"scripts\u002Fupdate.mjs",3361,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fbasecred-8004\u002Fscripts\u002Fupdate.mjs",{"path":113,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":114,"sourceHtmlUrl":115},"skill-card.md",2412,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fbasecred-8004\u002Fskill-card.md",{"path":117,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":118,"sourceHtmlUrl":119},"SOURCE.md",282,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fbasecred-8004\u002FSOURCE.md",{"path":121,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":122,"sourceHtmlUrl":123},"TRUST.auto.yaml",2224,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fbasecred-8004\u002FTRUST.auto.yaml",[125,135,143,151,159,167],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":129,"licenseFileUrl":130,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":134},"01M7DTKCERMV0RNX3HZJP4CZ26","troves","Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say \"Troves\" explicitly.","MIT","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":129,"licenseFileUrl":139,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":134},"01M7DTK6CJSMGC8KCQHGNYFZBD","trade","Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say \"swap\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FSKILL.md",[],[],{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":129,"licenseFileUrl":147,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":134},"01M7DTJZ6A0X4PAW3Y8W4J9K64","staking","Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say \"stake\" explicitly.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FSKILL.md",[],[],{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":129,"licenseFileUrl":155,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":134},"01M7DTJSDZJKCDMW7GHRF4BRH5","send","Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say \"pay 10 STRK to 0x...\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FSKILL.md",[],[],{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":129,"licenseFileUrl":163,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":134},"01M7DTJG1E480D51ZQ7WKDQ26K","portfolio","View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks \"what do I have\", \"show me everything\", \"how much am I worth\", \"my positions\", \"my investments\", \"rebalance my portfolio\", \"I want 50% ETH\", \"optimize my holdings\", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say \"portfolio\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FSKILL.md",[],[],{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":129,"licenseFileUrl":171,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":134},"01M7DTJ7M8TE9R2N36HFBZDGVD","multi-swap","Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions \"two swaps\", \"three swaps\", \"swap X and Y at the same time\", or wants to convert multiple tokens in a single call.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FSKILL.md",[],[]]