Agent skill

Ca Metrics

by arbiterForge in arbiterForge/codeArbiter

Read-only 3-metric governance glance — override rate, small-lane rate, sprint low-confidence ratio — each with a trend arrow vs.

AGPL-3.0Auto-check passed

Install Ca Metrics

skills CLI
$ npx skills add arbiterForge/codeArbiter --skill ca-metrics -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install arbiterForge/codeArbiter ca-metrics --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/arbiterForge/codeArbiter.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ca-pi/skills/ca-metrics .claude/skills/ca-metrics && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ca-metrics
GitHub stars
147
Token cost
~966 tokens
SKILL.md length
460 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Read-only 3-metric governance glance — override rate, small-lane rate, sprint low-confidence ratio — each with a trend arrow vs.

  • Works in 3 steps: Invoke the helper. Call the thin entry… → Render the glance. Parse the returned… → State the window. Append one line naming…
  • SKILL.md covers Flow, Hard gate and When NOT to use
  • Calls python3, python and git

What it does

Ca Metrics is an agent skill from arbiterForge/codeArbiter. Read-only 3-metric governance glance — override rate, small-lane rate, sprint low-confidence ratio — each with a trend arrow vs. the prior 20-commit window.

Its SKILL.md is about 970 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Python. The repository describes itself as: Open-source governance and hard gates for AI coding agents across Claude Code, Codex CLI, and Pi. The licence is AGPL-3.0.

Example prompts

  • “/ca-metrics”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Invoke the helper. Call the thin entry hook metrics.py, which wraps
  2. Render the glance. Parse the returned JSON dict. Present exactly three lines,
  3. State the window. Append one line naming the window size used, e.g.

What it can do on your machine

Read from SKILL.md and the folder at commit cd5b0a0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python3
    • python
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ca Metrics loads about 966 tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 460 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~966

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from arbiterForge/codeArbiter at commit cd5b0a0, republished under its AGPL-3.0 licence (© arbiterForge). 460 words, ~966 tokens.

