Content
63%Weight 40%Scale 1-5Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.
The body is an exhaustive, highly executable pytest cookbook whose code examples are its main strength. Its weaknesses are token efficiency — hundreds of lines re-teach pytest basics Claude already knows — and a total lack of file-based disclosure: an ~815-line monolith that should be an overview plus reference files.
Suggestions
Cut the sections that re-teach pytest basics (basic assertions like 'assert result == expected', trivial tests like 'assert 2 + 2 == 4', and the elementary run commands such as 'pytest -v') — keep only the non-obvious patterns (conftest sharing, autospec, PropertyMock, async fixtures).
Split the pattern catalog (mocking, async, database/API testing, config samples) into references/ files (e.g. references/mocking.md, references/async.md) and keep SKILL.md as a short overview with one-level-deep pointers, per the quick-reference table.
Add a validation feedback loop for the coverage requirement: what to do when coverage is below 80% (which files/paths to inspect via --cov-report=term-missing, then re-run).
| Dimension | Reasoning | Score |
|---|---|---|
Conciseness | The ~815-line body devotes large sections to fundamentals Claude already knows — "Equality / assert result == expected", "test_addition: assert 2 + 2 == 4", basic fixture setup/teardown, and "Run with verbose output: pytest -v". This matches the 'noticeably verbose; several unnecessary explanations or padded sections' anchor rather than the mostly-efficient level 3, since the padding is pervasive (basic asserts, basic parametrize, basic run commands) rather than occasional. | 2 / 5 |
Actionability | Nearly every section delivers copy-paste-ready code or commands (e.g. "pytest --cov=mypackage --cov-report=term-missing --cov-report=html", "with pytest.raises(ValueError, match=\"invalid input\")", full conftest.py client/auth_headers fixtures), and the examples comprehensively cover the common cases (fixtures, mocking, parametrize, async, exceptions, tmp_path, config). Fits the 'fully executable; covers common cases' anchor; not 4 because gaps are only trivial (a few undefined helper classes like Database, which is normal for pattern docs). | 5 / 5 |
Workflow Clarity | The TDD cycle is an explicit, correctly sequenced workflow ("1. 红… 2. 绿… 3. 重构" with code) and coverage measurement/validation ("目标:80%+… 使用 pytest --cov") provides a checkpoint; the '不要忽略测试失败:所有测试必须通过' do/don't guidance reinforces verification. Fits 'clear sequence with most checkpoints present; minor validation gaps' — e.g. no instruction on what to do when coverage falls below target — so not 5, but validation is far more present than the level-3 anchor. | 4 / 5 |
Progressive Disclosure | No bundle files exist (no references/, scripts/, or assets/), and everything — the full pytest pattern catalog, API-ish quick reference table, and configuration samples — is inlined in one 815-line SKILL.md, i.e. 'content that should be separate is inline'. It scores 3 rather than 2 only because section headers (夹具, 参数化, 模拟和补丁, 测试异步代码…) make the monolith navigable, matching the 'some structure but could be better organized' anchor rather than the header-less wall of text. | 3 / 5 |
Total | 14 / 20 Passed |