template-check
Skill4 starsChanged 6 days agoMITView on GitHub
Compares an issue or pull request body's headings with the repository's template, used internally by issue and PR workflows. Use when another workflow must check a draft or posted body against its template.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- frostney/known-good-routeword for word, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 1
- frostney/known-good-route★ 0100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- address-feedbackSkill
- agent-writingSkill
- codebase-auditSkill
- code-reviewSkill
- create-issueSkill
- create-prSkill
- create-releaseSkill
- deliverSkill
- delivery-waitSkill
- domain-modelingSkill
- git-workflowSkill
- grillingSkill
- grill-with-docsSkill
- implementSkill
- improve-codebase-architectureSkill
- maintain-project-skillsSkill
- milestone-rushSkill
- native-nostalgia-stackSkill
- project-structureSkill
- roadmap-reviewSkill
- run-retroSkill
- test-against-specSkill
- update-prSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Run scripts/check_template.py to compare a body's headings with the template it should follow.
- Very specific: line 25
Run it as python3 "$SKILL_DIR/scripts/check_template.py", where SKILL_DIR is this skill's directory, from the checkout of the repository …
- Very specific: line 29
Check a draft with --body FILE, or --body - for standard input, plus --kind issue or --kind pr.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Template check
Run scripts/check_template.py to compare a body's headings with the template
it should follow. It reports each template heading that is missing, renamed,
out of order or left empty. The caller owns the rule the body must meet and
fixes the body; this skill only reports.
Running a check
Run it as python3 "$SKILL_DIR/scripts/check_template.py", where SKILL_DIR
is this skill's directory, from the checkout of the repository the body
belongs to.
- Check a draft with
--body FILE, or--body -for standard input, plus--kind issueor--kind pr. Check a posted body with--pr Nor--issue N. - The template is discovered where GitHub looks for it, in the root,
docs/and.github/:pull_request_template.mdor aPULL_REQUEST_TEMPLATE/folder for PRs, andissue_template.mdor anISSUE_TEMPLATE/folder of templates and issue forms for issues.--rootnames another checkout.--repo OWNER/REPO,HOST/OWNER/REPOor the repository's URL names the repository for--prand--issueand, without--root, reads the templates from its default branch. - With several templates, pass the one the body follows with
--template-name, matching its front matternameor its file name. Without it the closest fit is used, and a tie is an error. Choose it from what the body is for, such as the issue's or PR's labels or title, and ask only when nothing settles it.--template PATHskips discovery; an issue form passed that way checks an issue body without--kind. --jsonprints one JSON object with the same result.
Reading the result
- Exit 0 with
match: every template heading is present, verbatim, in order and has content. - Exit 0 with
no-template: the repository has no template with headings, or the template--template-namenames has none, so there is nothing to compare. - Exit 1 with
mismatch: fix each reported heading in the body and run the check again. A Markdown template's heading is reported as the template writes it, so it can be pasted into the body. - Exit 2 with
operational-error: the check could not compare, for example outside a git checkout, without the Markdown renderer, for an unreachable repository, for an issue form it cannot read, or for a body that fits several templates equally. Fix the cause it names, pass--repo,--template-nameor--template PATHas it says, and never treat it as a pass.
It reads a Markdown body or template as GitHub renders it: with cmark-gfm,
the engine behind GitHub's Markdown, run locally, so a heading counts exactly
where GitHub shows one and nothing is sent anywhere to be rendered. Without
the cmarkgfm package, or PyYAML for issue forms and front matter, it runs
that package through uv with a pinned version from PyPI alone, outside the
checkout and ignoring uv configuration and index settings; without uv, it is
an operational error that names the install command. A check with no template
needs no renderer. With --template-name, only the templates that can be the one named
are read.
Text in code, comments and other HTML GitHub does not show is no heading. A
heading inside a list item, quote, table or alert is its section's content,
not a section of its own. A heading compares with its inline code, emphasis,
strikethrough, link destinations, images by their source, line breaks and inline HTML such as subscript, as GitHub
shows them, and a footnote reference by its label, not the number GitHub
shows. Emoji
shortcodes such as :bug: compare as written, not as the emoji GitHub shows,
and so does math in dollar signs, which cmark-gfm does not render, so write
them as the template does. A template heading pairs with a body
heading at the same level before one at another level, so a subsection that shares a
section's name does not stand in for it. A list item that shows nothing, or only [ ], such as a
template's - placeholder, is not content. Reading stops at a pull request's
review note, the last --- rule with a blank line before and after it,
followed by a plain line that opens with Edit: and names the head it covers in
code, such as Edit: `1a2b3c4` reviewed, so the note is not content of the
last template section. For an issue, the
attribution note create-issue closes it with is not content either.
Issue forms and front matter are YAML, read with PyYAML's safe loader as
GitHub reads them, in any YAML style. A form that does not load, a body
that is not a list, or a field whose label is not text, is an operational
error, never a partial check, as is front matter that does not load once the
parser has read its root as a mapping. When the YAML parser reads a broken template's own name
before the error, that name keeps it from blocking a check that names another
template; a name it cannot read, or one a << merge may supply, blocks every
named check.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

