[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AYSBF6QGQZMYX0NP4597H8":3,"skill-same:01M7AYSBF6QGQZMYX0NP4597H8":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7AYSBF6QGQZMYX0NP4597H8","swe-knowledge-vault-refine",null,"Use when refining swe-knowledge vault notes or diagrams.","oat431\u002Fhermes_config_backup","oat431","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F54722120?v=4","01M7AYD07EH8SYPMYY8CGZKS22","Oralita","01M7AYD0816QDF77E3TWCRSQC9",1,"Unlicense","https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Fjourney-writer\u002Fswe-knowledge-vault-refine\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: swe-knowledge-vault-refine\ndescription: Use when refining swe-knowledge vault notes or diagrams.\n---\n\n# swe-knowledge Vault Refinement (journey-writer ✒️)\n\nRefinement workflow for `F:\\obsidian_note\\swe-knowledge\\` (ALL 15 KA folders + checklist\u002F + computing-foundation-note refined 2026-09-30: em-dash 0, links repaired, diagrams themed+rendered — cfn: 138 files, 2,223 em, 60\u002F60 render). FUTURE em-dash batches remaining in vault: body-of-knowledge (3,482 em\u002F108 files), career-path (2,431\u002F224), engineering-foundation-note (787\u002F26), document-template (301\u002F11), math-for-software-engineering-note (143\u002F14). NOTE: vault has an auto-backup job committing everything periodically ('vault backup: \u003Cdate>' commits) — check git log before offering to commit; the user's changes may already be committed. Vault is git-backed; edit in place, user reviews then commits.\n\n## Em-dash removal convention (user-approved: context-aware)\n\nThree-pass process per folder:\n\n1. **Mechanical pass** (regex): headings `# N — Title` → `# N: Title`; `**Label** —` → `**Label:**` (colon INSIDE bold); list definitions `- Term — def` → `- Term: def`; wikilinks `[[X]] — desc` → `[[X]]: desc` (group chapters as `[[X]] (Ch 5): desc`); quote attributions `> — Name, \"Work\" (year)` → `> *Name, \"Work\" (year)*`; empty table cells `| — |` → `| N\u002FA |`.\n2. **Classifier pass**: paired dashes (exactly 2 per line) → parentheses; single mid-sentence dash → comma (appositive\u002Fgerund\u002Fpreposition after), semicolon (independent clause or imperative verb after), colon (explanation\u002Flist after). Unmatched lines go to a scratch file for manual review.\n3. **Manual pass**: read every ambiguous line, write an explicit old→new replacement dict, apply with miss-reporting. Typical ~60-80 lines per folder.\n\nPost-pass normalization: `; Capitalized` → lowercase unless proper noun (keep a PROPER set of author\u002Ftech names); `**Label**:` → `**Label:**`; collapse double spaces in prose (skip tables, code, indented lines). En-dashes in ranges (`Ch 12–13`) are CORRECT — keep. Verify: zero `—`, zero `**:`, zero artifacts.\n\nPITFALL: LaTeX lines escape differently (`\\tau` in file vs `\\\\tau` in Python source) — check misses with grep before retrying. Code blocks may contain `# comment` lines that trip naive H1 counts — check `in_code` state.\n\nCODE-BLOCK em-dashes: some folders (Clean Code\u002FClean Architecture notes) have hundreds of em-dashes inside fenced code as prose comments (`\u002F\u002F ❌ Bad — 40+ lines`) or ASCII diagrams. Decide with the user's convention: these ARE prose, so replace too — spaced ` — ` → ` - ` (ASCII art alignment) or `: ` in comments; never touch dashes that are code syntax. Count in_code vs prose separately before declaring done.\n\nCITATIONS: source lines like `*Source: Book — Author*` or `*Clean Code — Robert C. Martin*` need manual rewrites to comma style (`*Clean Code* by Robert C. Martin`), not punctuation swaps; watch for broken italics when substituting (unmatched `*`).\n\nWIKILINK PITFALL: mermaid uses `[[...]]` subroutine-shape syntax (`A --> G[[Label]]`) — protect mermaid blocks before any wikilink replacement. A `[[Book Title]]` link with no target file may be an intentional forward reference (check context, e.g. References section) — leave it and note it. Folder\u002Findex links (`[[Folder\u002F|X]]`, `[[Folder\u002Findex|X]]`) don't resolve — repoint to the folder's Overview note.\n\n## Wikilink repair\n\nBroken links are common (old note names before consolidations). Build a filename→path index of the whole vault, extract all `[[target]]` (handle `path\u002FName|Alias`), map broken names to actual files, replace. Folder links (`[[Microservice\u002F01 Decomposition\u002F|...]]`) don't resolve — point to the first file inside. Verify zero broken after.\n\n## Panomete mermaid theme\n\nBrand source (LOCKED v1.0): `F:\\obsidian_note\\oralita_md\\personal\\brand\\03_style-guide.md` + `02_visual-identity.md`. Palette: primary #1FB854, secondary #1EB88E, accent #1FB8AB, neutral #19362D, base-100 #1B1717, base-200 #161212, base-content #CAC9C9, neutral-content #CDD3D1, info #00B5FF, success #00A96E, warning #FFBE00, error #FF5861. RULE: black text on saturated fills (never white on green).\n\nMermaid in Obsidian can't read the daisyUI CSS vars — bake hex values into `%%{init: {'theme':'base','themeVariables':{...}}}%%` blocks. Three variants:\n\n- **Flowchart\u002Fgraph**: primaryColor #19362D, primaryTextColor #CDD3D1, primaryBorderColor\u002FlineColor\u002FnodeBorder #1FB854, background #1B1717, mainBkg #19362D, clusterBkg\u002FedgeLabelBackground #161212, titleColor #1FB854, fontSize 14px.\n- **sequenceDiagram**: adds actorBkg #19362D, actorBorder\u002FactorLineColor #1FB854, actorTextColor #CDD3D1, signalColor\u002FsignalTextColor #CDD3D1, noteBkgColor #1EB88E + noteTextColor #000C07, activationBkgColor #1EB88E, activationBorderColor #1FB8AB, sequenceNumberColor #000000, labelBoxBkgColor #161212.\n- **classDiagram**: adds classText #CDD3D1 on top of the flowchart set.\n- **timeline**: adds cScale0..3 (brand ramp), timelineEventColor #1FB854 + timelineEventTextColor #000000, timelineLabelColor #CAC9C9.\n- **stateDiagram**: flowchart set minus node-specific keys.\n\nRemap any ad-hoc node `style` colors to brand tokens SEMANTICALLY (read the diagram first): reds→error #FF5861, orange\u002Fyellow→warning #FFBE00, greens→primary #1FB854 or success #00A96E, blues→info #00B5FF, purple→accent #1FB8AB, dark-blue ramps→neutral #19362D\u002Fsecondary\u002Faccent\u002Finfo gradient; `stroke:#333`→`#000000`; `color:#fff` on saturated fills→`color:#000000`, on dark neutral fills→`#CDD3D1`. draw.io palette: #dae8fc→info, #d5e8d4→primary, #fff2cc→warning, #e1d5e7→accent, #f8cecc→error AND append `,color:#000000` to style lines lacking an explicit color (they otherwise inherit light theme text and break contrast on saturated fills). Replace generic `%%{init {'theme':'dark'}}%%` with the brand init. Inject init as first line of blocks lacking one; never duplicate. Final check: scan diagram bodies (init lines excluded) for any hex not in the 15-color brand set.\n\n## Mermaid validation & broken-fence repair (2026-09-29 incident)\n\nNEVER trust regex extraction (` ```mermaid\\n(.*?)``` `) for validation — it misses unterminated blocks (no closing fence) and mis-pairs fences. Use a fence-aware line walker (open on ```mermaid, close on any next ``` line; track unterminated). Some notes (Microservice sub-vault) have mermaid blocks whose closing ``` was written much later (or never): headings\u002Ftables\u002Fblockquotes sit INSIDE the diagram and break the render. Fix = insert the missing ``` right after the diagram's real last line (beware `end` lines closing `subgraph` blocks — fence must go AFTER them). FOLDERS 10-12 (2026-09-30) showed a DEEPER pattern: cascading alternation breakage — one missing (or SPURIOUS extra) fence shifts pairing for the whole file (`09_Design_Contract` had 5 missing closers across 27 fences; `10_Syntax` had a spurious ```mermaid that split a code block; `13_07_Vulnerability_Management` had 5 stray fences sitting INSIDE tables). Steps: (1) list ALL fences with positions+info; (2) if count is odd, find the spurious or missing one by content (walk pairs by info tag, not alternation); (3) run an iterative repair: extract blocks with a fence-aware walker, and for every block whose body contains markdown-looking lines (heading\u002Ftable\u002Fblockquote\u002Fbold\u002Flist\u002Fprose sentence), insert a closer at the true diagram end (walk back over blanks), repeat until no block contains markdown — TABLE DETECTION gotcha: the table matcher must be `^\\s*\\|.*\\|` (row has a second pipe), NOT `\\|[^\\|]*\\|>` which only matches arrow cells and missed real tables, leaving swallowed tables unrepaired; (4) re-check both odd-count AND 'mermaid opener followed by another mermaid opener' mispairs; (5) remove stray unpaired fences at EOF when content after them is a table\u002Fheading (they're cascade leftovers, not openers) — also when fences sit BETWEEN table rows (consecutive ``` at rows 398\u002F400\u002F402-style), they are stray and must be removed even when the count looks even; (6) render, and if a block still fails with a small line number, the cause may be UNQUOTED PAREN LABELS in node text like `A[X (e.g., Y)]` → quote `A[\"X (e.g., Y)\"]` (parens are shape-start tokens to the parser). CHECKLIST BATCH (2026-09-30, 83 files, 7,435 em): checklist items use `- [ ] **Label** — desc` so the list-def rule dominates (5,732 hits). Also: (1) tier-matrix boilerplate `Skip ❌ sections entirely — they'd...` repeats ~40x, replace globally; (2) tier header lines `> 🧱 **Label** (parens) — ✅ status` need a dedicated regex (label + optional parens + emoji status); (3) dangling `**Label** —` lines whose description is a following code block\u002Ftable take a COLON, not semicolon; (4) `>` intro lines `The **X** checklist — what...` take semicolon; (5) `Last updated: date — synced...` take semicolon. Code-block pass: tree diagrams (`├──`\u002F`│`) and `\u002F\u002F comment`\u002F`# comment` lines → ` - `. Links: Obsidian resolves case-insensitively + via frontmatter aliases — build the resolver BEFORE declaring broken; `[[bin]]` (Cargo.toml) and `[[lang]]` (SvelteKit routes) inside inline code are NOT links — strip ``` fences AND inline backticks before scanning. Security artifact links (Data-Breach-Response-Plan, Threat-Model, ...) with context 'template'\u002F'if exists' are INTENTIONAL forward refs — leave them. Diagrams: 40 all flowchart; pastel tier styles (#e1f5ff\u002F#e8f5e9\u002F#f3e5f5\u002F#ffebee\u002F#fff3e0\u002F#fff4e1\u002F#e3f2fd) remapped semantically + black text; `[[[x]]]` triple-bracket node shapes are INVALID mermaid — convert to `[[\"x\"]]`. Fence saga: nearly every checklist file's LAST mermaid block lacked its closer (table\u002Fheading swallowed to EOF), plus spurious early closers inside tree-diagram code blocks (`src\u002F` closed on line 3, tree continued outside) — check files with tiny fence counts; `  ``` ` inside list-item tables (secrets-management rotation table) split the block.\n\nValidation toolchain (Bun + Edge, no Chromium download): scratch dir mermaid-check\u002F — `bun add @mermaid-js\u002Fmermaid-cli puppeteer` with PUPPETEER_SKIP_DOWNLOAD=true, puppeteer.json pointing executablePath at the installed Edge, run `node_modules\u002F.bin\u002Fmmdc -i in.mmd -o out.png -p puppeteer.json -q` per block; exit code != 0 = parse error. Render all blocks in a background batch (run_batch.py pattern) and collect failures. ~2.5s\u002Fblock. `run_final.py` reads `manifest.json` as 4-tuples `[name, rel, idx, \"\"]` + one `\u003Cname>.mmd` per block in the same dir; success format `TOTAL: \u003Cn> fails: \u003Cn>`.\n\n## Fence repair SAFETY RULES (2026-09-30 computing-foundation incident — damaged 8 files)\n\nNEVER remove fence openers based on a content heuristic. The aggressive \"block body contains markdown → spurious opener\" pass treated bash `# comment` lines (and `6. Presentation`-style numbered prose) as markdown headings and DELETED legitimate code-block openers — 8 files broke (missing closers + orphan openers cascading). Recovery that worked: `git checkout HEAD -- \u003C8 files>` (auto-backup HEAD was clean), then REDO only the reverted files' text work (em\u002Flinks\u002Ftheming are deterministic scripts), and repair fences with INSERT-ONLY logic.\n\nVERIFY EVERY fence change against git: `git diff -U0 HEAD -- \u003Cfolder>` counting `^+``` ` vs `^-``` ` per file. Unbalanced = damage. **Balanced is NOT safe**: +1\u002F−1 can hide a RELOCATED closer (a closer moved from before a prose line to after it = prose swallowed INSIDE a mermaid block → mmdc parse error, but every count\u002Fparity check passes). Files with ONLY insertions on odd-at-HEAD files are usually legit author-error fixes.\n\nFull validation chain (all required): (1) semantic fence walk — flagged = tagged line where a closer is expected, or EOF with unclosed block; (2) mermaid openers count == regex-matched blocks count (a mismatch means a block's closer was eaten — typically mermaid-opener-paired-to-mermaid-opener); (3) no markdown (headings\u002Ftables\u002F`- [ ]`) inside extracted .mmd bodies; (4) mmdc render all blocks — the only ground truth. Watch: 4-backtick outer fences (````markdown) are VALID for nested README examples — a 3bt-only validator falsely flags them; don't \"fix\" a correct 4bt structure. Reads must use default universal-newline `open()`; `open(newline=\"\")` breaks ` ```mermaid\\n ` regexes (CRLF on disk). Mermaid edge labels contain `|` so naive `\\|.*\\||` table detectors flag graph lines as tables → false \"markdown in block\" → bogus repairs. Files on disk are mixed CRLF\u002FLF; git may show a full-file rewrite after edits (EOL normalization) — compare the FENCE SEQUENCE vs HEAD instead of raw diff line counts. Domain symbols: decision-table don't-care entries are dashes, not punctuation — use en-dash `–` to keep the em census at 0 without changing meaning.\n\n## Workflow order per folder\n\nsurvey (files\u002Fem-count\u002Fmermaid-count) → 3-pass em-dash (prose, then code-block pass) → normalization → wikilink repair (mermaid-protected) → mermaid theming → final verify (0 em-dash, 0 artifacts, 0 broken links, every block has init, 0 off-brand hex) → report table to user → offer commit. Report should include replacement-count tables and a what-I-didn't-touch section (en-dash ranges, code logic, intentional heading conventions like `## Intent`-only pattern notes, prose voice).\n","# swe-knowledge Vault Refinement (journey-writer ✒️)\n\nRefinement workflow for `F:\\obsidian_note\\swe-knowledge\\` (ALL 15 KA folders + checklist\u002F + computing-foundation-note refined 2026-09-30: em-dash 0, links repaired, diagrams themed+rendered — cfn: 138 files, 2,223 em, 60\u002F60 render). FUTURE em-dash batches remaining in vault: body-of-knowledge (3,482 em\u002F108 files), career-path (2,431\u002F224), engineering-foundation-note (787\u002F26), document-template (301\u002F11), math-for-software-engineering-note (143\u002F14). NOTE: vault has an auto-backup job committing everything periodically ('vault backup: \u003Cdate>' commits) — check git log before offering to commit; the user's changes may already be committed. Vault is git-backed; edit in place, user reviews then commits.\n\n## Em-dash removal convention (user-approved: context-aware)\n\nThree-pass process per folder:\n\n1. **Mechanical pass** (regex): headings `# N — Title` → `# N: Title`; `**Label** —` → `**Label:**` (colon INSIDE bold); list definitions `- Term — def` → `- Term: def`; wikilinks `[[X]] — desc` → `[[X]]: desc` (group chapters as `[[X]] (Ch 5): desc`); quote attributions `> — Name, \"Work\" (year)` → `> *Name, \"Work\" (year)*`; empty table cells `| — |` → `| N\u002FA |`.\n2. **Classifier pass**: paired dashes (exactly 2 per line) → parentheses; single mid-sentence dash → comma (appositive\u002Fgerund\u002Fpreposition after), semicolon (independent clause or imperative verb after), colon (explanation\u002Flist after). Unmatched lines go to a scratch file for manual review.\n3. **Manual pass**: read every ambiguous line, write an explicit old→new replacement dict, apply with miss-reporting. Typical ~60-80 lines per folder.\n\nPost-pass normalization: `; Capitalized` → lowercase unless proper noun (keep a PROPER set of author\u002Ftech names); `**Label**:` → `**Label:**`; collapse double spaces in prose (skip tables, code, indented lines). En-dashes in ranges (`Ch 12–13`) are CORRECT — keep. Verify: zero `—`, zero `**:`, zero artifacts.\n\nPITFALL: LaTeX lines escape differently (`\\tau` in file vs `\\\\tau` in Python source) — check misses with grep before retrying. Code blocks may contain `# comment` lines that trip naive H1 counts — check `in_code` state.\n\nCODE-BLOCK em-dashes: some folders (Clean Code\u002FClean Architecture notes) have hundreds of em-dashes inside fenced code as prose comments (`\u002F\u002F ❌ Bad — 40+ lines`) or ASCII diagrams. Decide with the user's convention: these ARE prose, so replace too — spaced ` — ` → ` - ` (ASCII art alignment) or `: ` in comments; never touch dashes that are code syntax. Count in_code vs prose separately before declaring done.\n\nCITATIONS: source lines like `*Source: Book — Author*` or `*Clean Code — Robert C. Martin*` need manual rewrites to comma style (`*Clean Code* by Robert C. Martin`), not punctuation swaps; watch for broken italics when substituting (unmatched `*`).\n\nWIKILINK PITFALL: mermaid uses `[[...]]` subroutine-shape syntax (`A --> G[[Label]]`) — protect mermaid blocks before any wikilink replacement. A `[[Book Title]]` link with no target file may be an intentional forward reference (check context, e.g. References section) — leave it and note it. Folder\u002Findex links (`[[Folder\u002F|X]]`, `[[Folder\u002Findex|X]]`) don't resolve — repoint to the folder's Overview note.\n\n## Wikilink repair\n\nBroken links are common (old note names before consolidations). Build a filename→path index of the whole vault, extract all `[[target]]` (handle `path\u002FName|Alias`), map broken names to actual files, replace. Folder links (`[[Microservice\u002F01 Decomposition\u002F|...]]`) don't resolve — point to the first file inside. Verify zero broken after.\n\n## Panomete mermaid theme\n\nBrand source (LOCKED v1.0): `F:\\obsidian_note\\oralita_md\\personal\\brand\\03_style-guide.md` + `02_visual-identity.md`. Palette: primary #1FB854, secondary #1EB88E, accent #1FB8AB, neutral #19362D, base-100 #1B1717, base-200 #161212, base-content #CAC9C9, neutral-content #CDD3D1, info #00B5FF, success #00A96E, warning #FFBE00, error #FF5861. RULE: black text on saturated fills (never white on green).\n\nMermaid in Obsidian can't read the daisyUI CSS vars — bake hex values into `%%{init: {'theme':'base','themeVariables':{...}}}%%` blocks. Three variants:\n\n- **Flowchart\u002Fgraph**: primaryColor #19362D, primaryTextColor #CDD3D1, primaryBorderColor\u002FlineColor\u002FnodeBorder #1FB854, background #1B1717, mainBkg #19362D, clusterBkg\u002FedgeLabelBackground #161212, titleColor #1FB854, fontSize 14px.\n- **sequenceDiagram**: adds actorBkg #19362D, actorBorder\u002FactorLineColor #1FB854, actorTextColor #CDD3D1, signalColor\u002FsignalTextColor #CDD3D1, noteBkgColor #1EB88E + noteTextColor #000C07, activationBkgColor #1EB88E, activationBorderColor #1FB8AB, sequenceNumberColor #000000, labelBoxBkgColor #161212.\n- **classDiagram**: adds classText #CDD3D1 on top of the flowchart set.\n- **timeline**: adds cScale0..3 (brand ramp), timelineEventColor #1FB854 + timelineEventTextColor #000000, timelineLabelColor #CAC9C9.\n- **stateDiagram**: flowchart set minus node-specific keys.\n\nRemap any ad-hoc node `style` colors to brand tokens SEMANTICALLY (read the diagram first): reds→error #FF5861, orange\u002Fyellow→warning #FFBE00, greens→primary #1FB854 or success #00A96E, blues→info #00B5FF, purple→accent #1FB8AB, dark-blue ramps→neutral #19362D\u002Fsecondary\u002Faccent\u002Finfo gradient; `stroke:#333`→`#000000`; `color:#fff` on saturated fills→`color:#000000`, on dark neutral fills→`#CDD3D1`. draw.io palette: #dae8fc→info, #d5e8d4→primary, #fff2cc→warning, #e1d5e7→accent, #f8cecc→error AND append `,color:#000000` to style lines lacking an explicit color (they otherwise inherit light theme text and break contrast on saturated fills). Replace generic `%%{init {'theme':'dark'}}%%` with the brand init. Inject init as first line of blocks lacking one; never duplicate. Final check: scan diagram bodies (init lines excluded) for any hex not in the 15-color brand set.\n\n## Mermaid validation & broken-fence repair (2026-09-29 incident)\n\nNEVER trust regex extraction (` ```mermaid\\n(.*?)``` `) for validation — it misses unterminated blocks (no closing fence) and mis-pairs fences. Use a fence-aware line walker (open on ```mermaid, close on any next ``` line; track unterminated). Some notes (Microservice sub-vault) have mermaid blocks whose closing ``` was written much later (or never): headings\u002Ftables\u002Fblockquotes sit INSIDE the diagram and break the render. Fix = insert the missing ``` right after the diagram's real last line (beware `end` lines closing `subgraph` blocks — fence must go AFTER them). FOLDERS 10-12 (2026-09-30) showed a DEEPER pattern: cascading alternation breakage — one missing (or SPURIOUS extra) fence shifts pairing for the whole file (`09_Design_Contract` had 5 missing closers across 27 fences; `10_Syntax` had a spurious ```mermaid that split a code block; `13_07_Vulnerability_Management` had 5 stray fences sitting INSIDE tables). Steps: (1) list ALL fences with positions+info; (2) if count is odd, find the spurious or missing one by content (walk pairs by info tag, not alternation); (3) run an iterative repair: extract blocks with a fence-aware walker, and for every block whose body contains markdown-looking lines (heading\u002Ftable\u002Fblockquote\u002Fbold\u002Flist\u002Fprose sentence), insert a closer at the true diagram end (walk back over blanks), repeat until no block contains markdown — TABLE DETECTION gotcha: the table matcher must be `^\\s*\\|.*\\|` (row has a second pipe), NOT `\\|[^\\|]*\\|>` which only matches arrow cells and missed real tables, leaving swallowed tables unrepaired; (4) re-check both odd-count AND 'mermaid opener followed by another mermaid opener' mispairs; (5) remove stray unpaired fences at EOF when content after them is a table\u002Fheading (they're cascade leftovers, not openers) — also when fences sit BETWEEN table rows (consecutive ``` at rows 398\u002F400\u002F402-style), they are stray and must be removed even when the count looks even; (6) render, and if a block still fails with a small line number, the cause may be UNQUOTED PAREN LABELS in node text like `A[X (e.g., Y)]` → quote `A[\"X (e.g., Y)\"]` (parens are shape-start tokens to the parser). CHECKLIST BATCH (2026-09-30, 83 files, 7,435 em): checklist items use `- [ ] **Label** — desc` so the list-def rule dominates (5,732 hits). Also: (1) tier-matrix boilerplate `Skip ❌ sections entirely — they'd...` repeats ~40x, replace globally; (2) tier header lines `> 🧱 **Label** (parens) — ✅ status` need a dedicated regex (label + optional parens + emoji status); (3) dangling `**Label** —` lines whose description is a following code block\u002Ftable take a COLON, not semicolon; (4) `>` intro lines `The **X** checklist — what...` take semicolon; (5) `Last updated: date — synced...` take semicolon. Code-block pass: tree diagrams (`├──`\u002F`│`) and `\u002F\u002F comment`\u002F`# comment` lines → ` - `. Links: Obsidian resolves case-insensitively + via frontmatter aliases — build the resolver BEFORE declaring broken; `[[bin]]` (Cargo.toml) and `[[lang]]` (SvelteKit routes) inside inline code are NOT links — strip ``` fences AND inline backticks before scanning. Security artifact links (Data-Breach-Response-Plan, Threat-Model, ...) with context 'template'\u002F'if exists' are INTENTIONAL forward refs — leave them. Diagrams: 40 all flowchart; pastel tier styles (#e1f5ff\u002F#e8f5e9\u002F#f3e5f5\u002F#ffebee\u002F#fff3e0\u002F#fff4e1\u002F#e3f2fd) remapped semantically + black text; `[[[x]]]` triple-bracket node shapes are INVALID mermaid — convert to `[[\"x\"]]`. Fence saga: nearly every checklist file's LAST mermaid block lacked its closer (table\u002Fheading swallowed to EOF), plus spurious early closers inside tree-diagram code blocks (`src\u002F` closed on line 3, tree continued outside) — check files with tiny fence counts; `  ``` ` inside list-item tables (secrets-management rotation table) split the block.\n\nValidation toolchain (Bun + Edge, no Chromium download): scratch dir mermaid-check\u002F — `bun add @mermaid-js\u002Fmermaid-cli puppeteer` with PUPPETEER_SKIP_DOWNLOAD=true, puppeteer.json pointing executablePath at the installed Edge, run `node_modules\u002F.bin\u002Fmmdc -i in.mmd -o out.png -p puppeteer.json -q` per block; exit code != 0 = parse error. Render all blocks in a background batch (run_batch.py pattern) and collect failures. ~2.5s\u002Fblock. `run_final.py` reads `manifest.json` as 4-tuples `[name, rel, idx, \"\"]` + one `\u003Cname>.mmd` per block in the same dir; success format `TOTAL: \u003Cn> fails: \u003Cn>`.\n\n## Fence repair SAFETY RULES (2026-09-30 computing-foundation incident — damaged 8 files)\n\nNEVER remove fence openers based on a content heuristic. The aggressive \"block body contains markdown → spurious opener\" pass treated bash `# comment` lines (and `6. Presentation`-style numbered prose) as markdown headings and DELETED legitimate code-block openers — 8 files broke (missing closers + orphan openers cascading). Recovery that worked: `git checkout HEAD -- \u003C8 files>` (auto-backup HEAD was clean), then REDO only the reverted files' text work (em\u002Flinks\u002Ftheming are deterministic scripts), and repair fences with INSERT-ONLY logic.\n\nVERIFY EVERY fence change against git: `git diff -U0 HEAD -- \u003Cfolder>` counting `^+``` ` vs `^-``` ` per file. Unbalanced = damage. **Balanced is NOT safe**: +1\u002F−1 can hide a RELOCATED closer (a closer moved from before a prose line to after it = prose swallowed INSIDE a mermaid block → mmdc parse error, but every count\u002Fparity check passes). Files with ONLY insertions on odd-at-HEAD files are usually legit author-error fixes.\n\nFull validation chain (all required): (1) semantic fence walk — flagged = tagged line where a closer is expected, or EOF with unclosed block; (2) mermaid openers count == regex-matched blocks count (a mismatch means a block's closer was eaten — typically mermaid-opener-paired-to-mermaid-opener); (3) no markdown (headings\u002Ftables\u002F`- [ ]`) inside extracted .mmd bodies; (4) mmdc render all blocks — the only ground truth. Watch: 4-backtick outer fences (````markdown) are VALID for nested README examples — a 3bt-only validator falsely flags them; don't \"fix\" a correct 4bt structure. Reads must use default universal-newline `open()`; `open(newline=\"\")` breaks ` ```mermaid\\n ` regexes (CRLF on disk). Mermaid edge labels contain `|` so naive `\\|.*\\||` table detectors flag graph lines as tables → false \"markdown in block\" → bogus repairs. Files on disk are mixed CRLF\u002FLF; git may show a full-file rewrite after edits (EOL normalization) — compare the FENCE SEQUENCE vs HEAD instead of raw diff line counts. Domain symbols: decision-table don't-care entries are dashes, not punctuation — use en-dash `–` to keep the em census at 0 without changing meaning.\n\n## Workflow order per folder\n\nsurvey (files\u002Fem-count\u002Fmermaid-count) → 3-pass em-dash (prose, then code-block pass) → normalization → wikilink repair (mermaid-protected) → mermaid theming → final verify (0 em-dash, 0 artifacts, 0 broken links, every block has init, 0 off-brand hex) → report table to user → offer commit. Report should include replacement-count tables and a what-I-didn't-touch section (en-dash ranges, code logic, intentional heading conventions like `## Intent`-only pattern notes, prose voice).\n",{"name":5,"description":7},"main","2988869c5a7d7be2225c9ea7a54a4a56a59b0d45","workflow\u002Fjourney-writer\u002Fswe-knowledge-vault-refine",0,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup","https:\u002F\u002Fgithub.com\u002Foat431","https:\u002F\u002Fpanomete.com\u002F","Hope and Luck is not a part of the strategy, \r\n\r\nSoftskill produces plan Hard skill produce product.","2026-11-03 00:43:08",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add oat431\u002Fhermes_config_backup --skill swe-knowledge-vault-refine",{"tool":39,"command":40},"bunx","bunx skills add oat431\u002Fhermes_config_backup --skill swe-knowledge-vault-refine",{"tool":42,"command":43},"pnpm","pnpm dlx skills add oat431\u002Fhermes_config_backup --skill swe-knowledge-vault-refine","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Fjourney-writer\u002Fswe-knowledge-vault-refine\u002FSKILL.md",true,[],[48,56,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":52,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7AYZ2JY3NFKAPQSC39N5F3F","project-spec-docs","Fill\u002Fupdate project_spec docs (templates, MM handoffs).","MIT","https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Fui-ux\u002Fproject-spec-docs\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":52,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7AYYRZPE7HQX7778558X52S","penpot-mcp","Penpot MCP: connect, verify, and fix streaming via nginx.","https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Fui-ux\u002Fpenpot-mcp\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AYYNKP61CN2281VMJDXMB5","nginx-streaming-proxy","Configure nginx for streaming endpoints (SSE, MCP, WS).","https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Fui-ux\u002Fnginx-streaming-proxy\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":52,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AYYJP0MDV1D3WVEEZB3SGA","branding-ci","Use for brand\u002FCI identity, style guides, and brand docs.","https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Fui-ux\u002Fbranding-ci\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AYYGCXVT97DDTCM0ZJT6F6","yuanbao","Yuanbao (元宝) groups: @mention users, query info\u002Fmembers.","https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Fshared-skills\u002Fyuanbao\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AYYC2Y65NMGMD4GQXAZMMS","slidev","Create and present web-based slidedecks for developers using Slidev with Markdown, Vue components, code highlighting, animations, and interactive features. Use when building technical presentations, conference talks, code walkthroughs, teaching materials, or developer decks.","https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Fshared-skills\u002Fslidev\u002FSKILL.md",[],[]]