token-formatter

token-formatter is a skill for Claude Code from hackermanishackerman/claude-skills-vault. It costs 37 tokens per session (2,755 once invoked), scanned A, original, MIT.

A text-formatting guide that shortens documentation, Markdown, and other text while keeping its essential information.

In plain words
What is it for?
Use it to compress documentation, prompts, and notes for lower token use or more efficient AI input.
Why use it?
It reduces repeated wording and unnecessary context when text must fit within limited space or be processed by an AI model.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/username/Documents/Projects/MyApp/config/settings.json.

Good fit Use it to compress documentation, prompts, and notes for lower token use…

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

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 token-formatter

README.md
[![agentmods](https://agentmods.dev/badge/skills/hackermanishackerman/claude-skills-vault/token-formatter.svg)](https://agentmods.dev/skills/hackermanishackerman/claude-skills-vault/token-formatter)
Your own site
<a href="https://agentmods.dev/skills/hackermanishackerman/claude-skills-vault/token-formatter"><img src="https://agentmods.dev/badge/skills/hackermanishackerman/claude-skills-vault/token-formatter.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,755 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.00037 $0.02755
Opus 5 $0.00018 $0.01378
Sonnet 5 $0.00007 $0.00551
Haiku 4.5 $0.00004 $0.00276

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

Security

Grade A, and why

token-formatter 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 6d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/compress.py, scripts/count_tokens.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/skills/token-formatter/SKILL.md · 465 lines

How it starts

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

Token Formatter Skill

Convert verbose documentation, markdown, and text files into token-efficient formats while preserving essential information.

When to Use

Invoke this skill when:

  • User wants to reduce token count in documentation
  • User needs to compress markdown/text for LLM context
  • User asks to optimize content for AI consumption
  • Commands: /token-format, /compress, /toon

Token Reduction Rules

1. Remove Redundancy

Before:

## Introduction

In this document, we will explore and discuss the various different ways
that you can implement authentication in your application. We will cover
multiple approaches and methods that are available to developers.

After:

## Auth Implementation

Methods covered:
- JWT tokens
- Session-based
- OAuth2

2. Use Symbols & Abbreviations

Verbose Compressed
function fn
return ret
string str
number num
boolean bool
array arr
object obj
parameter param
configuration config
environment env
authentication auth
authorization authz
application app
database db
repository repo
directory dir
reference ref
implementation impl
documentation docs
information info
example ex
required req
optional opt
default def
maximum max
minimum min
and &
or |
with w/
without w/o
versus vs
approximately ~
greater than >
less than <
equals =
not equals !=
therefore =>
because bc

3. Compress Lists

Before:

The following features are included:
- User authentication with JWT tokens
- Role-based access control for authorization
- Password hashing using bcrypt algorithm
- Session management with Redis store
- Two-factor authentication support

Read the full file on GitHub · 465 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 465 lines · 37 tokens per session scan A fd5b2696597c

Subscribe to this mod's changes

token-formatter is a skill published in the GitHub repository hackermanishackerman/claude-skills-vault (2 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 2,755 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

swarm-pr-review

Run a graph-guided, tool-augmented PR review using context packing, parallel exploration, mandatory repository-agnostic risk-family coverage with dispatch scaled to diff size and risk, independent reviewer validation, critic challenge, and metrics writeback. Use for deep pull request review with low false-positive…

ZaxbyHub/opencode-swarm · 91 tokens

swarm-plan

Full execution protocol for MODE: PLAN -- plan creation, external plan ingestion, QA gate persistence, task granularity, and traceability checks.

ZaxbyHub/opencode-swarm · 32 tokens

loop

Full execution protocol for MODE: LOOP — the compound-engineering loop: brainstorm → plan → build → review → improve, iterating under defense-in-depth stop conditions with generator/critic separation, durable resumable state, and mandatory compounding learning capture. Loaded on demand by the architect when the loop…

ZaxbyHub/opencode-swarm · 72 tokens

council

Full execution protocol for MODE: COUNCIL -- General Council research, parallel member dispatch, disagreement handling, and synthesis.

ZaxbyHub/opencode-swarm · 28 tokens

deep-research

Full execution protocol for MODE: DEEPRESEARCH — orchestrator-worker deep research over external sources: decompose, iterative websearch/webfetch retrieval, parallel sme synthesis, dual-reviewer claim verification, critic challenge of high-stakes claims, and a cited report. Loaded on demand by the architect when the…

ZaxbyHub/opencode-swarm · 82 tokens

safe-extraction

Apply when extracting code from a large monolith file into submodules. Covers barrel re-exports, internals DI seam proxy patterns, CI invariant allowlist updates, and cross-file test verification. Prevents CI failures, broken imports, and test regressions from code extraction.

ZaxbyHub/opencode-swarm · 60 tokens