CtrlK
BlogDocsLog inGet started
Tessl Logo

python-patterns

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

38

Quality

37%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./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 with excellent, executable code examples, but it fundamentally fails as a skill file by being far too verbose and teaching Claude things it already knows deeply. The content would be better suited as a project-specific style guide with only the team's particular conventions and preferences, not a general Python tutorial. The monolithic structure with no progressive disclosure compounds the token waste problem.

Suggestions

Reduce the content to only project-specific conventions and preferences that differ from standard Python best practices — Claude already knows PEP 8, dataclasses, context managers, decorators, async/await, etc.

Split into a concise SKILL.md overview (under 50 lines) with references to separate files like TYPE_HINTS.md, ERROR_HANDLING.md, CONCURRENCY.md, and TOOLING.md for detailed patterns.

Remove explanatory text like 'Python prioritizes readability' and 'Avoid magic' — these are well-known Python principles. Focus on specific, non-obvious project rules.

Add project-specific constraints such as required Python version, mandatory linting rules, or team-specific patterns that Claude wouldn't know by default.

DimensionReasoningScore

Conciseness

This is extremely verbose (~500+ lines) and largely teaches Claude things it already knows well: PEP 8 conventions, list comprehensions, context managers, dataclasses, decorators, async/await, type hints, etc. Almost every section explains fundamental Python concepts that Claude has deep knowledge of. Very few tokens here add genuinely new or project-specific information.

1 / 3

Actionability

The code examples are concrete, executable, and copy-paste ready throughout. Each pattern includes both good and bad examples with clear annotations, and the tooling section provides specific CLI commands and complete pyproject.toml configuration.

3 / 3

Workflow Clarity

The skill is primarily a reference/pattern catalog rather than a multi-step workflow, so workflow clarity is less critical. However, the 'when to activate' section lists triggers, and the content is logically sequenced from principles to patterns to tooling. No validation checkpoints or feedback loops are present, though they're less necessary for a style guide.

2 / 3

Progressive Disclosure

This is a monolithic wall of text with no references to external files. All content is inline in a single massive document. Topics like concurrency patterns, decorators, package organization, and tooling configuration could each be separate reference files, with SKILL.md serving as a concise overview with links.

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 actions (verbs), 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 scenarios, e.g., 'Use when the user asks about Python code style, PEP 8 compliance, type annotations, idiomatic Python, or code quality improvements.'

Replace abstract nouns with concrete action verbs describing what the skill does, e.g., 'Reviews Python code for PEP 8 compliance, adds type hints, refactors code to use Pythonic idioms, and suggests performance improvements.'

Include common user-facing trigger terms and file extensions like 'code review', 'linting', 'clean code', 'refactor', '.py' to improve matching against natural user requests.

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.