CtrlK
BlogDocsLog inGet started
Tessl Logo

setup-pre-commit

在当前仓库设置 Husky pre-commit hooks,集成 lint-staged (Prettier)、类型检查和测试。适用于用户想添加 pre-commit hooks、设置 Husky、配置 lint-staged,或在提交时运行格式化、类型检查和测试时。

75

Quality

92%

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

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

A tight, executable, well-sequenced setup skill with explicit verification and sensible adaptation notes for package managers. The only weakness is that the dependency-install step names packages without giving the concrete install command.

DimensionReasoningScore

Conciseness

The body is lean — exact commands, exact file contents, and config defaults with no explanation of concepts Claude already knows; even the Notes section contains only non-obvious operational facts. Every token earns its place.

5 / 5

Actionability

Exact, copy-paste-ready contents are given for .husky/pre-commit, .lintstagedrc, and .prettierrc, but step 2 only lists package names ('husky lint-staged prettier') rather than the actual install command for the detected package manager — a minor gap that keeps it below fully-executable.

4 / 5

Workflow Clarity

Eight clearly sequenced steps with an explicit verification checklist in step 7 (file existence, prepare script, lint-staged runs) and a commit step that deliberately exercises the new hook as a smoke test.

5 / 5

Progressive Disclosure

This is a self-contained single-purpose skill with no bundle files and well-organized sections; nothing here belongs in a separate reference file, so per the rubric's simple-skill guidance the structure merits the top score.

5 / 5

Total

19

/

20

Passed

Description

92%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: concrete and comprehensive on capabilities, with an explicit use-when clause containing natural trigger terms. Only minor gap is missing synonyms/variations such as 'git hooks'.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions covering the full domain — '设置 Husky pre-commit hooks,集成 lint-staged (Prettier)、类型检查和测试' (set up Husky pre-commit hooks, integrate lint-staged/Prettier, typecheck, tests) — with no coverage gaps, matching the comprehensive anchor.

5 / 5

Completeness

It explicitly answers both questions: the first sentence states what the skill does, and '适用于用户想…时' is an explicit 'Use when' clause with concrete trigger phrases, matching the top anchor rather than the merely-adequate one.

5 / 5

Trigger Term Quality

Natural trigger phrases are present ('添加 pre-commit hooks', '设置 Husky', '配置 lint-staged', '提交时运行格式化、类型检查和测试'), but common variations such as 'git hooks' or Prettier-config triggers are missing, so it falls just short of the comprehensive-synonyms anchor.

4 / 5

Distinctiveness Conflict Risk

It occupies a clear niche (Husky + lint-staged pre-commit setup) with distinct, tool-specific triggers, so the risk of firing for an unrelated skill is minimal.

5 / 5

Total

19

/

20

Passed

Validation

100%

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

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
vinvcn/mattpocock-skills-zh-CN
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.