CtrlK
BlogDocsLog inGet started
Tessl Logo

hook-rules

Scaffold and validate hookify rule files (.claude/hookify.NAME.local.md) that turn a prose guideline into a pattern-matched hook message, via scripts/scaffold_rule.py and scripts/validate_rule.py. Use when the user asks to create, write or validate a hookify rule, or to turn a rule of thumb into an enforced hook. [EXPLICIT]

60

Quality

74%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./plugins/claude-native-toolkit/skills/hook-rules/SKILL.md
SKILL.md
Quality
Evals
Security

Hook Rules

Generic, brand-neutral engineering capability; sourced playbooks in references//knowledge/. [DOC]

TL;DR

A hookify rule is a markdown file with YAML frontmatter that watches for a pattern and shows a message when it matches. Rules live at .claude/hookify.{name}.local.md. This is higher-level than a raw settings.json hook — for raw hooks blocks, use hook-creator [EXPLICIT]

When to use

  • Use for the hook rules capability. [EXPLICIT]
  • NOT for adjacent domains — route to the matching skill. [INFERENCE]

Sub-capabilities (resource map)

Deep, evidence-tagged playbooks — open the one the task needs (ICM Layer 3, on-demand). [INFERENCE]

Reference
references/full-playbook.md
references/patterns-and-events.md

Procedure

  1. Resolve the sub-capability; open the matching references/ playbook. [EXPLICIT]
  2. Apply its decision tables; pick the strategy explicitly. [EXPLICIT]
  3. Validate against the Quality Criteria and tag every claim. [EXPLICIT]

Quality Criteria

  • Sub-capability resolved to one playbook. [INFERENCE]
  • Claims evidence-tagged. [EXPLICIT]

Contract

  • Aceptación: capability resolved to its reference playbook, applied, validated, evidence-tagged. [EXPLICIT]
  • Límites: scoped to this capability; deep procedure in references/. [EXPLICIT]
  • Casos borde: ambiguous/insufficient input → request clarification before proceeding. [EXPLICIT]
  • Supuestos: access to project artifacts (code, docs, configs). [SUPUESTO]
  • Trade-off: depth in references keeps the SKILL.md stage contract lean (ICM). [EXPLICIT]

Packet

Capas del packet, cargables bajo demanda (disciplina ICM: una capa por vez, nunca todas juntas): references/ guías de profundidad (cargar UNA por etapa) · knowledge/ cuerpo de conocimiento · prompts/ prompts listos · examples/ salida de ejemplo · agents/ subagentes del packet · templates/ plantilla de output · scripts/ automatización local · assets/ recursos estáticos.

Repository
JaviMontano/claude-plugins
Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.