CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

python-patterns

Pythonic idioms, PEP 8 standards, type hints, and best practices for building robust, efficient, and maintainable Python applications. Use when writing or reviewing Python code and idiomatic structure, typing, or PEP 8 is in question.

Quality

72%

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-patterns/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.

The body is a well-organized, highly concrete Python pattern catalog, but it is a ~750-line monolith that extensively documents idioms and anti-patterns Claude already knows, with no progressive disclosure into reference files and no validation checkpoints. Its strongest dimension is actionability; conciseness is its weakest, as most sections restate standard Python knowledge.

Suggestions

Cut or drastically compress sections that restate core Python knowledge Claude already has (anti-patterns like mutable defaults, == None, bare except, comprehension vs loop, with vs try/finally) — keep only genuinely non-obvious guidance or project-specific conventions.

Split the ~750-line body into one-level-deep reference files (e.g., references/concurrency.md, references/tooling.md, references/type-hints.md) and leave a lean overview plus a Quick Reference table in SKILL.md.

Add a short, sequenced workflow with validation checkpoints for code review/refactoring tasks (e.g., run ruff/mypy, review findings, fix, re-run) so the skill guides multi-step work rather than only cataloging patterns.

DimensionReasoningScore

Conciseness

Large portions restate fundamentals Claude already knows, e.g. "EAFP - Easier to Ask Forgiveness Than Permission. Python prefers exception handling over checking conditions", "# Bad: Comparing to None with == / # Good: Use is", mutable default arguments, bare except, "Bad: Manual resource management" with try/finally vs with, and threading-vs-multiprocessing basics — roughly 750 lines of standard idiom instruction. It is not 1 because prose is compact and examples are well-formed rather than padded narrative, and not 3 because whole sections (anti-patterns, comprehensions, import order) add essentially nothing beyond Claude's existing knowledge.

2 / 5

Actionability

Nearly all guidance is executable: concrete code for every pattern plus a commands section ("black .", "ruff check .", "mypy .", "pytest --cov=mypackage") and a copy-paste-ready pyproject.toml. It falls short of 5 because some examples depend on undefined context (db.find_user, Config.from_json, User), the aiohttp example lacks an install note, and the layout/tree sections are illustrative rather than runnable.

4 / 5

Workflow Clarity

The "When to Activate" section ("Writing new Python code", "Reviewing Python code", "Refactoring existing Python code") defines scope, and sections are coherent, but there is no sequenced process or validation checkpoint anywhere — it is a pattern catalog, not a workflow. It is not 4/5 because no sequence-with-checkpoints exists (and the under-50-line simple-skill exception does not apply to a ~750-line file), and not 2 because the content is coherent and well-scoped rather than gappy or incoherent.

3 / 5

Progressive Disclosure

Sections are well organized (clear ## / ### hierarchy, a Quick Reference table, an Anti-Patterns section), but the entire ~750-line body is inlined in SKILL.md with zero reference files — content like the Concurrency Patterns, Python Tooling Integration, and pyproject.toml sections clearly belongs in separate one-level-deep references. It is not 4 because nothing is split out at all, and not 2 because the in-file structure is substantial rather than 'minimal'.

3 / 5

Total

12

/

20

Passed

Description

83%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 strong description: it states concrete capability areas in third person and pairs them with an explicit, specific 'Use when' trigger clause covering writing and reviewing contexts. Its only weaknesses are minor — slightly broad 'best practices' framing and a few missing natural synonyms like .py or refactoring.

DimensionReasoningScore

Specificity

"Pythonic idioms, PEP 8 standards, type hints, and best practices for building robust, efficient, and maintainable Python applications" lists several specific capability areas (idioms, PEP 8, type hints) rather than vague domain naming. It falls short of 5 because these are topic areas rather than the concrete, enumerable actions of the top anchor, and coverage gaps remain (e.g., refactoring, tooling, concurrency — all present in the body — are unmentioned).

4 / 5

Completeness

The 'what' is explicit ("Pythonic idioms, PEP 8 standards, type hints, and best practices for building robust, efficient, and maintainable Python applications") and the 'when' is an explicit concrete trigger clause: "Use when writing or reviewing Python code and idiomatic structure, typing, or PEP 8 is in question." Both are present with concrete trigger phrases, matching the top anchor; score 4 would require the 'when' to be less explicit than it is.

5 / 5

Trigger Term Quality

Natural phrases users would say appear directly: "writing or reviewing Python code", "typing", "PEP 8", "Pythonic". Not 5 because common synonyms and extensions are missing (".py", "Pythonic code" as a user phrase, "refactoring", "linting/formatting"), and not 3 because keyword coverage is well beyond 'some relevant keywords'.

4 / 5

Distinctiveness Conflict Risk

"Pythonic idioms, PEP 8 standards, type hints" carves a clear Python-language niche with distinct triggers (PEP 8, typing, idiomatic structure) unlikely to fire for unrelated skills. Not 5 because "best practices for building robust, efficient, and maintainable Python applications" is broad enough to mildly overlap with a general Python tooling or code-review skill.

4 / 5

Total

17

/

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 (752 lines); consider splitting into references/ and linking

Warning

metadata_version

'metadata.version' is missing

Warning

Total

14

/

16

Passed

Repository

affaan-m/ECC

Path

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