From 3811a37b4a33f4b193f4c4f5eb178d304702086a Mon Sep 17 00:00:00 2001 From: Eddie Soehnel Date: Sat, 2 May 2026 19:35:41 +0000 Subject: [PATCH] added --- google-doc-md-conversion-skill | 133 +++++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 google-doc-md-conversion-skill diff --git a/google-doc-md-conversion-skill b/google-doc-md-conversion-skill new file mode 100644 index 0000000..5142170 --- /dev/null +++ b/google-doc-md-conversion-skill @@ -0,0 +1,133 @@ +Skill: Google Doc (.md export) → Clean Markdown +What This Skill Does + +This skill takes a Google Docs–exported .md file and converts it into a clean, production-quality Markdown document by: + +Preserving 100% of original content +Cleaning Google Docs artifacts +Rebuilding a functional clickable Table of Contents +Normalizing headers for consistent anchor linking + +This is a lossless transformation — no summarization, no rewriting, no omission. + +Core Rules (STRICT) +DO NOT modify content +No summarizing +No rewording +No restructuring +No deleting content (except artifacts explicitly listed below) +ONLY perform these transformations +Clean TOC +Clean headers +Remove Google Docs artifacts +Normalize anchors +Preserve everything else exactly +Paragraphs +Lists +Formatting (bold, italics, etc.) +Links +Code blocks +Input +Markdown file exported from Google Docs (.md) +Typically includes: +Broken TOC +Anchor tags like {#...} +Page numbers in TOC +Messy header anchors +Output +Clean .md file +Proper Markdown TOC with working links +Clean headers (no embedded anchors) +Fully preserved document content +Transformation Steps +1. Extract and Identify TOC +Locate the TOC section (usually near top) +Remove: +Page numbers +Duplicate entries +Google-style anchor links +2. Rebuild TOC (Markdown-native) + +Convert TOC into: + +## Table of Contents + +- [Section Name](#section-name) +- [Subsection](#subsection) +Anchor Rules +Lowercase +Replace spaces with - +Remove punctuation: +? : + & , . ( ) +Collapse multiple dashes + +Example: + +"What is the purpose of the iNDX CO+" +→ #what-is-the-purpose-of-the-indx-co +3. Clean Headers + +Convert headers like: + +## Section Title {#section-title} + +→ + +## Section Title + +Rules: + +Remove {#...} completely +Keep header text EXACTLY +Preserve header levels (#, ##, ###) +4. Remove Google Docs Artifacts + +Remove: + +{#...} anchor tags +TOC page numbers +Empty anchor headers +Inline anchor junk + +DO NOT remove: + +Real links +Content text +Lists or formatting +5. Preserve Everything Else + +Do NOT touch: + +Paragraph wording +Lists or numbering +Code blocks +Links +Formatting (bold, italics) +6. Images Handling + +If image appears as: + +[![][image1]](...) + +Keep as-is. + +If base64 blob appears: + +[data:image/png;base64,...] + +Leave intact unless explicitly told to remove. + +Output Format +Return full .md document +Include rebuilt TOC at top +Ensure all TOC links work with headers +Validation Checklist + +Before returning: + + No {#...} remains + TOC has no page numbers + All TOC links match headers + Headers are unchanged except anchor removal + No content removed or rewritten + Document renders cleanly in Markdown viewer \ No newline at end of file