CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

verify-quality

代码质量校验关卡。检测复杂度、重复代码、命名规范、函数长度等质量指标。当用户提到代码质量、复杂度检查、代码异味、重构建议、lint检查、代码规范时使用。在复杂模块、重构完成时自动触发。

Quality

73%

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 ./templates/skills/tools/verify-quality/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

53%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 well-structured with accurate threshold tables and a documented CLI, but it is held back by flavor text, refactoring examples that re-teach basics Claude knows, a workflow with no validation/re-run checkpoint, and a broken script dependency (missing lib/shared.js) that makes the primary command non-executable as bundled.

Suggestions

Fix or inline the dependency on ../../lib/shared.js so 'node scripts/quality_checker.js <扫描路径>' actually runs in the bundle, and verify the documented -v / --json flags against the real CLI parser.

Cut the "核心原则" flavor lines and replace the two basic Python refactoring examples with a pointer to the checker's actual output (e.g., a sample report and how to act on each severity level).

Add an explicit validation loop to "校验流程": after applying refactor suggestions, re-run quality_checker.js and only mark the gate as passed (✓ 通过) when issue counts drop below thresholds.

DimensionReasoningScore

Conciseness

The metric/threshold tables and CLI usage are lean, but the "核心原则" block ("劣质代码是技术债,技术债是道基裂痕") is pure flavor text, and the two Python "重构建议" examples teach guard clauses and extracting common functions — basic concepts Claude already knows. This fits anchor 3 (mostly efficient, some unnecessary explanation) better than anchor 2 since the padding is confined to two sections.

3 / 5

Actionability

The documented commands ("node scripts/quality_checker.js <扫描路径> -v / --json") are concrete and the thresholds match the script's constants, but quality_checker.js requires '../../lib/shared.js', which does not exist in the bundle, so the primary command fails on launch — a missing key detail that drops it below anchor 4's 'minor gaps'. It stays above anchor 2 because the tables, report template, and flags are specific and mostly verifiable in the script.

3 / 5

Workflow Clarity

"校验流程" lists a coherent 5-step sequence (scan → metrics → smells → naming → report) but there are no validation checkpoints or feedback loops — nothing says to re-run the checker after refactoring to confirm issues are resolved, even though the trigger table implies it. This matches anchor 3 (sequence present, checkpoints missing or implicit) rather than anchor 4.

3 / 5

Progressive Disclosure

The single bundle file (scripts/quality_checker.js) is real and clearly referenced with usage and flag variants, and the body has well-labeled sections. Not anchor 5: the ~150-line body inlines everything (threshold tables duplicate constants that live in the script, and the refactoring examples could live in a reference file), leaving minor organization gaps typical of anchor 4.

4 / 5

Total

13

/

20

Passed

Description

83%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, concise, concrete about what is detected, with an explicit 'use when' clause plus auto-trigger conditions. Main gaps are minor — no mention of output/report actions and a few missing synonyms in the trigger list.

DimensionReasoningScore

Specificity

"检测复杂度、重复代码、命名规范、函数长度等质量指标" names the domain and lists several concrete detection actions (complexity, duplication, naming, function length). It stops short of anchor 5 because coverage is detection-only — no mention of report generation or remediation — and "等" (etc.) leaves the list open-ended.

4 / 5

Completeness

Explicitly answers both: what ("检测...质量指标") and when, with two concrete trigger clauses — "当用户提到...时使用" and "在复杂模块、重构完成时自动触发". This matches the anchor-5 pattern of a clear 'what' paired with concrete 'Use when...' trigger phrases, so the anchor-4 example ('when' could be more explicit) does not fit.

5 / 5

Trigger Term Quality

"当用户提到代码质量、复杂度检查、代码异味、重构建议、lint检查、代码规范时使用" provides six natural trigger phrases a user would plausibly say. Not anchor 5: common synonyms such as "code review", "技术债", or tool names (eslint, sonar) are missing.

4 / 5

Distinctiveness Conflict Risk

The quality-gate niche with metric-level triggers is mostly distinct, but "lint检查" and "代码规范" overlap with a generic linting/formatting skill and "重构建议" with a refactoring skill — minor overlap risk with closely related skills, matching anchor 4 rather than the minimal-conflict anchor 5.

4 / 5

Total

17

/

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

allowed_tools_field

'allowed-tools' contains unusual tool name(s)

Warning

frontmatter_unknown_keys

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

Warning

Total

14

/

16

Passed

Repository

fengshao1227/ccg-workflow

Path

templates/skills/tools/verify-quality/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.