CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

python-patterns

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

Quality

60%

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

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.

A well-organized, code-dense Python patterns reference with strong Good/Bad examples, but almost entirely re-teaches knowledge Claude already has, inlines everything into SKILL.md, and offers no workflow for applying the patterns. Its value as a skill is diluted by redundancy with baseline model knowledge.

Suggestions

Cut or drastically compress sections that re-teach Python fundamentals Claude already knows (list comprehensions, basic decorators, EAFP, bare-except warnings) and keep only non-obvious or project-specific conventions, so every remaining token adds value.

Split advanced material (concurrency patterns, pyproject.toml/tooling config, custom context managers and decorators) into reference files under references/ and keep SKILL.md as a concise overview with clearly signaled one-level-deep links.

Add a short explicit workflow — e.g., when reviewing Python code: check imports/type hints against the conventions, flag the listed anti-patterns, then run the tooling commands (black/ruff/mypy) — so the reference becomes an actionable procedure rather than a catalog.

DimensionReasoningScore

Conciseness

The ~750-line body is a catalog of standard Python knowledge — list comprehensions, EAFP, context managers, dataclasses, basic decorators, ThreadPoolExecutor vs ProcessPoolExecutor — all of which Claude already knows well. It is not prose-padded, but nearly every section re-teaches baseline concepts (e.g., '# Bad: Manual loop / names = [] for user in users...' and '# Bad: Bare except') instead of adding non-obvious project guidance.

2 / 5

Actionability

Examples are concrete, runnable, and structured as Good/Bad pairs covering the common cases (typing, error chaining, __slots__, pyproject.toml tooling config). Minor gaps: several snippets omit imports or use undefined names ("Callable", "Iterator", "Iterable", "Any", "json", "time" are used without being imported; "User", "Config", "db", "conn" are undefined placeholders).

4 / 5

Workflow Clarity

This is a reference catalog, not a multi-step process — there is no sequenced workflow or decision path for applying the patterns, only a '何时激活' activation list and topic sections. Nothing is destructive or batch-oriented so validation checkpoints are not strictly required, but the content also gives no explicit procedure for how to move from reviewing code to applying a pattern.

3 / 5

Progressive Disclosure

No bundle files exist (references/, scripts/, assets/ are absent) and all content is inlined in SKILL.md. Internal structure is good (## sections, ### subsections, a quick-reference table), but ~750 lines of pattern reference clearly belongs split into separate files (e.g., typing.md, concurrency.md, tooling.md) with SKILL.md as a lean overview.

3 / 5

Total

12

/

20

Passed

Description

53%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.

The description identifies a clear Python style/typing niche with a few concrete topic keywords, but it reads as a topic list rather than a capability statement and completely lacks a 'when to use' trigger clause, capping completeness. It is serviceable but below the quality of the reference good examples.

Suggestions

Add an explicit trigger clause, e.g. 'Use when writing, reviewing, or refactoring Python code, or when the user mentions PEP 8, type hints, or Pythonic style.'

Convert the noun-topic list into concrete actions with verbs, e.g. 'Applies Pythonic idioms and PEP 8 style conventions, adds type annotations, and reviews Python code for maintainability.'

Include natural trigger variations users would actually say — 'Python best practices', 'clean Python', 'type annotations', 'Python style guide' — to improve keyword coverage for discovery.

DimensionReasoningScore

Specificity

The description enumerates three concrete topics — 'Pythonic 惯用法' (Pythonic idioms), 'PEP 8 标准' (PEP 8 standards), '类型提示' (type hints) — but states them as noun topics with no action verbs, and pads with the vague clause '构建稳健、高效且可维护的 Python 应用程序的最佳实践' (best practices for robust, efficient, maintainable apps). It matches 'names domain and 1-2 concrete actions, but not comprehensive' more than the action-listing level 4, since nothing describes what the skill actually does.

3 / 5

Completeness

The 'what' is reasonably clear (Pythonic idioms, PEP 8, type hints, best practices), but the 'when' is entirely absent — there is no 'Use when...' clause or equivalent trigger guidance, which per the judging guidelines caps this dimension at 3. It is not 2 because the 'what' half is concrete, and not 4 because no usage conditions are stated or even implied.

3 / 5

Trigger Term Quality

It contains some relevant natural keywords users would say ('Pythonic', 'PEP 8', 'type hints', 'Python') but misses common variations and synonyms such as 'Python style', 'clean Python', 'type annotations', 'linting', 'refactoring Python code'. Anchor 3 ('some relevant keywords but missing common variations') is the best fit; not 4 because no trigger phrases or synonyms are provided.

3 / 5

Distinctiveness Conflict Risk

The Python-specific vocabulary ('Pythonic 惯用法', 'PEP 8', '类型提示') carves a clear niche with minimal conflict risk against non-Python skills. Not 5 because the generic trailing phrase '构建稳健、高效且可维护的…应用程序的最佳实践' could overlap with general code-quality or language-agnostic best-practices skills.

4 / 5

Total

13

/

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 (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

14

/

16

Passed

Repository

affaan-m/ECC

Path

docs/zh-CN/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.