Skip to content

hodldance/agent-skill

Repository files navigation

🪩 HODL.DANCE Agent Skill

Official CLI skill for AI agents and trading bots to interact with HODL.DANCE — the memecoin bonding curve launchpad on BSC.

Version License: MIT Node


The Problem

Most AI agents and trading bots want to trade memecoins on emerging launchpads, but:

  • Bonding curve mechanics are complex to simulate correctly
  • On-chain trading requires careful handling of approvals, gas, and errors
  • Public APIs give data, but executing trades reliably is painful
  • Most tools are built for humans, not autonomous agents

The Solution

@hodl-dance/skill gives agents a clean, reliable, JSON-first interface to HODL.DANCE.

  • Read market data, token details, and trade history
  • Simulate buys and sells instantly (no gas, no transactions)
  • Execute real buys and sells with automatic ERC20 approvals
  • Launch new tokens directly from code or agents

Built for agents. Works great for humans too.


✨ Key Features

  • Pure JSON output — Every command returns structured, machine-readable JSON
  • Gas-free simulationsquote command uses on-chain state to predict exact output
  • Automatic approvalssell-token handles ERC20 approve when needed
  • Zero dependencies for reads — Public commands work without any wallet or keys
  • Agent-native — Designed for 8004 agents, ClawHub, and autonomous systems
  • Windows + Linux friendly — Stable on both WSL and native Windows

🤖 AI Agents & 8004 Integration

This skill is the official on-chain execution layer for HODL.DANCE agents.

It is referenced in the platform's agent manifest:

Example Agent ID on 8004

Supported Workflows for Agents

# 1. Discovery
hodl-skill get-tokens --sort=volume --limit=10

# 2. Analysis
hodl-skill get-token <tokenAddress>
hodl-skill get-trades <tokenAddress> --type=buy --limit=20

# 3. Simulation (free)
hodl-skill quote <bondingCurveAddress> buy 0.1

# 4. Execution
hodl-skill buy-token <bondingCurveAddress> 0.1
hodl-skill sell-token <bondingCurveAddress> <amount>

More integration examples and agent card details: docs.hodl.dance


🚀 Installation

npm install -g @hodl-dance/skill

Or run without installing:

npx @hodl-dance/skill <command>

Requirements

  • Node.js ≥ 18
  • For write commands (buy, sell, create): HODL_PRIVATE_KEY environment variable

📖 Usage

Read Commands (no wallet required)

# List tokens
hodl-skill get-tokens --sort=volume --limit=10 --verified=true

# Token details + recent trades
hodl-skill get-token 0x...

# Trade history
hodl-skill get-trades 0x... --type=buy --limit=20

Simulation (recommended before trading)

# How many tokens will I receive for 0.1 BNB?
hodl-skill quote 0x... buy 0.1

# How much BNB will I get for selling 500,000 tokens?
hodl-skill quote 0x... sell 500000

Write Commands (requires HODL_PRIVATE_KEY)

export HODL_PRIVATE_KEY=0xYourPrivateKey

# Buy tokens
hodl-skill buy-token 0x... 0.1

# Sell tokens (approve handled automatically)
hodl-skill sell-token 0x... 1000000

# Launch a new token
hodl-skill create-token --name="Moon Cat" --symbol=MCAT --logo=./logo.png --initial-buy=0.1

Full command reference: SKILL.md


🛠 Development

git clone https://github.com/hodldance/agent-skill.git
cd agent-skill
npm install

# Run directly
node src/index.js --help

# Run tests
npm test

🏗 Project Structure

src/
├── index.js                 # CLI entrypoint & command dispatcher
├── commands/                # All 7 commands (get-*, quote, buy, sell, create)
├── lib/
│   ├── api.js               # HTTP client for hodl.dance API
│   ├── chain.js             # Ethers.js + bonding curve math simulations
│   ├── output.js            # Safe JSON output (Windows + Linux compatible)
│   └── validators.js        # Address validation helpers
└── abi/
    └── BondingCurve.json

Ecosystem & Integrations


Contributing

Contributions are welcome, especially around:

  • Better error messages and agent-friendly output
  • Additional simulation accuracy
  • Test coverage
  • Windows/PowerShell UX improvements

License

MIT License


Built with ❤️ for the memecoin community and autonomous agents.

About

AI Agent Skill for trading and launching memecoins on HODL.DANCE — a bonding curve launchpad on BSC. Create tokens with logo upload, buy, sell, get live quotes, and manage approvals automatically. Use from any AI agent, trading bot, or custom script.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors