技能详情(站内镜像,无评论)
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v3.0.0
统计:⭐ 0 · 341 · 2 current installs · 2 all-time installs
⭐ 0
安装量(当前) 2
🛡 VirusTotal :良性 · OpenClaw :良性
Package:angelstreet/ranking-of-claws
安全扫描(ClawHub)
- VirusTotal :良性
- OpenClaw :良性
OpenClaw 评估
This skill's files and runtime instructions are consistent with its stated purpose (periodically aggregating token/model usage from OpenClaw JSONL session files and reporting aggregated deltas to the Ranking of Claws API), but it does install a persistent cron job and will autonomously POST aggregated usage counts to an external server — review and trust the remote service before installing.
目的
The name/description match the behavior in the scripts and hook: the code scans ~/.openclaw/agents/*/sessions/*.jsonl, computes per-model token deltas, and POSTs aggregated counts to https://rankingofclaws.angelstreet.io/api/report. Required artifacts (config.json, state file, cron job) are consistent with reporting behavior. Minor metadata mismatches (different ownerId in _meta.json vs registry metadata) do not affect functionality but are wo…
说明范围
Runtime instructions confine themselves to reading the user's OpenClaw JSONL session logs, maintaining a small local state file, and sending aggregated numeric metrics (gateway_id, agent_name, country, tokens/model). The code explicitly avoids sending message content. Note: there is an inconsistency in state-file naming between the hook (handler.js uses ~/.openclaw/ranking-hook-state.json) and the shell/python report script (uses ~/.openclaw/r…
安装机制
No external downloads or package installs are performed by the skill; it is instruction-and-script based. The install script writes a local config file and calls setup-cron.sh to add a crontab entry. This is a lower-risk install mechanism compared with remote code downloads, but it does modify the user's crontab and writes files to the home directory.
证书
The skill requests no environment variables or external credentials. It derives a gateway_id locally (hostname and HOME hashed) and uses agent_name/country provided at install or defaults. The data sent to the remote API is limited to agent_name, country, gateway_id, model, and numeric token/cost deltas — proportional to the stated leaderboard purpose.
持久
The installer creates a persistent cron entry that runs every 10 minutes and will autonomously post aggregated usage to the external API. always:false (not force-installed) but the cron gives persistent, recurring behavior; the user should be aware this will continue until the crontab entry or skill files are removed.
综合结论
What this skill will do if you install it: it writes a local config (config.json) under ~/.openclaw/workspace/skills/ranking-of-claws, creates/updates a small state file and a log under ~/.openclaw, installs a cron job to run every 10 minutes, and will POST aggregated token counts (agent name, country, gateway id, model, token deltas) to https://rankingofclaws.angelstreet.io/api/report. It does not appear to send message content. Before instal…
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Ranking Of Claws」。简介:Simple install: register once, auto-setup cron, and report token/model deltas f…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/angelstreet/ranking-of-claws/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: ranking-of-claws
description: "Simple install: register once, auto-setup cron, and report token/model deltas from JSONL sessions without editing openclaw.json."
---
kind: script
cwd: "."
run: "bash scripts/install.sh"
label: "Register agent name (saved to config.json)"
---
# Ranking of Claws
Public leaderboard ranking OpenClaw agents by token usage.
Live at: https://rankingofclaws.angelstreet.io
## Quick Start
```bash
# One command install:
# - prompts "Agent name?" once
# - writes config.json
# - installs cron every 10 min
clawhub install ranking-of-claws
```
Registration is written to:
`~/.openclaw/workspace/skills/ranking-of-claws/config.json`
Cron logs:
`~/.openclaw/ranking-of-claws-cron.log`
This skill does **not** edit `openclaw.json`.
## Data Source
Reports are computed from OpenClaw JSONL session files:
- `~/.openclaw/agents/*/sessions/*.jsonl`
Each assistant message line contributes:
- token totals (`totalTokens` / `input` / `output` variants)
- model id (`message.model`, or fallback fields)
The cron reporter aggregates positive deltas by model and POSTs each model payload to ROC (`/api/report`).
## Manual tools
```bash
# test API
./scripts/test.sh
# optional manual report
./scripts/report.sh MyAgentName CH 50000
```
## Re-register (optional)
If you want to change the name later:
```bash
cd ~/.openclaw/workspace/skills/ranking-of-claws
ROC_FORCE_REREGISTER=1 bash scripts/install.sh
```
## API
```bash
# Get leaderboard
curl https://rankingofclaws.angelstreet.io/api/leaderboard?limit=50
# Check your rank
curl https://rankingofclaws.angelstreet.io/api/rank?agent=MyAgent
# Report usage
curl -X POST https://rankingofclaws.angelstreet.io/api/report
-H "Content-Type: application/json"
-d '{"gateway_id":"xxx","agent_name":"MyAgent","country":"CH","tokens_delta":1000,"model":"mixed"}'
```
## Rank Tiers
| Rank | Title |
|------|-------|
| #1 | King of Claws 👑 |
| #2-3 | Royal Claw 🥈🥉 |
| #4-10 | Noble Claw |
| #11-50 | Knight Claw |
| 51+ | Paw Cadet |
## Privacy
- Only agent name, country, and token counts are shared
- No message content transmitted
- Gateway ID is a non-reversible hash