{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/agent-metrics-osiris",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-metrics-osiris",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "metrics.py",
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/agent-metrics-osiris",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Agent Metrics Skill",
        "body": "Track and monitor your AI agent's behavior with built-in observability.\n\nFiles included:\n\nmetrics.py - Python CLI (cross-platform)\nagent-metrics.ps1 - PowerShell wrapper (Windows)"
      },
      {
        "title": "What it does",
        "body": "Call Tracking - Count API calls, messages, tasks\nError Logging - Track errors with stack traces\nLatency Metrics - Measure response times\nResource Usage - CPU, memory, network\nSimple Dashboard - Terminal-based metrics view\nExport - JSON export for external dashboards"
      },
      {
        "title": "Installation",
        "body": "# Install Python dependency\npip install psutil"
      },
      {
        "title": "Option 1: PowerShell (recommended on Windows)",
        "body": ".\\agent-metrics.ps1 -Action record -MetricType call -Label \"api_openai\""
      },
      {
        "title": "Option 2: Python CLI (cross-platform)",
        "body": "python metrics.py record --type call --label \"api_openai\""
      },
      {
        "title": "Record an Error",
        "body": ".\\agent-metrics.ps1 -Action record -MetricType error -Label \"api_error\" -Details \"Rate limit exceeded\""
      },
      {
        "title": "Record Latency",
        "body": ".\\agent-metrics.ps1 -Action record -MetricType latency -Label \"task_process\" -Value 1500"
      },
      {
        "title": "View Dashboard",
        "body": ".\\agent-metrics.ps1 -Action dashboard"
      },
      {
        "title": "View Resource Usage (CPU, Memory, Disk)",
        "body": ".\\agent-metrics.ps1 -Action resources"
      },
      {
        "title": "Export Metrics",
        "body": ".\\agent-metrics.ps1 -Action export -Format json -Output metrics.json"
      },
      {
        "title": "Get Summary",
        "body": ".\\agent-metrics.ps1 -Action summary"
      },
      {
        "title": "Metrics Types",
        "body": "TypeDescriptionFieldscallAPI call madelabel, timestamperrorError occurredlabel, details, timestamplatencyResponse time (ms)label, value, timestampcustomCustom metriclabel, value"
      },
      {
        "title": "Dashboard Example",
        "body": "╔═══════════════════════════════════════════════╗\n║           AGENT METRICS DASHBOARD            ║\n╠═══════════════════════════════════════════════╣\n║ Total Calls:     1,247                       ║\n║ Total Errors:   23                          ║\n║ Error Rate:     1.84%                        ║\n║ Avg Latency:    234ms                        ║\n║ Uptime:         4h 32m                      ║\n╠═══════════════════════════════════════════════╣\n║ Top Labels:                                  ║\n║   api_openai      892 (71.5%)               ║\n║   api_claude      234 (18.8%)               ║\n║   task_process    121 (9.7%)                ║\n╚═══════════════════════════════════════════════╝"
      },
      {
        "title": "Requirements",
        "body": "Python 3.8+\npsutil library"
      },
      {
        "title": "License",
        "body": "MIT"
      }
    ],
    "body": "Agent Metrics Skill\n\nTrack and monitor your AI agent's behavior with built-in observability.\n\nFiles included:\n\nmetrics.py - Python CLI (cross-platform)\nagent-metrics.ps1 - PowerShell wrapper (Windows)\nWhat it does\nCall Tracking - Count API calls, messages, tasks\nError Logging - Track errors with stack traces\nLatency Metrics - Measure response times\nResource Usage - CPU, memory, network\nSimple Dashboard - Terminal-based metrics view\nExport - JSON export for external dashboards\nInstallation\n# Install Python dependency\npip install psutil\n\nUsage\nOption 1: PowerShell (recommended on Windows)\n.\\agent-metrics.ps1 -Action record -MetricType call -Label \"api_openai\"\n\nOption 2: Python CLI (cross-platform)\npython metrics.py record --type call --label \"api_openai\"\n\nRecord an Error\n.\\agent-metrics.ps1 -Action record -MetricType error -Label \"api_error\" -Details \"Rate limit exceeded\"\n\nRecord Latency\n.\\agent-metrics.ps1 -Action record -MetricType latency -Label \"task_process\" -Value 1500\n\nView Dashboard\n.\\agent-metrics.ps1 -Action dashboard\n\nView Resource Usage (CPU, Memory, Disk)\n.\\agent-metrics.ps1 -Action resources\n\nExport Metrics\n.\\agent-metrics.ps1 -Action export -Format json -Output metrics.json\n\nGet Summary\n.\\agent-metrics.ps1 -Action summary\n\nMetrics Types\nType\tDescription\tFields\ncall\tAPI call made\tlabel, timestamp\nerror\tError occurred\tlabel, details, timestamp\nlatency\tResponse time (ms)\tlabel, value, timestamp\ncustom\tCustom metric\tlabel, value\nDashboard Example\n╔═══════════════════════════════════════════════╗\n║           AGENT METRICS DASHBOARD            ║\n╠═══════════════════════════════════════════════╣\n║ Total Calls:     1,247                       ║\n║ Total Errors:   23                          ║\n║ Error Rate:     1.84%                        ║\n║ Avg Latency:    234ms                        ║\n║ Uptime:         4h 32m                      ║\n╠═══════════════════════════════════════════════╣\n║ Top Labels:                                  ║\n║   api_openai      892 (71.5%)               ║\n║   api_claude      234 (18.8%)               ║\n║   task_process    121 (9.7%)                ║\n╚═══════════════════════════════════════════════╝\n\nRequirements\nPython 3.8+\npsutil library\nLicense\n\nMIT"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/nantes/agent-metrics-osiris",
    "publisherUrl": "https://clawhub.ai/nantes/agent-metrics-osiris",
    "owner": "nantes",
    "version": "1.0.5",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}