metrics-reporter

metrics-reporter is a skill for Claude Code, Codex from d-oit/rust-2026-template. It costs 18 tokens per session (1,406 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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for metrics-reporter

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 1,406 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.01406
Opus 5.5 $0.00007 $0.00562
Sonnet 5.5 $0.00004 $0.00281
Haiku 4.5 $0.00002 $0.00141

Measured 16d ago against content hash 5e1eec73e6d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 16d 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 · 144 lines

How it starts

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

Skill: metrics-reporter

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.

Event schema

Schema of record: the Event File Format in .agents/ORCHESTRATION.md (gated by the SkillValidation/SkillEvals checks). CI validates a different, legacy line format (.agents/metrics.jsonl, required fields timestamp, agent, skill, success — see the "Validate agent metrics schema" step in .github/workflows/ci.yml), but that file is legacy: dora-report reads it as its --agent-metrics input and no workflow appends to it anymore — since the cutover to event files it only holds its pre-cutover lines. New records go to event files.

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: One immutable JSON document per file, per the .agents/ORCHESTRATION.md schema. Required fields:

    cat > "${EVENT_FILE}" <<EOF
    {
      "event_id": "$(date -u +%s)-${AGENT_NAME:-unknown}",
      "task_id": "${TASK_ID:-$(date -u +%s)}",
      "parent_task_id": ${PARENT_TASK_ID:-null},
      "workflow_id": ${WORKFLOW_ID:-null},
      "agent_id": "${AGENT_NAME:-unknown}",
      "agent_type": "${AGENT_TYPE:-unknown}",
      "skill": "${SKILL_NAME:-unknown}",
      "skill_version": "${SKILL_VERSION:-0.0.0}",
      "status": "${STATUS:-success}",
      "started_at": "${STARTED_AT:-$(date -u +%Y-%m-%dT%H:%M:%SZ)}",
      "finished_at": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
      "success": ${SUCCESS:-true},
      "human_interventions": ${HUMAN_INTERVENTIONS:-0},
      "git_branch": "$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo unknown)",
      "git_sha": "$(git rev-parse --short HEAD 2>/dev/null || echo unknown)",
      "pr_number": ${PR_NUMBER:-null},
      "artifacts": [],
      "notes": "${NOTES:-}"
    }
    EOF
    

Read the full file on GitHub · 144 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. 16d ago Changed · +47 lines 5e1eec73e6d8
  2. 2mo ago Changed · -3 lines ea0d6ebf2872
  3. 3mo 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 (15 stars, last pushed yesterday), licensed MIT. It adds 18 tokens to every session and 1,406 once invoked, about $0.0001 per session on Opus 5.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.

Related

metrics-reporter compared with skills from other repositories

metrics-reporter next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
metrics-reporterd-oit/rust-2026-templateSkill15yesterdayMITA18Claude Code, Codex
review-backendAndreiBozantan/svelte-axum-templateSkill22mo agoMITA54Claude Code, Codex
yada-yada-yadaAndreiBozantan/svelte-axum-templateSkill22mo agoMITA81Claude Code, Codex
fix-issueAndreiBozantan/svelte-axum-templateSkill22mo agoMITA65Claude Code, Codex
review-frontendAndreiBozantan/svelte-axum-templateSkill22mo agoMITA62Claude Code, Codex
make-it-soAndreiBozantan/svelte-axum-templateSkill22mo agoMITA55Claude Code, Codex
triage-review-findingAndreiBozantan/svelte-axum-templateSkill22mo agoMITA59Claude Code, Codex