metrics-reporter

metrics-reporter is a skill for Claude Code, Codex from d-oit/rust-2026-template. It costs 18 tokens per session (738 once invoked), scanned A, original, MIT.

A small reporting workflow that records completed agent tasks as JSON event files for DORA observability, a way to track software delivery performance. It stores one event file per task or sub-task.

In plain words
What is it for?
Recording a completed task, its timing, success status, agent details, and related Git revision in the designated events folder.
Why use it?
It creates a consistent record of task completion that multiple agents can use without editing the same tracking file. The input does not define the full set of metrics collected.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Recording a completed task, its timing, success status, agent details, and related Git revision in the designated events folder.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/d-oit/rust-2026-template/metrics-reporter
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add d-oit/rust-2026-template --skill metrics-reporter
Clone the repo
git clone --depth 1 https://github.com/d-oit/rust-2026-template

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for metrics-reporter

README.md
[![agentmods](https://agentmods.dev/badge/skills/d-oit/rust-2026-template/metrics-reporter.svg)](https://agentmods.dev/skills/d-oit/rust-2026-template/metrics-reporter)
Your own site
<a href="https://agentmods.dev/skills/d-oit/rust-2026-template/metrics-reporter"><img src="https://agentmods.dev/badge/skills/d-oit/rust-2026-template/metrics-reporter.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 738 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.00738
Opus 5 $0.00009 $0.00369
Sonnet 5 $0.00004 $0.00148
Haiku 4.5 $0.00002 $0.00074

Measured 8d ago against content hash 2f9246aa2301, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

metrics-reporter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/metrics-reporter/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: metrics-reporter

When to Use

  • User asks for this skill's functionality

Purpose

Record agentic task completion by writing a per-event JSON file to .agents/events/. This pattern avoids Git merge conflicts and supports multi-agent coordination.

When to use

Call this skill as the LAST step of any task or sub-task.

Steps

  1. Prepare Directory: Ensure the daily directory exists.

    EVENT_DIR=".agents/events/$(date -u +%Y/%m/%d)"
    mkdir -p "${EVENT_DIR}"
    
  2. Generate Filename: Create a unique filename for the event.

    EVENT_FILE="${EVENT_DIR}/$(date -u +%Y-%m-%dT%H-%M-%SZ)-${AGENT_NAME:-unknown}-${TASK_ID:-$(date -u +%s)}.json"
    
  3. Write Event Data: Populated with task metadata and success status.

    {
      "event_id": "$(date -u +%s)-${AGENT_NAME}",
      "task_id": "${TASK_ID}",
      "skill": "${SKILL_NAME}",
      "status": "success",
      "started_at": "${STARTED_AT}",
      "finished_at": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
      "success": true,
      "human_interventions": 0,
      "git_sha": "$(git rev-parse --short HEAD)"
    }
    
  4. Verify: Ensure the JSON is valid and written to the correct location.

Stacked PR Metrics

When using the stacked-prs skill, add these optional fields to the event JSON:

{
  "stack_id": "billing-feature",
  "stack_position": 1,
  "stack_total": 3
}
  • stack_id: Identifier for the stack (feature name)
  • stack_position: This layer's position in the stack (1-indexed)
  • stack_total: Total number of layers in the stack

Do NOT include these fields for non-stacked work.

Human Interventions

Set human_interventions > 0 if:

  • A human corrected, rewrote, or reverted your code.
  • A PR required a fixup commit after your submission.
  • A review comment called out an error in your work.

Aggregation

Aggregated metrics are periodically generated by CI into .agents/aggregated/. The CI status files are in .agents/ci/. Do not hand-edit files in these directories.

Read the full file on GitHub · 100 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 100 lines · 18 tokens per session scan A 2f9246aa2301

Subscribe to this mod's changes

metrics-reporter is a skill published in the GitHub repository d-oit/rust-2026-template (10 stars, last pushed yesterday), licensed MIT. It adds 18 tokens to every session and 738 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.