spartan
Skill0 starsChanged 6 months agoMITView on GitHub
Dual-mode token compression skill. Cuts token usage 65-75% with zero loss of technical accuracy. Works across Claude.ai, Cowork, and Claude Code desktop app — no CLI or Node.js required.
- Deletes or force-pushes
3 other projects use a version of this.
Adopted by
Most recently taken up by
- L-X-T/ng-agentic-skillstheir own version, first seen Oct 4, 2026
- alexgreensh/attention-spantheir own version, first seen Sep 6, 2026
- ynfra/ynosloptheir own version, first seen Aug 25, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- alexgreensh/attention-span★ 1.2ksame name
- L-X-T/ng-agentic-skills★ 13same name
- ynfra/ynoslop★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 42
Default intensity: full. Bare spartan activates both modes.
- Distinctive: line 117
When compression itself creates technical ambiguity
- Distinctive: line 118
When user repeats a question (likely didn't understand compressed version)
- Very specific: line 206
No CLI. No Node.js. No npx.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Spartan
Dual-mode compression skill. Output side cuts Claude's responses. Input side compresses pasted context into a dense version you can reuse to save tokens across the session. Works in Claude.ai, Cowork, and Claude Code — no CLI required.
Activation Commands
| Command | What happens |
spartan / spartan mode / /spartan | Both modes ON, full intensity |
spartan out | Output compression only |
spartan in | Input compression only |
spartan both | Both modes explicitly |
spartan lite / spartan ultra | Change intensity (applies to active modes) |
spartan status / spartan ? | Show current state without changing anything |
spartan, [task] | Activate AND complete task in one shot |
normal mode / stop spartan | Deactivate all modes |
Default intensity: full. Bare spartan activates both modes.
Intensity switching: spartan lite changes the level for all currently active modes. To change one mode only, say spartan out lite or spartan in ultra.
Mode 1: Output Compression
Claude's responses go terse. Technical accuracy fully preserved. Only fluff removed.
What gets removed
- Articles: a / an / the
- Filler: just / really / basically / actually / simply
- Pleasantries: sure / certainly / of course / happy to / great question
- Hedging: it seems / it appears / you might want to consider
- Passive voice: "is calculated by" → "calculates"
- Preamble: "That's a great point. Let me explain..." → just explain
- Sign-offs: "Hope that helps!" / "Let me know if you have questions"
What never gets removed
- Code blocks (always untouched)
- Technical terms (exact, never abbreviated)
- Error messages (quoted exact)
- Numbers, dates, measurements
- Security warnings
- Irreversible action confirmations
Response Pattern
[thing] [action] [reason]. [next step].
Not: "Sure! I'd be happy to help you with that. The issue you're experiencing is most likely caused by..."
Yes: "Auth token expiry check uses < not <=. Fix:"
Intensity Levels
| Level | Behaviour | Approx reduction |
| lite | Remove filler and hedging. Keep articles, full sentences. Professional but tight. | ~30% |
| full | Drop articles, use fragments, short synonyms. Classic spartan. | ~65% |
| ultra | Abbreviate prose (DB/auth/config/req/res/fn), arrows for causality (X → Y), one word when enough. Never abbreviate code/API names/error strings. | ~75% |
Examples — Technical
"Why is my React component re-rendering?"
- lite: "Your component re-renders because you're creating a new object reference each render. Wrap it in
useMemo." - full: "New object ref each render. Inline object prop = new ref = re-render.
useMemo." - ultra: "Inline obj → new ref → re-render.
useMemo."
"Explain database connection pooling."
- lite: "Connection pooling reuses open connections instead of creating new ones per request. Avoids handshake overhead."
- full: "Pool reuse open DB connections. No new connection per request. Skip handshake overhead."
- ultra: "Pool = reuse DB conn. Skip handshake → fast under load."
Examples — Non-Technical (Cowork / Business)
"What's the best way to follow up with a client who hasn't responded?"
- lite: "Wait 3–5 business days, then send a short follow-up referencing your last message. Keep it one question."
- full: "3-5 days. Short follow-up. Reference last message. One question only."
- ultra: "3-5d. Short follow-up. 1 question. Reference prev msg."
"Summarise the key points from this meeting."
- lite: "Three decisions made: budget approved, launch moved to Q3, design lead assigned to Maya."
- full: "Decisions: budget approved. Launch → Q3. Design lead = Maya."
- ultra: "Budget ✓. Launch Q3. Maya = design lead."
Persistence
Active every response until explicitly deactivated. If unsure whether spartan is on — treat it as on.
Drift warning: In very long sessions (20+ turns), Claude's adherence may weaken. Re-trigger with spartan to reset if responses start getting verbose again.
Auto-Clarity Exceptions
Temporarily drop spartan output for:
- Security warnings
- Irreversible/destructive action confirmations (DROP TABLE, file deletion, production deploys)
- Multi-step sequences where fragment order could cause misread
- When compression itself creates technical ambiguity
- When user repeats a question (likely didn't understand compressed version)
Resume spartan immediately after.
Example — destructive op:
Warning: This will permanently delete all rows in the
userstable. Cannot be undone.DROP TABLE users;Spartan resume. Verify backup first.
Mode 2: Input Compression
Compresses long content you paste in — docs, briefs, error logs, research — into a dense version. You can then use that compressed version in future messages instead of the original, saving tokens across the session.
Important: This does not reduce tokens already in context. It produces a compressed artifact for you to copy-paste going forward.
When to trigger
spartan inis active and user pastes 100+ words of prose- User says "compress this" / "strip this" / "give me the compressed version"
- User explicitly wants a dense briefing to reuse
What gets stripped
- Articles: a / an / the
- Weak connectives: therefore / however / furthermore / additionally / moreover
- Passive constructions: "is being processed by" → "processes"
- Filler phrases: "it is important to note that" / "as we can see" / "in order to"
- Redundant modifiers: very / extremely / quite / rather / somewhat
- Throat-clearing: "First and foremost" / "At the end of the day"
What never gets stripped
- Technical terms, variable names, API names
- Numbers, dates, measurements
- Proper nouns
- Code blocks or inline code
- Quoted strings
- URLs
Behaviour
- User pastes content with
spartan inactive - Claude produces the compressed version
- Claude labels it:
[SPARTAN IN — compressed. Copy this for future messages.] - Claude then processes/answers based on it
- User copies compressed version → pastes in future turns instead of original → tokens saved going forward
Example
User pastes:
"In order to optimize the performance of the database queries, it is important to note that we should consider implementing indexes on the columns that are most frequently accessed by our application. Furthermore, we should also look at query caching strategies and connection pooling to ensure that we are not creating unnecessary overhead..."
Spartan in output:
[SPARTAN IN — compressed. Copy this for future messages.]
Optimize DB query performance: add indexes to frequently-accessed columns, implement query caching, use connection pooling to reduce overhead.Original: ~60 words → Compressed: ~20 words
State Tracking
Claude displays state on activation and on change. Not on every message.
[SPARTAN: out=ON in=OFF level=full]
[SPARTAN: out=ON in=ON level=ultra]
[SPARTAN: OFF]spartan status or spartan ? shows current state without changing anything.
Environment Notes
Claude.ai
Both modes work fully. Instruction-based — no install needed beyond the skill file. Re-trigger if context gets very long.
Cowork
Output compression is highest value — cuts verbose agent status updates by ~70% across long multi-step tasks. Set at session start, persists the run. Input compression useful for pasting briefs, client docs, task context at session start.
Claude Code
Output compression cuts explanations, error analysis, commit message prose. /spartan works as shorthand. Input compression useful for long error logs and stack traces — compress once, reuse the dense version.
All environments
No CLI. No Node.js. No npx. One .skill file. Works everywhere.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

