| name | patronum-dev-add-default-pattern |
| argument-hint | "<pattern>" --reason "<reason>" |
| description | Add a new default pattern to defaults/patronum.json with correct schema and validation. |
| disable-model-invocation | true |
| allowed-tools | Read, Edit, Bash(jq *), Bash(CLAUDE_PLUGIN_ROOT=* bash scripts/patronum-verify.sh) |
Skill: patronum-dev-add-default-pattern
Add a new pattern to the default protection list shipped with the plugin.
Steps
1. Read current defaults
Read defaults/patronum.json
2. Validate the proposed pattern
- Check it's not already in the defaults
- Check the pattern syntax is valid (glob or Bash command format)
- Check a reason is provided
3. Add the entry
Edit defaults/patronum.json to add the new entry with the correct schema:
{
"pattern": "<pattern>",
"type": "glob",
"reason": "<reason>",
"addedAt": "<current ISO timestamp>",
"source": "default"
}
4. Validate JSON
jq empty defaults/patronum.json
5. Run self-test
Copy the updated defaults to the config and run verify:
cp defaults/patronum.json ~/.claude/patronum.json
CLAUDE_PLUGIN_ROOT="$(pwd)" bash scripts/patronum-verify.sh
6. Report
Confirm the pattern was added and tests pass.