CtrlK
BlogDocsLog inGet started
Tessl Logo

generating-cli-tests

Generate pytest tests for Typer CLI commands. Includes fixtures (temp_storage, sample_data), CliRunner patterns, confirmation handling (y/n/--force), and edge case coverage. Use when user asks to "write tests for", "test my CLI", "add test coverage", or any CLI + test request.

77

Quality

96%

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

SKILL.md
Quality
Evals
Security

Quality

Content

92%Weight 40%Scale 1-3

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

A lean, actionable, code-driven reference with a clear sequenced workflow and verification checkpoint; its main gap is progressive disclosure, as everything lives in one fairly long file with no external references.

Suggestions

Move the fixtures block and/or per-command scenario catalog into reference files (e.g. references/fixtures.py, references/scenarios.md) and link to them from a concise overview, so SKILL.md stays a lean entry point.

Add a short feedback loop to the workflow ('Run tests → if failures, fix the command/fixture → rerun') to make the verify step an explicit error-recovery checkpoint.

Collapse the redundant CliRunner Usage section into the Test Scenarios examples to remove the duplicated runner.invoke patterns and tighten token use.

DimensionReasoningScore

Conciseness

The body is code- and pattern-heavy with no over-explanation of pytest, Typer, or AAA; it assumes Claude's competence and every section (fixtures, scenarios, checklist) earns its place.

3 / 3

Actionability

Fixtures and per-command test scenarios are fully executable, copy-paste-ready Python with real asserts and runner.invoke calls, satisfying the executable-examples anchor; only the AAA template uses placeholders.

3 / 3

Workflow Clarity

The 4-step workflow is clearly sequenced with an explicit 'Run tests to verify' validation checkpoint plus a closing checklist, matching the clear-sequence-with-validation/checklist anchor for a single-purpose skill.

3 / 3

Progressive Disclosure

It is a well-sectioned single file but runs ~120 lines with all content inline and no one-level-deep references or signaled navigation, fitting the 'content that should be separate is inline' anchor better than the split-with-references bar of 3.

2 / 3

Total

11

/

12

Passed

Description

100%Weight 40%Scale 1-3

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-triggered description that clearly states both capabilities and when to invoke it, with concrete fixtures and patterns named and natural trigger terms. It is a strong, low-conflict description.

DimensionReasoningScore

Specificity

Lists multiple concrete capabilities — 'fixtures (temp_storage, sample_data), CliRunner patterns, confirmation handling (y/n/--force), and edge case coverage' — matching the anchor for listing several specific concrete actions, and uses third-person voice ('Generate').

3 / 3

Completeness

Explicitly answers both 'what' (generate pytest tests for Typer CLI commands with named capabilities) and 'when' via an explicit 'Use when user asks to...' trigger clause, so it is not capped at 2.

3 / 3

Trigger Term Quality

Provides natural user phrasings 'write tests for', 'test my CLI', 'add test coverage', plus 'any CLI + test request', which are terms users would actually say, meeting the good-coverage anchor.

3 / 3

Distinctiveness Conflict Risk

The Typer CLI test-generation niche is distinct and the triggers are CLI-test specific, making overlap with unrelated skills unlikely; only the generic 'add test coverage' phrase lightly tempers this.

3 / 3

Total

12

/

12

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.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
https-deeplearning-ai/sc-agent-skills-files
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.