CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

python-testing

pytest、TDD手法、フィクスチャ、モック、パラメータ化、カバレッジ要件を使用したPythonテスト戦略。

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

A thorough, accurate, and highly actionable pytest reference whose main weaknesses are token efficiency and structure: it teaches pytest fundamentals Claude already knows inline and ships as an 800-line monolith instead of an overview plus one-level-deep reference files. Workflow guidance is solid but lacks explicit validation checkpoints.

Suggestions

Trim or remove the sections covering knowledge Claude already has (basic test structure, the assertion-type catalog, simple arithmetic examples) and keep only project-specific conventions like the coverage policy, directory layout, and pytest.ini settings.

Split the deep reference material (fixtures, mocking, async testing, pytest configuration) into one-level-deep files under references/ and keep SKILL.md as a concise overview with clearly signaled links.

Make the TDD workflow's validation checkpoints explicit: run `pytest` to confirm the new test fails (red), implement minimally and re-run to confirm green, then run `pytest --cov` and iterate if coverage falls below the 80% target.

DimensionReasoningScore

Conciseness

At ~800 lines, the body pads several sections with fundamentals Claude already knows: a '基本的なテスト構造' section testing `assert 2 + 2 == 4`, a full assertion catalog (`assert result == expected`, `assert item in collection`, `assert isinstance(...)`) that is basic pytest knowledge, and arithmetic examples like `test_add`. Multiple sections restate common knowledge rather than adding project-specific value, matching the 'noticeably verbose; several unnecessary explanations or padded sections' anchor — it is not the extreme 1 (it never explains what pytest is or how libraries work), but well below the 'mostly efficient' 3.

2 / 5

Actionability

Concrete, executable code and commands throughout — fixture definitions with teardown, `pytest.raises(ValueError, match=...)`, `@patch`/`mock_open`/autospec usage, `pytest --cov=mypackage --cov-report=term-missing`, complete pytest.ini and pyproject.toml blocks, and a full run-command section. It misses the 5 because many examples reference undefined helpers (`add`, `my_function`, `Database`, `Config`) so they are adaptable patterns rather than copy-paste runnable code.

4 / 5

Workflow Clarity

The TDD red-green-refactor sequence is clearly numbered and illustrated with code, and coverage targets plus the measurement command are stated. However, the checkpoints are implicit — the workflow never says to run `pytest` to confirm the test actually fails (red), then passes (green), nor what to do on failure — matching the 'steps listed but validation gaps; checkpoints missing or implicit' anchor. It is above 2 because the sequence itself is coherent and well defined, and below 4 because the explicit verify steps of the higher anchor are absent.

3 / 5

Progressive Disclosure

The body has good internal structure (clear headers, a quick-reference table, consistent per-topic sections), but it is an ~800-line monolithic reference with no bundle files at all — the fixtures, mocking, async-testing, and configuration reference material clearly belongs in separate files with SKILL.md as an overview. This matches the 3 anchor ('some structure... content that should be separate is inline') rather than 2, since navigation is easy and sections are well organized.

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.

A specific, well-scoped description of the Python/pytest testing domain with strong trigger terms and low conflict risk. Its main weakness is the complete absence of any 'when to use' guidance, which the rubric caps at a 3 for completeness.

Suggestions

Append an explicit trigger clause, e.g. 'Use when writing Python code with tests, setting up a pytest suite, reviewing test coverage, or when the user mentions pytest, TDD, fixtures, or mocking.'

Rephrase the technique list as concrete actions (e.g., 'Write and run pytest tests, design fixtures, mock external dependencies, parametrize cases, and enforce coverage targets') to strengthen specificity.

Add common synonym triggers users naturally say — 'unit tests', 'test suite', 'unittest' — to round out trigger-term coverage.

DimensionReasoningScore

Specificity

The description lists several specific concrete techniques — 'pytest、TDD手法、フィクスチャ、モック、パラメータ化、カバレッジ要件' — giving clear coverage of the domain. It falls short of the 5 anchor because items are topic nouns rather than actions (no verbs like 'write/run/debug tests'), a minor gap versus the comprehensive multi-action example.

4 / 5

Completeness

The 'what' is clear and multi-faceted (Python testing strategies using pytest, TDD, fixtures, mocks, parametrization, coverage requirements), but there is no 'Use when...' clause or equivalent explicit trigger guidance — the rubric explicitly caps completeness at 3 in that case. It is a solid 'what' with an entirely absent 'when', fitting the 3 anchor exactly rather than 4, which requires both.

3 / 5

Trigger Term Quality

Natural trigger terms are present and well covered: 'pytest', 'TDD', 'フィクスチャ' (fixtures), 'モック' (mock), 'パラメータ化' (parametrization), 'カバレッジ' (coverage), 'Pythonテスト'. A few common variations users would say are missing ('unit test', 'unittest', 'test suite'), matching the 'good keyword coverage; a few natural terms missing' anchor rather than the fully comprehensive 5.

4 / 5

Distinctiveness Conflict Risk

The pytest/TDD/fixture/mock vocabulary carves out a clear niche (Python testing with pytest) that is unlikely to trigger for unrelated skills. Minor overlap risk remains with closely related skills (e.g., a generic 'writing tests' or 'Python development' skill), matching the 'mostly distinct; minor overlap risk' anchor rather than the minimal-conflict 5.

4 / 5

Total

15

/

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

skill_md_line_count

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

Warning

Total

15

/

16

Passed

Repository

affaan-m/ECC

Path

docs/ja-JP/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.