CtrlK
BlogDocsLog inGet started
Tessl Logo

python-testing

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

49

Quality

55%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./docs/zh-CN/skills/python-testing/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

42%

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

This skill is a comprehensive pytest reference manual but suffers from extreme verbosity and poor progressive disclosure. It explains many concepts Claude already knows (basic assertions, what TDD means, simple test structure) and dumps everything into a single monolithic file. The actionability is excellent with fully executable code examples, but the token cost is very high relative to the novel information provided.

Suggestions

Reduce content by 60-70%: remove basic assertions section, trivial test examples (test_addition, test_string_uppercase), and explanations of concepts Claude already knows. Focus on project-specific conventions and non-obvious patterns.

Split into multiple files: keep SKILL.md as a concise overview with links to separate files like FIXTURES.md, MOCKING.md, ASYNC.md, and CONFIG.md for detailed reference.

Add validation checkpoints to the TDD workflow: e.g., 'Run pytest --cov after GREEN step to verify coverage target; if below 80%, add tests before proceeding to REFACTOR.'

Remove the basic pytest structure section entirely—Claude knows how to write `assert 2 + 2 == 4`—and replace with a quick-reference table of project-specific testing conventions.

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 standard pytest documentation that adds no novel value.

1 / 3

Actionability

All code examples are fully executable and copy-paste ready. Concrete commands for running tests, configuration files, and real patterns for API testing, database testing, mocking, and async testing are all provided with complete, working code.

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. Everything is inlined—basic assertions, advanced mocking, async testing, configuration—all in one massive document. Content like the full assertions reference, async patterns, and configuration examples should be split into separate files with clear navigation links.

1 / 3

Total

7

/

12

Passed

Description

67%

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 multiple concrete techniques. However, it lacks an explicit 'Use when...' trigger clause, which caps completeness at 2, and could benefit from additional natural language trigger terms (e.g., 'unit test', 'test cases') to improve discoverability.

Suggestions

Add an explicit 'Use when...' clause, e.g., 'Use when the user asks about writing tests, unit testing, test-driven development, or pytest in Python.'

Include common English and natural language trigger terms such as 'unit test', 'test cases', 'test suite', 'test-driven development', and 'assert' to improve matching for varied user queries.

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions and concepts: TDD methodology, fixtures, mocking, parameterization, and coverage requirements, all within the pytest framework.

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 specifying when Claude should select this skill.

2 / 3

Trigger Term Quality

Includes relevant keywords like 'pytest', 'TDD', 'fixtures', 'mocking', 'parameterization', and 'coverage', but misses common user variations such as 'unit test', 'test cases', 'test-driven development', 'assert', or English equivalents that users might naturally use.

2 / 3

Distinctiveness Conflict Risk

Clearly scoped to Python testing with pytest specifically, including distinct concepts like TDD, fixtures, and parameterization. This is a well-defined niche unlikely to conflict with other skills.

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/everything-claude-code
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.