robaireth/nerve/chain-scanner
Claude Code and agent skill by robaireth/nerve
- community
Checking that the SKILL.md file is still in the repository.
Reads on-chain state: job cells, agent balances, reputation scores, tx status. Spawned by the supervisor or heartbeat for chain read operations.
Install
npx vskill@latest install robaireth/nerve/chain-scannerSKILL.md
The same SKILL.md was published earlier as robaireth/nerve/chain-scanner.
Chain Scanner
You read on-chain state via the NERVE MCP HTTP bridge and TX Builder.
All HTTP calls MUST use `curl` via the `exec` tool. Do NOT use web_fetch. It cannot reach localhost.
APIs
MCP HTTP Bridge: http://localhost:8081
GET /chain/height: current block height.GET /chain/balance/:lock_args: balance for an address's lock_args.GET /jobs?status=Open: list open job cells (status can be Open, Reserved, Claimed, Completed, Expired).GET /jobs?capability_hash=0x...: filter by capability.GET /jobs/:tx_hash/:index: get a specific job cell.GET /agents/:lock_args: agent identity cell.GET /agents/:lock_args/reputation: reputation cell.GET /agents/:lock_args/spending: spending status (daily spent, remaining budget, reset epoch).GET /agents/:lock_args/trust: computed trust score based on reputation, badges, and spending history.
TX Builder: http://localhost:8080
GET /agent/balance: agent wallet balance.GET /tx/status?tx_hash=0x...: transaction confirmation status.
Workflow
For each request, call the relevant endpoint(s), parse the JSON, and return a structured result.
Actions
get_full_status
Aggregates a comprehensive view of an agent's on-chain state. Call all of the following in sequence:
- Balance:
GET http://localhost:8080/agent/balance→ extractbalance_ckbandlock_args. - Identity:
GET http://localhost:8081/agents/<lock_args>→ extractspending_limit_ckb,daily_limit_ckb,daily_spent,last_reset_epoch. - Reputation:
GET http://localhost:8081/agents/<lock_args>/reputation→ extractjobs_completed,jobs_abandoned,pending_type. - Badges:
GET http://localhost:8081/agents/<lock_args>/badges→ extractcount. - Capabilities:
GET http://localhost:8081/agents/<lock_args>/capabilities→ extractcountandcapability_hashlist. - Active jobs:
GET http://localhost:8081/jobs?status=ReservedandGET http://localhost:8081/jobs?status=Claimed→ count jobs whereworker_lock_argsmatches this agent. - Delegation: From the identity response (step 2), extract
parent_lock_argsandrevenue_share_bps. AlsoGET http://localhost:8080/agent/sub-agentsto count managed sub-agents. - Fiber node info:
fiber-pay node info --json→ extractnode_id,peers_count.
If fiber-pay is unavailable, fall back to GET http://localhost:8081/fiber/node.
- Fiber channels:
fiber-pay channel list --json→ extractcountand totallocal_balance.
If fiber-pay is unavailable, fall back to GET http://localhost:8081/fiber/channels.
- Fiber wallet balance:
fiber-pay wallet balance --json→ extractbalance_ckb.
This is the Fiber L2 balance, separate from CKB L1.
Format as a rich summary:
If any endpoint returns an error (404, 502, etc.), show "N/A" for that section and continue.
list_sub_agents
Fetch the agent's sub-agents:
Return the list of sub-agent lock_args, revenue share, and identity outpoints. Enrich with on-chain reputation data from:
delegation_status
Aggregates delegation info for the agent:
- Fetch identity:
GET http://localhost:8081/agents/<lock_args>to check for parent reference. - Fetch sub-agents:
GET http://localhost:8080/agent/sub-agentsto count and list. - For each sub-agent, fetch reputation to compute total sub-agent earnings.
get_capabilities
Fetch the agent's capability NFTs:
Return the list of capability_hash values and their outpoints.
get_spending_status
Fetch the agent's current spending status:
Returns daily_spent, daily_limit_ckb, remaining_budget_ckb, last_reset_epoch, and current_epoch. Useful for checking whether the agent can afford a job before attempting to reserve it.
get_trust_score
Fetch the agent's computed trust score:
Returns a composite trust score derived from reputation history, badge count, spending patterns, and on-chain activity. The score is a value between 0 and 100.
Result Format
Always return JSON:
For scan_jobs, include a jobs array summarizing each cell:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/agent/skills/chain-scanner/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/robaireth/nerve/chain-scanner)