metrics

metrics is a skill for Claude Code, Codex from asysta-act/agent-flow. It costs 21 tokens per session (3,506 once invoked), scanned A, original, MIT.

A reporting workflow that calculates pipeline results such as success rates, agent effectiveness, and recurring failure patterns, with optional HTML output.

In plain words
What is it for?
Use it to review a chosen number of days of pipeline history and save the results as Markdown, JSON, or HTML.
Why use it?
It turns past pipeline runs into a report so you can see where work succeeds or fails.

Skill for Claude CodeCodex

Part of the agent-flow plugin — 17 skills, 17 agents shipped together

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.

agentmods
npx agentmods add skills/asysta-act/agent-flow/metrics
Any agent
npx skills add asysta-act/agent-flow --skill metrics
Clone the repo
git clone --depth 1 https://github.com/asysta-act/agent-flow

Made for: Claude Code, Codex.

Or install agent-flow, the plugin that ships this one along with the rest of its 17 skills, 17 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/asysta-act/agent-flow/metrics.svg)](https://agentmods.dev/skills/asysta-act/agent-flow/metrics)
Your own site
<a href="https://agentmods.dev/skills/asysta-act/agent-flow/metrics"><img src="https://agentmods.dev/badge/skills/asysta-act/agent-flow/metrics.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,506 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00021 $0.03506
Opus 5 $0.00010 $0.01753
Sonnet 5 $0.00004 $0.00701
Haiku 4.5 $0.00002 $0.00351

Measured 4d ago against content hash 4b039e7cf666, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

metrics 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 4d 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.

skills/metrics/SKILL.md · 347 lines

How it starts

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

Metrics

Input: $ARGUMENTS = optional flags (--period <N>, --output <path>, --format <md|json|html>)

Flag parsing

FORMAT=""        # empty = no flag supplied = trigger interactive prompt path
PERIOD=30
OUTPUT=""
while [[ $# -gt 0 ]]; do
  case "$1" in
    --period)
      PERIOD="$2"; shift 2
      ;;
    --output)
      OUTPUT="$2"; shift 2
      ;;
    --format)
      FORMAT="$2"; shift 2
      [[ "$FORMAT" =~ ^(md|json|html)$ ]] || { echo "Error: --format must be 'md', 'json', or 'html'"; exit 1; }
      ;;
    *)
      shift
      ;;
  esac
done

# Sentinel for interactive-prompt path
NO_FORMAT_FLAG=0
if [ -z "$FORMAT" ]; then
  NO_FORMAT_FLAG=1
  FORMAT="md"   # default render is markdown; prompt fires AFTER render
fi
  • --period N → period in days (default: 30)
  • --output path → output file (default: stdout)
  • --format md|json|html → output format (default: md with interactive prompt)

Configuration

Read Automation Config from CLAUDE.md section ## Automation Config:

  • Issue Tracker: Type, Instance, Project, Bug query, State transitions
  • Source Control: Remote
  • Optionally: Feature Workflow → Feature query
  • Optionally: Metrics → Output, Period (overrides defaults)

0. MCP pre-flight check

Before any pipeline operation, verify MCP tool availability:

  • Read Type from Automation Config (Issue Tracker section)
  • Check that at least one mcp__* tool matching the tracker type is accessible
  • If not accessible → STOP with: "Cannot connect to your {Type} issue tracker. Is the {Type} integration configured? Run /agent-flow:check-setup for diagnostics."

Orchestration

1. Fetch issues

Via MCP server (per Issue Tracker → Type), fetch all issues matching Bug query + Feature query (if it exists). For each issue: ID, title, state, comments, created date.

2. Parse [agent-flow] comments

For each issue, go through comments. Extract:

Triage checkpoint: Regex: ^\[agent-flow\] Triage completed\. Severity: (.+)\. Area: (.+)\.$

Read the full file on GitHub · 347 lines

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. 4d ago First seen · 347 lines · 21 tokens per session scan A 4b039e7cf666

Subscribe to this mod's changes

metrics is a skill published in the GitHub repository asysta-act/agent-flow (12 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 3,506 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-30.

Related

Other skills, from other repositories

html-ppt-zhangzara-broadside

OpenDesign's product-launch announcement and press narrative — the headline, the proof points, and the call to action. Built as a decision-grade marketing & GTM deck for press, community, prospects.

nexu-io/open-design · 52 tokens

geo-prospect

CRM-lite for managing GEO agency prospects and clients. Track leads through the full sales pipeline: Lead → Qualified → Proposal Sent → Won → Lost. Store audit history, notes, deal values, and generate pipeline summaries. Use when user says "prospect", "lead", "client", "pipeline", "crm", "nuovo prospect", "aggiungi…

zubair-trabzada/geo-seo-claude · 87 tokens

drug-design

End-to-end drug discovery pipeline orchestration. Deterministic Python script that auto-chains structure prediction, pocket detection, de novo design, docking, scoring, and ADMET filtering into reproducible workflows.

synthetic-sciences/openscience · 44 tokens

workflow-creation

Create a new Stencila workflow. Use when asked to create, write, scaffold, or set up a workflow directory or WORKFLOW.md file. Covers workflow discovery, duplicate-name checks, ephemeral workflows, WORKFLOW.md frontmatter, DOT pipeline authoring, goals, agents, branching, composition, and validation.

stencila/stencila · 67 tokens

bump-mthds

Move this repo's exact mthds dependency pin to the latest release on PyPI (or a version you name), re-lock, adapt the engine source to whatever the new release broke, run the checks, and write the CHANGELOG entry — stopping before the commit. Use whenever the user says "bump mthds", "update mthds", "upgrade mthds"…

Pipelex/pipelex · 286 tokens

add-migration

Write a migration ledger entry for a configuration schema change in pipelex, so that a user's existing file can be repaired instead of thrown away. Use when make check-migration-schemas (alias cmig) or make check-ledger (alias cl) refuses a change, when the user says "add a migration", "write the ledger entry", "the…

Pipelex/pipelex · 154 tokens