compact-markdown

Compact Markdown content by removing verbosity while preserving structure and metadata.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/nkootstra/skills --skill compact-markdown
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compact-markdown
Source: https://github.com/nkootstra/skills/tree/main/skills/compact-markdown
Command: npx skills add https://github.com/nkootstra/skills --skill compact-markdown

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Markdown documents often grow large and unwieldy. This skill reduces Markdown size without sacrificing information, layout, or meaning, helping you share lean docs and faster workflows.

Core Features & Use Cases

  • Compact prose and remove redundancy while preserving structure and formatting.
  • Flatten nested lists and trim verbose phrasing without changing semantics.
  • Preserve code blocks, frontmatter, and essential metadata; produce a compact output suitable for docs, READMEs, and CLIs.

Quick Start

Compact the provided Markdown content to minimize tokens while preserving all information.

Frequently Asked Questions about compact-markdown

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I minify Markdown to reduce token count without losing structure?

To minify Markdown and reduce token count, compact prose by removing verbosity and flattening nested lists while preserving formatting, code blocks, frontmatter, and essential metadata. This produces lean documentation suitable for faster workflows.

Does compacting Markdown preserve frontmatter and code blocks?

Yes, compacting Markdown explicitly preserves frontmatter, code blocks, and essential metadata. It removes redundant phrasing and flattens nested lists to reduce size without changing the semantic meaning or losing critical structural information.

What is the best way to reduce README size for token-efficient sharing?

The best way to reduce README size for token-efficient sharing is to compact the Markdown by trimming verbose phrasing and flattening lists. This removes redundancy while preserving all information and layout, resulting in leaner docs.

Can I flatten nested lists in Markdown without changing the semantics?

Yes, you can flatten nested lists in Markdown without changing semantics. The compaction process removes verbosity and redundant structure while ensuring the original meaning, essential metadata, and formatting remain fully intact.

When should I avoid minifying Markdown documentation?

You should avoid minifying Markdown documentation when preserving verbose phrasing or deeply nested list structures is necessary for human readability. Compacting prioritizes token efficiency and lean output, which may reduce visual readability for some users.

How do I compact Markdown content step by step?

To compact Markdown content, process the document to remove verbose phrasing, flatten nested lists, and eliminate redundancy. The system preserves code blocks and frontmatter, then outputs the compacted text along with reporting metrics.