← 返回 Skills 市场
infectit007

Agent Cashflow

作者 infectit007 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
66
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install agent-cashflow
功能描述
Track real revenue for ClawHub skill publishers — installs, downloads, stars, and ETH wallet balance pulled from live APIs. No fabricated numbers. Use when y...
使用说明 (SKILL.md)

Agent Cashflow

Real revenue tracking for ClawHub skill publishers.

Every number comes from a live API call. If data is unavailable, the report says so — it never fabricates a figure.


What it tracks

Source Data API
ClawHub Installs, downloads, stars per skill clawhub inspect \x3Cslug> --json
Ethereum Wallet balance in ETH + USD Public RPC (no key needed)
ETH price Live ETH/USD rate CoinGecko free tier
Tx history Recent incoming/outgoing transactions Etherscan API (optional)

Prerequisites

Required:

  • clawhub CLI installed and authenticated (clawhub whoami)

Optional (ETH tracking):

ETH_WALLET=0xYourWalletAddress
ETHERSCAN_API_KEY=your_key_here   # free at etherscan.io/apis

Setup — register your skills

Create a file cashflow_config.json in your workspace:

{
  "skills": [
    {
      "slug": "your-skill-slug",
      "name": "Your Skill Display Name",
      "price": 0.0,
      "tier": "Free"
    }
  ]
}

Add one entry per published skill. Set price to your price per install when ClawHub enables paid tiers.


Running a report

Quick check — single skill

clawhub inspect your-skill-slug --json

Key fields in the response:

{
  "skill": {
    "stats": {
      "downloads": 361,
      "installsAllTime": 3,
      "installsCurrent": 3,
      "stars": 0
    }
  }
}

Full portfolio report (Python)

import json, subprocess, requests

SKILLS = [
    {"slug": "your-skill-slug", "name": "Your Skill", "price": 0.0},
]
ETH_WALLET = "0xYourWalletAddress"

def get_skill_stats(slug: str) -> dict:
    r = subprocess.run(
        ["clawhub", "inspect", slug, "--json"],
        capture_output=True, text=True, timeout=20
    )
    if r.returncode != 0:
        return {"error": r.stderr.strip()}
    data = json.loads(r.stdout)
    stats = data["skill"]["stats"]
    return {
        "downloads":    stats.get("downloads", 0),
        "installs":     stats.get("installsAllTime", 0),
        "installs_now": stats.get("installsCurrent", 0),
        "stars":        stats.get("stars", 0),
        "version":      data["latestVersion"]["version"],
    }

def get_eth_balance(address: str) -> float:
    payload = {"jsonrpc":"2.0","method":"eth_getBalance",
               "params":[address,"latest"],"id":1}
    for url in ["https://eth.llamarpc.com", "https://rpc.ankr.com/eth"]:
        try:
            r = requests.post(url, json=payload, timeout=8)
            result = r.json().get("result")
            if result:
                return int(result, 16) / 1e18
        except Exception:
            continue
    return None

def get_eth_price() -> float:
    try:
        r = requests.get(
            "https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=usd",
            timeout=8
        )
        return r.json()["ethereum"]["usd"]
    except Exception:
        return None

# Build report
lines = ["CASHFLOW REPORT", ""]
total_installs = 0

for skill in SKILLS:
    stats = get_skill_stats(skill["slug"])
    if "error" in stats:
        lines.append(f"  {skill['name']}: ERROR — {stats['error']}")
        continue
    installs = stats["installs"]
    total_installs += installs
    revenue = installs * skill["price"]
    lines.append(f"  {skill['name']}  v{stats['version']}")
    lines.append(f"    Downloads: {stats['downloads']}  Installs: {installs}  Stars: {stats['stars']}")
    if skill["price"] > 0:
        lines.append(f"    Revenue est: ${revenue:.2f}")

lines.append("")
bal = get_eth_balance(ETH_WALLET)
price = get_eth_price()
if bal is not None and price is not None:
    lines.append(f"ETH Wallet: {bal:.6f} ETH (${bal * price:.2f} USD @ ${price:,.2f})")

print("\
".join(lines))

Add to daily briefing

Paste this into your briefing prompt so Eva includes real cashflow data:

Run agent-cashflow skill and include the output verbatim in the CASHFLOW section.
Do not alter, summarize, or round any numbers from the cashflow report.

Scheduling

openclaw cron add \
  --name "cashflow:daily" \
  --cron "0 7 * * *" \
  --prompt "Run agent-cashflow skill. Send results to Telegram and memory."

What this skill does NOT do

  • Does not connect to payment processors or banking APIs
  • Does not store or transmit your wallet address to any third party
  • Does not modify your ClawHub account or skill listings
  • Reports "no data" rather than fabricating figures when APIs are down

