Source profileQuality 95/100

Benknightdark/neo-skills/skills/neo-clean-architecture/SKILL.md

neo-clean-architecture

Use this skill when the user wants to design, implement, review, or refactor software systems conforming to Clean Architecture principles. It structures code into Domain, Application, Infrastructure, and Presentation/API layers, enforcing inward-only dependencies. It advocates rich domain models, CQRS, and the Result pattern, operating on technology-neutral concepts without database or framework bindings.

Source repository stars
7
Declared platforms
0
Static risk flags
0
Last source update
2026-08-05
Source checked
2026-08-05

Decision brief

What it does—and where it fits

Design and review software systems using Clean Architecture. The core objective is separating concerns based on their rate of change, directing all source code dependencies inward toward the Domain core.

Best for

  • Use this skill when the user wants to design, implement, review, or refactor software systems conforming to Clean Architecture principles.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/Benknightdark/neo-skills --skill "skills/neo-clean-architecture"
Safe inspection promptEditorial

Inspect the Agent Skill "neo-clean-architecture" from https://github.com/Benknightdark/neo-skills/blob/c3e3d1bcf6aae00a729ceab257e6a68dd40d89ec/skills/neo-clean-architecture/SKILL.md at commit c3e3d1bcf6aae00a729ceab257e6a68dd40d89ec. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Workflow Checklist

    Progress: - [ ] Step 1: Analyze Core & Boundaries (See references/designprinciples.md). - [ ] Step 2: Design Domain Layer (Build entities and value objects; protect invariants). - [ ] Step 3: Design Application Layer (Define use case handlers, CQRS inputs, and repository interfa…

    [ ] Step 1: Analyze Core & Boundaries (See references/designprinciples.md).[ ] Step 2: Design Domain Layer (Build entities and value objects; protect invariants).[ ] Step 3: Design Application Layer (Define use case handlers, CQRS inputs, and repository interfaces).
  2. 02

    Step 1 — Analyze Core & Boundaries

    1. Categorize business rules: - Domain Layer: Core rules that would exist even without a computer system. - Application Layer: System orchestration, workflows, and protocols. - Outer Layers (Infrastructure/Presentation): Delivery mechanisms and persistence details. 2. Read desig…

    Categorize business rules:Domain Layer: Core rules that would exist even without a computer system.Application Layer: System orchestration, workflows, and protocols.
  3. 03

    Step 2 — Design Domain Layer

    1. Entities: Keep setters private or read-only. 2. Domain Methods: Expose semantic operations (e.g., updateContent(), addTag()) that validate rules inside the entity. 3. Associations: Keep aggregates decoupled by referencing other aggregate roots via ID only.

    Entities: Keep setters private or read-only.Domain Methods: Expose semantic operations (e.g., updateContent(), addTag()) that validate rules inside the entity.Associations: Keep aggregates decoupled by referencing other aggregate roots via ID only.
  4. 04

    Step 3 — Design Application Layer

    1. Separate write operations (Commands) from read operations (Queries) using CQRS. 2. Define technology-neutral interfaces (e.g., IUserRepository), keeping database or network specifics out of Application. 3. Wrap use case outcomes in a Result type containing success/failure sta…

    Separate write operations (Commands) from read operations (Queries) using CQRS.Define technology-neutral interfaces (e.g., IUserRepository), keeping database or network specifics out of Application.Wrap use case outcomes in a Result type containing success/failure status, value, error type, and message. Refer to layerspecifications.md for concepts mapping.
  5. 05

    Step 4 — Implement Infrastructure & Presentation

    1. Infrastructure: Implement interfaces defined in Application. Configure ORM/database mappings, value conversions, and call external services. 2. Presentation/API: Handle transmission protocols (e.g., HTTP, gRPC). Map request payload to Command/Query, dispatch it to Application…

    Infrastructure: Implement interfaces defined in Application. Configure ORM/database mappings, value conversions, and call external services.Presentation/API: Handle transmission protocols (e.g., HTTP, gRPC). Map request payload to Command/Query, dispatch it to Application, and translate the Result into appropriate responses (e.g., HTTP 200, 201, 400, 404, 4…1. Infrastructure: Implement interfaces defined in Application. Configure ORM/database mappings, value conversions, and call external services. 2. Presentation/API: Handle transmission protocols (e.g., HTTP, gRPC). Map…

Permission review

Static risk signals and limitations

No configured static risk pattern was detected

This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score95/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars7SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
Benknightdark/neo-skills
Skill path
skills/neo-clean-architecture/SKILL.md
Commit
c3e3d1bcf6aae00a729ceab257e6a68dd40d89ec
License
MIT
Collected
2026-08-05
Default branch
main
View the original SKILL.md

Clean Architecture

Design and review software systems using Clean Architecture. The core objective is separating concerns based on their rate of change, directing all source code dependencies inward toward the Domain core.

Gotchas

  • Anemic Models: Entities that are mere data containers (only getters/setters) leak business logic. Entities must protect their invariants. State changes must go through explicit, business-oriented methods.
  • Pointless Value Objects: Avoid wrapping primitives (e.g., string, number) unless they encapsulate validation (e.g., email format) or behavior (e.g., auto-slug generation).
  • Deep Object Graphs: Do not nest full entities for associations. Loading a parent entity will trigger database performance issues. Reference other aggregates using IDs instead.
  • Dependency Leakage: Repository interfaces must reside in the Application layer, with implementations in Infrastructure. Never return query streams (e.g., IQueryable) to Application, as it leaks database concerns.
  • Exception Control Flow: Do not throw runtime exceptions for expected business failures (e.g., duplicate title, user not found). Use the Result pattern for flow control.

Workflow Checklist

Progress:

  • Step 1: Analyze Core & Boundaries (See references/design_principles.md).
  • Step 2: Design Domain Layer (Build entities and value objects; protect invariants).
  • Step 3: Design Application Layer (Define use case handlers, CQRS inputs, and repository interfaces).
  • Step 4: Implement Outer Layers (Implement database mapping, external services, and API controllers).
  • Step 5: Audit Architecture Health (Use assets/review_checklist.md to scan code).

Detailed Guidelines

Step 1 — Analyze Core & Boundaries

  1. Categorize business rules:
    • Domain Layer: Core rules that would exist even without a computer system.
    • Application Layer: System orchestration, workflows, and protocols.
    • Outer Layers (Infrastructure/Presentation): Delivery mechanisms and persistence details.
  2. Read design_principles.md for architectural details.

Step 2 — Design Domain Layer

  1. Entities: Keep setters private or read-only.
  2. Domain Methods: Expose semantic operations (e.g., updateContent(), addTag()) that validate rules inside the entity.
  3. Associations: Keep aggregates decoupled by referencing other aggregate roots via ID only.

Step 3 — Design Application Layer

  1. Separate write operations (Commands) from read operations (Queries) using CQRS.
  2. Define technology-neutral interfaces (e.g., IUserRepository), keeping database or network specifics out of Application.
  3. Wrap use case outcomes in a Result type containing success/failure status, value, error type, and message. Refer to layer_specifications.md for concepts mapping.

Step 4 — Implement Infrastructure & Presentation

  1. Infrastructure: Implement interfaces defined in Application. Configure ORM/database mappings, value conversions, and call external services.
  2. Presentation/API: Handle transmission protocols (e.g., HTTP, gRPC). Map request payload to Command/Query, dispatch it to Application, and translate the Result into appropriate responses (e.g., HTTP 200, 201, 400, 404, 409).

Output Templates

1. Architecture Blueprint Template

# [System Name] Clean Architecture Blueprint

## 1. Domain Layer
* **Entities & Aggregate Roots**:
  - `EntityName` (ID-association explanation)
* **Value Objects**:
  - `ValueObjectName` (Validation and behavior description)

## 2. Application Layer
* **Use Cases (CQRS / Handlers)**:
  - `CreateSomethingCommand` & Handler
  - `GetSomethingQuery` & Handler
* **External Interfaces (Gateways / Repositories)**:
  - `ISomethingRepository` (Interface methods)

## 3. Infrastructure Layer
* **Persistence Configurations**:
  - `SomethingRepository` implementation notes
  - Value Object persistence mapping rules

## 4. Presentation / API Layer
* **Contracts (Request/Response)**:
  - `CreateSomethingRequest` -> `SomethingResponse`
* **Route & Status Code Mappings**:
  - `POST /api/something` -> `201 Created` / `400 Bad Request` / `409 Conflict`

2. Architecture Review Template

# Clean Architecture Review — [Project Name]

## Health Score: [Score]/10
[Brief architectural health assessment]

## Findings & Recommendations
### 🔴 Critical (Dependency Violation / Invariant Leakage)
* **Location**: `path/to/file.ext#L12-30`
* **Problem**: [Description of the clean architecture violation]
* **Remediation**:
  ```[language]
  // Corrected code snippet

🟡 Warning (Anemic Model / Pointless Wrapping)

  • Location: path/to/file.ext
  • Problem: [Issue description]
  • Remediation: [Code or prose description]

🟢 Info (Structural / Pipeline Enhancements)

  • Location: path/to/file.ext
  • Remediation: [Suggestion details]

Alternatives

Compare before choosing

Computed 97136

equinor/neqsim

neqsim-subsea-and-wells

Subsea production systems, DNV-RP-F109 on-bottom stability screening, DNV-RP-F105 free-span screening, DNV-RP-F101 corroded-pipeline screening, well design, SURF cost estimation, and tieback analysis with NeqSim. USE WHEN: designing subsea fields, screening pipeline/cable/umbilical seabed stability or inspected metal loss, sizing flowlines and umbilicals, estimating well costs, performing casing design, running tieback comparisons, or configuring subsea equipment (trees, manifolds, boosters, ris

Computed 976

mgiovani/cc-arsenal

team-review

Multi-agent review team: architecture, security, performance, testing, style, docs/UX, plus an adversary that cross-examines the other 6, for security-sensitive, architectural, or large PRs (15+ files) where a single-agent pass risks missing cross-cutting issues. Use for auth/payments/PII changes, schema/pattern changes, compliance sign-off, or when asked to 'get the review team on this' / 'multi-agent review' / 'thorough review before merge'. For a standard PR or a quick pre-merge check, use /r

Computed 9623,835

alirezarezvani/claude-skills

loop-library

Discover, find, compare, audit, repair, adapt, and design repeatable AI-agent loops with explicit triggers, actions, verification, stopping conditions, guardrails, and handoffs. Use when a user asks to analyze a codebase for potential loops, mine coding-thread history for work done more than once, turn repeated engineering work into a loop, find or recommend a published loop, create a recurring agent workflow or automation cadence, turn an outcome into a bounded copy-ready loop, or review an exi

Computed 96253

majiayu000/spellbook

vscode-doctor

Diagnose slow or freezing VS Code-compatible editors with evidence-first, zero-hardcoded-assumption workflow. Use when the user reports editor lag, typing delay, UI freezes, extension host stalls, file watcher noise, high editor CPU/RSS, uses VS Code/Cursor as a file browser over a large folder, or wants a safe editor performance audit.