AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Clean Architecture

skill-tokenaissance-clean-architecture-clean-architecture · by tokenaissance

|

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-tokenaissance-clean-architecture-clean-architecture

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-tokenaissance-clean-architecture-clean-architecture)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
yesterday

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Clean Architecture? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Clean Architecture

Practical layering, DIP enforcement, and anti-over-engineering — grounded in Robert C. Martin's Clean Architecture, SOLID (SRP/OCP/LSP/ISP/DIP), component principles (CCP/CRP/ADP/SDP/SAP), and Musk's five-step algorithm.

Router Rules

  • Description-based routing: trigger on architecture-significant scenarios — four-layer decomposition, DIP violation, Repository/Adapter boundary design, technology evaluation, over-engineering detection.
  • Once triggered, follow Workflow. This is an architecture governance entrypoint, not a debugging or code-review tool.
  • Hard-exclusion list (answer directly, do NOT invoke): pure code quality, DDD, system design interviews, single-DTO micro-decisions, cache library selection, DI framework debugging, diagram drawing, translation, formatting.
  • Stack-agnostic: explain in canonical four-layer terms (Entities / Use Cases / Interface Adapters / Frameworks & Drivers), then map to the user's actual framework (Express/Next.js/Go/Spring). Service/Repository/Controller are implementation-pattern mappings, not primary layer names. Adopt the user's existing conventions where established.
  • Read-only audit requests: zero file modifications.

Use when

  • Monolithic controller/route bloat → SRP decomposition + DIP-driven refactoring into four layers
  • Entity/Use Case directly importing external SDK (Stripe/PayPal) or DB driver → Dependency Rule audit
  • Technology evaluation: microservices / Kafka / Redis / caching → bounded-context fitness and CCP alignment
  • Storage or API migration (MongoDB→PostgreSQL, REST→GraphQL) → Repository boundary design, Ports & Adapters impact
  • Multi-vendor integration → Adapter layer design, swappability via interface contracts

Do NOT use when

  • Diagramming, translation, formatting, title-writing, document summarization
  • Framework debugging: DI wiring failures, HTTP 500, slow SQL, index optimization
  • Micro-decisions: React component splitting, single DTO addition, naming
  • System design interview problems (Twitter-scale, bit.ly, Saga pattern, multi-tenancy)
  • User explicitly opts out ("don't talk about architecture," "just explain")

Workflow

  1. Diagnose — probe before prescribe: Elicit scale, team size, concurrency, change frequency. CCP: same change reason + same change cadence → co-locate. SRP: different actors → separate. Invest boundaries only on proven variation axes (3+ historical changes at the same seam); YAGNI on unproven axes.
  2. Principle evaluation: Assess against the four-layer concentric model + Dependency Rule (∀ dep → inward; Entities ⊥ Use Cases ⊥ Interface Adapters ⊥ Frameworks & Drivers), SOLID (SRP/OCP/LSP/ISP/DIP), component cohesion (REP/CCP/CRP) + coupling (ADP/SDP/SAP), Musk's five-step algorithm, and engineering dialectics (unity of opposites, quantitative→qualitative change, negation of negation). See Reference Map.
  3. Structured answer (architecture scenario confirmed):
  • Four-layer map: Entities / Use Cases / Interface Adapters / Frameworks & Drivers — each layer named with contents
  • Dependency Rule: source-code dependencies point inward only — concrete direction arrows drawn
  • Stack mapping: canonical layers projected onto user's actual framework + directory structure
  • Code example: minimal before/after with layer labels, ≤ 50 lines
  1. Anti-over-engineering gate: Every "adopt complex solution" recommendation must survive Musk's five steps — Question → Delete → Simplify → Accelerate → Automate, order invariant. Monolith suffices → do NOT propose microservices. Single implementation → do NOT propose interface abstraction.
  2. Documentation isomorphism (as needed): Architecture decisions must persist as discoverable artifacts for downstream Agents and developers. Code change without documentation update = incomplete. Granularity matches impact radius: cross-layer refactor → L3→L2→L1 full loop; single import change → one L3 line. See Reference Map → Documentation Isomorphism.

Output Contract

  • Hit: diagnosis + four-layer map + Dependency Rule explication + stack mapping + ≤50-line code example + anti-over-engineering verdict. Major architecture decisions → append L2/L3 documentation skeletons.
  • Miss: answer directly; suppress this skill's template.
  • Scaffold restraint: full directory scaffold (> 5 directories or named files) only on explicit request. Default: layer-level directory suggestions (≤ 5 directory names, no specific files).

Reference Map

  • Theory & Principles: references/clean-architecture.md
  • Anti-Over-Engineering: references/musk-algorithm.md
  • Engineering Philosophy: references/engineering-philosophy.md
  • Documentation Isomorphism: references/geb-fractal-docs.md

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.