Agento-patronum patronum-dev-add-default-pattern

Add a new default pattern to defaults/patronum.json with correct schema and validation.

install
source · Clone the upstream repo
git clone https://github.com/emaarco/agento-patronum
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/emaarco/agento-patronum "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/patronum-dev-add-default-pattern" ~/.claude/skills/emaarco-agento-patronum-patronum-dev-add-default-pattern && rm -rf "$T"
manifest: .claude/skills/patronum-dev-add-default-pattern/SKILL.md
source content

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

node -e "JSON.parse(require('fs').readFileSync('defaults/patronum.json','utf8'))" && echo "patronum.json OK"

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)" node scripts/management/patronum-verify.js

6. Report

Confirm the pattern was added and tests pass.