context-report

context-report is a command for Claude Code from athola/claude-night-market. It costs 10 tokens per session (1,005 once invoked), scanned A, original, MIT.

A report generator for measuring and reviewing the size and structure of directories containing skills, which are instruction packages for coding agents.

In plain words
What is it for?
Use it to analyze an entire skills directory or plugin, estimate a skill file’s token use, inspect dependency impact, and plan modularization.
Why use it?
It shows where large files and optimization work are concentrated when a collection of skills uses too much context space.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths.

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 abstract plugin — 16 skills, 17 commands, 5 agents, 4 hooks shipped together

Good fit Use it to analyze an entire skills directory or plugin, estimate a skill file’s token use, inspect dependency impact, and plan modularization.

Compare 6 commands 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 athola/claude-night-market
Claude Code
/plugin install abstract

Made for: Claude Code.

Or install abstract, the plugin that ships this one along with the rest of its 16 skills, 17 commands, 5 agents, 4 hooks.

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 context-report

README.md
[![agentmods](https://agentmods.dev/badge/commands/athola/claude-night-market/context-report/github.svg)](https://agentmods.dev/commands/athola/claude-night-market/context-report)
Your own site
<a href="https://agentmods.dev/commands/athola/claude-night-market/context-report"><img src="https://agentmods.dev/badge/commands/athola/claude-night-market/context-report/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 context-report

Your own site · 80×15
<a href="https://agentmods.dev/commands/athola/claude-night-market/context-report"><img src="https://agentmods.dev/badge/commands/athola/claude-night-market/context-report.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,005 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.00010 $0.01005
Opus 5 $0.00005 $0.00502
Sonnet 5 $0.00002 $0.00201
Haiku 4.5 $0.00001 $0.00101

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

Security

Grade A, and why

context-report 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 10d 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.

plugins/abstract/commands/context-report.md · 154 lines

How it starts

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

Context Optimization Report

Generates a detailed context window optimization report for all skills in a directory. Identifies large files, categorizes by size, and provides actionable optimization recommendations.

When To Use

Use this command when you need to:

  • Assessing overall skill portfolio efficiency
  • Pre-publish verification before releasing plugins
  • Planning modularization priorities across many skills
  • Identifying large files that need optimization

When NOT To Use

Avoid this command if:

  • Analyzing single skill - use /analyze-skill instead
  • Evaluating skill quality - use /skills-eval instead

Usage

# Analyze skills directory
/context-report skills/

# Analyze specific plugin's skills
/context-report ~/.claude/plugins/my-plugin/skills

# Full statistics with detailed breakdown
/context-report skills/ --stats

# Estimate tokens for a single skill file
/context-report --estimate skills/my-skill/SKILL.md

# Estimate with dependency analysis
/context-report --estimate skills/my-skill/SKILL.md --include-dependencies

What It Reports

Size Categories

Skills are categorized by byte size for optimization priority:

Category Size Range Recommendation
Small < 2KB Optimal, no action needed
Medium 2-5KB Good, monitor growth
Large 5-15KB Consider modularization
XLarge > 15KB Should modularize

Report Contents

  • Total skills count: Number of SKILL.md files found
  • Total size: Combined bytes across all skills
  • Estimated tokens: Aggregate context impact
  • Size distribution: Breakdown by category
  • Individual file details: Per-file metrics (in detailed mode)

Examples

/context-report skills/
# Output:
# Context Optimization Analysis
# ==================================================
# Total Skills: 12
# Total Size: 45,230 bytes
# Estimated Tokens: 11,842
#
# Size Distribution:
#   Small (<2KB):   8 files
#   Medium (2-5KB): 3 files
#   Large (5-15KB): 1 files
#   XLarge (>15KB): 0 files
#
# Recommendation: 1 file(s) exceed 5KB
# Consider using progressive disclosure or modularization

/context-report skills/ --report
# Adds detailed per-file breakdown:
# Path                              Size     Category    Tokens
# ----------------------------------------------------------------
# skills-eval/SKILL.md             4,521    medium      1,180
# modular-skills/SKILL.md          3,892    medium        985
# ...

Read the full file on GitHub · 154 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. 10d ago First seen · 154 lines · 10 tokens per session scan A dfa8359a7374

Subscribe to this mod's changes

context-report is a command published in the GitHub repository athola/claude-night-market (337 stars, last pushed today), licensed MIT. It adds 10 tokens to every session and 1,005 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.