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.