# Send Agent Metrics to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "agent-metrics-osiris",
    "name": "Agent Metrics",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/nantes/agent-metrics-osiris",
    "canonicalUrl": "https://clawhub.ai/nantes/agent-metrics-osiris",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/agent-metrics-osiris",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-metrics-osiris",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "metrics.py",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "agent-metrics-osiris",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T07:14:21.502Z",
      "expiresAt": "2026-05-06T07:14:21.502Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-metrics-osiris",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-metrics-osiris",
        "contentDisposition": "attachment; filename=\"agent-metrics-osiris-1.0.5.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "agent-metrics-osiris"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/agent-metrics-osiris"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/agent-metrics-osiris",
    "downloadUrl": "https://openagent3.xyz/downloads/agent-metrics-osiris",
    "agentUrl": "https://openagent3.xyz/skills/agent-metrics-osiris/agent",
    "manifestUrl": "https://openagent3.xyz/skills/agent-metrics-osiris/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/agent-metrics-osiris/agent.md"
  }
}
```
## Documentation

### 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

### 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

TypeDescriptionFieldscallAPI call madelabel, timestamperrorError occurredlabel, details, timestamplatencyResponse time (ms)label, value, timestampcustomCustom metriclabel, 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
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: nantes
- Version: 1.0.5
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T07:14:21.502Z
- Expires at: 2026-05-06T07:14:21.502Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/agent-metrics-osiris)
- [Send to Agent page](https://openagent3.xyz/skills/agent-metrics-osiris/agent)
- [JSON manifest](https://openagent3.xyz/skills/agent-metrics-osiris/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/agent-metrics-osiris/agent.md)
- [Download page](https://openagent3.xyz/downloads/agent-metrics-osiris)