CtrlK
BlogDocsLog inGet started
Tessl Logo

hook-scaffold

Scaffold and validate Claude Code hooks blocks deterministically (scripts/scaffold_hook.py, scripts/validate_hook.py) for event-driven automation: format-on-save, file guards, notifications, quality gates. Use when the user asks to create, validate or fix a hook or a settings.json hooks block; hook-engineering owns the design rationale, this skill owns the emitted JSON. [EXPLICIT]

60

Quality

75%

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-scaffold/SKILL.md
SKILL.md
Quality
Evals
Security

Hook Scaffold

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

TL;DR

Create event-driven hooks — deterministic automation that fires at Claude Code lifecycle points. Hooks are programmatic control, NOT LLM judgment [EXPLICIT]

When NOT to create a hook

SituationBetter alternative
Complex multi-file analysisAgent (subagent)
User-invoked workflowSkill
Always-on response styleOutput style
Project-specific rulesCLAUDE.md

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

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.