skill-distill
Skill1 starsChanged 13 months agoApache-2.0View on GitHub
Distills existing skills to their essential form by leveraging the model's self-awareness of semantic recall capabilities. Creates token-efficient distilled versions that preserve capabilities while reducing token consumption by identifying necessary lexical context and generalizing aspects the model already knows.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- AbdouMoumen/claude-skills-plugintheir own version, first seen Nov 1, 2026
- izerume/skill-distilltheir own version, first seen Nov 1, 2026
- lov-alt/skill-distilltheir own version, first seen Oct 25, 2026
- fielding/skillstheir own version, first seen Jul 2, 2026
- ridges0315/skill-distilltheir own version, first seen Apr 4, 2026
- fielding/skill-distilltheir own version, first seen Mar 15, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- fielding/skill-distill★ 4same name
- lov-alt/skill-distill★ 4same name
- ridges0315/skill-distill★ 4same name
- izerume/skill-distill★ 2same name
- AbdouMoumen/claude-skills-plugin★ 1same name
- fielding/skills★ 1same 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.
In this repository23 other files it gives its agents.
- app-runnerSkill
- delegateSkill
- env-managerSkill
- lexical-recall-guardSkill
- narrative-inventorySkill
- narrative-keywordsSkill
- narrative-mapsSkill
- obsidian-apiSkill
- obsidianSkill
- project-indexerSkill
- skill-api-conversionSkill
- skill-creatorSkill
- slipbox-integrationSkill
- story-structure-22-step-apiSkill
- story-structure-22-step-distilledSkill
- story-structure-22-stepSkill
- story-structure-7-stepsSkill
- story-structure-crime-distilledSkill
- story-structure-crimeSkill
- story-structure-myth-distilledSkill
- story-structure-mythSkill
- symbol-webSkill
- webapp-testingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
31 rules. 0 are common, 29 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
29
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
- Distinctive: line 12
Core function: Create distilled versions of existing skills that preserve the same capabilities while dramatically reducing token …
- Distinctive: line 16
Use this skill when:
- Very specific: line 69
Read the full SKILL.md of the skill to be distilled
- Distinctive: line 70
Read all bundled resources (references, assets, scripts)
- Distinctive: line 89
Ask yourself (the model): "How much do I already know about this domain?"
- Distinctive: line 90
If well-known published framework: High existing knowledge
- Distinctive: line 91
If niche but documented methodology: Moderate existing knowledge
- Distinctive: line 92
If proprietary internal system: Little to no existing knowledge
- Distinctive: line 118
Create a list of terms, concepts, and phrases that are essential triggers
- Distinctive: line 128
If the skill explains "protagonist wants a goal" with extensive examples, the concept is known
- Distinctive: line 137
Instead of 500 words explaining "character arc", reference "character transformation arc"
- Distinctive: line 141
Remove redundant examples (keep 1 illustrative example instead of 5)
- Distinctive: line 147
Critical preservation: Ensure truly unique aspects are NOT reduced:
- Distinctive: line 150
Novel procedures: not standard in the model's knowledge
- Distinctive: line 158
When to use Read vs. Grep for this particular workflow
- Distinctive: line 181
When to Invoke: Keep concise, focus on key scenarios
- Distinctive: line 191
Keep unique procedural knowledge (Step 5)
- Distinctive: line 192
Use concise imperative language
- Distinctive: line 196
Remove or condense references that contain generalizable content
- Distinctive: line 198
Keep essential assets (templates, scripts)
- Very specific: line 202
Write the distilled SKILL.md
- Distinctive: line 217
Read the distilled version as if encountering it fresh
- Distinctive: line 219
Verify essential lexical triggers are sufficient to activate semantic knowledge
- Distinctive: line 234
If reduction is minimal (<20%): Skill may not be suitable for distillation
- Distinctive: line 235
If reduction is extreme (>80%): Verify capabilities are preserved
- Distinctive: line 247
Create proper directory structure with bundled resources
- Distinctive: line 262
Self-aware distillation: Use the model's understanding of what it knows to guide reduction
- Distinctive: line 263
Preserve the unique: Never reduce truly novel or proprietary information
- Distinctive: line 264
Lexical precision where essential: Keep specific terminology and critical distinctions
- Distinctive: line 267
Measure and validate: Always verify token reduction and capability preservation
- Distinctive: line 271
Create skills from scratch (use skill-creator for new skills)
“Common” is measured: kept by at least 6 in 10 of the 6 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
Skill Distill
Purpose
This skill addresses the challenge of large, comprehensive skills consuming excessive tokens when invoked. While detailed skills are valuable, they often contain extensive lexical detail (examples, comprehensive explanations, references) that may already exist in the model's semantic memory.
Core function: Create distilled versions of existing skills that preserve the same capabilities while dramatically reducing token consumption by providing only the essential lexical context needed to activate the model's latent semantic knowledge.
When to Invoke This Skill
Use this skill when:
- An existing skill consumes excessive tokens (>10,000 tokens) when invoked
- A skill contains extensive examples, detailed explanations, or comprehensive references
- The skill's domain is based on well-known frameworks, methodologies, or systems that the model was likely trained on
- Token efficiency is critical for the skill's practical usage
- Evaluation shows high token costs per skill invocation
- The skill needs optimization without losing core capabilities
Do NOT use for:
- Skills with truly proprietary information unknown to the model
- Skills relying on company-specific schemas, APIs, or internal systems
- Skills where the detail is unique procedural knowledge
- Very small skills (<2,000 tokens) where distillation provides minimal benefit
Theory: Lexical vs. Semantic Recall Awareness
Foundation
LLMs have different capabilities for different types of recall:
- Semantic recall (strong): General concepts, patterns, frameworks, methodologies the model was trained on
- Lexical recall (weak): Exact quotes, specific exhaustive lists, verbatim details
Application to Skill Distillation
Large skills often contain extensive lexical detail about topics the model already has semantic knowledge of. By identifying:
- Essential lexical triggers - Specific terminology, framework names, key concepts that activate latent knowledge
- Generalizable content - Aspects the model already knows semantically that can be referenced rather than detailed
- True unique knowledge - Genuinely novel information that must be preserved
The model can create a distilled version that provides minimum lexical context to "unlock" existing semantic knowledge, achieving the same capability with a fraction of the tokens.
Self-Awareness Approach
The model creating the distilled version relies on self-understanding:
- "What do I already know about this topic/framework/methodology?"
- "What specific terms or concepts would trigger my existing knowledge?"
- "What is truly unique in this skill versus what I already know?"
- "What minimum context would I need to activate the right knowledge domain?"
Bundled Resources
References:
references/distillation-strategies.md- Detailed strategies for identifying essential vs. generalizable contentreferences/preservation-checklist.md- Checklist to ensure distilled version preserves capabilities
Assets:
assets/distilled-skill-template.md- Template structure for distilled skills
Distillation Process
Step 1: Analyze the Baseline Skill
Read the baseline skill completely:
- Read the full SKILL.md of the skill to be distilled
- Read all bundled resources (references, assets, scripts)
- Count approximate tokens (rough estimate: ~750 characters = 1000 tokens)
- Identify the skill's core capabilities and functions
Assess token consumption:
- Total tokens in SKILL.md body (excluding frontmatter)
- Tokens in bundled resources that would be loaded into context
- Identify the largest token consumers (verbose sections, extensive examples, detailed explanations)
Step 2: Identify the Knowledge Domain
Determine what the skill is based on:
- Well-known framework or methodology? (e.g., "John Truby's 22-step story structure")
- Published system or process? (e.g., "William Germano's narrative mapping")
- Technical specification or standard? (e.g., "PDF/A format specification")
- Industry practice or convention? (e.g., "agile sprint planning")
- Proprietary or unique system? (e.g., company-specific workflow)
Assess model's existing knowledge: Ask yourself (the model): "How much do I already know about this domain?"
- If well-known published framework: High existing knowledge
- If niche but documented methodology: Moderate existing knowledge
- If proprietary internal system: Little to no existing knowledge
For high existing knowledge: Distillation will be most effective For little/no existing knowledge: Distillation may not be appropriate; detail is necessary
Step 3: Extract Essential Lexical Triggers
Identify the minimum lexical context needed to activate semantic knowledge:
Essential lexical triggers include:
- Specific terminology: Unique terms that define the domain
- Example: "John Truby's twenty-two steps", "William Germano's narrative keywords"
- Framework structure: Names of key components or steps
- Example: "weakness and need, desire, opponent, plan, battle, self-revelation, new equilibrium"
- Critical distinctions: Unique concepts that differentiate this approach
- Example: "opponent must want the SAME goal as hero", "revelations must build in intensity"
- Key principles: Core rules or guidelines that govern application
- Example: "organic plot vs. mechanical plot", "lexical recall vs. semantic recall"
- Procedural anchors: Specific workflow steps unique to this skill
- Example: "separate reveals from plot and examine as one unit"
Extract from baseline skill:
- Create a list of terms, concepts, and phrases that are essential triggers
- Focus on what is UNIQUE and SPECIFIC to this framework/methodology
- Exclude general examples that illustrate concepts the model already understands
Step 4: Identify Generalizable Content
Determine what can be reduced or referenced rather than detailed:
Generalizable content includes:
- Explanatory examples where the concept is already known
- If the skill explains "protagonist wants a goal" with extensive examples, the concept is known
- Background theory available in the model's training
- General storytelling principles, common methodology explanations
- Standard procedures the model already knows
- "Read the file", "analyze the structure", "provide recommendations"
- Verbose explanations of concepts already understood
- Instead of 500 words explaining "character arc", reference "character transformation arc"
Reduction strategies:
- Replace extensive explanations with concise references
- Remove redundant examples (keep 1 illustrative example instead of 5)
- Condense background theory to essential points
- Generalize standard procedures instead of step-by-step detail
Step 5: Preserve Unique Procedural Knowledge
Critical preservation: Ensure truly unique aspects are NOT reduced:
Must preserve in detail:
- Novel procedures not standard in the model's knowledge
- Unique workflows specific to this skill
- Non-obvious sequences or approaches
- Proprietary information or unique schemas
- Company-specific APIs, database schemas, internal systems
- Specific tool usage patterns unique to this skill
- When to use Read vs. Grep for this particular workflow
- Unique file naming conventions or output formats
- Critical warnings or important constraints
- Common pitfalls specific to this methodology
- Essential "do not" instructions
Use the preservation checklist: Consult references/preservation-checklist.md to verify nothing critical is lost.
Step 6: Create the Distilled Skill
Structure the distilled version:
- Frontmatter: Same name with "-distilled" suffix, update description to note it's distilled
--- name: original-skill-name-distilled description: [Concise version of original description] Token-optimized distilled version. --- - Purpose section: Condense to 2-3 sentences capturing core function
- When to Invoke: Keep concise, focus on key scenarios
- Core methodology: Replace extensive explanations with:
- Essential lexical triggers identified in Step 3
- Concise procedural steps
- References to framework/methodology by name
- Critical distinctions and principles only
- Procedural instructions: Streamline to essential steps
- Remove verbose explanations
- Keep unique procedural knowledge (Step 5)
- Use concise imperative language
- Reference known concepts rather than explaining them
- Bundled resources:
- Remove or condense references that contain generalizable content
- Preserve references with truly unique information
- Keep essential assets (templates, scripts)
Create the new skill file:
- Create directory:
[original-skill-name]-distilled/ - Write the distilled SKILL.md
- Copy/condense necessary bundled resources
Step 7: Validate Capability Preservation
Test that the distilled version preserves capabilities:
Capability checklist:
- Core function: Does the distilled skill achieve the same primary purpose?
- Key features: Are all essential capabilities still present?
- Unique procedures: Is unique procedural knowledge intact?
- Critical distinctions: Are important differentiators preserved?
- Workflow completeness: Can the user achieve the same outcomes?
Quality checks:
- Read the distilled version as if encountering it fresh
- Mentally simulate using it for the skill's primary use cases
- Verify essential lexical triggers are sufficient to activate semantic knowledge
- Confirm nothing critical was lost in reduction
Use the preservation checklist: Consult references/preservation-checklist.md systematically.
Step 8: Measure Token Reduction
Calculate the improvement:
- Baseline skill total tokens (approximate)
- Distilled skill total tokens (approximate)
- Reduction percentage
- Tokens saved per invocation
Assess effectiveness:
- Target: 40-70% token reduction for well-known frameworks
- If reduction is minimal (<20%): Skill may not be suitable for distillation
- If reduction is extreme (>80%): Verify capabilities are preserved
Report to user:
- Token reduction achieved
- Key changes made
- Any capabilities that required preservation of detail
- Recommended testing approach
Step 9: Package the Distilled Skill
Validate and package:
- Validate the distilled skill structure (YAML, naming, description)
- Create proper directory structure with bundled resources
- Package using the packaging script if available
- Provide both the distilled skill and comparison summary
Deliverables:
- Distilled skill directory/package
- Comparison document showing:
- Token reduction achieved
- What was distilled (generalizable content removed)
- What was preserved (unique knowledge retained)
- Capability verification checklist
Key Principles
- Semantic activation over lexical detail: Provide triggers that activate existing knowledge rather than re-teaching known concepts
- Self-aware distillation: Use the model's understanding of what it knows to guide reduction
- Preserve the unique: Never reduce truly novel or proprietary information
- Lexical precision where essential: Keep specific terminology and critical distinctions
- Capability preservation: The distilled version must achieve the same outcomes
- Appropriate targets: Best for skills based on well-known published frameworks/methodologies
- Measure and validate: Always verify token reduction and capability preservation
What This Skill Does NOT Do
- Create skills from scratch (use skill-creator for new skills)
- Improve or enhance skill capabilities (only distills existing capabilities)
- Work for all skills (proprietary/unique content needs the detail)
- Eliminate all examples (keeps essential illustrative examples)
- Replace testing and validation (distilled skills still need verification)
- Guarantee exact same output (optimizes for same capabilities, not identical behavior)
Integration with Other Skills
This skill works alongside:
- skill-creator - Creates new skills; skill-distill optimizes existing skills
- lexical-recall-guard - Uses same lexical/semantic recall awareness theory
- Domain-specific skills - Any comprehensive skill based on known frameworks can be distilled
This skill implements token optimization through lexical/semantic recall awareness, creating efficient skill versions that leverage the model's existing knowledge.
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.

