CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

create-hook

The guide explains how to identify a hook need from the conversation, clarify its trigger and behavior, and draft the hook JSON and any companion scripts. It specifies repository and user hook locations, requires the documented GitHub Copilot hooks format, and advises against environment variables for pathing outside plugin contexts. After drafting, it asks the user to resolve ambiguous parts and then summarizes the hook and suggests testing and related customizations.

Quality

63%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

Fix and improve this skill with Tessl

tessl review fix ./extensions/copilot/assets/prompts/skills/create-hook/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

57%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.

The body is a tight, well-structured conversational workflow with genuinely concrete path and format conventions, and it commendably avoids padding. Its main weaknesses are the delegation of the hook template to a hooks.md file that is absent from the bundle and the lack of explicit validation steps in the iterate loop. Fixing the missing reference would resolve the biggest gap.

Suggestions

Ship hooks.md in the bundle (e.g. references/hooks.md) or inline a minimal working hook JSON example, since the body's core template content currently points to a file that does not exist.

Add an explicit validation checkpoint in the Iterate section, e.g. confirm the JSON parses, the event name matches the Copilot hooks reference, and relative paths resolve from the documented working directory.

Remove the duplicate `agent-customization` pointer (stated in both the first and last lines) to tighten the body further.

DimensionReasoningScore

Conciseness

The ~30-line body is lean with no explanations of concepts Claude already knows — every section ("Extract from Conversation", "Clarify if Needed", "Path Conventions", "Iterate") carries operational instruction. It falls just short of 5 because the `agent-customization` pointer is stated redundantly in both the opening and closing lines, a minor instance that could be trimmed.

4 / 5

Actionability

Concrete details are present (".github/hooks/", "~/.copilot/hooks/", "\"version\": 1", camelCase event names, preToolUse/sessionStart/agentStop examples, the reference URL), but the core deliverable — a hook JSON template — is delegated to "Load and follow **hooks.md**", which does not exist in the bundle, and input/output field details are deferred to an external URL. Key details are missing, matching anchor 3 rather than the mostly-executable anchor 4.

3 / 5

Workflow Clarity

A sequence is present (Extract from Conversation → Clarify if Needed → Path Conventions → Iterate: draft, probe weak parts, finalize), but validation checkpoints are implicit — "suggest ways to test it" tells the agent to propose tests to the user rather than verifying the JSON parses or the event names exist. Steps listed with validation gaps fits anchor 3; the explicit-checkpoint structure of anchor 4 is absent.

3 / 5

Progressive Disclosure

Sections are well-organized and the external reference is clearly signaled in the first line ("Load and follow **hooks.md** for template and principles"), but that referenced file is not present in the bundle — there is no references/ directory and no hooks.md anywhere — so the delegated template content is unreachable. Good signaling with a dangling reference and missing core content fits anchor 3 rather than 4.

3 / 5

Total

13

/

20

Passed

Description

53%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.

The description is concise and names a concrete, distinct capability (creating hook JSON files), but it omits any explicit trigger guidance and covers only a narrow slice of the hook-creation vocabulary. It sits squarely at the midpoint: clear what, missing when. Adding a "Use when..." clause and naming concrete hook behaviors would lift most dimensions.

Suggestions

Add an explicit trigger clause, e.g. "Use when the user wants to block, gate, or automate agent behavior — e.g. 'don't run this command', 'always check before doing X', or 'inject this context at session start'."

Name the concrete hook actions (block a tool call, warn, inject context on sessionStart/preToolUse) to improve both specificity and trigger-term coverage.

Mention the target format or platform (GitHub Copilot hooks) in the description to reduce overlap with other agent-configuration skills.

DimensionReasoningScore

Specificity

"Create a hook (.json)" names the domain and one concrete action, with purposes "enforce policy or automate agent lifecycle events" — 1-2 concrete actions, not comprehensive (no block/warn/inject-context specifics). It is above score 2 because the action and file format are concrete, but below score 4 because it does not list several specific actions.

3 / 5

Completeness

The "what" is clear ("Create a hook (.json) to enforce policy or automate agent lifecycle events") but there is no "Use when..." clause or equivalent trigger guidance, which caps completeness at 3 per the judging guidelines. It is not 2 because the "what" is concrete; not 4 because "when" is entirely absent rather than merely imprecise.

3 / 5

Trigger Term Quality

"hook", "enforce policy", and "automate" are terms users would naturally say, but common variations like "block", "restrict", "gate", or "session start" are absent, and "agent lifecycle events" leans technical. Keyword coverage is relevant but incomplete, fitting anchor 3 rather than the fuller coverage of 4.

3 / 5

Distinctiveness Conflict Risk

"Create a hook (.json)" carves out a fairly distinct niche with clear triggers, but it does not state the platform (GitHub Copilot) and could overlap with other agent-configuration or settings skills — minor overlap risk with closely related skills, matching anchor 4 rather than the minimal-conflict anchor 5.

4 / 5

Total

13

/

20

Passed

Validation

93%

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

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

15

/

16

Passed

Repository

microsoft/vscode

Path

extensions/copilot/assets/prompts/skills/create-hook/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.