| name | Hookify List |
| description | List and inspect all configured hookify rules — show status, event types, patterns, file paths. Triggers on "list hookify rules", "show my hooks", "what hookify rules do I have", view configured rules. |
| version | 0.1.0 |
List Hookify Rules
Load writing-rules skill first to understand rule format.
Show all configured hookify rules in the project.
Steps
-
Use glob tool to find all hookify rule files:
pattern: ".github/hookify.*.local.md"
-
For each file found:
- Use read tool to read the file
- Extract frontmatter fields: name, enabled, event, pattern
- Extract message preview (first 100 chars)
-
Present results in a table:
## Configured Hookify Rules
| Name | Enabled | Event | Pattern | File |
|------|---------|-------|---------|------|
| warn-dangerous-rm | ✅ Yes | bash | rm\s+-rf | hookify.dangerous-rm.local.md |
| warn-console-log | ✅ Yes | file | console\.log\( | hookify.console-log.local.md |
| check-tests | ❌ No | stop | .* | hookify.require-tests.local.md |
**Total**: 3 rules (2 enabled, 1 disabled)
- For each rule, show a brief preview:
### warn-dangerous-rm
**Event**: bash
**Pattern**: `rm\s+-rf`
**Message**: "⚠️ **Dangerous rm command detected!** This command could delete..."
**Status**: ✅ Active
**File**: .github/hookify.dangerous-rm.local.md
- Add helpful footer:
---
To modify a rule: Edit the .local.md file directly
To disable a rule: Set `enabled: false` in frontmatter
To enable a rule: Set `enabled: true` in frontmatter
To delete a rule: Remove the .local.md file
To create a rule: Use `hookify-create` skill
**Remember**: Changes take effect immediately - no restart needed
If No Rules Found
If no hookify rules exist:
## No Hookify Rules Configured
You haven't created any hookify rules yet.
To get started:
1. Use `hookify-create` skill to analyze conversation and create rules
2. Or manually create `.github/hookify.my-rule.local.md` files
3. Use `hookify-help` skill for documentation
Example:
hookify-create Warn me when I use console.log
Check `examples/` for example rule files.