citrea-claw-skill
Important
This skill is already installed and ready to use. Do NOT build, create, or scaffold anything new. The code already exists at ~/.openclaw/skills/citrea-claw-skill/index.js. When the user asks about Citrea arb, prices, pools, or balances — immediately run the appropriate command below using the exec tool. Never say you need to build this skill. Never say you don't have access to live data. Just run the command and return the output.
First time setup
If ~/.openclaw/skills/citrea-claw-skill/index.js does not exist, run these steps first:
CODEBLOCK0
Then ask the user the following questions one at a time and write their answers into .env:
- 1. Telegram Bot Token — "Do you have a Telegram bot token? If not, open Telegram, search @BotFather, send /newbot and follow the prompts. Paste your token here, or say skip to set up later:"
→ write to INLINECODE3
- 2. Telegram Chat ID — "What is your Telegram chat ID? Open Telegram, search @userinfobot, send /start and it will reply instantly with your ID:"
→ write to INLINECODE4
- 3. Arb alert threshold — "What minimum profit percentage should trigger a Telegram alert? Default is 0.50% (= 50 basis points). Press enter to use default or type a number:"
→ write to
ARB_ALERT_THRESHOLD_BPS (multiply % by 100, e.g. 0.5% = 50)
- 4. Arb scan interval — "How often should arb be scanned in seconds? Default is 60. Press enter to use default or type a number:"
→ write to INLINECODE6
- 5. Arb debounce — "How long in minutes before re-alerting on the same arb pair? Default is 30. Press enter to use default or type a number:"
→ write to INLINECODE7
After all values are written, confirm:
"✅ citrea-claw-skill is ready. Try asking: any arb on citrea right now?"
Updating configuration
If the user asks to change any setting — for example "change my arb threshold", "update my Telegram token", "change scan interval" — update the relevant line in ~/.openclaw/skills/citrea-claw-skill/.env and confirm the change.
When to use this skill
Use this skill when the user asks about anything on the Citrea L2 network, including:
- - Arbitrage opportunities across JuiceSwap and Satsuma
- Token prices on Citrea
- Pool liquidity or TVL
- New pools being created
- Wallet balances on Citrea
- Recent swap or transaction activity
How to run commands
All commands are run using the exec tool from the skill directory:
CODEBLOCK1
Always run the command and show the full output to the user. Do not summarise, truncate, or paraphrase. Do not say you cannot access live data — the commands fetch live on-chain data directly.
Triggers and commands
Arbitrage
Triggers: "any arb?", "check arb", "arb opportunities", "is there arb on citrea", "scan for arbitrage", "check for arbitrage opportunities", "any profitable trades on citrea"
CODEBLOCK2
Triggers: "check arb for [tokenA] and [tokenB]", "is there arb between [tokenA] and [tokenB]"
CODEBLOCK3
Example: user says "check arb for wcBTC and USDC" → run:
CODEBLOCK4
Prices
Triggers: "what's the price of [token]", "how much is [token]", "[token] price", "price of [token] on citrea"
CODEBLOCK5
Example: user says "what's the BTC price on citrea" → run:
CODEBLOCK6
Triggers: "pool price for [tokenA] and [tokenB]", "compare DEX prices for [pair]", "what's the price difference for [pair]"
CODEBLOCK7
Pools
Triggers: "any new pools?", "new pools on citrea", "what pools were created today", "recent pools", "new pools in the last [N] hours"
CODEBLOCK8
Triggers: "latest pool", "most recent pool", "last pool created on citrea"
CODEBLOCK9
Triggers: "how much liquidity in [tokenA] [tokenB]", "TVL for [pair]", "liquidity for [token]", "how deep is the [pair] pool"
CODEBLOCK10
Wallet
Triggers: "check balance for [address]", "what's in wallet [address]", "show balances for [address]", "how much does [address] have"
CODEBLOCK11
Transactions
Triggers: "recent txns for [address]", "transaction history for [address]", "what swaps did [address] make", "show activity for [address]"
CODEBLOCK12
Supported tokens
| Symbol | Description |
|---|
| wcBTC | Wrapped Citrea Bitcoin |
| ctUSD |
Citrea USD stablecoin |
| USDC.e | Bridged USDC (LayerZero) |
| USDT.e | Bridged USDT (LayerZero) |
| WBTC.e | Bridged Wrapped Bitcoin (LayerZero) |
| JUSD | BTC-backed stablecoin (JuiceDollar) |
| GUSD | Generic USD (generic.money) |
Supported DEXes
| DEX | Type | Fee Tiers |
|---|
| JuiceSwap | Uniswap V3 | 0.05%, 0.30%, 1.00% |
| Satsuma |
Algebra | Dynamic per pool |
Notes
- - All data sourced directly from Citrea mainnet — no third-party APIs
- Prices from RedStone push oracles deployed on Citrea
- Arb detection is indicative only — always verify on-chain before executing
- JuiceSwap JUSD pairs use svJUSD internally — handled transparently
- RPC: INLINECODE9
citrea-claw-skill
重要提示
此技能已安装并可直接使用。请勿构建、创建或搭建任何新内容。代码已存在于 ~/.openclaw/skills/citrea-claw-skill/index.js。当用户询问关于 Citrea 套利、价格、流动性池或余额时,请立即使用 exec 工具运行下方相应命令。切勿说需要构建此技能,也切勿说无法访问实时数据。只需运行命令并返回输出结果。
首次设置
如果 ~/.openclaw/skills/citrea-claw-skill/index.js 不存在,请先运行以下步骤:
bash
git clone https://github.com/jason-chew/citrea-claw-skill.git ~/.openclaw/skills/citrea-claw-skill
cd ~/.openclaw/skills/citrea-claw-skill
npm install
cp .env.example .env
然后逐一询问用户以下问题,并将答案写入 .env 文件:
- 1. Telegram 机器人令牌 — 你有 Telegram 机器人令牌吗?如果没有,请打开 Telegram,搜索 @BotFather,发送 /newbot 并按提示操作。在此处粘贴你的令牌,或输入 skip 稍后设置:
→ 写入 TELEGRAM
BOTTOKEN
- 2. Telegram 聊天 ID — 你的 Telegram 聊天 ID 是什么?打开 Telegram,搜索 @userinfobot,发送 /start,它会立即回复你的 ID:
→ 写入 TELEGRAM
CHATID
- 3. 套利提醒阈值 — 触发 Telegram 提醒的最低利润百分比是多少?默认值为 0.50%(= 50 个基点)。按回车使用默认值,或输入一个数字:
→ 写入 ARB
ALERTTHRESHOLD_BPS(将百分比乘以 100,例如 0.5% = 50)
- 4. 套利扫描间隔 — 套利扫描间隔是多少秒?默认值为 60。按回车使用默认值,或输入一个数字:
→ 写入 ARB
MONITORINTERVAL_SEC
- 5. 套利去抖时间 — 同一套利对再次触发提醒的间隔是多少分钟?默认值为 30。按回车使用默认值,或输入一个数字:
→ 写入 ARB
DEBOUNCEMIN
所有值写入后,确认:
✅ citrea-claw-skill 已就绪。试试提问:现在 Citrea 上有套利机会吗?
更新配置
如果用户要求更改任何设置——例如更改我的套利阈值、更新我的 Telegram 令牌、更改扫描间隔——请更新 ~/.openclaw/skills/citrea-claw-skill/.env 中的相关行并确认更改。
何时使用此技能
当用户询问关于 Citrea L2 网络的任何内容时使用此技能,包括:
- - JuiceSwap 和 Satsuma 上的套利机会
- Citrea 上的代币价格
- 流动性池的流动性或总锁仓价值(TVL)
- 新创建的流动性池
- Citrea 上的钱包余额
- 最近的兑换或交易活动
如何运行命令
所有命令均使用 exec 工具从技能目录运行:
bash
cd ~/.openclaw/skills/citrea-claw-skill && node index.js <命令> [参数]
始终运行命令并向用户显示完整输出。不要总结、截断或转述。不要说你无法访问实时数据——这些命令直接获取链上实时数据。
触发词与命令
套利
触发词: 有套利吗?、检查套利、套利机会、Citrea 上有套利吗、扫描套利、检查套利机会、Citrea 上有盈利交易吗
bash
cd ~/.openclaw/skills/citrea-claw-skill && node index.js arb:scan
触发词: 检查 [代币A] 和 [代币B] 的套利、[代币A] 和 [代币B] 之间有套利吗
bash
cd ~/.openclaw/skills/citrea-claw-skill && node index.js arb:check <代币A> <代币B>
示例:用户说检查 wcBTC 和 USDC 的套利 → 运行:
bash
cd ~/.openclaw/skills/citrea-claw-skill && node index.js arb:check wcBTC USDC.e
价格
触发词: [代币] 的价格是多少、[代币] 值多少钱、[代币] 价格、Citrea 上 [代币] 的价格
bash
cd ~/.openclaw/skills/citrea-claw-skill && node index.js price <代币>
示例:用户说Citrea 上的 BTC 价格是多少 → 运行:
bash
cd ~/.openclaw/skills/citrea-claw-skill && node index.js price wcBTC
触发词: [代币A] 和 [代币B] 的流动性池价格、比较 [交易对] 的 DEX 价格、[交易对] 的价格差异是多少
bash
cd ~/.openclaw/skills/citrea-claw-skill && node index.js pool:price <代币A> <代币B>
流动性池
触发词: 有新流动性池吗?、Citrea 上的新流动性池、今天创建了哪些流动性池、最近的流动性池、过去 [N] 小时内的新流动性池
bash
cd ~/.openclaw/skills/citrea-claw-skill && node index.js pools:recent 24
触发词: 最新流动性池、最近创建的流动性池、Citrea 上最后一个创建的流动性池
bash
cd ~/.openclaw/skills/citrea-claw-skill && node index.js pools:latest
触发词: [代币A] [代币B] 有多少流动性、[交易对] 的 TVL、[代币] 的流动性、[交易对] 的深度如何
bash
cd ~/.openclaw/skills/citrea-claw-skill && node index.js pool:liquidity <代币A> <代币B>
钱包
触发词: 检查 [地址] 的余额、[地址] 钱包里有什么、显示 [地址] 的余额、[地址] 有多少
bash
cd ~/.openclaw/skills/citrea-claw-skill && node index.js balance <地址>
交易
触发词: [地址] 最近的交易、[地址] 的交易历史、[地址] 进行了哪些兑换、显示 [地址] 的活动
bash
cd ~/.openclaw/skills/citrea-claw-skill && node index.js txns <地址> 24
支持的代币
| 符号 | 描述 |
|---|
| wcBTC | 封装 Citrea 比特币 |
| ctUSD |
Citrea USD 稳定币 |
| USDC.e | 桥接 USDC(LayerZero) |
| USDT.e | 桥接 USDT(LayerZero) |
| WBTC.e | 桥接封装比特币(LayerZero) |
| JUSD | 比特币支持的稳定币(JuiceDollar) |
| GUSD | 通用 USD(generic.money) |
支持的 DEX
| DEX | 类型 | 费率层级 |
|---|
| JuiceSwap | Uniswap V3 | 0.05%、0.30%、1.00% |
| Satsuma |
Algebra | 每个流动性池动态费率 |
注意事项
- - 所有数据直接来自 Citrea 主网——无第三方 API
- 价格来自部署在 Citrea 上的 RedStone 推送预言机
- 套利检测仅供参考——执行前请务必在链上验证
- JuiceSwap 的 JUSD 交易对内部使用 svJUSD——已透明处理
- RPC:https://rpc.mainnet.citrea.xyz