Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/kinhluan/skillsnpx agentmods add skills/kinhluan/skills/clean-architectureWrote 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.
[](https://agentmods.dev/skills/kinhluan/skills/clean-architecture)<a href="https://agentmods.dev/skills/kinhluan/skills/clean-architecture"><img src="https://agentmods.dev/badge/skills/kinhluan/skills/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.
<a href="https://agentmods.dev/skills/kinhluan/skills/clean-architecture"><img src="https://agentmods.dev/badge/skills/kinhluan/skills/clean-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00060 | $0.04811 |
| Opus 5 | $0.00030 | $0.02405 |
| Sonnet 5 | $0.00012 | $0.00962 |
| Haiku 4.5 | $0.00006 | $0.00481 |
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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 576 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Clean Architecture
Separate stable business rules from volatile technical details.
Clean Architecture, formalized by Robert C. Martin (Uncle Bob) in Clean Architecture: A Craftsman's Guide to Software Structure and Design (2017), is an evolution of Layered Architecture, Hexagonal Architecture (Alistair Cockburn, 2005), and Onion Architecture (Jeffrey Palermo). It provides a set of principles for organizing code so that business logic remains independent of frameworks, UI, and databases.
"The goal of software architecture is to minimize the human resources required to build and maintain the required system." — Robert C. Martin
1. The Dependency Rule
Source code dependencies must always point inward, toward higher-level policies, never outward toward lower-level details.
┌─────────────────────────────────────────────────────────────┐
│ OUTER LAYERS (Details) │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ Frameworks & Drivers │ │
│ │ (React, FastAPI, gRPC, PostgreSQL, Redis, AWS) │ │
│ │ ▲ │ │
│ │ │ depends on │ │
│ │ ▼ │ │
│ │ Interface Adapters │ │
│ │ (Controllers, Presenters, Gateways, Repositories) │ │
│ │ ▲ │ │
│ │ │ depends on │ │
│ │ ▼ │ │
│ │ Application Business Rules │ │
│ │ (Use Cases, Interactors, Application Services) │ │
│ │ ▲ │ │
│ │ │ depends on │ │
│ │ ▼ │ │
│ │ Enterprise Business Rules │ │
│ │ (Entities, Domain Objects, Value Objects) │ │
│ └─────────────────────────────────────────────────────┘ │
│ INNER LAYERS (Policies) │
└─────────────────────────────────────────────────────────────┘
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 9d ago First seen · 576 lines · 60 tokens per session scan A 5a3b4921bed0
clean-architecture is a skill published in the GitHub repository kinhluan/skills (4 stars, last pushed 13d ago), licensed MIT. It adds 60 tokens to every session and 4,811 once invoked, about $0.0003 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.
Other skills, from other repositories
domain-driven-design
DDD tactical patterns for complex business modeling including entities, value objects, aggregates, domain services, repositories, specifications, and bounded contexts. Python dataclass implementations with TypeScript alternatives. Use when building rich domain models, enforcing invariants, or separating domain logic…
ideogram-ultra
Build Ideogram 4 (Ideogram Ultra) txt2img and img2img workflows with the local open-weights model, dual conditional/unconditional models with DualModelGuider, Qwen3-VL text encoder, and structured JSON ("compositional deconstruction") prompts for strong text rendering and layout control.
flux-txt2img
Build Flux txt2img workflows with Flux.1 Dev (SRPO), Flux 2 Klein 9B, Turbo LoRAs, FluxGuidance, and DualCLIPLoader patterns.
panel-node-pack-sync
Keep the ComfyUI sidebar panel node-pack (comfyui-agent-panel) in step with the orchestrator after comfyui-mcp updates. Use this whenever the orchestrator was just updated (installcomfyui (action:"selfupdate"), npm i -g comfyui-mcp, a new version in the ENVIRONMENT line), when a panel/bridge command fails in a way…
civitai
Discover Civitai models with the BUILT-IN downloadmodel action:"searchcivitai" and install/generate them locally. Find a checkpoint/LoRA/embedding on Civitai, download it into ComfyUI, and use its trigger words. Optionally pair the official Civitai MCP for community features (images browsing, posting, collections).
chief-revenue-officer
Owns the revenue engine end to end: sales, monetization, pricing, customer success, retention, and partnerships. Use this for pricing and packaging decisions, sales strategy and coverage, forecast and pipeline health, churn and expansion, partner and channel strategy, or when marketing-sourced demand is not…