gdextension-hygiene
Skill240 starsChanged 28 days agoMITView on GitHub
Run a Godot/GDExtension finish pass over the current diff: enforce headless GDScript validation, public API doc_classes coverage, docs/spec/sample/test synchronization, and registration or CMake follow-through. Triggers: hygiene pass, finish pass, validate diff completeness, godot addon hygiene, gdextension hygiene, preflight diff, final pass
In this repository5 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- adversarial-reviewSkill
- issue-triageSkill
- pr-feedback-loopSkill
- pr-local-validationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 7 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Start from the current diff or the user-specified files, not from a whole-repo audit.
- Distinctive: line 19
Use the existing repo and path-scoped instructions before inventing new validation steps.
- Very specific: line 20
If the user explicitly wants PR-feedback triage, use pr-feedback-loop first.
- Very specific: line 21
If the user explicitly wants risky-diff pressure testing, use adversarial-review first.
- Very specific: line 32
ensure public classes, methods, properties, signals, and enums stay reflected in addons\godot_gdk\doc_classes\*.xml
- Very specific: line 34
ensure the related docs\<addon>\*.md, spec\gdext-<addon>.md, sample content, and tests stay aligned when behavior or script-visible API …
- Distinctive: line 37
ensure registration and ownership are wired correctly
- Very specific: line 38
ensure the relevant addon CMakeLists.txt includes the new files
- Distinctive: line 40
run the existing debug build step that refreshes the sample copy when required by the path-scoped instructions
- Distinctive: line 43
follow their current build and documentation patterns
- Very specific: line 44
do not invent doc_classes requirements for addons that do not currently ship them
- Very specific: line 47
If any docs\tutorials\\*.md was edited in this diff, verify the matching scene or script under the relevant sample\tutorial_gdk\, …
- Very specific: line 54
If any script under sample\tutorial_gdk\, sample\tutorial_playfab\, sample\tutorial_integrated\, or sample\tutorial_gameinput\ was edited …
- Distinctive: line 59
If the change is intentionally docs-only or sample-only (typo fix, comment polish, scene-tree node order that does not appear in any …
- Distinctive: line 69
Run the narrowest existing validation that proves the change is complete.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
GDExtension Hygiene Skill
You are the repo-local gdextension-hygiene skill. Your job is to inspect the current diff and make sure the change is finished cleanly across the Godot-facing surfaces that usually drift apart.
Core rules
- Start from the current diff or the user-specified files, not from a whole-repo audit.
- Build the checklist from the touched surfaces instead of applying every rule blindly.
- Use the existing repo and path-scoped instructions before inventing new validation steps.
- If the user explicitly wants PR-feedback triage, use
pr-feedback-loopfirst. - If the user explicitly wants risky-diff pressure testing, use
adversarial-reviewfirst.
Finish-pass checklist
- For
.gdchanges anywhere in the repo, run:
pwsh -NoLogo -NoProfile -ExecutionPolicy Bypass -File .\tools\check_gd_scripts_headless.ps1- For
godot_gdkpublic contract changes:- ensure public classes, methods, properties, signals, and enums stay reflected in
addons\godot_gdk\doc_classes\*.xml - ensure the related
docs\<addon>\*.md,spec\gdext-<addon>.md, sample content, and tests stay aligned when behavior or script-visible API changes
- ensure public classes, methods, properties, signals, and enums stay reflected in
- For new native classes or source files:
- ensure registration and ownership are wired correctly
- ensure the relevant addon
CMakeLists.txtincludes the new files
- For synced
godot_gdkaddon content underaddons\godot_gdk\:- run the existing debug build step that refreshes the sample copy when required by the path-scoped instructions
- For other addons:
- follow their current build and documentation patterns
- do not invent
doc_classesrequirements for addons that do not currently ship them
- For tutorial / sample snippet drift (the hand-discipline backstop — there is
no machine validator that holds tutorial prose and sample scripts in lockstep):
- If any
docs\tutorials\**\*.mdwas edited in this diff, verify the matching scene or script under the relevantsample\tutorial_gdk\,sample\tutorial_playfab\,sample\tutorial_integrated\(orsample\tutorial_gameinput\for the standalone GameInput track) was also touched in the same diff. The sample is the "this is what you should have" anchor for the tutorial reader, so a tutorial-only change is a drift smell unless the snippet genuinely matches what already ships. - If any script under
sample\tutorial_gdk\,sample\tutorial_playfab\,sample\tutorial_integrated\, orsample\tutorial_gameinput\was edited in this diff, verify the matchingdocs\tutorials\**\*.mdwas also touched. A sample-only change without the matching tutorial update silently walks the reader off the rails. - If the change is intentionally docs-only or sample-only (typo fix, comment polish, scene-tree node order that does not appear in any snippet, autoload refactor that does not change the snippet shape), call it out explicitly in the report so the reviewer can confirm the asymmetry is on purpose.
- If any
Workflow
- Identify the changed surfaces in the diff.
- Build the minimum finish-pass checklist that applies to those surfaces.
- Fix the missing follow-through directly when it is concrete and local.
- Run the narrowest existing validation that proves the change is complete.
- Report any remaining gaps that need a product or scope decision.
Output format
Use this structure:
- Scope
- Required follow-through
- Gaps fixed
- Remaining gaps
- Validation
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.

