slim
Skill0 starsChanged 6 months agoMITView on GitHub
Use this skill when the user asks to convert a file to SLIM format, write a new SLIM document, validate or review an existing .slm file, check SLIM v2 syntax, or asks questions like "convert this to SLIM", "make this SLIM", "is this valid SLIM", "write a SLIM prompt", "create a SLIM agent config", or "review this .slm file". Also use when the user pastes Markdown/JSON/YAML/plain text and wants it optimised for LLM token usage.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- HeBtcd/skillstheir own version, first seen Nov 1, 2026
- jantichy/claudetheir own version, first seen Oct 27, 2026
- tacyan/claude-code-token-slim-mcptheir own version, first seen Aug 25, 2026
- nagandla-sasidhar/slimword for word, first seen May 15, 2026
Other versions4 projects use a version of this.
Word for word · 1
- nagandla-sasidhar/slim★ 0100% same
Edited · 0
None found.
Wrote their own version · 3
- jantichy/claude★ 45same name
- HeBtcd/skills★ 5same name
- tacyan/claude-code-token-slim-mcp★ 4same 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
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
1
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 31
Do NOT use @+version or @+tags — the LLM gains no value from these
- Very specific: line 36
No close tag — blank line or next :: ends the content block
- Distinctive: line 155
After converting, always report:
“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
SLIM Format Skill
SLIM (Structured LLM Instruction Markup) v2.0 is a token-efficient format for AI documents. Website: https://slimformat.org | Repo: https://github.com/nagandla-sasidhar/TAML | Playground: https://slimformat.org/playground.html
Core Syntax (v2.0)
@slim: 2.0 ← required first line
@key: value ← orchestrator-only header (stripped before LLM)
@+key: value ← LLM-visible header (appears in LLM text)
~ comment ← always stripped
$var ← variable reference (interpolated at runtime)
::SECTION_NAME type ← named section, no close tag (type is optional)
content here ← verbatim until blank line or next ::
:::NESTED_NAME type ← nested section (one extra colon)
::CODE_1 lang ← code block; increment _N for each additional blockHeader zone rules
@slim: 2.0must be the first non-blank line@key= orchestrator metadata (model, retry, timeout, task IDs) — LLM never sees it@+key= LLM-visible info (name, description, purpose, context)- Do NOT use
@+versionor@+tags— the LLM gains no value from these - Headers end at the first
::section or blank line after headers
Section rules
::NAMEopens a section; the previous section implicitly closes- No close tag — blank line or next
::ends the content block - Type hint is optional but valuable:
::CONTEXT markdown,::CODE python,::SCHEMA json :::NAMEfor nested sections inside a parent section- Section names: UPPERCASE by convention (CONTEXT, INSTRUCTIONS, EXAMPLES, SCHEMA, OUTPUT)
Token-saving conversions from Markdown
| Markdown | SLIM |
---\nkey: val\n--- YAML front-matter | @key: val headers |
# Heading | ::HEADING section or @+name: Heading |
**bold**, *italic* | plain text (meaning preserved) |
- item bullet | plain indented line |
\``lang ... ```` | ::CODE_N lang section |
<!-- comment --> | ~ comment |
Token-saving conversions from YAML
| YAML | SLIM |
key: scalar root scalar | @key: scalar header |
key: block (array or object) | ::KEY section |
- item list entry | plain line (marker stripped) |
# comment | ~ comment |
Quoted values "val" / 'val' | unquoted plain value |
Inline comment key: val # note | value without comment |
How to convert YAML (step by step)
- Skip
---document separators - Root scalar
key: value→@key: valueheader; strip inline# commentsand quotes - Root block
key:(array or object) →::KEYsection; collect indented children, strip-list markers # commentlines →~ comment- Nested sub-keys inside a block → preserve as
subkey: valuelines in the section body - Report token savings
How to convert Markdown (step by step)
- Read the source file — identify: YAML front-matter, headings, bullets, code blocks, bold/italic
- Write header zone —
@slim: 2.0, then map YAML keys to@key/@+key - Map headings → sections — each
#heading becomes::HEADING_NAME - Strip inline formatting — remove
**,*, backtick pairs; preserve meaning - Strip bullets — remove
-/*prefixes; keep indentation for hierarchy - Wrap code blocks —
```lang...```→::CODE_1 lang(increment counter per block) - Convert comments —
<!-- ... -->→~ ... - Count tokens — use
estimateTokens()or tiktoken; report % saved
Validation checklist for reviewing .slm files
- First line is
@slim: 2.0 - No
@slim: 1.0(old version) - No
=== BLOCK [type] ... === /BLOCK(old v1 syntax) @+used only for keys the LLM actually needs to know- No
@+versionor@+tags(LLM doesn't benefit) - Section names are UPPERCASE
- No close tags (no
:::without an opener, no=== /) - Variables (
$var) have corresponding@+var:or@var:headers - Code blocks use
::CODE_N langnot fenced backticks
Common section names by use case
Agent config: ::ROLE, ::INSTRUCTIONS, ::CONSTRAINTS, ::CONTEXT, ::EXAMPLES, ::OUTPUT
System prompt: ::SYSTEM, ::PERSONA, ::CAPABILITIES, ::RESTRICTIONS, ::FORMAT
RAG document: ::SUMMARY, ::CONTENT, ::METADATA, ::REFERENCES
API schema: ::REQUEST, ::RESPONSE, ::ERRORS, ::EXAMPLES
Example — minimal agent config
@slim: 2.0
@model: claude-opus-4-7
@task: $task_id
@+name: CodeReviewer
@+purpose: Review pull requests for security and quality issues
::INSTRUCTIONS
Review the diff in $context.
Focus on: security vulnerabilities, breaking changes, performance regressions.
Be concise. Flag critical issues first.
::CONSTRAINTS
Never approve a PR with an unaddressed critical security issue.
Keep each comment under 80 words.Example — YAML agent config → SLIM
Input YAML:
# Agent config
name: DataAnalyst
model: claude-opus-4-7
temperature: 0.3
instructions:
- Always cite data sources
- Flag data quality issues
constraints:
- Never fabricate data points
- Keep reports under 500 wordsOutput SLIM:
@slim: 2.0
@name: DataAnalyst
@model: claude-opus-4-7
@temperature: 0.3
~ Agent config
::INSTRUCTIONS
Always cite data sources
Flag data quality issues
::CONSTRAINTS
Never fabricate data points
Keep reports under 500 wordsReporting token savings
After converting, always report:
- Input tokens (original) — estimate as char_count / 4
- LLM-facing tokens (SLIM output, header zone excluded) — same estimation
- Savings % = (input - llm_facing) / input × 100
- For precise counts use tiktoken (Python) or the playground at https://slimformat.org/playground.html
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.

