AGENT SKILL
agent-metrics-osiris
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-06-10
- Stars
- ★ 3
- Forks
- 0
03 SKILL.md 正文
Agent Metrics Skill
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)
What it does
- Call Tracking - Count API calls, messages, tasks
- Error Logging - Track errors with stack traces
- Latency Metrics - Measure response times
- Resource Usage - CPU, memory, network
- Simple Dashboard - Terminal-based metrics view
- Export - JSON export for external dashboards
Installation
# Install Python dependency
pip install psutil
Usage
Option 1: PowerShell (recommended on Windows)
.\agent-metrics.ps1 -Action record -MetricType call -Label "api_openai"
Option 2: Python CLI (cross-platform)
python metrics.py record --type call --label "api_openai"
Record an Error
.\agent-metrics.ps1 -Action record -MetricType error -Label "api_error" -Details "Rate limit exceeded"
Record Latency
.\agent-metrics.ps1 -Action record -MetricType latency -Label "task_process" -Value 1500
View Dashboard
.\agent-metrics.ps1 -Action dashboard
View Resource Usage (CPU, Memory, Disk)
.\agent-metrics.ps1 -Action resources
Export Metrics
.\agent-metrics.ps1 -Action export -Format json -Output metrics.json
Get Summary
.\agent-metrics.ps1 -Action summary
Metrics Types
| 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 |
Dashboard Example
╔═══════════════════════════════════════════════╗
║ 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%) ║
╚═══════════════════════════════════════════════╝
Requirements
- Python 3.8+
- psutil library
License
MIT
04 同仓库更多 Skills
youtube-content
YouTube transcripts to summaries, threads, blogs.
★ 3
xurl
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
★ 3
touchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
★ 3
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.
★ 3
teams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
★ 3
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.
★ 3