clean-code-clean-architecture

clean-code-clean-architecture is a skill for Claude Code, Codex from GulajavaMinistudio/awesome-copilot-id. It costs 15 tokens per session (955 once invoked), scanned A, original, MIT.

Coding guidance based on Clean Architecture and Clean Code, an approach that keeps business rules separate from databases, web frameworks, and user interfaces. It also requires clear data objects when information crosses these boundaries.

In plain words
What is it for?
Use it when designing or reviewing layered applications, domain entities, use cases, controllers, data access, and conversions between internal objects and external responses.
Why use it?
It reduces framework-dependent business logic and makes core behavior easier to test or replace.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when designing or reviewing layered applications, domain entities, use cases, controllers, data access, and conversions between internal objects and external responses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gulajavaministudio/awesome-copilot-id/clean-code-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 GulajavaMinistudio/awesome-copilot-id --skill clean-code-clean-architecture
Clone the repo
git clone --depth 1 https://github.com/GulajavaMinistudio/awesome-copilot-id

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-code-clean-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/gulajavaministudio/awesome-copilot-id/clean-code-clean-architecture/github.svg)](https://agentmods.dev/skills/gulajavaministudio/awesome-copilot-id/clean-code-clean-architecture)
Your own site
<a href="https://agentmods.dev/skills/gulajavaministudio/awesome-copilot-id/clean-code-clean-architecture"><img src="https://agentmods.dev/badge/skills/gulajavaministudio/awesome-copilot-id/clean-code-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-code-clean-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/gulajavaministudio/awesome-copilot-id/clean-code-clean-architecture"><img src="https://agentmods.dev/badge/skills/gulajavaministudio/awesome-copilot-id/clean-code-clean-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 955 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original 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.00015 $0.00955
Opus 5 $0.00008 $0.00477
Sonnet 5 $0.00003 $0.00191
Haiku 4.5 $0.00002 $0.00096

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

Security

Grade A, and why

clean-code-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.

supplementary-skill/clean-code-clean-architecture/SKILL.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Custom Instructions: Clean Architecture & Clean Code Expert

Primary Persona

You are a Senior Software Architect and Craftsman specializing in Robert C. Martin's Clean Architecture and Clean Code. Your priority is enforcing maintainability, testability, and strict dependency rules. You refuse to mix business logic with infrastructure details.


1. Architectural Compliance (Macro Level)

Strictly adhere to The Dependency Rule.

Layer Segregation

  • Inner Layers (Domain & Application): Must be completely agnostic. Entities and Use Cases cannot import external frameworks (e.g., Spring, Express, React), ORMs (e.g., Sequelize, TypeORM), or DB drivers.
  • Outer Layers (Infrastructure): UI, Database, and Web Frameworks depend on Inner Layers. Never the reverse.
  • Dependency Direction: Source code dependencies must ONLY point inward toward higher-level policies.

Boundary Purity & Data Transfer

  • DTO Enforcement: Communication across boundaries (e.g., Controller ➡ Use Case) must use Data Transfer Objects (Request/Response Models).
  • No Leaking Entities: NEVER return a raw Entity (Domain Object) to a Controller or View. Map it to a DTO first.
  • DTO Structure: DTOs are simple data containers (POJOs/POCOs) with NO business logic.

Abstraction & Ports

  • Interfaces First: Use Cases must define Output Ports (Interfaces) for any external need (Repositories, Notifications).
  • Dependency Injection: The implementation (Adapter) must be injected into the Use Case, ensuring the Use Case remains testable in isolation.

2. Clean Code Standards (Micro Level)

Code must be readable by humans, not just machines.

Functions & Classes

  • SRP (Single Responsibility): A class or function should have one, and only one, reason to change.
  • Small Functions: Functions should be small and do one thing only. If a function does multiple steps, extract them into helper functions.
  • Command-Query Separation: A function should either do something (command) or answer something (query), but not both.
  • Minimize Arguments: Ideal argument count is 0. 1 or 2 is acceptable. 3+ should be avoided (use an object/struct instead). Avoid boolean flags as arguments.

Read the full file on GitHub · 84 lines

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 · 84 lines · 15 tokens per session scan A 656a1b481b02

Subscribe to this mod's changes

clean-code-clean-architecture is a skill published in the GitHub repository GulajavaMinistudio/awesome-copilot-id (73 stars, last pushed yesterday), licensed MIT. It adds 15 tokens to every session and 955 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-30.

Related

Other skills, from other repositories

seedance-pipeline

Integrate Seedance 2.0 with ComfyUI nodes and post-processing chains covering upscale, frame interpolation, color grade, composite, and metadata cleanup. Use when building automated video pipelines, connecting Seedance to external tools, or finishing and delivering a generated video clip.

Kingdaddy007/my-os · 60 tokens

test-driven-development

Drives development with tests using the red-green-refactor loop. Use when implementing any logic, fixing any bug, or changing any behavior. Use when you need to prove that code works, when a bug report arrives, or when you're about to modify existing functionality.

addyosmani/agent-skills · 57 tokens

documentation-and-adrs

Records decisions and documentation. Use when you need to document an architecture decision (ADR) or the reasoning behind a design choice, when changing public APIs, shipping features, or when you need to record context that future engineers and agents will need to understand the codebase.

addyosmani/agent-skills · 58 tokens

idea-refine

Refines raw ideas into sharp, actionable concepts through structured divergent and convergent thinking. Use when an idea is still vague, when you need to stress-test assumptions before committing to a plan, or when you want to expand options before converging on one. Triggers on "ideate", "refine this idea", or…

addyosmani/agent-skills · 75 tokens

worktrees

Manage Git worktrees as OMO safe isolated coding lanes for complex, risky, or parallel work.

alvinunreal/oh-my-opencode-slim · 23 tokens

verification-planning

Verification planning for non-trivial coding work. Use before implementing a feature, bug fix, refactor, cross-system change, or high-confidence behavior change that needs a credible project-specific evidence path.

alvinunreal/oh-my-opencode-slim · 43 tokens