Skip to content
Back to skills

Summaries

BSecurity

Skill that teaches Claude how to author hookify rule files. Hookify is a plugin that lets users define watcher rules in markdown with YAML frontmatter at `.claude/hookify.{rule-name}.local.md`. Rules are read dynamically — changes apply on next tool use; no restart needed. **Rule schema (frontmatter)**: - `name` (required): kebab-case, action-oriented (`warn-dangerous-rm`, `block-console-log`). - `enabled` (required): bool to toggle without deleting. - `event` (required): `bash` / `file` / `s...

  • 8 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentspythonbashgitapi

Works with

  • api

Security analysis

B85/100
  • highPerforms destructive filesystem operations

Pro scans all 21 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add NickCollect/ai-coding-runbook --skill Summaries --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Summaries?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Summaries
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/nickcollect-summaries-6f753b54/badge)](https://www.skillsdirectory.com/skills/nickcollect-summaries-6f753b54)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
type: summary
source: 01_Raw/github/anthropics/claude-code/plugins/hookify/skills/writing-rules/SKILL.md
title: "Writing Hookify Rules (hookify plugin skill)"
summarized_at: 2026-05-05
entities_referenced: [Hooks, Skill, Plugin]
concepts_referenced: []
---

Skill that teaches Claude how to author hookify rule files. Hookify is a plugin that lets users define watcher rules in markdown with YAML frontmatter at `.claude/hookify.{rule-name}.local.md`. Rules are read dynamically — changes apply on next tool use; no restart needed.

**Rule schema (frontmatter)**:
- `name` (required): kebab-case, action-oriented (`warn-dangerous-rm`, `block-console-log`).
- `enabled` (required): bool to toggle without deleting.
- `event` (required): `bash` / `file` / `stop` / `prompt` / `all`.
- `action` (optional): `warn` (default — allow + show message) or `block` (PreToolUse stops the call, or Stop event blocks session-stop).
- `pattern` (simple): Python regex matched against `command` (bash event) or `new_text` (file event).

**Advanced multi-condition format** uses `conditions` list — each entry has `field` + `operator` + `pattern`. Fields: bash → `command`; file → `file_path`/`new_text`/`old_text`/`content`; prompt → `user_prompt`. Operators: `regex_match`, `contains`, `equals`, `not_contains`, `starts_with`, `ends_with`. ALL conditions must match.

Example multi-condition rule warning when API_KEY is added to a `.env` file:
```yaml
event: file
conditions:
  - {field: file_path, operator: regex_match, pattern: \.env$}
  - {field: new_text, operator: contains, pattern: API_KEY}
```

**Body**: shown to Claude on trigger. Use formatted markdown — explain detection, why it matters, alternatives.

**Event-specific patterns**:
- bash dangerous: `rm\s+-rf`, `dd\s+if=`, `mkfs`, `sudo\s+`, `chmod\s+777`.
- file: `console\.log\(`, `eval\(`, `innerHTML\s*=`, sensitive paths `\.env$`/`\.pem$`, generated dirs.
- stop: enforce checklist (tests run, build succeeded, docs updated).
- prompt: production deploy reminders.

**Pattern tips**:
- YAML quoted strings need double backslashes (`"\\s"`); unquoted works (`pattern: \s`). **Recommendation: unquoted**.
- Test via `python3 -c "import re; print(re.search(r'pattern','test'))"` or regex101.com (Python flavor).
- Avoid too-broad (`log` → matches "login"/"dialog") and too-specific (`rm -rf /tmp` → exact path).

File location: `.claude/hookify.{descriptive-name}.local.md`. Add `.claude/*.local.md` to `.gitignore`.

Examples folder bundled with the plugin: `dangerous-rm.local.md`, `console-log-warning.local.md`, `sensitive-files-warning.local.md`.

Files in this skill

  • 100k-context-windows--anthropic-news.md1.2 KB
  • 2026-w13.md2.5 KB
  • 2026-w14.md2.5 KB
  • 2026-w15.md2.5 KB
  • 2026-w16.md3.3 KB
  • 2026-w17.md2.9 KB
  • 3-5-models-and-computer-use--anthropic-news.md1.8 KB
  • 3p-updates--internal-comms.md1.6 KB
  • 81k-economics--anthropic-research.md2.3 KB
  • AGENTS--codex-openai.md1.8 KB
  • AGENTS--mcp-py-sdk.md3.1 KB
  • AGENTS--mcp-spec.md860 B
  • AI-assistance-coding-skills--anthropic-research.md1.3 KB
  • AI-fluency-index--anthropic-research.md1.2 KB
  • AI-resistant-technical-evaluations--anthropic-eng.md2.5 KB
  • ANTITRUST--mcp-spec.md569 B
  • AmazonBedrock-CONTRIBUTING--prompt-eng-tutorial.md1.3 KB
  • AmazonBedrock-README--prompt-eng-tutorial.md1.8 KB
  • CHANGELOG--agent-sdk-py-repo.md3.2 KB
  • CHANGELOG--anthropic-sdk-py.md1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.