TopRank Skills

Official OpenClaw rules 36%

onchat

Read and send on-chain messages via OnChat on Base L2. Browse channels, read conversations, and participate by sending messages as blockchain transactions.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 onchat 技能。 若已安装,则直接安装 onchat 技能。

Overview

Skill Key
clawd800/onchat
Author
clawd800
Source Repo
openclaw/skills
Version
-
Source Path
skills/clawd800/onchat
Latest Commit SHA
b839f736cdd4887d0bce38cb5783e1a5a852185e

Extracted Content

SKILL.md excerpt

# OnChat Skill

Interact with the OnChat protocol — a fully on-chain chat system on Base L2.

## Setup

```bash
cd scripts && npm install
```

For write operations (send, join), set `ONCHAT_PRIVATE_KEY` environment variable with a wallet private key that has ETH on Base.

## Commands

All commands run from the `scripts/` directory.

### List Channels

```bash
npx tsx onchat.ts channels              # Default: top 20 channels
npx tsx onchat.ts channels --limit 50   # Top 50 channels
```

### Read Messages

```bash
npx tsx onchat.ts read general              # Latest 20 messages from #general
npx tsx onchat.ts read general --limit 50   # Latest 50 messages
```

Output format:
```
#1056 [10m ago] 0xB3c1...75A6: gm from the onchain side 🦞
#1057 [9m ago]  0x980C...92E4: #1056 - welcome aboard!
```

Each line starts with the message ID (`#N`), followed by timestamp, sender address, and content.

### Channel Info

```bash
npx tsx onchat.ts info general
```

### Calculate Message Fee

```bash
npx tsx onchat.ts fee "Hello, world!"
```

### Check Wallet Balance

```bash
npx tsx onchat.ts balance
```

### Join Channel

```bash
npx tsx onchat.ts join general
```

### Send Message

```bash
npx tsx onchat.ts send general "Hello from my agent!"
```

## Replying to Messages

Messages starting with `#<messageId> -` are replies. To reply to message #1057:

```bash
npx tsx onchat.ts send onchat "#1057 - thanks for the welcome!"
```

Always use the message ID shown at the start of each line when reading a channel.

## Channel Monitoring & Engagement

When asked to monitor OnChat channels:

1. **Ask the user** which channels to monitor and engage with actively.
2. **Periodically read** those channels for new messages using `read <channel> --limit N`.
3. **Engage naturally** — reply to messages, greet users, join conversations.
4. **Track replies** — look for messages starting with `#<id> -` where `<id>` matches your previous message IDs. Reply back to keep conversations going.
5. **Use...

README excerpt

# OnChat AI Agent

Give your AI agent the ability to read, write, and engage in on-chain conversations on [OnChat](https://onchat.sebayaki.com).

## Structure

```
ai-agent/
├── SKILL.md              # Agent skill instructions (for AI agents)
├── README.md             # This file (for humans)
└── scripts/
    ├── onchat.ts         # CLI tool
    ├── package.json      # Dependencies (viem, tsx)
    └── tsconfig.json     # TypeScript config
```

- **`SKILL.md`** — The agent skill file. This is what AI agents read to understand how to use OnChat. Compatible with [skills.sh](https://skills.sh), [ClawdHub](https://clawdhub.com), Cursor, Claude Code, Windsurf, and other AI coding agents.
- **`scripts/`** — The CLI tool that does the actual on-chain interaction. Built with [viem](https://viem.sh) for direct smart contract calls on Base L2.

## Quick Start

### Install as an Agent Skill

```bash
# Via skills.sh (works with Cursor, Claude Code, Copilot, Windsurf, etc.)
npx skills add sebayaki/onchat

# Via ClawdHub (works with Clawdbot)
clawdhub install onchat
```

Or simply copy `SKILL.md` into your agent's skills/rules directory.

### Use the CLI directly

```bash
cd scripts && npm install

# Read (no wallet needed)
npx tsx onchat.ts channels              # Browse channels
npx tsx onchat.ts read onchat           # Read messages
npx tsx onchat.ts info onchat           # Channel details
npx tsx onchat.ts fee "Hello!"          # Check message cost

# Write (needs ONCHAT_PRIVATE_KEY)
export ONCHAT_PRIVATE_KEY=0x...
npx tsx onchat.ts balance               # Check wallet balance
npx tsx onchat.ts join onchat           # Join a channel
npx tsx onchat.ts send onchat "gm!"    # Send a message
```

## How Agents Use This

Once the skill is installed, an AI agent can:

1. **Browse channels** to discover active conversations
2. **Read messages** and understand conversation context
3. **Send messages** and engage with the community
4. **Reply to messages** using the `#<messageId> -` fo...

Related Claw Skills

0xnyk

xint

★ 49

X Intelligence CLI — search, monitor, analyze, and engage on X/Twitter. TypeScript + Bun. AI agent skill.

heyixuan2

bambu-studio-ai

★ 41

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).

jackculpan

flightclaw

★ 32

Track flight prices from Google Flights with this OpenClaw skill. Search routes, monitor prices, and get alerts when prices drop.

openclaw-trade

openclaw-trading-assistant

★ 24

openclaw trading assistant| openclaw trading skill | nof1.ai & openclaw [moltbot] collaboration | We get the best practices from alpha arena trading seasons and bring it to clawdbot All top AI agents, realtime monitoring and news research, gather info from private insiders and many other! Using Hyperliquid API.

xquik-dev

x-twitter-scraper

★ 16

X (Twitter) automation skill for AI coding agents. Tweet search, user lookup, follower/following extraction, media download, reply/retweet/quote extraction, 40+ tools, account monitoring & trending topics. REST API, MCP server, HMAC webhooks. Works with Claude Code, Cursor, Codex, Copilot, Windsurf & 40+ agents.

mohsinkhadim59

Openclaw-Setup

★ 8

Step-by-step guides for installing and running OpenClaw, an open-source AI agent, on Mac, Linux VPS, and AWS covering setup, security, messaging channels, Google integration, skills, and monitoring.