mcpbeat Sign in

Rule Catalog Skill for Claude

Browse hookify rule catalog. Use when installing pre-built rules or browsing categories. Do not use when writing custom rules; use hookify:writing-rules.

7k tokens
context cost
the whole folder, loaded on every use
15
files
instructions only
0
copies elsewhere
how many repositories repackaged it
324
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/athola/claude-night-market --skill rule-catalog

The instruction itself

20 sections, as written by the author

When To Use

  • Browsing available hookify rules by category
  • Installing standard pre-built rules into a project
  • Looking for ready-made rules before writing custom ones

When NOT To Use

  • Writing custom rules from scratch: use hookify:writing-rules instead
  • Debugging or modifying existing installed rules
  • Converting Python SDK hooks: use hookify:from-hook instead

Table of Contents

  • Quick Install
  • Available Rules
  • git/ - Git Safety
  • python/ - Python Quality
  • security/ - Security Gates
  • workflow/ - Workflow Enforcement
  • performance/ - Resource Management
  • Installation Instructions
  • Method 1: Claude-Assisted (Recommended))
  • Method 2: Python Script
  • Method 3: Manual Copy
  • Rule File Locations
  • Customizing Rules
  • Creating Pull Requests for New Rules
  • Related

Hookify Rule Catalog

Pre-built rules for common scenarios. Install directly or use as templates.

Quick Install

# Install a specific rule
Skill(hookify:rule-catalog) then install git:block-force-push

# Or use the Python installer for bulk operations
python3 plugins/hookify/scripts/install_rule.py git:block-force-push
python3 plugins/hookify/scripts/install_rule.py --category git
python3 plugins/hookify/scripts/install_rule.py --all

Verification: Run python --version to verify Python environment.

Available Rules

git/ - Git Safety

| Rule | Action | Default | Description |

|------|--------|---------|-------------|

| block-force-push | block | enabled | Prevent force push to main/master |

| block-destructive-git | block | enabled | Block reset --hard, checkout -- ., clean -fd, etc. |

| warn-risky-git | warn | enabled | Warn about rebase -i, soft reset, etc. |

| warn-large-commits | warn | enabled | Warn about large binary files |

python/ - Python Quality

| Rule | Action | Default | Description |

|------|--------|---------|-------------|

| block-dynamic-code | block | enabled | Block dangerous dynamic code execution |

| warn-print-statements | warn | enabled | Encourage logging over print() |

security/ - Security Gates

| Rule | Action | Default | Description |

|------|--------|---------|-------------|

| require-security-review | block | enabled | Require review for auth code |

| destructive-command-guard | warn | enabled | Warn on destructive commands targeting prod-shaped paths |

workflow/ - Workflow Enforcement

| Rule | Action | Default | Description |

|------|--------|---------|-------------|

| enforce-scope-guard | warn | enabled | Anti-overengineering (imbue) |

| require-spec-before-code | block | disabled | Spec-first development |

performance/ - Resource Management

| Rule | Action | Default | Description |

|------|--------|---------|-------------|

| warn-large-file-ops | warn | enabled | Watch large file writes |

Installation Instructions

When you invoke this skill, tell Claude which rule(s) to install:

**Verification:** Run `git status` to confirm working tree state.
Install git:block-force-push

Verification: Run the command with --help flag to verify availability.

Claude will:

  • Read the rule from skills/rule-catalog/rules/git/block-force-push.md
  • Write it to .claude/hookify.block-force-push.local.md
  • Confirm installation

Method 2: Python Script

For bulk operations or automation:

# Install single rule
python3 plugins/hookify/scripts/install_rule.py git:block-force-push

# Install all rules in category
python3 plugins/hookify/scripts/install_rule.py --category python

# Install all rules
python3 plugins/hookify/scripts/install_rule.py --all

# List available rules
python3 plugins/hookify/scripts/install_rule.py --list

# Install to custom directory
python3 plugins/hookify/scripts/install_rule.py git:block-force-push --target /path/to/.claude

Verification: Run the command with --help flag to verify availability.

Method 3: Manual Copy

  • Find rule in plugins/hookify/skills/rule-catalog/rules/<category>/<rule>.md
  • Copy to .claude/hookify.<rule-name>.local.md
  • Edit enabled: true/false as needed

Rule File Locations

Rules are stored relative to this skill:

**Verification:** Run the command with `--help` flag to verify availability.
skills/rule-catalog/
├── SKILL.md (this file)
└── rules/
    ├── git/
    │   ├── block-force-push.md
    │   ├── block-destructive-git.md
    │   ├── warn-risky-git.md
    │   └── warn-large-commits.md
    ├── python/
    │   ├── block-dynamic-code.md
    │   └── warn-print-statements.md
    ├── security/
    │   ├── require-security-review.md
    │   └── destructive-command-guard.md
    ├── workflow/
    │   ├── enforce-scope-guard.md
    │   └── require-spec-before-code.md
    └── performance/
        └── warn-large-file-ops.md

Verification: Run the command with --help flag to verify availability.

Customizing Rules

After installation, edit the rule in .claude/:

# Change action from warn to block
action: block

# Disable temporarily
enabled: false

# Modify pattern
pattern: your-custom-pattern

Verification: Run the command with --help flag to verify availability.

Creating Pull Requests for New Rules

To add rules to the catalog:

  • Create rule file in appropriate category
  • Follow naming convention: kebab-case.md
  • Include detailed message with alternatives
  • Test thoroughly before submitting
  • Update this SKILL.md catalog table
  • Skill(hookify:writing-rules) - Create custom rules
  • /hookify:list - Show installed rules
  • /hookify:configure - Manage installed rules

Exit Criteria

  • [ ] Installed rule file exists at

.claude/hookify.<rule-name>.local.md with enabled: true

in its frontmatter

  • [ ] Rule activates without requiring a session restart; verified

by triggering a matching pattern and observing the warn or

block response

  • [ ] When installing via Python script, exit code 0 is returned

and the rule file is present at the target path

  • [ ] Rule file structure matches the catalog source at

skills/rule-catalog/rules/<category>/<rule>.md; no fields

silently dropped during installation

Other skills for the same job

different authors, same section of the catalogue
Doc Coauthoring
by anthropics
vendor ×10

Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.

4k tokens
Changelog Generator
by frostant
×9

Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.

774 tokens
Test Driven Development
by w95
×7

Use when implementing any feature or bugfix, before writing implementation code

2k tokens
Writing Plans
by ZhanlinCui
×4

Use when you have a spec or requirements for a multi-step task, before touching code

816 tokens
Writing Skills
by ZhanlinCui
×4

Use when creating new skills, editing existing skills, or verifying skills work before deployment

26k tokens scripts
Crafting Effective Readmes
by softaworks
×3

Use when writing or improving README files. Not all READMEs are the same — provides templates and guidance matched to your audience and project type.

15k tokens
Humanizer
by softaworks
×3

| Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.

6k tokens
Opentrons Integration
by christophacham
×3

Official Opentrons Protocol API for OT-2 and Flex robots. Use when writing protocols specifically for Opentrons hardware with full access to Protocol API v2 features. Best for production Opentrons protocols, official API compatibility. For multi-vendor automation or broader equipment control use pylabrobot.

9k tokens scripts

How to use it

Copy the folder

Take athola/rule-catalog from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.