CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

python-testing

Python testing strategies using pytest, TDD methodology, fixtures, mocking, parametrization, and coverage requirements.

Quality

65%

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 ./skills/python-testing/SKILL.md

The canonical home for this skill is python-testing in affaan-m/ECC

SKILL.md
Quality
Evals
Security

Quality

Content

50%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 a well-organized and highly actionable pytest reference, but it reads as a tutorial-style monolith rather than a lean skill: extensive sections cover basic pytest knowledge Claude already has, and no material is offloaded to reference files. The TDD workflow is sequenced but lacks explicit validation checkpoints. Trimming basics and splitting advanced topics into references would substantially improve token efficiency and structure.

Suggestions

Cut sections teaching pytest fundamentals Claude already knows (basic assertions, basic test structure, simple fixture/parametrize examples) and keep only project-specific conventions, retaining perhaps a quick-reference table.

Split advanced material — mocking catalog, async testing, and pytest configuration — into separate reference files (e.g. references/mocking.md, references/async.md) linked from a lean overview, enabling progressive disclosure.

Add explicit validation checkpoints to the TDD cycle, e.g. "RED: run pytest and confirm the new test fails before writing implementation; GREEN: run pytest again before refactoring."

DimensionReasoningScore

Conciseness

The ~800-line body spends large sections teaching pytest basics Claude already knows — an "Assertions" section covering equality, truthiness, membership, and comparisons, plus basic test structure (`assert 2 + 2 == 4`) and elementary fixture/parametrize usage — matching anchor 2 (noticeably verbose, several unnecessary explanations) rather than anchor 1 since the code blocks are terse and some sections (marker config, autospec, coverage config) add real value.

2 / 5

Actionability

Provides concrete, mostly executable guidance throughout: copy-paste CLI commands (`pytest -m "not slow"`, `--cov` flags), complete pytest.ini/pyproject.toml configs, and concrete code patterns for fixtures, mocking, and parametrization. Some examples depend on undefined symbols (Database, create_app, mypackage) as templates, keeping it at anchor 4 rather than fully copy-paste-ready anchor 5.

4 / 5

Workflow Clarity

The TDD cycle (RED/GREEN/REFACTOR) gives a clear numbered sequence, but validation checkpoints are implicit — it never instructs running pytest to confirm the failing test before implementing, or re-running after refactoring — matching anchor 3 (sequence present but checkpoints missing or implicit) rather than anchor 4.

3 / 5

Progressive Disclosure

Sections are well-organized with clear headers, but this is a monolithic 800-line SKILL.md with no bundle files: async testing, the full mocking catalog, and configuration reference content that clearly belongs in separate reference files is fully inlined — matching anchor 3 (some structure, but content that should be separate is inline) rather than anchor 2 since navigation via headers is good.

3 / 5

Total

12

/

20

Passed

Description

66%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 keyword-rich, naming the domain and several concrete capability areas (fixtures, mocking, parametrization, coverage) with good natural trigger terms. Its main weakness is the complete absence of 'when to use' guidance, which caps completeness at 3. Adding an explicit 'Use when...' clause would raise it to the strong tier.

Suggestions

Add an explicit trigger clause, e.g. "Use when writing or reviewing Python tests, setting up pytest for a project, or improving test coverage."

Include common user phrasings and variations such as "unit tests", "test suite", or "test-driven development" to broaden natural keyword coverage.

Reframe the capability list with third-person action verbs (e.g. "Writes and reviews pytest tests, builds fixtures, mocks dependencies") to sharpen specificity.

DimensionReasoningScore

Specificity

Lists several specific capabilities ("fixtures, mocking, parametrization, and coverage requirements") alongside the pytest domain, though framed as topic nouns rather than concrete action verbs, leaving minor gaps in coverage — matching anchor 4 rather than 5.

4 / 5

Completeness

The description clearly answers 'what' (testing strategies using pytest, TDD, fixtures, mocking, parametrization, coverage) but contains no 'Use when...' clause or equivalent explicit trigger guidance, which caps completeness at 3 per the judging guidelines.

3 / 5

Trigger Term Quality

Includes natural terms users would say — "pytest", "TDD", "fixtures", "mocking", "coverage" — but misses common variations like "unit tests", "test suite", or "write tests", matching anchor 4 (good coverage, a few natural terms missing) rather than comprehensive anchor 5.

4 / 5

Distinctiveness Conflict Risk

"Python testing" with pytest/fixture/mocking terminology carves a mostly distinct niche with only minor overlap risk against generic testing or code-review skills; without explicit trigger phrases it does not reach the clear-niche anchor 5.

4 / 5

Total

15

/

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

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

valeriibeck-star/claude-skills

Path

skills/python-testing/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.