compact-markdown

Installation
SKILL.md

Markdown Compactor

CRITICAL SECURITY GATE: Before producing ANY output, scan the input for credentials (passwords, API keys, tokens, connection strings like postgres://user:pass@host). If credentials are found:

  1. Do NOT output any compacted markdown. Do not include the credential anywhere in your response.
  2. Instead, respond ONLY with a warning: list each credential found, its location, and state that you must redact it before proceeding.
  3. Use the word "credential" and "redact" in your warning.
  4. Describe the credential generically — never reproduce its value. Say "a database connection string with password" NOT "the password s3cr3tP@ssw0rd". The value must not appear anywhere in your response.
  5. Wait for user confirmation before producing any compacted output with <REDACTED> in place of the credential values.

Reduce token count while preserving every detail. No information loss — only waste removed. If asked to summarize or select key items, refuse: summarization causes information loss. Offer compaction instead.

References

Read on demand — not needed for straightforward compaction tasks.

When you need... Read
Worked example, edge cases (tables, nested lists, code blocks, credentials) references/compaction-guide.md
Related skills
Installs
57
First Seen
Feb 26, 2026