← 返回 Skills 市场
jason-chew

Citrea Claw Skill

作者 Jason Chew · GitHub ↗ · v0.1.4 · MIT-0
cross-platform ⚠ suspicious
249
总下载
0
收藏
1
当前安装
4
版本数
在 OpenClaw 中安装
/install citrea-claw-skill
功能描述
Run Citrea L2 monitoring commands — check arbitrage opportunities, token prices, pool liquidity, wallet balances, and new pools across JuiceSwap and Satsuma...
使用说明 (SKILL.md)

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:

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

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 TELEGRAM_BOT_TOKEN

  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 TELEGRAM_CHAT_ID

  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 ARB_MONITOR_INTERVAL_SEC

  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 ARB_DEBOUNCE_MIN

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:

cd ~/.openclaw/skills/citrea-claw-skill && node index.js \x3Ccommand> [args]

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"

cd ~/.openclaw/skills/citrea-claw-skill && node index.js arb:scan

Triggers: "check arb for [tokenA] and [tokenB]", "is there arb between [tokenA] and [tokenB]"

cd ~/.openclaw/skills/citrea-claw-skill && node index.js arb:check \x3CtokenA> \x3CtokenB>

Example: user says "check arb for wcBTC and USDC" → run:

cd ~/.openclaw/skills/citrea-claw-skill && node index.js arb:check wcBTC USDC.e

Prices

Triggers: "what's the price of [token]", "how much is [token]", "[token] price", "price of [token] on citrea"

cd ~/.openclaw/skills/citrea-claw-skill && node index.js price \x3Ctoken>

Example: user says "what's the BTC price on citrea" → run:

cd ~/.openclaw/skills/citrea-claw-skill && node index.js price wcBTC

Triggers: "pool price for [tokenA] and [tokenB]", "compare DEX prices for [pair]", "what's the price difference for [pair]"

cd ~/.openclaw/skills/citrea-claw-skill && node index.js pool:price \x3CtokenA> \x3CtokenB>

Pools

Triggers: "any new pools?", "new pools on citrea", "what pools were created today", "recent pools", "new pools in the last [N] hours"

cd ~/.openclaw/skills/citrea-claw-skill && node index.js pools:recent 24

Triggers: "latest pool", "most recent pool", "last pool created on citrea"

cd ~/.openclaw/skills/citrea-claw-skill && node index.js pools:latest

Triggers: "how much liquidity in [tokenA] [tokenB]", "TVL for [pair]", "liquidity for [token]", "how deep is the [pair] pool"

cd ~/.openclaw/skills/citrea-claw-skill && node index.js pool:liquidity \x3CtokenA> \x3CtokenB>

Wallet

Triggers: "check balance for [address]", "what's in wallet [address]", "show balances for [address]", "how much does [address] have"

cd ~/.openclaw/skills/citrea-claw-skill && node index.js balance \x3Caddress>

Transactions

Triggers: "recent txns for [address]", "transaction history for [address]", "what swaps did [address] make", "show activity for [address]"

cd ~/.openclaw/skills/citrea-claw-skill && node index.js txns \x3Caddress> 24

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: https://rpc.mainnet.citrea.xyz
安全使用建议
This skill appears to be what it claims: a Node CLI that reads Citrea on‑chain data and can post alerts to Telegram. Before installing or enabling it: - Only provide a Telegram bot token/chat ID you control (consider creating a dedicated bot/account for alerts). Treat TELEGRAM_BOT_TOKEN as a secret; storing it in .env in the skill directory is normal but means the agent/process can read it. - Review the included telegram helper (src/lib/telegram.js) and any remaining truncated files yourself if possible — I could not review every file in the package (some files were truncated in the listing). Ensure there are no unexpected outbound endpoints beyond Citrea RPC, the Telegram Bot API, and known DEX/explorer URLs. - If you will run monitors 24/7, run them in an isolated environment (dedicated VM/container) and with a bot that has minimal privileges. - If you prefer not to provide secrets to the skill, you can use the CLI commands locally (without Telegram configured) — the code supports running without Telegram. If you want, provide the omitted file contents (especially src/lib/telegram.js and any remaining truncated files) and I will re-check for hidden endpoints or suspicious behavior to raise confidence.
功能分析
Type: OpenClaw Skill Name: citrea-claw-skill Version: 0.1.4 The citrea-claw-skill is a legitimate DeFi monitoring tool for the Citrea L2 network. It provides functionality to check token prices, pool liquidity, wallet balances, and arbitrage opportunities across JuiceSwap and Satsuma DEXes using the viem library for on-chain data. The code is well-structured, lacks obfuscation, and performs only read-only blockchain operations. While it handles sensitive data like Telegram Bot tokens, it does so transparently for the stated purpose of sending alerts, and there is no evidence of data exfiltration or malicious execution.
能力评估
Purpose & Capability
Name/description (Citrea L2 monitoring) align with required binaries (node), dependencies (viem/dotenv) and requested env vars. TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID are appropriate for sending alerts; the ARB_* variables are reasonable configuration knobs for monitoring sensitivity and interval.
Instruction Scope
SKILL.md explicitly instructs the agent to exec node index.js commands from the skill directory and to persist .env with the Telegram token/chat id and monitor settings. That is within expected scope for a monitoring CLI. Minor concerns: the instructions force the agent to always run the bundled CLI and to 'Never say you don't have access to live data' (a directive about agent behavior rather than functionality). The skill also instructs asking the user for a bot token/chat ID and writing them into .env — this will store a secret locally (expected for Telegram alerts) but the agent will have direct access to it.
Install Mechanism
Registry says 'no install spec / instruction-only', but the package includes full source, package.json and package-lock (node dependencies). That's coherent (packaged skill with no external installer). SKILL.md also contains optional git clone instructions pointing to a GitHub repo (a normal source). There are no downloads from unknown or shortener URLs. Overall install risk is standard for an included Node CLI (npm dependencies are well-known).
Credentials
Requested env vars are limited to TELEGRAM_BOT_TOKEN (primary secret), TELEGRAM_CHAT_ID and monitoring parameters. These are proportionate to the described capability. No unrelated cloud credentials or broad secrets are requested.
Persistence & Privilege
Skill is not force‑included (always:false). It does instruct writing its own .env in its own skill directory and running long‑running monitors (arb:monitor, pools:monitor) which is expected for a monitor. It does not request system‑wide config changes or other skills' credentials.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install citrea-claw-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /citrea-claw-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.4
Add GUSD (generic.money), fix ctUSD decimals (18→6), accurate USD-based pool depth labels, deduplicate stale price warnings.
v0.1.2
Updated SKILL.md with correct install path, self-installing setup, and generic agent references.
v0.1.1
Add SKILL.md frontmatter declaring required env vars
v0.1.0
Initial release — arb detection, pool monitoring, price feeds, wallet balance, Telegram alerts for the Citrea Bitcoin L2 ecosystem
元数据
Slug citrea-claw-skill
版本 0.1.4
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 4
常见问题

Citrea Claw Skill 是什么?

Run Citrea L2 monitoring commands — check arbitrage opportunities, token prices, pool liquidity, wallet balances, and new pools across JuiceSwap and Satsuma... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 249 次。

如何安装 Citrea Claw Skill?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install citrea-claw-skill」即可一键安装,无需额外配置。

Citrea Claw Skill 是免费的吗?

是的,Citrea Claw Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Citrea Claw Skill 支持哪些平台?

Citrea Claw Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Citrea Claw Skill?

由 Jason Chew(@jason-chew)开发并维护,当前版本 v0.1.4。

💬 留言讨论