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-18
Source checked
2026-08-28

Decision brief

What it does: 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/40463275dd97f94cb75b759abe7e232ef8a91ee2/skills/neo-clean-architecture/SKILL.md at commit 40463275dd97f94cb75b759abe7e232ef8a91ee2. 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
40463275dd97f94cb75b759abe7e232ef8a91ee2
License
MIT
Collected
2026-08-28
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]

Frequently asked questions

What to verify before installation and use

What does the neo-clean-architecture source document cover?

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.

How do I install neo-clean-architecture?

The source record exposes this install command: npx skills add https://github.com/Benknightdark/neo-skills --skill "skills/neo-clean-architecture". Inspect the command and pinned source before running it.

Alternatives

Compare before choosing

Computed 9967

brucesongs/kali-claw

insecure-design

Insecure Design (OWASP A06:2025) focuses on security flaws in system architecture and design phases, rather than code implementation-level bugs.

Computed 9916

NintendaDev/unikit-ai

unikit-docs

Generate and maintain the project's TECHNICAL documentation from its codebase — scans the project structure, tech stack, and module boundaries, then writes a lean README landing page plus detailed topic pages (architecture, modules, setup, build, APIs), only the docs that are relevant. Use whenever the user wants to create, update, or validate documentation of the CODE or the project itself, e.g. "generate documentation", "create docs", "write the README", "update the project docs", "document th

Computed 9864

Jamie-BitFlight/claude_skills

agent-creator

Create high-quality Claude Code agents from scratch or by adapting existing agents as templates. Use when the user wants to create a new agent, modify agent configurations, build specialized subagents, or design agent architectures. Guides through requirements gathering, template selection, and agent file generation following Anthropic best practices (v2.1.63+).

Computed 9861

magnus919/agent-skills

software-architecture-analysis

Use this skill to reverse-engineer an existing software system, map its architecture, data flow, privacy posture, coupling, quality characteristics, and feature surface, then produce an evidence-grounded clean-room design document, PRD, or migration plan under new constraints. Use for codebase archaeology, implicit contract extraction, architecture health assessment, or decomposition-readiness analysis. Do not use for greenfield architecture design, direct code review, bug hunting, security audi