Agent skill · AI & Agents

core

Provide visibility into the "Black Box" of agent execution by tracking cost (tokens) and efficiency (time/loops).

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill core-andreibesleaga-gabbe-5 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 1 KB
Bundled scripts: none
Path: skills/analysis/core-andreibesleaga-gabbe-5/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

--- name: agent-analytics description: Tracks key performance indicators (KPIs) for AI Agents: Token Usage, Task Duration, Loop Cycles, and Success Rate. triggers: [analytics, metrics, tokens used, cost tracking, performance report, agent stats] context_cost: low --- # Agent Analytics Skill ## Goal Provide visibility into the "Black Box" of agent execution by tracking cost (tokens) and efficiency (time/loops). ## Flow ### 1. Metric Capture **Input**: Completion of a Task / Tool Call / Phase. **Action**: Log the following structured data: * `timestamp`: ISO 8601 * `agent_id`: Loki / Claude / Gemini * `task_id`: T-NNN * `tokens_in`: (Estimated) * `tokens_out`: (Estimated) * `duration_ms`: Execution time * `status`: SUCCESS | FAILURE | RETRY ### 2. Analysis & Alerts * **Loop Detection**: If `task_id` appears > 5 times in `metrics.log` with `status: RETRY`, trigger `human_escalation`. * **Cost Anomaly**: If `tokens_out` > 5000 for a simple task, flag as "Verbose/Inefficient". ### 3. Reporting **Command**: `generate-report` **Output**: `metrics/weekly_report.md` * Total Tokens consumed. * Average Task Duration. * Success Rate % (First-pass vs Retry). ## Storage * `agents/memory/metrics/

What's inside
Steps it walks through
  1. Goal
  2. Flow
  3. 1. Metric Capture
  4. 2. Analysis & Alerts
  5. 3. Reporting
  6. Storage
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the core skill do?

Provide visibility into the "Black Box" of agent execution by tracking cost (tokens) and efficiency (time/loops).

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill core-andreibesleaga-gabbe-5 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going