CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

claude-hook-writer

Expert guidance for writing secure, reliable, and performant Claude Code hooks - validates design decisions, enforces best practices, and prevents common pitfalls. Use when creating, reviewing, or debugging Claude Code hooks.

68

Quality

85%

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

SKILL.md
Quality
Evals
Security

Quality

Content

78%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

Highly actionable content with excellent progressive disclosure: executable bash examples throughout and a clean one-level reference bundle with explicit load triggers. The main weakness is redundancy — at least three sections repeat content already stated elsewhere in the file.

Suggestions

Remove the 'Using Bundled Resources' section — it duplicates the 'When to Load References' section's trigger list and the inline 'Load X when...' pointers.

Merge the 'Critical Rules' (Always Do / Never Do) lists into the corresponding Top 5 Pitfalls sections instead of restating them as separate lists.

Delete the Overview paragraph that repeats the frontmatter description verbatim, and consider collapsing the 'Hook Design Checklist' and 'Final Checklist' into a single staged checklist to cut duplicated validation items.

DimensionReasoningScore

Conciseness

The body is mostly efficient and actionable, but contains clear redundancy: the Overview repeats the frontmatter description verbatim, 'Using Bundled Resources' duplicates the 'When to Load References' section, and 'Critical Rules' (Always/Never Do) largely restates the Top 5 Pitfalls. This matches the mostly-efficient-with-tightening-needed anchor rather than the noticeably-padded anchor of 2.

3 / 5

Actionability

Nearly every section contains copy-paste-ready bash: jq field validation with '// empty', quoted-variable fixes, path-prefix traversal checks, background execution with '(cmd > log &)', exit-2 blocking examples, and 'command -v' dependency checks — covering the common hook cases exactly as the top anchor requires.

5 / 5

Workflow Clarity

The design checklist → pitfalls → critical rules → final pre-publish checklist gives a clear sequence with validation checkpoints ('Test with edge cases before deploying', 'Tests in real Claude Code session'). Not 5 because there is no explicit feedback-loop structure (what to do when a checklist item fails and how to re-verify) that the top anchor describes.

4 / 5

Progressive Disclosure

The body is an overview with six real, verified, one-level-deep reference files (references/security-requirements.md, reliability-performance.md, code-templates.md, testing-debugging.md, publishing-guide.md, quick-reference.md), each signaled both inline ('Load X when...') and in a dedicated 'When to Load References' section with explicit triggers — matching the clear-overview anchor exactly.

5 / 5

Total

17

/

20

Passed

Description

87%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: third-person voice, concrete action verbs, and an explicit 'Use when' clause with natural trigger phrases. The only minor gap is the absence of synonym terms (hook script, hooks.json) that would push trigger coverage to comprehensive.

DimensionReasoningScore

Specificity

Names the domain ('Claude Code hooks') and lists several distinct actions ('validates design decisions, enforces best practices, and prevents common pitfalls'), matching the several-specific-actions-with-minor-gaps anchor; not 5 because 'enforces best practices' is partially generic, and not 3 since three concrete actions are enumerated.

4 / 5

Completeness

Explicitly answers both what ('Expert guidance for writing secure, reliable, and performant Claude Code hooks') and when ('Use when creating, reviewing, or debugging Claude Code hooks') with concrete trigger phrases, matching the top anchor; a 4 would require the when-clause to be less explicit, which it is not.

5 / 5

Trigger Term Quality

'Use when creating, reviewing, or debugging Claude Code hooks' provides good natural-phrase coverage users would actually say; falls short of the 5 anchor because synonyms and related terms (e.g., 'hook script', 'hooks.json', 'hook configuration') are missing.

4 / 5

Distinctiveness Conflict Risk

'Claude Code hooks' is a clear niche with distinct triggers (creating, reviewing, debugging hooks), giving minimal conflict risk with other skills; even the closely related config-management skills target different phrasing.

5 / 5

Total

18

/

20

Passed

Validation

87%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_field

'metadata' should map string keys to string values

Warning

referenced_paths_exist

Referenced path issues: 1 missing

Warning

Total

14

/

16

Passed

Repository

secondsky/claude-skills

Path

plugins/claude-hook-writer/skills/claude-hook-writer/SKILL.md

Reviewed

Table of Contents

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.