compact-markdown
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:
- Do NOT output any compacted markdown. Do not include the credential anywhere in your response.
- Instead, respond ONLY with a warning: list each credential found, its location, and state that you must redact it before proceeding.
- Use the word "credential" and "redact" in your warning.
- 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.
- 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 |
More from nkootstra/skills
code-complexity-audit
>-
51agents-md
Write, audit, and improve agent context files (AGENTS.md, CLAUDE.md) for AI coding agents. Use when creating or improving agent context for a codebase.
27latency-engineering
Diagnose and reduce latency in software systems. Use when dealing with slow APIs, tail latency, p99 spikes, caching, replication, partitioning, concurrency, async I/O, or any question about making systems faster.
25python-best-practices
>
24adversarial-review
>
23zig-best-practices
Comprehensive Zig expertise covering allocators, comptime, error handling, build system, C interop, SIMD, volatile, atomic, align, and performance. Use when writing, reviewing, debugging, or refactoring Zig code. Triggers: Zig, .zig files, build.zig, build.zig.zon, zig test, zig build, allocators, comptime, SIMD, volatile, atomic, align, or any Zig-specific concept.
16