guard-form-invariance-test
IndexedUse when you write, change or review a guard that decides on an action from its text (a PreToolUse hook, a command matcher, a permission rule, a classifier in front of a tool call), and when a guard has fired on a permitted action or passed a forbidden one. A guard tested on tidy cases can decide the same action differently when only its surface form changes. State the effect the guard exists for, re-render each labelled case in other forms that keep the effect, run the guard on every rendering by piping the payload to it, and treat a decision that moves with the form as a defect. Repair by restoring one canonical form in front of the matcher, not by adding a pattern per form. A gap found this way is reported to the operator and never used. Distinct from guard-refusal-protocol (what to do when a guard refuses you) and security-hygiene (general hygiene for self-modification). Backed by ToolRosetta (arxiv 2610.24055). Triggers on authoring or reviewing a hook and on a guard false positive.
Install
$ npx skills add https://github.com/Tibsfox/gsd-skill-creator --skill guard-form-invariance-test
The skills CLI downloads the skill from GitHub when you run the command, so what you get may have changed since the scan.
Scan
The scan flagged nothing in SKILL.md when it was last read. It doesn’t read the skill’s other files, and a clean scan doesn’t prove a skill is safe.
Copies
No other indexed repository has this exact folder.