Skill metrics collector

From XSpoonAi/spoon-awesome-skill · View interactive version

Skill metrics collector is an AI agent skill from the GitHub repository XSpoonAi/spoon-awesome-skill. Collect usage metrics for skills in JSON format. Tracks execution statistics and performance metrics locally.

How to use this skill

Skill file

Description

Collect usage metrics for skills in JSON format. Tracks execution statistics and performance metrics locally.

Inputs

{
  "metrics_path": "Path to save metrics",
  "collect_from": "local|remote"
}

Outputs

{
  "ok": true,
  "data": {
    "metrics": {},
    "timestamp": "ISO timestamp"
  }
}

Usage

Demo Mode

python scripts/main.py --demo

Collect Metrics

echo '{"metrics_path":"./metrics","collect_from":"local"}' | python3 scripts/main.py

Examples

Example 1: Collect Metrics

$ echo '{"metrics_path":"./metrics","collect_from":"local"}' | python3 scripts/main.py
{
  "ok": true,
  "data": {
    "metrics": {"total_executions": 250, "avg_latency": 245},
    "timestamp": "2026-02-06T07:31:06.856041+00:00"
  }
}

Error Handling

When an error occurs, the skill returns:

{
  "ok": false,
  "error": "Error description",
  "details": {
    "metrics_path": "Invalid path"
  }
}
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.