Best for
- Use this skill when the user wants to design, implement, review, or refactor software systems conforming to Clean Architecture principles.
Benknightdark/neo-skills/skills/neo-clean-architecture/SKILL.md
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.
Decision brief
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.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/Benknightdark/neo-skills --skill "skills/neo-clean-architecture"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
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…
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…
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.
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…
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…
Permission review
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
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 95/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 7 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
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.
IQueryable) to Application, as it leaks database concerns.Progress:
references/design_principles.md).assets/review_checklist.md to scan code).updateContent(), addTag()) that validate rules inside the entity.IUserRepository), keeping database or network specifics out of Application.# [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`
# 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
path/to/file.extpath/to/file.extAlternatives
equinor/neqsim
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
mgiovani/cc-arsenal
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
alirezarezvani/claude-skills
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
majiayu000/spellbook
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.