CtrlK
BlogDocsLog inGet started
Tessl Logo

python-testing

使用pytest的Python测试策略,包括TDD方法、夹具、模拟、参数化和覆盖率要求。

58

Quality

68%

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 ./docs/zh-CN/skills/python-testing/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

65%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 highly actionable with abundant executable examples, but it is verbose for a skill and lacks progressive disclosure—everything lives in one large file with no references to external materials. Trimming tutorial content and splitting reference detail into separate files would improve the score.

Suggestions

Trim tutorial content Claude already knows (e.g., the exhaustive assert-form list and basic fixture examples) to improve token efficiency.

Split the bulkier reference sections (mocking recipes, configuration, API testing patterns) into separate files under references/ and link to them from SKILL.md for progressive disclosure.

For multi-step processes like the TDD loop, add an explicit validation/verification checkpoint (e.g., 'run pytest; only refactor when green') to strengthen workflow clarity.

DimensionReasoningScore

Conciseness

The ~810-line body is mostly efficient per section but spends many tokens on tutorial basics Claude already knows (e.g., exhaustive assert forms, simple fixture examples), so it could be tightened.

3 / 5

Actionability

It provides fully executable, copy-paste-ready code and commands across the common pytest cases (fixtures, parametrize, mock, async, coverage), matching the 'fully executable, covers common cases' anchor.

5 / 5

Workflow Clarity

The TDD red/green/refactor loop is sequenced, but as a reference document it has no validation checkpoints or feedback loops; steps are listed without explicit checkpoints.

3 / 5

Progressive Disclosure

Content is well-sectioned with headers, but it is a monolithic single file with no references to separate bundle files; bulk reference-style material that could be split is inlined.

3 / 5

Total

14

/

20

Passed

Description

71%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 specific and distinct, clearly stating what the skill covers, but it omits any explicit 'when to use' trigger guidance, which caps completeness. Adding a 'Use when...' clause would raise the score.

Suggestions

Add an explicit 'Use when...' clause stating the trigger situations (e.g., writing Python tests, designing a test suite, reviewing coverage).

Include common synonyms or English keywords (e.g., 'mocking', 'fixtures', 'test coverage') alongside the Chinese terms to broaden trigger matching.

Keep the concrete action list as-is—it already provides comprehensive, specific capability coverage.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions—'TDD方法、夹具、模拟、参数化和覆盖率要求'—covering the pytest domain comprehensively, matching the 'lists multiple specific concrete actions' anchor.

5 / 5

Completeness

It has a clear 'what' but no 'Use when...' or equivalent trigger clause, so 'when' is absent—per the rubric a missing trigger caps completeness at 3.

3 / 5

Trigger Term Quality

It includes natural terms users say (pytest, TDD, 模拟, 参数化, 覆盖率), but lacks common English synonyms or file/extension variations, leaving a few natural terms missing.

4 / 5

Distinctiveness Conflict Risk

The pytest/TDD niche is clearly distinguishable with only minor overlap risk against other Python or general testing skills.

4 / 5

Total

16

/

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.

Validation14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (817 lines); consider splitting into references/ and linking

Warning

frontmatter_unknown_keys

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

Warning

Total

14

/

16

Passed

Repository
affaan-m/ECC
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.