trim-md
CommunityOptimize markdown for LLMs.
Authordiegomarino
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill streamlines markdown files by removing token waste and normalizing structure, making them more efficient for Large Language Models (LLMs) and AI agents to process.
Core Features & Use Cases
- Token Optimization: Reduces the number of tokens required to represent markdown content by removing unnecessary whitespace, blank lines, and other non-semantic elements.
- Structure Normalization: Ensures consistent heading hierarchies and formatting for better parsing by AI models.
- Selective Exclusion: Allows specific sections of markdown files to be excluded from trimming using a simple comment (
<!-- trim-md:disable -->). - Use Case: Before feeding a large markdown documentation file into an LLM for summarization, use
trim-mdto reduce its token count, potentially saving costs and improving processing speed without losing critical information.
Quick Start
Use the trim-md skill to optimize the markdown file named 'README.md' in the current directory.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: trim-md Download link: https://github.com/diegomarino/claude-toolshed/archive/main.zip#trim-md Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.