neo-clean-architecture
Use this skill when the user wants to design, implement, review, or refactor software systems conforming to Clean Architecture principles.
Skill by Benknightdark
Chalk Labs
Need help deploying neo-clean-architecture?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/benknightdark-neo-clean-architecture
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: presentations, design, backend, devops
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/neo-clean-architecture
What's inside
- Skill name
neo-clean-architecture- Description
- 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.
- License
- MIT
- Metadata
- domain: architecture · pattern: reviewer-generator
- Instructions
- 107 lines in SKILL.md · view on GitHub
Files (7)
- SKILL.md
- architecture_template.md · assets/
- review_checklist.md · assets/
- eval_queries.json · evals/
- evals.json · evals/
- design_principles.md · references/
- layer_specifications.md · references/
SKILL.md (first lines)
# 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](references/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](references/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 ```markdown # [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 ```markdown # 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] ```
From Benknightdark/neo-skills, MIT.
More from Benknightdark/neo-skills
- 0.589score
neo-opentelemetry
Benknightdark
Use this skill when explaining OpenTelemetry concepts, choosing telemetry signals, planning or reviewing Collector architectures and declarative…
SkillBFreshness: B★ 7Claude Code +9 - 0.589score
neo-harness
Benknightdark
Use this skill when you need to inspect a target project codebase and generate or improve a tailored, comprehensive AGENTS.md file (Harness Workflow…
SkillBFreshness: B★ 7Claude Code +9 - 0.586score
neo-harness-project
Benknightdark
當使用者要求盤點目前專案並建立、重建或補強完整 Harness 工程環境時使用此技能, 包含專案知識地圖、架構文件、持久化計畫、驗證入口、.neo_harness 集中式資產及依證據選用的工程治理資產; 不用於只建立單一 AGENTS.md 或一般功能開發。
SkillBFreshness: B★ 7Claude Code +9 - 0.584score
neo-dotnet-webapi
Benknightdark
Use this skill when building, debugging, refactoring, or reviewing controller-based ASP.NET Core Web APIs, including ControllerBase, ActionResult<T>, Problem…
SkillBFreshness: B★ 7Claude Code +9 - 0.584score
neo-dotnet-ef-core
Benknightdark
Use this skill when the task involves Entity Framework Core models, DbContext, migrations, LINQ queries, change tracking, database providers, performance…
SkillBFreshness: B★ 7Claude Code +9 - 0.584score
neo-dotnet-mvc
Benknightdark
Use this skill when building, debugging, refactoring, or reviewing ASP.NET Core MVC apps with Razor views, controllers, ViewModels, validation, Tag Helpers…
SkillBFreshness: B★ 7Claude Code +9 - 0.584score
neo-dotnet-minimal-apis
Benknightdark
Use this skill when building, debugging, refactoring, or reviewing ASP.NET Core Minimal APIs, lightweight endpoints, route groups, endpoint filters, typed…
SkillBFreshness: B★ 7Claude Code +9 - 0.584score
neo-javascript
Benknightdark
Use this skill when writing, reviewing, debugging, or modernizing JavaScript across browser, Node.js, and pure JS projects.
SkillBFreshness: B★ 7Claude Code +9 - 0.584score
neo-csharp
Benknightdark
Use this skill when writing, reviewing, debugging, or modernizing C# code in .NET projects.
SkillBFreshness: B★ 7Claude Code +9 - 0.578score
generate-skill
Benknightdark
引導使用者建立、更新、審查或最佳化高品質 Agent Skill 定義檔 (SKILL.md),包含官方規格、description 觸發語、references/scripts/assets/evals 結構,以及 5 種核心設計模式。
SkillBFreshness: B★ 7Claude Code +9 - 0.564score
neo-code-review
Benknightdark
Use this skill when the user asks to review or audit source code, a PR, diff, commit, or recent changes for bugs, security, performance, tests, compatibility…
SkillBFreshness: B★ 7Claude Code +9 - 0.564score
neo-iso-27701
Benknightdark
Use this skill when the user needs to establish, review, or improve an ISO/IEC 27701 PIMS, inventory PII processing, analyze controller and processor…
SkillBFreshness: B★ 7Claude Code +9
Signals
- Stars
- 7
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Jun 11, 2026 (4 months ago)
- Last release
- Sep 6, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Benknightdark/neo-skills
- Website
- neo-blog-iota.vercel.app/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Benknightdark
- 0.589score
neo-harness
Benknightdark
Use this skill when you need to inspect a target project codebase and generate or improve a tailored, comprehensive AGENTS.md file (Harness Workflow…
SkillBFreshness: B★ 7Claude Code +9 - 0.589score
neo-opentelemetry
Benknightdark
Use this skill when explaining OpenTelemetry concepts, choosing telemetry signals, planning or reviewing Collector architectures and declarative…
SkillBFreshness: B★ 7Claude Code +9 - 0.586score
neo-harness-project
Benknightdark
當使用者要求盤點目前專案並建立、重建或補強完整 Harness 工程環境時使用此技能, 包含專案知識地圖、架構文件、持久化計畫、驗證入口、.neo_harness 集中式資產及依證據選用的工程治理資產; 不用於只建立單一 AGENTS.md 或一般功能開發。
SkillBFreshness: B★ 7Claude Code +9 - 0.584score
neo-dotnet-minimal-apis
Benknightdark
Use this skill when building, debugging, refactoring, or reviewing ASP.NET Core Minimal APIs, lightweight endpoints, route groups, endpoint filters, typed…
SkillBFreshness: B★ 7Claude Code +9 - 0.584score
neo-dotnet-ef-core
Benknightdark
Use this skill when the task involves Entity Framework Core models, DbContext, migrations, LINQ queries, change tracking, database providers, performance…
SkillBFreshness: B★ 7Claude Code +9 - 0.584score
neo-csharp
Benknightdark
Use this skill when writing, reviewing, debugging, or modernizing C# code in .NET projects.
SkillBFreshness: B★ 7Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get neo-clean-architecture running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
neo-clean-architecture skill. Agent Mart. https://agentmart.dev/skills/benknightdark-neo-clean-architecture (last updated 2026-10-24)