Context
Found by the repo-wide /code-tidying:batch-simplify sweep (62 groups / 986 files, branch claude/repo-code-tidying-batch-twhddw). The sweep's doctrine files latent defects instead of fixing them mid-sweep, because the fix changes observable behavior; this issue is that filing.
scripts/generate-cheatsheet.mjs:76,84-86,146 — a SKILL.md missing the leading --- yields {} meta, then an unhandled TypeError instead of the named fail() path. Unreachable in the current corpus, but the failure mode is a stack trace instead of the tool's own error channel.
Proposed work
- Route the missing-front-matter case through the existing fail() with a named error.
Acceptance criteria
References
scripts/generate-cheatsheet.mjs:76
Filed by the /code-tidying:batch-simplify closeout (Phase 8).
Context
Found by the repo-wide
/code-tidying:batch-simplifysweep (62 groups / 986 files, branchclaude/repo-code-tidying-batch-twhddw). The sweep's doctrine files latent defects instead of fixing them mid-sweep, because the fix changes observable behavior; this issue is that filing.scripts/generate-cheatsheet.mjs:76,84-86,146— a SKILL.md missing the leading---yields{}meta, then an unhandled TypeError instead of the named fail() path. Unreachable in the current corpus, but the failure mode is a stack trace instead of the tool's own error channel.Proposed work
Acceptance criteria
References
scripts/generate-cheatsheet.mjs:76Filed by the /code-tidying:batch-simplify closeout (Phase 8).