Patronum Dev Add Default Pattern

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

emaarco 897ea35 1.1 KB Updated

File contents

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.

emaarco/hogwarts/tree/main/plugins/agento-patronum/.claude/skills/patronum-dev-add-default-pattern commit 897ea35ba2

Frequently asked questions

npx skillmds@latest add emaarco/patronum-dev-add-default-pattern