CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

clean-architecture

Apply Clean Architecture principles to define layer boundaries, identify dependency violations, and structure domain vs infrastructure code. Use when designing service boundaries, separating business logic from infrastructure, evaluating hexagonal/onion/ports-and-adapters architecture, structuring module layout, or resolving dependency inversion and circular dependency issues.

Quality

86%

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

75%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-structured, lean instruction skill with concrete templates, examples, and commands, backed by a genuinely well-organized one-level reference bundle. All four dimensions sit just below top: an inverted rg pattern, a missing post-refactor verification loop, an orphaned reference file, and light over-explanation in the WHY paragraphs.

Suggestions

Fix the dependency-direction rg command — as written it matches allowed inward imports (e.g., infrastructure code importing 'from domain'); invert it to flag outer-to-inner references such as `rg -n "from .*infrastructure" src/domain`, and add a workflow step that re-runs these checks after refactoring to confirm violations are resolved.

Link references/comp-common-reuse.md from the References section (or remove it from the bundle) — it is currently an orphan file unreachable from SKILL.md navigation.

Give the three external links (Clean Architecture, Hexagonal Architecture, Screaming Architecture) their own labeled group (e.g., '**Further reading:**') so they no longer appear to belong to the 'Frameworks' reference bullet.

DimensionReasoningScore

Conciseness

Mostly lean with no padding and no re-explanation of basics: every section is a template, checklist, BAD/GOOD example, or command. Minor trimmable instances remain — the H1 subtitle ("Strategic architecture principles for boundaries, dependencies, and layered system design") duplicates the frontmatter description, and several 'WHY' paragraphs (e.g., why circular dependencies prevent independent testing/deployment) restate consequences Claude could infer.

4 / 5

Actionability

Concrete and mostly executable throughout — complete TypeScript port/adapter and use-case templates, an ADR template, and BAD/GOOD examples covering the common cases. Minor gaps: the first rg pattern ("import.*infrastructure.*from.*domain|import.*adapter.*from.*entity") mostly matches the allowed inward direction rather than actual violations, and "nx graph" presumes an Nx monorepo with no fallback.

4 / 5

Workflow Clarity

Six clearly sequenced steps, each declaring an explicit "Output:" artifact, with a checklist at Step 2 — strong checkpoints. No explicit validation/feedback loop though: after refactoring a violation, the workflow never re-runs the dependency checks to confirm resolution, which the top anchor requires.

4 / 5

Progressive Disclosure

Excellent one-level-deep structure: 28 categorized reference files under thematic groups (Dependencies, Entities, Use Cases, Adapters, Frameworks), all verified present on disk. Two minor organization gaps keep it below the top anchor: references/comp-common-reuse.md is an orphan (never linked, undiscoverable), and the three external links sit unlabeled directly beneath the 'Frameworks' bullet, appearing to belong to it.

4 / 5

Total

16

/

20

Passed

Description

91%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 in third-person voice that pairs a concrete three-action 'what' with an explicit 'Use when' clause rich in synonyms (hexagonal/onion/ports-and-adapters, dependency inversion, circular dependencies). Its only weaknesses are slight under-coverage of the skill's full action set and a minor overlap with SOLID-style dependency-inversion triggers.

DimensionReasoningScore

Specificity

Names the domain and lists three concrete actions — "define layer boundaries, identify dependency violations, and structure domain vs infrastructure code" — but omits capabilities the body actually covers (use-case design, adapter placement, boundary documentation), leaving minor gaps in coverage rather than the comprehensiveness of the top anchor.

4 / 5

Completeness

Clearly and explicitly answers both 'what' ("Apply Clean Architecture principles to define layer boundaries, identify dependency violations, and structure domain vs infrastructure code") and 'when' ("Use when designing service boundaries... or resolving dependency inversion and circular dependency issues") with concrete trigger phrases, matching the top anchor.

5 / 5

Trigger Term Quality

Trigger coverage is comprehensive and includes synonyms: "designing service boundaries", "separating business logic from infrastructure", "hexagonal/onion/ports-and-adapters architecture" (all three naming variants of the style), "structing module layout", and "resolving dependency inversion and circular dependency issues" — all natural phrases a user would say when needing this skill.

5 / 5

Distinctiveness Conflict Risk

A clear niche (layered/clean architecture design) with mostly distinct triggers, but "resolving dependency inversion" overlaps with the DIP coverage of a closely related class-design/SOLID skill — a user asking about the dependency inversion principle alone could plausibly trigger either skill, so the risk is minor but not minimal.

4 / 5

Total

18

/

20

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.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

pantheon-org/tekhne

Path

skills/software-engineering/design-principles/clean-architecture/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.