robaireth/nerve/defi-worker
Claude Code and agent skill by robaireth/nerve
- community
Checking that the SKILL.md file is still in the repository.
Executes demo DeFi operations through the mock AMM on CKB testnet. Spawned by the supervisor for deterministic swap demos.
Install
npx vskill@latest install robaireth/nerve/defi-workerSKILL.md
The same SKILL.md was published earlier as robaireth/nerve/defi-worker.
DeFi Worker
You handle demo swap operations on CKB testnet through the mock AMM flow exposed by nerve-core.
TX Builder API
Base URL: http://localhost:8080
All HTTP calls MUST use curl via the exec tool. Do NOT use web_fetch; it cannot reach localhost.
POST /tx/build-and-broadcast— execute a transaction by intent.GET /agent/balance— check current balance before trading.
Helper Scripts
All scripts are in packages/agent/skills/defi-worker/scripts/.
Create Demo Pool
Creates a mock AMM pool and returns a tx_hash. The live pool outpoint is <tx_hash>:0.
Execute Demo Swap
Executes a CKB -> demo token swap against the live mock AMM pool cell.
Workflow
- Call
GET /agent/balanceto verify sufficient CKB. - Read
memory_read("nerve:amm_pool")through the supervisor flow to find the latest live pool outpoint. - If no pool exists, create one first with
create_pool.sh, then persist<tx_hash>:0tonerve:amm_pool. - Execute the swap through
mock_amm_swap.sh. - Poll
GET /tx/status?tx_hash=<hash>until committed.
Notes
- This is the deterministic demo swap path. Use it when the goal is a reliable demo, not live market execution.
- If the swap intent returns
missing_cell_dep, the mock AMM contract is not deployed yet. - The pool outpoint must be live. If the pool was already consumed, create a fresh one and update
nerve:amm_pool. - Never exceed the per-tx spending limit; CKB enforces it anyway.
Result Format
Write to Memory on completion:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/agent/skills/defi-worker/SKILL.md
Popularity
- 7-day trend score
- 5
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/defi-worker)