dos-stats

dos-stats is a skill for Claude Code from anthony-chaudhary/dos-kernel. It costs 47 tokens per session (1,425 once invoked), scanned A, original, MIT.

A read-only reporting skill for the DOS kernel's hook activity log. It turns recorded hook events into counts, reason groups, stop blocks, wait-marker usage, and timing information.

In plain words
What is it for?
Reviewing DOS hook observations, checking enforcement activity, and measuring hook decisions and latency.
Why use it?
It makes the kernel's recorded activity easier to inspect and helps confirm whether its built-in hook path is active.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the dos-kernel plugin — 18 skills, 3 hooks, 1 MCP server shipped together

Good fit Reviewing DOS hook observations, checking enforcement activity, and measuring hook decisions and latency.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add anthony-chaudhary/dos-kernel
Claude Code
/plugin install dos-kernel

Made for: Claude Code.

Or install dos-kernel, the plugin that ships this one along with the rest of its 18 skills, 3 hooks, 1 MCP server.

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 dos-stats

README.md
[![agentmods](https://agentmods.dev/badge/skills/anthony-chaudhary/dos-kernel/dos-stats/github.svg)](https://agentmods.dev/skills/anthony-chaudhary/dos-kernel/dos-stats)
Your own site
<a href="https://agentmods.dev/skills/anthony-chaudhary/dos-kernel/dos-stats"><img src="https://agentmods.dev/badge/skills/anthony-chaudhary/dos-kernel/dos-stats/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 dos-stats

Your own site · 80×15
<a href="https://agentmods.dev/skills/anthony-chaudhary/dos-kernel/dos-stats"><img src="https://agentmods.dev/badge/skills/anthony-chaudhary/dos-kernel/dos-stats.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,425 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.
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.00047 $0.01425
Opus 5.5 $0.00019 $0.00570
Sonnet 5.5 $0.00009 $0.00285
Haiku 4.5 $0.00005 $0.00143

Measured 3mo ago against content hash 7a009453cf5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dos-stats 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 3mo 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.

claude-plugin/skills/dos-stats/SKILL.md · 103 lines

How it starts

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

dos-stats — read the kernel's own activity log

The DOS hooks judge your agents from non-forgeable evidence. This skill turns that lens on the kernel itself. Every time a hook fires (before a tool call, after a read, on a stop), the bundled native dos-hook binary writes ONE line to a durable log describing what it decided. This skill folds that log into a report you read. It is the binary's own dogfood: the kernel emits evidence about its own adjudication, the same way it demands evidence from the agents it judges (docs/276).

What writes the log (so the numbers mean something)

The plugin's hooks call the bundled dos-hook binary on every tool call. On each call the binary appends one record to .dos/metrics/observations.jsonl under this workspace — the verb it ran, the decision it reached, the reason class, the dialect, the exit code, how long it took. The log is append-only and local; nothing reads it back until you run this. It is on by default and opt-OUT with DOS_HOOK_METRICS=0.

Step 1 — Fold the log into a report

The binary lives in the plugin bundle, so call it by its bundle path (the same launcher the hooks use picks the right binary for your machine):

"${CLAUDE_PLUGIN_ROOT}/bin/dos-hook" stats --workspace .

A populated run looks like this:

dos-hook stats — /your/project
  observations   4
  tool calls     3 adjudicated — 2 passed untouched (66.7%), 1 intervened (33.3%)
  by verb       posttool=1  pretool=3
  by outcome    deny=1  passthrough=3
  by exit code  0=3  2=1
  pretool rung  admission=1  none=1  provenance=1
  dialect       claude-code=3
  stream state  ADVANCING=1
  delegates     0  (native declined → Python)
  stop blocks   0  (false-done refusals)
  latency (ms)  verb            n     mean    p50    p95    max
                posttool          1    2.29   2.29   2.29   2.29
                pretool           3    5.32   5.32   5.42   5.42

If it says (no observations yet …) that is normal and correct — the log is empty until the hooks have fired at least once. Make any tool call in this project (read a file, run a command) and re-run; the count climbs.

Read the full file on GitHub · 103 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. 3mo ago First seen · 103 lines · 47 tokens per session scan A 7a009453cf5f

Subscribe to this mod's changes

dos-stats is a skill published in the GitHub repository anthony-chaudhary/dos-kernel (21 stars, last pushed 1mo ago), licensed MIT. It adds 47 tokens to every session and 1,425 once invoked, about $0.0002 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-30.

Related

dos-stats compared with skills from other repositories

dos-stats next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dos-statsanthony-chaudhary/dos-kernelSkill211mo agoMITA47Claude Code
rust-checkHmbown/CodeWhaleSkill41k3d agoMITA15Claude Code, Codex
openrig-skillsmvschwarz/openrigSkill9.0ktodayApache-2.0A109Claude Code
debugHmbown/CodeWhaleSkill41k3d agoMITA30Claude Code, Codex
oversight-teammvschwarz/openrigSkill9.0ktodayApache-2.0A117Claude Code, Codex
developing-openrigmvschwarz/openrigSkill9.0ktodayApache-2.0A84Claude Code, Codex
feedbackHmbown/CodewhaleSkill41k2mo agoMITA0Claude Code, Codex