CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

python-unit-tests

Use when writing, fixing, or reviewing Python pytest unit tests, fixtures, mocks, or test PR feedback.

Quality

77%

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 ./.agents/skills/python-unit-tests/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

81%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 strong, dense, prescriptive body: clear stepped workflow with per-step completion criteria, concrete validation commands, and specific tool patterns. Its only weaknesses are minor — a redundant recap section and detail sections that could be split into reference files.

Suggestions

Trim the 'Final self-check' checklist or fold it into the Steps' completion criteria, since it restates rules already covered section by section

Move the detailed 'Fixtures and cleanup' and 'Mocking' rule lists into a references/ file, keeping SKILL.md as a lean overview with one-level-deep pointers

Add one complete example test (Arrange-Act-Assert with a fixture and a mocker.patch.object call assertion) to make the common case fully copy-paste ready

DimensionReasoningScore

Conciseness

The body is entirely prescriptive rules with no teaching of known concepts, and rationales are single-clause ('an earlier failure skips them'). The 'Final self-check' section recapitulates rules already stated in earlier sections, which is minor redundancy keeping it below the lean anchor at 5.

4 / 5

Actionability

Concrete, executable commands are given ('uv run pytest dimos/path/to/test_file.py -k test_name -m \'not (self_hosted or self_hosted_large)\'', './bin/pytest-fast', 'pre-commit run --all-files') along with precise patterns ('patch the target with mocker.patch.object(...), run the behavior, then assert with assert_called_once_with(...)'). Minor gap: no complete example test snippet, so it is 'mostly executable' rather than fully copy-paste ready across common cases.

4 / 5

Workflow Clarity

The five numbered steps each carry an explicit 'Completion:' validation checkpoint, followed by concrete validation commands and a final self-check checklist. This matches the anchor for a clear sequence with explicit validation steps and a checklist; unit-test edits are not destructive/batch operations, so no cap applies.

5 / 5

Progressive Disclosure

No bundle files exist, so this scores the body structure itself: sections are well-organized and the external doc pointers are clearly signaled and one level deep ('Consult these only when the branch needs more context'). At ~95 lines with detail-heavy sections (fixtures/mocking rules) inlined in a single file, it stops short of the clean overview-plus-split-content anchor at 5.

4 / 5

Total

17

/

20

Passed

Description

61%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 well-targeted description with an explicit trigger clause and good natural keywords, but it is purely a 'when' sentence: the skill's actual capabilities are only weakly implied and coverage of concrete actions and term variations is incomplete.

Suggestions

Add a leading capability statement before the 'Use when' clause, e.g. 'Write and fix hermetic Python pytest unit tests with fixtures, mocks, and clean cleanup. Use when...'

Include common trigger synonyms such as 'test cases', 'unittest', 'patch', or 'test coverage' to broaden natural-term coverage

State one or two concrete outcomes (e.g. 'runs the smallest failing pytest command to validate edits') so the 'what' is explicit rather than implied

DimensionReasoningScore

Specificity

The description names the domain ("Python pytest unit tests, fixtures, mocks") and three actions ("writing, fixing, or reviewing"), but the actions are generic verbs and there is no fuller enumeration of concrete capabilities. This matches the anchor for naming a domain with limited concrete actions rather than the 'several specific actions' of level 4.

3 / 5

Completeness

The explicit 'Use when...' clause answers 'when' clearly, but the 'what' is only implied by the trigger verbs — there is no separate statement of capability. This sits between 'only when present without what' (2) and 'both present, when could be more explicit' (4), best fitting the embedded-what anchor at 3.

3 / 5

Trigger Term Quality

Terms like "pytest", "unit tests", "fixtures", "mocks", and "test PR feedback" are natural phrases a user would say when needing this skill. It falls short of level 5 because common variations such as 'test cases', 'unittest', 'patch', 'coverage', or file-extension terms are missing.

4 / 5

Distinctiveness Conflict Risk

The Python/pytest unit-test niche is clear and distinct, with only minor overlap risk from 'test PR feedback' with general code-review skills. This matches the 'mostly distinct; minor overlap risk' anchor.

4 / 5

Total

14

/

20

Passed

Validation

100%

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

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

dimensionalOS/dimos

Path

.agents/skills/python-unit-tests/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.