clean-architecture

clean-architecture is a skill for Claude Code, Codex from agency-skills/agency-skills-b. It costs 16 tokens per session (907 once invoked), scanned A, original, no licence file.

An implementation guide for Clean Architecture and CQRS in NestJS applications. Clean Architecture separates business rules from technical details, while CQRS uses separate paths for changing data and reading it.

In plain words
What is it for?
Use it when structuring NestJS services, separating commands from queries, and building applications intended to grow over time.
Why use it?
It provides a way to organise a growing application so business logic is easier to test and less tied to frameworks or storage choices.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it when structuring NestJS services, separating commands from queries, and building applications intended to grow over time.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agency-skills/agency-skills-b/clean-architecture
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add agency-skills/agency-skills-b --skill clean-architecture
Clone the repo
git clone --depth 1 https://github.com/agency-skills/agency-skills-b

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for clean-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/agency-skills/agency-skills-b/clean-architecture/github.svg)](https://agentmods.dev/skills/agency-skills/agency-skills-b/clean-architecture)
Your own site
<a href="https://agentmods.dev/skills/agency-skills/agency-skills-b/clean-architecture"><img src="https://agentmods.dev/badge/skills/agency-skills/agency-skills-b/clean-architecture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for clean-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/agency-skills/agency-skills-b/clean-architecture"><img src="https://agentmods.dev/badge/skills/agency-skills/agency-skills-b/clean-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 907 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00907
Opus 5 $0.00008 $0.00453
Sonnet 5 $0.00003 $0.00181
Haiku 4.5 $0.00002 $0.00091

Measured 12d ago against content hash da79f9c751c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

clean-architecture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/assets/skills/architecture/clean-architecture/SKILL.md · 156 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 156 lines · 16 tokens per session scan A da79f9c751c0

Subscribe to this mod's changes

clean-architecture is a skill published in the GitHub repository agency-skills/agency-skills-b (1 stars, last pushed 1mo ago), with no licence file. It adds 16 tokens to every session and 907 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

backend-cqrs-patterns

Use this skill when the user says 'CQRS', 'command query segregation', 'separate read write model', 'command model', 'query model', 'read model', 'write model', 'materialized view', 'command handler', 'query handler'. This skill enforces: strict command/query separation, write model optimized for consistency, read…

j4flmao/agent-skills · 125 tokens

architecture-patterns

Architecture validation and patterns for clean architecture, backend structure enforcement, project structure validation, test standards, and context-aware sizing. Use when designing system boundaries, enforcing layered architecture, validating project structure, defining test standards, or choosing the right…

yonatangross/orchestkit · 56 tokens

architecture-paradigm-hexagonal

Applies hexagonal architecture isolating domain from infrastructure. Use when designing systems where testability and port/adapter separation are priorities.

athola/claude-night-market · 34 tokens

architecture-paradigm-cqrs-es

Applies CQRS and Event Sourcing for read/write separation and audit trails. Use when designing systems with complex domain logic or full state-change history.

athola/claude-night-market · 39 tokens

application

Use when creating application layer artifacts for a NestJS bounded context — use cases, CQRS command/query handlers, DTOs, ports (cross-module interfaces), application services, or read model projections. Supports three patterns: plain UseCase (A), CQRS native (B), and Handler-as-Orchestrator (C).

Softtor/nestjs-hexagonal · 66 tokens

domain

Use when creating domain layer artifacts for a NestJS bounded context — entities (AggregateRoot), value objects, domain events, repository interfaces, domain services, validators, or data builders. Covers Hexagonal Architecture + DDD patterns with NestJS CQRS native event support.

Softtor/nestjs-hexagonal · 55 tokens