File contents AI Efficiency Monitor (aiemon)
版本 : v1.2.1 | 创建者 : 思捷娅科技 (SJYKJ)/zhaog100 | 日期 : 2026-03-16
🎯 功能概述
监控 AI 任务执行效率,识别浪费模式,生成优化建议和成本节省报告。
核心能力
数据收集 : 解析 OpenClaw 日志,提取 Token 用量、API 调用、执行时间
浪费模式识别 : 5 种内置模式检测(重复查询/过长上下文/无效重试/过度生成/低质量循环)
成本计算 : 多模型价格表(智谱/DeepSeek/OpenAI 等)
报告生成 : Markdown/JSON 格式,含 ASCII 趋势图
趋势分析 : 日/周/月效率趋势
📦 安装
# 确保 error-handler 已就绪
#[已禁用] source ~/.openclaw/workspace/skills/utils/error-handler.sh
🚀 CLI 使用
# 收集数据(从 OpenClaw 日志)
aiemon collect --source openclaw --days 7
# 分析浪费模式
aiemon analyze --patterns all
# 生成报告
aiemon report --format markdown --days 7
aiemon report --format json --days 30
# 计算成本
aiemon cost --model glm-5-turbo --tokens 10000
# 趋势分析
aiemon trends --days 30
# 列出内置模式
aiemon patterns list
📁 文件结构
ai-efficiency-monitor/
├── SKILL.md # 本文档
├── aiemon # CLI 入口
├── src/
│ ├── collector.sh # 数据收集
│ ├── analyzer.sh # 浪费模式分析
│ ├── reporter.sh # 报告生成
│ ├── cost_calc.sh # 成本计算(含模型价格表+上下文字典)
│ ├── patterns_list.sh # 模式列表展示
│ └── patterns/
│ └── definitions.sh # 浪费模式定义(5种模式)
├── data/ # 运行时数据
├── tests/test_all.sh
└── package.json
📄 许可证与版权声明
MIT License
Copyright (c) 2026 思捷娅科技 (SJYKJ)
免费使用、修改和重新分发时,需注明出处。
出处:GitHub: https://github.com/example-user/xiaomili-skills | ClawHub: https://clawhub.com | 创建者: 思捷娅科技 (SJYKJ)/zhaog100
商业使用授权:个人免费 | 小微¥999/年 | 中型¥4,999/年 | 大型¥19,999/年
1 --- 2 name: ai-efficiency-monitor 3 description: AI效率监控工具。监控AI任务执行效率,识别浪费模式(重复查询/过长上下文/无效重试/过度生成/低质量循环),生成优化建议和成本节省报告。支持OpenClaw日志解析、多模型成本计算、ASCII趋势图。 4 --- 5 6 # AI Efficiency Monitor (aiemon) 7 8 **版本**: v1.2.1 | **创建者**: 思捷娅科技 (SJYKJ)/zhaog100 | **日期**: 2026-03-16 9 10 ## 🎯 功能概述 11 12 监控 AI 任务执行效率,识别浪费模式,生成优化建议和成本节省报告。 13 14 ### 核心能力 15 - **数据收集**: 解析 OpenClaw 日志,提取 Token 用量、API 调用、执行时间 16 - **浪费模式识别**: 5 种内置模式检测(重复查询/过长上下文/无效重试/过度生成/低质量循环) 17 - **成本计算**: 多模型价格表(智谱/DeepSeek/OpenAI 等) 18 - **报告生成**: Markdown/JSON 格式,含 ASCII 趋势图 19 - **趋势分析**: 日/周/月效率趋势 20 21 ## 📦 安装 22 23 ```bash 24 # 确保 error-handler 已就绪 25 #[已禁用] source ~/.openclaw/workspace/skills/utils/error-handler.sh 26 ``` 27 28 ## 🚀 CLI 使用 29 30 ```bash 31 # 收集数据(从 OpenClaw 日志) 32 aiemon collect --source openclaw --days 7 33 34 # 分析浪费模式 35 aiemon analyze --patterns all 36 37 # 生成报告 38 aiemon report --format markdown --days 7 39 aiemon report --format json --days 30 40 41 # 计算成本 42 aiemon cost --model glm-5-turbo --tokens 10000 43 44 # 趋势分析 45 aiemon trends --days 30 46 47 # 列出内置模式 48 aiemon patterns list 49 ``` 50 51 ## 📁 文件结构 52 53 ``` 54 ai-efficiency-monitor/ 55 ├── SKILL.md # 本文档 56 ├── aiemon # CLI 入口 57 ├── src/ 58 │ ├── collector.sh # 数据收集 59 │ ├── analyzer.sh # 浪费模式分析 60 │ ├── reporter.sh # 报告生成 61 │ ├── cost_calc.sh # 成本计算(含模型价格表+上下文字典) 62 │ ├── patterns_list.sh # 模式列表展示 63 │ └── patterns/ 64 │ └── definitions.sh # 浪费模式定义(5种模式) 65 ├── data/ # 运行时数据 66 ├── tests/test_all.sh 67 └── package.json 68 ``` 69 70 ## 📄 许可证与版权声明 71 MIT License 72 Copyright (c) 2026 思捷娅科技 (SJYKJ) 73 免费使用、修改和重新分发时,需注明出处。 74 出处:GitHub: https://github.com/example-user/xiaomili-skills | ClawHub: https://clawhub.com | 创建者: 思捷娅科技 (SJYKJ)/zhaog100 75 商业使用授权:个人免费 | 小微¥999/年 | 中型¥4,999/年 | 大型¥19,999/年
zhaog100/openclaw-skills/tree/main/ai-efficiency-monitor commit a49d804c28
Frequently asked questions How do I install the AI Efficiency Monitor skill? Run npx skillmds add zhaog100/ai-efficiency-monitor in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the AI Efficiency Monitor skill do? AI效率监控工具。监控AI任务执行效率,识别浪费模式(重复查询/过长上下文/无效重试/过度生成/低质量循环),生成优化建议和成本节省报告。支持OpenClaw日志解析、多模型成本计算、ASCII趋势图。 It is listed under Coding & Dev Tools on SkillMD.
Is AI Efficiency Monitor safe to use? This skill has not completed SkillMD's automated safety review yet. Capability flags: executes scripts, makes network calls, reads secrets. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with AI Efficiency Monitor? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is AI Efficiency Monitor free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published AI Efficiency Monitor? zhaog100 (@zhaog100) published this skill. Their other Agent Skills are listed on their SkillMD profile.