CtrlK
BlogDocsLog inGet started
Tessl Logo

python-testing

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

49

Quality

55%

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

42%Scale 1-3

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The skill is a comprehensive pytest reference manual with excellent, executable code examples covering fixtures, parametrization, mocking, async testing, and configuration. However, it is far too verbose for a skill file—it explains many concepts Claude already knows (basic assertions, what TDD means, basic test structure) and dumps everything into a single monolithic document. It would benefit greatly from aggressive trimming and splitting into focused reference files.

Suggestions

Remove sections Claude already knows: basic assertions (`assert result == expected`), basic test structure, and explanations of what TDD is. Focus only on project-specific conventions and non-obvious patterns.

Split into multiple files: keep SKILL.md as a concise overview (~50-80 lines) with links to separate files like FIXTURES.md, MOCKING.md, ASYNC.md, and CONFIG.md.

Add validation checkpoints to the workflow: e.g., 'Run pytest --cov after writing tests; if coverage < 80%, identify untested paths with --cov-report=term-missing before proceeding.'

Remove the exhaustive quick reference table and basic command listings—Claude knows pytest CLI options. Keep only project-specific configuration choices and non-standard patterns.

DimensionReasoningScore

Conciseness

Extremely verbose at ~500+ lines. Explains basic pytest concepts Claude already knows (assertions, basic test structure, what TDD is). The basic assertions section alone lists trivial patterns like `assert result == expected`. Much of this is reference documentation that adds no novel value.

1 / 3

Actionability

All code examples are concrete, executable, and copy-paste ready. Covers real-world patterns like API testing, database sessions, async testing, and mocking with complete working examples. Configuration files are fully specified.

3 / 3

Workflow Clarity

The TDD cycle (red-green-refactor) is clearly sequenced, and the directory structure is well-defined. However, there are no validation checkpoints or feedback loops for the testing workflow itself—e.g., no guidance on what to do when coverage drops below threshold, or how to diagnose and fix failing tests systematically.

2 / 3

Progressive Disclosure

Monolithic wall of text with no references to external files. All content is inline—the assertions reference, async patterns, mocking patterns, configuration examples, and quick reference table could all be split into separate files. No bundle files exist to support progressive disclosure.

1 / 3

Total

7

/

12

Passed

Description

67%Scale 1-3

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 strong in specificity and distinctiveness, clearly identifying pytest-based Python testing with concrete techniques like TDD, fixtures, mocking, parameterization, and coverage. However, it lacks an explicit 'Use when...' clause, which is critical for Claude to know when to select this skill, and could benefit from additional natural trigger term variations.

Suggestions

Add an explicit 'Use when...' clause, e.g., '当用户需要编写Python测试、使用pytest、进行测试驱动开发或提高测试覆盖率时使用。'

Include common English and Chinese trigger term variations such as 'unit tests', 'test cases', 'test-driven development', '单元测试', '测试用例' to improve matching across user phrasings.

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions/concepts: TDD methodology, fixtures, mocking, parameterization, and coverage requirements. These are all concrete, identifiable testing techniques rather than vague abstractions.

3 / 3

Completeness

Clearly answers 'what does this do' (Python testing strategy with pytest including TDD, fixtures, mocking, parameterization, coverage), but lacks an explicit 'Use when...' clause or equivalent trigger guidance, which caps this dimension at 2 per the rubric.

2 / 3

Trigger Term Quality

Includes good keywords like 'pytest', 'Python', 'TDD', 'fixtures', 'mocking', 'parameterization', and 'coverage', but is missing common user variations such as 'unit tests', 'test cases', 'test-driven development' (English), '.py tests', or 'assert'. Also entirely in Chinese which may limit matching for English-speaking users.

2 / 3

Distinctiveness Conflict Risk

The combination of 'pytest', 'Python testing', 'TDD', 'fixtures', 'mocking', and 'parameterization' creates a very clear niche. It is unlikely to conflict with other skills since it targets a specific testing framework and methodology.

3 / 3

Total

10

/

12

Passed

Validation

81%

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

Validation9 / 11 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

9

/

11

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.