SkillsReviewed · wondelai

Wondelai Clean Architecture Skill

Clean Architecture is a coding-assistant skill for developers separating business rules from databases and frameworks, but it provides guidance rather than automatic enforcement. It includes a seven-question diagnostic and six reference guides covering dependency direction, use cases, adapters, component design, SOLID and architectural boundaries.

Researched 16 Nov 2026

In short.

Clean Architecture is an instruction skill for developers using coding assistants to review software structure, but its examples and scores require human judgment. Version 1.4.0 explains how business code can define interfaces that database and framework adapters implement, keeping technical details outside the core. It combines practical examples with a diagnostic checklist and lighter alternatives to full architectural boundaries. Some code and metric examples are internally inconsistent. Nothing was executed, and assistant compatibility, review accuracy and real-project benefits remain unassessed.

Researched and written by an AI model and checked by a second AI model. How it works

The supplied selected scope comprises clean-architecture/SKILL.md and six files under clean-architecture/references/: adapters-frameworks.md, boundaries.md, component-principles.md, dependency-rule.md, entities-use-cases.md and solid-principles.md. The repository-root LICENSE is the related notice above that folder. All eight supplied texts inform this report. Other repository skills, the linked book and external tools are excluded. No code, installation, assistant session or real application journey was executed; runtime behavior and effectiveness remain unassessed.

The overview

Identity

The clean-architecture folder in wondelai/skills contains SKILL.md and six Markdown reference guides. Its metadata identifies the author as wondelai and the version as 1.4.0. It adapts ideas associated with Robert C. Martin's Clean Architecture; Martin is the cited architectural source, not the identified author of this skill.

