用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/javimosch/open-claw-skills --skill agent-metrics命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | agent-metrics |
| description | Observability and metrics for AI agents - track calls, errors, latency |
Track and monitor your AI agent's behavior with built-in observability.
Files included:
metrics.py - Python CLI (cross-platform)agent-metrics.ps1 - PowerShell wrapper (Windows)# Install Python dependency
pip install psutil
.\agent-metrics.ps1 -Action record -MetricType call -Label "api_openai"
python metrics.py record --type call --label "api_openai"
.\agent-metrics.ps1 -Action record -MetricType error -Label "api_error" -Details "Rate limit exceeded"
.\agent-metrics.ps1 -Action record -MetricType latency -Label "task_process" -Value 1500
.\agent-metrics.ps1 -Action dashboard
.\agent-metrics.ps1 -Action resources
.\agent-metrics.ps1 -Action export -Format json -Output metrics.json
.\agent-metrics.ps1 -Action summary
| Type | Description | Fields |
|---|---|---|
| call | API call made | label, timestamp |
| error | Error occurred | label, details, timestamp |
| latency | Response time (ms) | label, value, timestamp |
| custom | Custom metric | label, value |
╔═══════════════════════════════════════════════╗
║ AGENT METRICS DASHBOARD ║
╠═══════════════════════════════════════════════╣
║ Total Calls: 1,247 ║
║ Total Errors: 23 ║
║ Error Rate: 1.84% ║
║ Avg Latency: 234ms ║
║ Uptime: 4h 32m ║
╠═══════════════════════════════════════════════╣
║ Top Labels: ║
║ api_openai 892 (71.5%) ║
║ api_claude 234 (18.8%) ║
║ task_process 121 (9.7%) ║
╚═══════════════════════════════════════════════╝
MIT