Enable or disable hookify rules interactively
/plugin marketplace add CaptainCrouton89/silas-plugins/plugin install hookify@crouton-kitLoad hookify:writing-rules skill first to understand rule format.
Enable or disable existing hookify rules using an interactive interface.
Use Glob tool to find all hookify rule files in both locations:
# Global rules (apply to all projects)
path: ~/.claude
pattern: "hookify.*.local.md"
# Project rules (apply to current project only)
pattern: ".claude/hookify.*.local.md"
If no rules found, inform user:
No hookify rules configured yet. Use `/hookify` to create your first rule.
For each rule file:
name and enabled fields from frontmatterUse AskUserQuestion to let user select rules:
{
"questions": [
{
"question": "Which rules would you like to enable or disable?",
"header": "Configure",
"multiSelect": true,
"options": [
{
"label": "warn-dangerous-rm (currently enabled)",
"description": "Warns about rm -rf commands"
},
{
"label": "warn-console-log (currently disabled)",
"description": "Warns about console.log in code"
},
{
"label": "require-tests (currently enabled)",
"description": "Requires tests before stopping"
}
]
}
]
}
Option format:
{rule-name} (currently {enabled|disabled})For each selected rule:
For each rule to toggle:
enabled: true to enabled: false (or vice versa)Edit pattern for enabling:
old_string: "enabled: false"
new_string: "enabled: true"
Edit pattern for disabling:
old_string: "enabled: true"
new_string: "enabled: false"
Show user what was changed:
## Hookify Rules Updated
**Enabled:**
- warn-console-log
**Disabled:**
- warn-dangerous-rm
**Unchanged:**
- require-tests
Changes apply immediately - no restart needed
/hookify:list to see all configured rulesNo rules to configure:
/hookify to create rules firstUser selects no rules:
File read/write errors: