Estimate token counts for prompt files. Wraps the token-count script for measuring agents, skills, commands, references, or any text file. Use when the user wants to check prompt size, compare token budgets, or measure files before/after optimization.
From provenpx claudepluginhub mjmorales/claude-prove --plugin proveThis skill uses the workspace's default tool permissions.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Analyzes BMad project state from catalog CSV, configs, artifacts, and query to recommend next skills or answer questions. Useful for help requests, 'what next', or starting BMad.
Estimate token counts for files using a regex-based heuristic tokenizer. Works on any text file — not limited to prove prompts.
$PLUGIN_DIR/scripts/token-count.py
Where $PLUGIN_DIR is this plugin's root directory.
Run the script from the user's project root. Pass glob patterns or file paths as positional arguments.
python3 "$PLUGIN_DIR/scripts/token-count.py" <patterns...> [flags]
Positional arguments are glob patterns or literal file paths. Multiple patterns can be combined.
| Flag | Effect |
|---|---|
--sort tokens | Sort by token count descending (default) |
--sort name | Sort alphabetically by path |
--sort lines | Sort by line count descending |
--json | Machine-readable JSON output |
--no-strip | Include YAML frontmatter in count (stripped by default) |
# All markdown files
python3 "$PLUGIN_DIR/scripts/token-count.py" "**/*.md"
# Single file
python3 "$PLUGIN_DIR/scripts/token-count.py" agents/llm-prompt-engineer.md
# Multiple patterns
python3 "$PLUGIN_DIR/scripts/token-count.py" "agents/**/*.md" "skills/**/SKILL.md"
# JSON output for scripting
python3 "$PLUGIN_DIR/scripts/token-count.py" "**/*.md" --json
--no-strip).--- markers is excluded by default since Claude Code doesn't send it as prompt content.