Download SKILL.mdSave it as .claude/skills/ca-metrics/SKILL.md (or your agent's skills folder).
name
ca-metrics
description
Read-only 3-metric governance glance — override rate, small-lane rate, sprint low-confidence ratio — each with a trend arrow vs. the prior 20-commit window.
argument-hint
[--window N]

/ca-metrics — governance trend glance

A bare-numbers summary of the three governance-health metrics that _metricslib.py tracks across commit windows. Each metric shows its value for the current 20-commit window and a direction arrow (↑/↓/→) relative to the immediately preceding window.

This is NOT a second /ca-audit packet. It prints numbers and arrows only — no verbatim override lines, no commit list, no file write. Use it to spot a trend at a glance; reach for /ca-audit when you need the full evidentiary packet.

Flow

  1. Invoke the helper. Call the thin entry hook metrics.py, which wraps compute from _metricslib.py. Resolve the interpreter once by presence — PY=python3; { command -v python3 >/dev/null 2>&1 && python3 --version >/dev/null 2>&1; } || PY=python — never python3 … || python …, which reruns the helper on any nonzero exit and reports the second run's code instead of the first's (#577). Pass <project-root> as --root. If --window N was supplied, pass it through as --window N; otherwise omit it (the helper applies the default of 20).

    "$PY" "<plugin-root>/hooks/metrics.py" --root "<project-root>"

    ensure_ascii note — do not remove this. metrics.py calls json.dumps with its default ensure_ascii=True. This ASCII-escapes the arrow glyphs (↑↓→) in the subprocess stdout, which avoids a UnicodeEncodeError on Windows cp1252 consoles that cannot encode those code-points raw. The rendered output you present to the user (step 2 below) uses the real glyphs — they are written by the assistant, not piped through the subprocess stdout. Do NOT add ensure_ascii=False here.

    With a custom window size:

    "$PY" "<plugin-root>/hooks/metrics.py" --root "<project-root>" --window N

    Replace N with the integer the user supplied.

  2. Render the glance. Parse the returned JSON dict. Present exactly three lines, one per metric, in this order:

    override rate:          <current>  <arrow>  (prior: <prior>)
    small-lane rate:        <current>  <arrow>  (prior: <prior>)
    sprint low-conf ratio:  <current>  <arrow>  (prior: <prior>)
    • Use the real glyphs ↑, ↓, → in your message (not the JSON-escaped forms).
    • For sprint_low_conf_ratio, the current or prior value may be the string "n/a" — render it literally (e.g. n/a ↑).
    • ↑ on override_rate and sprint_low_conf_ratio is a worsening signal; state this briefly below the table so the reader does not have to guess.
  3. State the window. Append one line naming the window size used, e.g. Window: 20 commits (default) or Window: N commits (--window N).

Show full SKILL.md (127 more words)Show less

Hard gate

  • Read-only. MUST NOT write, create, or modify any file. MUST NOT stage or commit. git status MUST be unchanged after a run.
  • Emits ONLY the fixed 3-metric glance: override_rate, small_lane_rate, sprint_low_conf_ratio. MUST NOT emit verbatim override log lines, verbatim triage entries, commit lists, or any other content from the governance logs.
  • MUST NOT require /ca-init to have been run. The helper degrades gracefully on absent logs (counts return 0 / ratio returns "n/a"); surface the degraded values as-is rather than blocking.
  • If the helper subprocess fails entirely (import error, Python not found), report the error and stop — do not fabricate metric values.

When NOT to use

  • Full governance packet with verbatim overrides and audit trail → /ca-audit.
  • Live project state (active sprint, open confirms, hook health) → /ca-status.

© arbiterForge, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/ca-pi/skills/ca-metrics of arbiterForge/codeArbiter.

Open the folder on GitHubat commit cd5b0a0

Compare with similar skills

Ca Metrics next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ca Metrics compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ca Metrics this skillarbiterForge/codeArbiter147—~966Automated safety check: PassAGPL-3.0
MCP Server Builderanthropics/skills180k62 repos~2.3kAutomated safety check: PassApache-2.0
PDF Processinganthropics/skills180k48 repos~2kAutomated safety check: PassProprietary
NotebookLM Research AssistantPleasePrompto/notebooklm-skill7.8k13 repos~2.4kAutomated safety check: NotesMIT
Manim Video Productionbrowser-use/video-use28k6 repos~3kAutomated safety check: PassMIT
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 62 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • PDF Processing

    anthropics/skills

    Official

    Handles everyday PDF jobs in Python and on the command line: extract text and tables, merge, split, rotate, watermark, fill forms, encrypt and OCR.

    180k GitHub starsUsed in 48 repos~2k tokens
    Documents & OfficeAuto-check passed
  • NotebookLM Research Assistant

    PleasePrompto/notebooklm-skill

    Lets Claude Code ask questions of your Google NotebookLM notebooks through browser automation and return answers grounded in your uploaded sources.

    7.8k GitHub starsUsed in 13 repos~2.4k tokens
    Knowledge ManagementAuto-check: notes
  • Manim Video Production

    browser-use/video-use

    Produces math and technical explainer videos with Manim Community Edition: concept animations, equation derivations, algorithm walkthroughs and data stories.

    28k GitHub starsUsed in 6 repos~3k tokens
    Media & CreativeAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • PPT Master

    hugohe3/ppt-master

    Generates editable PowerPoint decks, rebuilds slides from images, fills .pptx templates and polishes existing presentations through routed workflows.

    58k GitHub starsUsed in 1 repo~2.5k tokens
    Documents & OfficeAuto-check passed

More from arbiterForge/codeArbiter

All 12 skills in this repo
  • Sandbox Claude Inside

    arbiterForge/codeArbiter

    Run Claude Code INSIDE a ca-sandbox box (--with-claude). An agent skill from arbiterForge/codeArbiter.

    147 GitHub stars~2.4k tokensUpdated 2 days ago
    Auto-check passed
  • Ca Adr

    arbiterForge/codeArbiter

    Record user-decided ADRs or inspect their health read-only. An agent skill from arbiterForge/codeArbiter.

    147 GitHub stars~1.7k tokensUpdated 2 days ago
    Auto-check passed
  • Ca Conflict

    arbiterForge/codeArbiter

    Stop everything and surface a rule conflict — persona vs. An agent skill from arbiterForge/codeArbiter.

    147 GitHub stars~574 tokensUpdated 2 days ago
    Auto-check passed
  • Ca Feature

    arbiterForge/codeArbiter

    Start a feature: brainstorm a spec, get it approved, then drive it test-first through the pipeline.

    147 GitHub stars~2.2k tokensUpdated 2 days ago
    Auto-check passed
  • Ca Init

    arbiterForge/codeArbiter

    Opt this repo into codeArbiter — scaffold the root-level .codearbiter/ state store.

    147 GitHub stars~1.3k tokensUpdated 2 days ago
    Auto-check passed
  • Ca Override

    arbiterForge/codeArbiter

    Sanctioned, logged bypass of a gate or hard rule — one audit line, then proceed.

    147 GitHub stars~1.5k tokensUpdated 2 days ago
    Auto-check passed

Works with

Questions about Ca Metrics

What does Ca Metrics do?

Read-only 3-metric governance glance — override rate, small-lane rate, sprint low-confidence ratio — each with a trend arrow vs. Ca Metrics is an agent skill from arbiterForge/codeArbiter. Read-only 3-metric governance glance — override rate, small-lane rate, sprint low-confidence ratio — each with a trend arrow vs.

How do I install Ca Metrics in Claude Code?

Run `npx skills add arbiterForge/codeArbiter --skill ca-metrics -a claude-code`. Or copy the skill folder (plugins/ca-pi/skills/ca-metrics in arbiterForge/codeArbiter) into .claude/skills/ca-metrics in your project. Claude Code loads it when a task matches its description.

How do I install Ca Metrics in Codex?

Run `npx skills add arbiterForge/codeArbiter --skill ca-metrics -a codex`. Or copy the skill folder (plugins/ca-pi/skills/ca-metrics in arbiterForge/codeArbiter) into .agents/skills/ca-metrics in your project. Codex loads it when a task matches its description.

Can I use Ca Metrics in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add arbiterForge/codeArbiter --skill ca-metrics -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ca-metrics, .gemini/skills/ca-metrics, .github/skills/ca-metrics and .opencode/skills/ca-metrics in your project.

What does Ca Metrics need to run?

Going by SKILL.md and its folder, Ca Metrics needs the command-line tools its instructions call (python3, python and git). Our summary lists: Python 3.

Does Ca Metrics access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Ca Metrics safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Ca Metrics use?

Ca Metrics is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ca Metrics use?

About 966 tokens (SKILL.md is roughly 3.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Ca Metrics?

Skills that share tags, products or a category with Ca Metrics: MCP Server Builder (anthropics/skills, 180k stars), PDF Processing (anthropics/skills, 180k stars), NotebookLM Research Assistant (PleasePrompto/notebooklm-skill, 7.8k stars) and Manim Video Production (browser-use/video-use, 28k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ca Metrics?

arbiterForge (a GitHub organization) maintains it in arbiterForge/codeArbiter, which has 147 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 5, 2026.

Source: arbiterForge/codeArbiter on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.