The original resource is available at [https://github.com/wondelai/skills/tree/main/clean-architecture]. The captured entry file is pinned to revision c5265583b1a9740f06831e1d3e89b35bba3eb430 at [https://raw.githubusercontent.com/wondelai/skills/c5265583b1a9740f06831e1d3e89b35bba3eb430/clean-architecture/SKILL.md].

Assessment

Its strongest use is helping an assistant explain where business logic belongs and propose specific repairs when database, framework or delivery concerns reach into that logic. The material connects principles to recognizable changes: move repository interfaces inward, move implementations outward, translate framework data at adapters and assemble concrete dependencies at startup.

The guidance includes partial boundaries and simpler return-based use cases, which helps counter unnecessary layering. Its benefits remain architectural intentions rather than demonstrated outcomes, and its diagnostic score should support discussion rather than certify a system.

Users

Developers maintaining applications with business rules, multiple delivery channels or replaceable infrastructure are the clearest audience. Typical questions include whether a rule belongs in a controller or domain object, how to remove ORM dependencies from business logic, and how to break a module dependency cycle.

Beginners get definitions and Python examples, but will still need to understand imports, interfaces and dependency injection. Experienced developers get more detail on component cohesion, coupling, ports and stability metrics. Teams building small applications should weigh those structures against the resource's lighter boundary options.

Capabilities

The skill supplies guidance for separating domain rules from application workflows, designing input and output interfaces, mapping plain request and response data, and isolating controllers, presenters and persistence gateways. It also covers SOLID, component release boundaries, dependency cycles, test isolation and the composition root that constructs the application.

Its seven diagnostic questions address isolated business-rule testing, inward dependencies, database replacement, delivery independence, framework confinement, cycle-free components and centralized dependency wiring. It asks for failed conditions and specific dependency inversions. No executable analyzer or automatic enforcement tool is included in the selected files.

Using it

Requirements

For assistant use, the host needs a way to consume SKILL.md and access its relative reference files. The supplied documentation does not establish supported assistants, model versions, installation locations, context limits or a compatibility matrix. The Markdown can also be read directly.

A useful project review needs the relevant source code, import relationships and business requirements. The skill alone cannot establish which dependencies exist in an application. Its examples use Python, but no mandatory Python runtime, package dependencies or credentials are specified for reading the skill.

Mechanism

The central rule is that source-code dependencies point toward business policy. Entities hold business rules; use cases coordinate application operations; adapters translate external data; frameworks and drivers provide infrastructure. Inner code defines the interfaces it needs, while outer code implements them.

For example, a use case depends on an OrderRepository interface rather than a PostgreSQL client. A database adapter implements that interface and is injected during application startup. Execution can still call outward through the interface: the skill explicitly distinguishes runtime control flow from the direction of source-code dependencies.

SKILL.md links to focused references for individual problems. Its scoring maps the number of satisfied diagnostic conditions into broad 0–10 bands, then requests explanations and corrective changes.

Setup

Obtain the original clean-architecture folder and retain SKILL.md alongside its references subdirectory so the relative links continue to resolve. Preserve the repository LICENSE when copying or redistributing the material. The revision-pinned entry link in Identity identifies the version described here.

Use the assistant host's documented method for loading local skills or reference instructions. No host-specific installation command is supplied. Start with a bounded question and the relevant code, such as identifying framework imports inside one use case, rather than expecting the skill to infer an entire application's architecture.

Example

The order-placement examples show a controller translating incoming data into PlaceOrderRequest, an interactor creating an Order and saving it through OrderRepository, and a presenter formatting the response. The repository interface belongs with the use case; PostgresOrderRepository implements it outside the business core.

For an existing application, a corresponding review could identify a use case importing a concrete database client, propose an inward-owned repository interface and move database access into an adapter. A useful result would name the offending imports, interface operations and startup wiring changes. This is an illustrative application of the documented method, not an observed execution.

Assessment & evidence

Limitations

The code is instructional material rather than an established runnable application. One concrete inconsistency appears in adapters-frameworks.md: OrderController is defined with one use-case constructor argument, while create_app passes two. The snippets therefore need reconciliation before reuse; no execution results establish their correctness.

The component metrics also need care. The reference defines D = |A + I - 1| for A and I between 0 and 1, but gives an approximate upper range of 0.7. By that stated formula, D can reach 1. The diagram's zone placement also conflicts with the written coordinates.

The diagnostic assigns score bands rather than a unique score for each result, and no calibration evidence is supplied. Some recommendations are broad, including keeping asynchronous mechanics outside use cases and wrapping side-effecting dependencies; suitability for a particular system requires judgment.

Reasoning

The architectural argument is that business policy and infrastructure change for different reasons. If business code specifies what it needs through an interface, a database or framework adapter can change without forcing the business code to import that technology. Whether a replacement is actually local depends on the completeness of the interface contract and the absence of other coupling.

That makes the material most useful when a team can identify a concrete source of change, such as persistence leakage or multiple delivery mechanisms. It does not establish that every application needs four physical layers. SKILL.md allows different circle counts; the references offer partial boundaries and simpler return-based use cases.

Alternatives

Within the material, a use case returning a result directly is offered as a simpler alternative to a full output-port and presenter arrangement. Interfaces kept in one package, strategy interfaces and facades provide progressively lighter boundaries. A facade simplifies access but does not itself enforce dependency direction.

For enforceable import constraints, the references name tools such as ArchUnit, Dependency Cruiser and import-linter. These complement the skill's explanations, but their current capabilities, compatibility and costs were not assessed. SKILL.md also points to clean-code and domain-driven-design for adjacent concerns; those separate skills are outside this resource's scope.

Evidence

The available source includes the entry instruction file, all six local reference guides and the repository-level MIT notice. Together they establish the intended behavior, architectural method, example patterns, declared version and redistribution terms.

The examples include test functions and suggested testing strategies, but those are source text rather than recorded test results. Nothing was executed. Successful assistant loading, generated-review quality, database replacement and improved maintenance outcomes are not demonstrated.

Access & freshness

Costs

The MIT notice grants permission without a licence fee. Any assistant subscription, model usage or other operating charges are separate; no provider, rate or usage estimate is established. Total adoption and operating costs are unknown.

Engineering effort is also unquantified. The documentation acknowledges that full boundaries require interfaces, separate data structures and dependency management, while lighter approaches reduce that overhead. Separate domain and persistence models introduce deliberate mapping work.

Rights

SKILL.md declares MIT licensing, and the repository-level LICENSE names Wondel.ai sp. z o.o., copyright 2025. It permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notice accompanies copies or substantial portions.

The material is supplied without warranty, with the liability limitations stated in the licence. Rights to redistribute the linked book or third-party products are not established by these files.

Freshness

The source snapshot is revision c5265583b1a9740f06831e1d3e89b35bba3eb430, captured on 16 November 2026 at 00:57:03.435 UTC. SKILL.md declares version 1.4.0, but its release date is not established. The capture date does not establish when the content was last maintained.

The main-branch link can change. Later revisions, current assistant compatibility and the present status of named third-party tools are unknown.

Actions

Begin with one application operation and provide its business rules, relevant files and dependency relationships. Ask for concrete outward dependencies, proposed interface ownership and the smallest boundary that addresses a likely change. Request explanations tied to actual imports rather than relying on the numeric score.

Before adopting generated changes, reconcile the example inconsistencies and check the metric definitions. Verify business behavior with isolated use-case tests and verify real adapters separately. Where useful, add language-appropriate import constraints so dependency direction can be checked automatically.

Evidence for this report

LICENSEnotice · checked 2026-11-16
clean-architecture/SKILL.mdselected · checked 2026-11-16
clean-architecture/references/boundaries.mdselected · checked 2026-11-16