← ClaudeAtlas

fix-markdown-fenceslisted

Repair malformed markdown code fence closings. Use when you say "fix markdown fences", "repair code block closings", "markdown rendering broken", "code blocks bleeding into content", or "validate markdown code blocks" on any .md file. Do NOT use for documentation accuracy checks or verifying code examples (use doc-accuracy).
rjmurillo/ai-agents · ★ 34 · AI & Automation · score 79
Install: claude install-skill rjmurillo/ai-agents
# Fix Markdown Code Fence Closings Scan and repair malformed closing fences in markdown files. Closing fences must never contain language identifiers. ## Triggers | Trigger Phrase | Operation | |----------------|-----------| | `fix markdown fences` | Scan and repair malformed fence closings | | `repair code block closings` | Fix closing fences with language identifiers | | `markdown rendering broken` | Diagnose and fix fence issues | | `code blocks bleeding into content` | Fix unclosed or malformed fences | | `validate markdown code blocks` | Check all fences for correctness | ## Quick Reference | Symptom | Cause | Fix | |---------|-------|-----| | Code block bleeds into text | Closing fence has language identifier | Remove identifier from closing fence | | Nested blocks render wrong | Missing closing fence before new opening | Insert closing fence | | Content cut off at end of file | Unclosed code block | Append closing fence | ## When to Use **Use this skill when:** - Markdown code blocks render incorrectly or bleed into surrounding content - Closing fences have language identifiers (e.g., ` ```python ` instead of ` ``` `) - Validating markdown documentation before committing **Use manual editing instead when:** - The issue is indentation or content inside the code block (not the fences) - You need to change the language identifier on opening fences ## Process Track fence state while scanning line by line: 1. **Detect opening fence**: Line matches the opening p