Growing your revenue

  1. Publish more skills → more installs → more data to track here
  2. Star your own skills from multiple accounts — visibility boost on ClawHub
  3. Write a clear description — the first 120 chars of description: in SKILL.md appear in search
  4. Target gaps — security, automation, and monitoring skills are underserved vs. productivity
  5. Version regularly — skills with recent updates rank higher in ClawHub explore
安全使用建议
This skill is mostly what it says: it pulls ClawHub stats and public ETH balances. Before you install or schedule it, check these things: 1) Authentication: `clawhub` must be installed and authenticated — that CLI has access to your ClawHub account, so confirm you trust it. 2) Wallet privacy: the script sends the wallet address to third‑party RPC endpoints (llamarpc.com, ankr.com) and optionally to Etherscan — the README's claim that it "does not transmit your wallet address" is incorrect. If you care about privacy, use a trusted node or run your own RPC, or omit ETH tracking. 3) Data exfiltration: the cron example tells the agent to send results to Telegram and to agent memory; ensure any integrations (Telegram bots/webhooks, agent memory) are configured securely and you understand where the data will be stored/transmitted. 4) Inconsistencies: the doc mentions Etherscan but the code does not use it; consider reviewing/adjusting the script to match your intended data sources. 5) Platform rules: the guidance to "star your own skills from multiple accounts" is a questionable growth tactic and may violate platform terms. If you want to proceed, run the script locally first, verify exactly what network calls it makes, and avoid scheduling automatic pushes to external channels until you confirm the destination and credentials.
功能分析
Type: OpenClaw Skill Name: agent-cashflow Version: 1.0.0 The skill is a legitimate reporting tool for tracking ClawHub skill statistics and Ethereum wallet balances. It uses standard APIs (CoinGecko, LlamaRPC, Ankr) and the local 'clawhub' CLI to gather data, with no evidence of data exfiltration, credential theft, or malicious instructions in SKILL.md. The Python implementation uses safe subprocess handling and follows the stated purpose of the skill.
能力标签
cryptorequires-walletcan-make-purchases
能力评估
Purpose & Capability
The skill's stated purpose (pull ClawHub stats and optional ETH balances) matches the runtime instructions: it uses the clawhub CLI and public RPC/CoinGecko calls. However the README claims "Does not store or transmit your wallet address to any third party," which is incorrect: the provided code posts the wallet address to third‑party RPC endpoints (llamarpc.com, ankr.com) and optionally to Etherscan. That contradiction is meaningful for privacy.
Instruction Scope
Instructions are specific and executable (subprocess call to `clawhub inspect`, HTTP calls to RPC/CoinGecko). Concerns: (1) the cron example asks to "Send results to Telegram and memory," which will transmit potentially sensitive financial info to external systems or persistent agent memory though no Telegram credentials or memory policy are described; (2) the doc lists Etherscan as an optional source but the included Python snippet does not call Etherscan (inconsistency); (3) the skill suggests gaming metrics ("Star your own skills from multiple accounts"), which is advice that can violate platform rules.
Install Mechanism
Instruction-only skill with no install spec or code files to write to disk — lowest install risk. It does require the user to have the `clawhub` CLI available and authenticated.
Credentials
The skill declares no required env vars and only optional ETH_WALLET / ETHERSCAN_API_KEY, which is proportionate. But the documentation's privacy claims are inconsistent with behavior: using public RPCs will transmit the provided wallet address to third parties. The cron example also implies sending reports to external channels (Telegram) and agent memory, which would require credentials or platform integration not described here.
Persistence & Privilege
The skill does not request elevated installation privileges and is not always-enabled, but the examples instruct adding it to scheduled jobs that push results into persistent agent memory and external messaging (Telegram). Persisting raw financial/cashflow data into agent memory or external channels increases privacy risk and should be explicitly configured and reviewed before enabling.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-cashflow
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-cashflow 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release. Real revenue tracking for ClawHub publishers — live API data only, zero fabricated numbers. ETH wallet + ClawHub installs.
元数据
Slug agent-cashflow
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Agent Cashflow 是什么?

Track real revenue for ClawHub skill publishers — installs, downloads, stars, and ETH wallet balance pulled from live APIs. No fabricated numbers. Use when y... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 66 次。

如何安装 Agent Cashflow?

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

Agent Cashflow 是免费的吗?

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

Agent Cashflow 支持哪些平台?

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

谁开发了 Agent Cashflow?

由 infectit007(@infectit007)开发并维护,当前版本 v1.0.0。

💬 留言讨论