CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

test-case

当用户需要编写一个单元测试时,触发该 skill,编写单元测试。

56

Quality

70%

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 ./.agents/skills/system/test-case/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

75%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 content is a well-organized, lean, mostly executable guide with a clear three-stage workflow, explicit validation steps, and a feedback loop. The main weaknesses are a self-contradictory coverage target (100% vs 90%+) and a couple of soft, non-executable steps in the writing stage.

DimensionReasoningScore

Conciseness

The body is lean and assumes competence — it gives path-mapping rules, import conventions, and commands without explaining what testing is. Only minor trimming is possible (e.g. the extended rationale in rule 3), keeping it just below fully lean.

4 / 5

Actionability

Guidance is mostly executable: concrete test-file path mappings for packages and projects, a real '@fastgpt' import example, an export-for-test example, and runnable 'pnpm test' commands. The soft step '思考和分析代码后编写测试样例' is the main non-executable gap.

4 / 5

Workflow Clarity

The three-stage flow (task preparation → parallel test writing → verification) includes an explicit validation command with a coverage check and a feedback loop back to stage 2. It misses a 5 because the coverage target contradicts itself — rule 2 demands 100% lines/branches while verification asks for 90%+ — leaving a minor checkpoint inconsistency.

4 / 5

Progressive Disclosure

This is a well-sectioned single-file skill with no bundle files to disclose; the repo-relative links (vitest.config.mts, test/mocks/index.ts) are one level deep and clearly signaled. At ~97 lines it exceeds the under-50-line simple-skill case, so structure is good but not maximally split.

4 / 5

Total

16

/

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 has an explicit and natural trigger clause but a weak, generic 'what': it names no concrete capabilities beyond 'write unit tests' and omits framework (vitest/.test.ts) and coverage-related trigger terms. It is serviceable but would rank below typical good examples in specificity and keyword coverage.

Suggestions

State concrete capabilities in the description, e.g. '为 FastGPT 的 packages/projects 生成 vitest 单元测试,映射测试文件路径并确保 90%+ 覆盖率' — naming the path-mapping and coverage actions raises specificity.

Add natural trigger synonyms and technical terms: 单元测试, 测试用例, test coverage, vitest, .test.ts, so the skill fires when users phrase the request in any common way.

Mention the framework and scope (vitest, FastGPT monorepo) to sharpen the 'what' and reduce overlap with generic testing skills.

DimensionReasoningScore

Specificity

The only stated action is "编写单元测试" (write unit tests), which merely restates the domain; no concrete capabilities such as coverage enforcement, framework setup, or test-file placement are named, matching the 'names the domain but actions are minimal or generic' anchor.

2 / 5

Completeness

Both parts are explicitly present: an explicit 'when' clause ("当用户需要编写一个单元测试时") and a 'what' (write unit tests). It falls short of a 5 because the 'what' is thin — no coverage targets, framework, or scope of which files get tests.

4 / 5

Trigger Term Quality

"单元测试" (unit test) is a natural trigger term, but common variations users would say — 测试/test, 测试用例, 覆盖率/coverage, vitest, .test.ts — are all missing, so keyword coverage is partial rather than comprehensive.

3 / 5

Distinctiveness Conflict Risk

'Unit test writing' with no framework or repository context is somewhat specific but could overlap with adjacent skills (integration testing, TDD, running existing tests), so overlap risk with closely related skills remains.

3 / 5

Total

12

/

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

relative_links

Relative link issues: 2 suspicious

Warning

Total

15

/

16

Passed

Repository

labring/FastGPT

Path

.agents/skills/system/test-case/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.