Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Format plain text or markdown files with proper structure (frontmatter, headings, bold, lists, code blocks) without changing content.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
scripts/autocorrect.ts
1import { spawnSync } from "node:child_process";2import process from "node:process";34export function applyAutocorrect(filePath: string): boolean {5const npxCmd = process.platform === "win32" ? "npx.cmd" : "npx";6const result = spawnSync(npxCmd, ["autocorrect-node", "--fix", filePath], {7stdio: "inherit",8});9return result.status === 0;10}11