token-optimizer — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited token-optimizer (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A skill for extracting the highest-quality, most complete responses from Claude using the fewest possible input tokens. Every technique here is tested, practical, and immediately applicable.
Information Density > Verbosity Claude processes meaning, not words. A 40-token instruction that is precise always beats a 200-token instruction that is vague.
The goal is not to "trick" Claude — it is to communicate with maximum clarity and minimum redundancy so Claude spends its compute on output, not parsing.
Strip all filler. Every word must earn its place.
Before (47 tokens):
Could you please analyze the following code and let me know what might be wrong
with it and also suggest how I could fix the issues you find?After (9 tokens):
debug+fix: [code]Compression patterns:
| Verbose Phrase | Compressed Form |
|---|---|
| "Please analyze and explain" | analyze: |
| "Write a detailed explanation of" | explain: |
| "Can you help me understand" | clarify: |
| "Please review and improve" | refine: |
| "Give me a step by step guide" | steps: |
| "Summarize the key points of" | summarize: |
| "Compare X and Y in detail" | compare: X vs Y |
| "Generate multiple options for" | options(5): |
Read references/compression-patterns.md for 50+ compression shortcuts across categories.
Unstructured output is the #1 source of wasted tokens in responses. Explicit format instructions cut response bloat by 30–50%.
Always specify:
respond in: bullet points / table / JSON / numbered list / prosemax: 200 words or max: 5 bulletsno intro sentence. no conclusion. no rephrasing my question.Anti-filler instruction (add to any prompt):
Rules: no preamble, no "Great question!", no restating my prompt, no filler conclusions.
Start directly with the answer.Power combo — role + format + constraint in one line:
You are [role]. Rules: [constraint 1], [constraint 2]. Format: [output format].Example:
You are a senior Python engineer. Rules: no explanations unless asked, production-ready
code only, include error handling. Format: code block only.Read references/output-formats.md for format templates by use case.
XML tags are the single most underused technique in prompt engineering. They reduce ambiguity, eliminate clarification rounds, and let Claude parse intent faster.
Basic structure:
<context>What Claude needs to know</context>
<task>What Claude must do</task>
<constraints>What Claude must NOT do</constraints>
<format>How the output should look</format>Why this saves tokens:
Advanced: State injection for agents
<session_state>
user_goal: [goal]
completed: [steps done]
pending: [next step]
constraints: [rules still active]
</session_state>
<task>Continue from pending step only. Do not repeat completed steps.</task>Bundle multiple tasks into a single, structured prompt instead of sending separate messages.
Instead of 4 messages:
Message 1: Explain X
Message 2: Now give me an example
Message 3: Now make it simpler
Message 4: Now summarizeOne dense prompt:
For X:
1. explain (2 sentences max)
2. one concrete example
3. ELI5 version
4. one-line summary
Deliver all 4 in order. No filler between sections.Task chaining syntax:
Step 1 → [task A] → output feeds Step 2 → [task B] → final output: [format]Tell Claude exactly what NOT to do. This is as important as telling it what to do.
Standard negative block (copy-paste ready):
Do NOT:
- Repeat or rephrase my question
- Add an introduction or conclusion paragraph
- Use phrases like "Certainly!", "Great!", "Of course!", "Sure!"
- Ask clarifying questions unless the task is impossible without them
- Add disclaimers unless specifically relevant
- Pad the response to seem thoroughAggressive compression mode:
Respond in the minimum tokens possible. Zero filler. Direct answers only.Include one perfect input→output example inside your prompt. This is the fastest way to align Claude's output style without lengthy instructions.
Template:
Task: [description]
Example:
Input: [sample input]
Output: [exact output style you want]
Now do the same for:
Input: [your actual input]This technique works because Claude pattern-matches on the example. One well-chosen example replaces 100 tokens of style instructions.
Read references/one-shot-examples.md for ready-made examples across 10 domains.
Claude has no memory between API calls. In long conversations, token costs compound.
Conversation pruning rules:
[CONTEXT SUMMARY]
Task: building an e-commerce site
Done: homepage, product listing, cart
Current: checkout form
Stack: HTML/CSS/JS, no frameworks
Rules: mobile-first, WhatsApp order routing
[END CONTEXT]This replaces 2,000+ tokens of history with ~60 tokens of state.
Read references/system-prompt-templates.md for 10 production-ready system prompts optimized for:
Each template is under 200 tokens and follows all 5 pillars.
| Technique | Avg Token Savings |
|---|---|
| Prompt compression | 40–70% input reduction |
| Output format control | 30–50% output reduction |
| XML structuring | Eliminates 2–3 clarification rounds |
| Instruction bundling | 60–80% fewer messages needed |
| Negative instructions | 20–35% shorter responses |
| One-shot examples | Replaces ~100 tokens of style description |
| Context pruning | 70–90% history token reduction |
Combined effect: A fully optimized session uses 3–8x fewer tokens than an unoptimized session for the same output quality.
For the fastest results, apply this formula to any prompt:
[ROLE (1 line)] + [TASK (compressed)] + [FORMAT (explicit)] + [CONSTRAINTS (negative)]Example:
You are a copywriter. Write 3 email subject lines for a SaaS product launch.
Format: numbered list. No explanations. Max 10 words each. Punchy and curiosity-driven.That is 34 tokens. Without optimization, this same request often arrives as 120+ tokens with the same output quality.
| File | Purpose |
|---|---|
SKILL.md | This file — core techniques |
references/compression-patterns.md | 50+ shorthand compression patterns by category |
references/output-formats.md | Format templates for every output type |
references/system-prompt-templates.md | 10 production-ready system prompts |
references/one-shot-examples.md | Ready-made examples for 10 domains |
references/context-management.md | Deep guide on conversation state and history pruning |
examples/before-after.md | 20 real before/after prompt comparisons with token counts |
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.