feat(baoyu-format-markdown): add markdown formatter skill

Formats plain text or markdown with frontmatter, titles, summaries,
headings, bold, lists, code blocks, and CJK typography fixes.
This commit is contained in:
Jim Liu 宝玉
2026-01-28 21:37:23 -06:00
parent 21a5167b61
commit 40363194be
7 changed files with 845 additions and 0 deletions
@@ -0,0 +1,10 @@
import { execSync } from "child_process";
export function applyAutocorrect(filePath: string): boolean {
try {
execSync(`npx autocorrect-node --fix "${filePath}"`, { stdio: "inherit" });
return true;
} catch {
return false;
}
}