# Patronum Dev Add Default Pattern

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

- Skill: `emaarco/patronum-dev-add-default-pattern` (Agent Skill)
- Install (CLI): `npx skillmds@latest add emaarco/patronum-dev-add-default-pattern`
- Raw SKILL.md: https://api.skillmd.com/api/skills/emaarco/patronum-dev-add-default-pattern/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: emaarco (https://skillmd.com/u/emaarco)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/emaarco/patronum-dev-add-default-pattern

---


# Skill: patronum-dev-add-default-pattern

Add a new pattern to the default protection list shipped with the plugin.

## Steps

### 1. Read current defaults

```bash
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:

```json
{
  "pattern": "<pattern>",
  "type": "glob",
  "reason": "<reason>",
  "addedAt": "<current ISO timestamp>",
  "source": "default"
}
```

### 4. Validate JSON

```bash
jq empty defaults/patronum.json
```

### 5. Run self-test

Copy the updated defaults to the config and run verify:

```bash
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.

