💊

OpenClaw 实例的 Lighthouse 式瘦身诊断

Clawzempic · v1.0.0
可以安装,但有提示 HAS_SCRIPTS
开发 安全 B 级 作者 anna-claudette 公开目录收录
1.1k 下载 0 安装 3.6k 收藏 9 浏览

简介

OpenClaw 实例的 Lighthouse 式效率审计工具,零依赖 Python 脚本,6 维度评分定位配置冗余与令牌浪费

原始描述

Lighthouse-style efficiency audit for OpenClaw. Scores your instance A+ to F across 6 categories (context injection, cron health, session bloat, config, skil...

通过你的 Agent 添加

安装目录:clawzembic/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/clawzempic/
Codex CLI~/.codex/skills/clawzempic/
DeepSeek Harness~/.agents/skills/clawzempic/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Clawzembic 是一款专为 OpenClaw 设计的诊断优化工具,采用 Lighthouse 式评分体系(A+ 至 F)对实例进行六维度健康检查。用户通过单条 bash 命令即可启动本地或远程审计,支持 JSON 输出便于集成监控仪表盘。

执行方式:

  • 本地审计:bash skills/clawzembic/lean-audit.sh
  • 远程审计:--remote user@host(基于 SSH 密钥认证,无需在目标机安装代理)
  • 扩展模式:--json 输出结构化数据,--fix 启用自动修复建议,--dir 指定自定义配置路径

显著优点

  1. 零依赖设计:纯 Python 3.8+ 标准库实现,无外部包依赖,部署零摩擦
  2. 双模式架构:本地执行 + 远程 SSH 穿透,兼顾开发机与生产 VM 场景
  3. 量化评分体系:六类指标加权(Context Injection 25%、Cron Health 25%、Session Bloat 20% 等),输出可对比的 letter grade
  4. 自动化修复:--fix 模式提供可落地的配置调优建议,降低人工排查成本
  5. 令牌感知:直接关联上下文注入大小、会话膨胀与 API 成本浪费,ROI 可见

潜在局限

  • 覆盖范围限定:仅审计 OpenClaw 特定实现,对其他 LLM 编排框架(如 LangChain、Semantic Kernel)无兼容性
  • 修复建议保守:--fix 模式输出建议而非自动执行变更,重度优化仍需人工介入
  • SSH 依赖:远程审计要求预配置密钥认证,密码认证场景需手动处理
  • 权重固化:六类指标权重内置(如 Transcript Size 仅占 5%),暂不支持自定义调整

适合人群

  • OpenClaw 重度用户:管理多实例、关注上下文成本优化的开发者与运维团队
  • 多租户环境管理员:需定期巡检 VM 配置漂移与 cron 任务膨胀的场景
  • 成本敏感型团队:通过量化评分推动配置治理,减少不必要的 token 消耗

常规风险

  • 远程执行暴露:SSH 远程审计模式下,脚本在目标机执行审计逻辑,需确保 lean-audit.sh 本身未被篡改
  • 敏感路径扫描:工具读取 .openclaw 目录下的 MEMORY.md、会话文件与技能配置,可能触及用户隐私数据
  • 评分标准漂移:内置阈值(如 35% 会话浪费率触发降级)基于特定 OpenClaw 版本,版本升级后可能产生误判

技能正文


name: clawzembic description: Lighthouse-style efficiency audit for OpenClaw. Scores your instance A+ to F across 6 categories (context injection, cron health, session bloat, config, skills, transcripts). Identifies wasted tokens, bloated sessions, misconfigured crons, and model right-sizing opportunities. Zero dependencies (Python stdlib only). metadata: openclaw: emoji: "💊" requires: anyBins: ["python3"] tags: - audit - optimization - efficiency - diagnostics - performance

Clawzembic — Weight Loss for Your OpenClaw Instance

Lighthouse-style audit for OpenClaw efficiency. Run it, get a grade (A+ to F), shed the bloat.

Scans your installation and scores it across six critical categories: context injection, cron health, session bloat, config health, skill bloat, and transcript size. You get one overall letter grade plus category-by-category breakdown with actionable findings.

Zero dependencies. Python 3.8+ stdlib only.

Quick Start

# Audit this machine
bash skills/clawzembic/lean-audit.sh

# Audit a remote instance (VM, etc.)
bash skills/clawzembic/lean-audit.sh --remote user@host

# JSON output for dashboards/integrations
bash skills/clawzembic/lean-audit.sh --json

# Show automated fix suggestions
bash skills/clawzembic/lean-audit.sh --fix

# Custom .openclaw directory
bash skills/clawzembic/lean-audit.sh --dir /path/to/.openclaw

What It Checks

Category Weight What Gets Flagged
Context Injection 25% Oversized MEMORY.md, bloated workspace files eating tokens
Cron Health 25% Wrong models, high thinking on routine tasks, main-session pollution
Session Bloat 20% Stale sessions hogging context, waste ratio above 35%
Config Health 15% Heartbeat too frequent, subagent defaults, missing compaction
Skill Bloat 10% Too many skills injected, unused skills inflating system prompt
Transcript Size 5% Disk hogs, oversized transcripts (>10MB files)

Grade Scale

  • A+/A (90-100): Lean machine 💪
  • B+/B (75-89): Good shape, minor tweaks
  • C+/C (60-74): Needs a diet 🍕
  • D+/D (45-59): Significant bloat 🫠
  • F (<45): Emergency Clawzembic needed 💊

Agent Usage

When Jeffrey asks you to audit or optimize an OpenClaw instance:

  1. Run bash skills/clawzembic/lean-audit.sh (or --remote user@claudette for the VM)
  2. Review the report and present key findings with context
  3. Offer --fix mode for automated remediation if score < 75

For remote instances, ensure SSH key-based auth is configured. The skill uses SSH to execute the audit remotely — no agent installation needed on the target.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

auditoptimizationefficiencydiagnosticsperformanceopenclawpythoncost-optimization

同类 Skill