style(templates): rewrap the templates' comments #176
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/template-comments-wrap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Prettier fills the source's prose to 72 columns but leaves text inside
HTML comments as written, so the guiding comments of six templates under
.agents/templates/had paragraphs broken short, as #171 found in thepull request template; every adopting repository inherits them, and
nothing kept a later edit from leaving more. Waiving a test, as #171
did, was set aside, as the same defect came back the same day.
What changed
The comments of
diagnosis.md,report.md,review.md,skill.md,verdict.md, andwork.mdread as Prettier fills prose; no word orlist item changes, and lines Prettier cannot break, a frontmatter
example, a heading, and a code span, stay as they were. A new check in
tests/agent-config/document-templates.shruns Prettier once over everytemplate comment and fails naming each one it would change; it prints a
skip line where Prettier is missing.
How to verify
On the branch, run
bash tests/agent-config/document-templates.sh: itends with
all 9 agent configuration tests passed. Then restore main'stemplates with
git checkout main -- .agents/templatesand run itagain: it fails with "fills each document template's comments as
Prettier fills prose" and names the 15 ragged comments, such as
work.md:40.md.git diff --word-diff mainshows no changed word.The source's Maintenance checks pass on the tip:
bash tests/verify-agent-config.sh(329 passed),bash tests/check-work-folder.sh,.agents/hooks/shellcheck.sh repo,prettier --check '**/*.md',scripts/verify-agent-config.sh, andgit diff --check main. The behavioral evals were not run, as each runis billed.