CtrlK
BlogDocsLog inGet started
Tessl Logo

python-patterns

Pythonic 惯用法、PEP 8 标准、类型提示以及构建稳健、高效且可维护的 Python 应用程序的最佳实践。

38

Quality

37%

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/zh-CN/skills/python-patterns/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

42%

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

This skill is a comprehensive Python best practices reference, but it fundamentally misunderstands its audience — Claude already knows all of these Python idioms, patterns, and anti-patterns intimately. The content is well-structured with excellent executable examples, but its extreme verbosity (covering basic concepts like list comprehensions, context managers, and mutable default arguments) wastes precious context window tokens. It would be far more effective as a concise style preferences document pointing to specific project conventions that differ from defaults.

Suggestions

Reduce content by 80%+ by removing concepts Claude already knows (EAFP, context managers, list comprehensions, decorators, etc.) and focus only on project-specific conventions or non-obvious preferences.

Split remaining content into separate files (e.g., TYPING.md, TOOLING.md, PATTERNS.md) with SKILL.md serving as a brief overview with links.

Remove all 'Good/Bad' comparisons for universally known Python anti-patterns (mutable defaults, bare except, `type()` vs `isinstance`) — Claude knows these.

Add project-specific workflow guidance with validation steps, e.g., 'Before committing: run `ruff check . && mypy . && pytest`; fix all issues before proceeding.'

DimensionReasoningScore

Conciseness

This is extremely verbose at ~500+ lines, covering topics Claude already knows well (Python basics, PEP 8, list comprehensions, context managers, decorators, etc.). Nearly every section explains fundamental Python concepts that Claude has deep knowledge of. The 'Good/Bad' pattern explanations for things like mutable default arguments, isinstance vs type(), and None comparisons are textbook knowledge Claude doesn't need.

1 / 3

Actionability

All code examples are concrete, executable, and copy-paste ready. The examples include proper imports, complete function definitions, and realistic usage patterns. The tooling section provides specific CLI commands and a complete pyproject.toml configuration.

3 / 3

Workflow Clarity

This is primarily a reference/style guide rather than a multi-step workflow skill, so workflow clarity is less critical. However, the 'When to activate' section lists triggers, and the content is organized by topic. There are no validation checkpoints or feedback loops for the processes described (e.g., no guidance on iterating after linting failures).

2 / 3

Progressive Disclosure

The content is a monolithic wall of text with no references to external files. Everything is inlined into a single massive document covering type hints, error handling, context managers, comprehensions, dataclasses, decorators, concurrency, package organization, performance, tooling, and anti-patterns. This would benefit enormously from splitting into separate reference files.

1 / 3

Total

7

/

12

Passed

Description

32%

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description identifies the Python domain and mentions specific standards (PEP 8, type hints, Pythonic idioms), but it reads more like a topic list than an actionable skill description. It lacks concrete action verbs describing what the skill does, has no 'Use when...' clause to guide skill selection, and the broad 'best practices' framing could easily conflict with other Python-related skills.

Suggestions

Add an explicit 'Use when...' clause with trigger terms like 'code style', 'PEP 8', 'type annotations', 'Pythonic', 'code review', 'linting', 'refactor Python code'.

Replace vague phrases like '最佳实践' (best practices) with concrete actions such as 'Refactors Python code to follow PEP 8, adds type annotations, replaces non-idiomatic patterns with Pythonic equivalents'.

Use third-person action verbs to describe capabilities (e.g., 'Reviews and refactors Python code for idiomatic style, enforces PEP 8 compliance, adds type hints') to improve specificity and distinctiveness.

DimensionReasoningScore

Specificity

Names the domain (Python) and some areas (Pythonic idioms, PEP 8, type hints, best practices), but these are broad categories rather than concrete actions. No specific verbs describing what the skill does (e.g., 'refactors code', 'adds type annotations', 'lints for PEP 8 violations').

2 / 3

Completeness

Describes 'what' at a high level (Python best practices, PEP 8, type hints) but completely lacks any 'when' clause or explicit trigger guidance. Per the rubric, a missing 'Use when...' clause caps completeness at 2, and the 'what' is also vague enough to warrant a score of 1.

1 / 3

Trigger Term Quality

Includes some relevant keywords like 'PEP 8', 'type hints' (类型提示), 'Pythonic', and 'Python', which users might mention. However, it misses common variations and natural phrases users would say like 'code style', 'linting', 'code review', 'clean code', 'refactor', '.py files'.

2 / 3

Distinctiveness Conflict Risk

Somewhat specific to Python coding standards and idioms, which narrows the domain, but could easily overlap with general Python programming skills, code review skills, or any Python development skill. The broad phrase '构建稳健、高效且可维护的 Python 应用程序' (building robust, efficient, maintainable Python applications) is very generic.

2 / 3

Total

7

/

12

Passed

Validation

81%

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

Validation9 / 11 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

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

Warning

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

9

/

11

Passed

Repository
affaan-m/everything-claude-code
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.