agentleFS
kazemcodeskazemcodes/skill-tree/skills/software-architecture/SKILL.md

software-architecture

Skill1 starsChanged 5 months agoMITView on GitHub

Apply Clean Architecture, SOLID principles, and design patterns — evaluate trade-offs and recommend architectural decisions

30 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use llm-app-patterns, backend-engineering and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • xfstudioSkill

    llm-app-patterns

    Production-ready patterns for building LLM applications. Covers RAG pipelines, agent architectures, prompt IDEs, and LLMOps monitoring. Use when designing AI applications, implementing RAG, building agents, or setting up LLM observability.

    Also in 3 projects that use this

  • rogue-dev-studioSkill

    backend-engineering

    Expert backend application engineering: layered architecture, domain services, validation, transactions, caching boundaries, background jobs, and framework idioms (e.g. Laravel/Node) without leaking business rules into controllers. Use when implementing or refactoring server-side features, services, form requests/DTOs, policies, queues, or integrating persistence with APIs.

    Also in 3 projects that use this

  • AJBcodingSkill

    sql-optimization-patterns

    Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.

    Also in 3 projects that use this

  • weirdgmeSkill

    backend-dev-guidelines

    Comprehensive backend development guide for Node.js/Express/TypeScript microservices. Use when creating routes, controllers, services, repositories, middleware, or working with Express APIs, Prisma database access, Sentry error tracking, Zod validation, unifiedConfig, dependency injection, or async patterns. Covers layered architecture (routes → controllers → services → repositories), BaseController pattern, error handling, performance monitoring, testing strategies, and migration from legacy patterns.

    Also in 3 projects that use this

  • ruvnetSkill

    github-workflow-automation

    Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management

    Also in 3 projects that use this

  • AnthropicSkill

    documentation

    Write and maintain technical documentation. Trigger with "write docs for", "document this", "create a README", "write a runbook", "onboarding guide", or when the user needs help with any form of technical writing — API docs, architecture docs, or operational runbooks.

    Also in 3 projects that use this

The file

Files
SKILL.md

Software Architecture

Apply proven architectural patterns. Make informed trade-off decisions.

When to Use

  • Designing new systems or major features
  • Evaluating architectural trade-offs
  • Refactoring toward better separation of concerns
  • Reviewing system design decisions
  • Choosing between patterns (microservices vs monolith, etc.)

Core Principles

SOLID

PrincipleMeaning
Single ResponsibilityOne reason to change
Open/ClosedOpen for extension, closed for modification
Liskov SubstitutionSubtypes must be substitutable
Interface SegregationMany specific interfaces > one general
Dependency InversionDepend on abstractions, not concretions

Clean Architecture Layers

┌─────────────────────────────┐
│     Entities (Domain)       │  ← Business objects
├─────────────────────────────┤
│   Use Cases (Application)   │  ← Business rules
├─────────────────────────────┤
│  Interface Adapters         │  ← Controllers, Gateways
├─────────────────────────────┤
│  Frameworks & Drivers       │  ← DB, Web, UI
└─────────────────────────────┘

Rule: Dependencies point inward. Outer layers know about inner layers, never reverse.

Key Patterns

PatternWhen to Use
RepositoryAbstract data access behind interface
Use CaseEncapsulate business logic
StrategyMultiple algorithms, swap at runtime
ObserverDecouple event producers from consumers
FacadeSimplify complex subsystems
FactoryComplex object creation logic

Decision Framework

1. What is the core domain logic?
   → Isolate in entities/use cases

2. What are the external dependencies?
   → Push to boundaries, depend on interfaces

3. What changes most often?
   → Keep it replaceable

4. What is the team's expertise?
   → Prefer patterns they know

5. What are the performance constraints?
   → Don't over-architect for scale you don't have

Anti-Patterns

PatternProblem
God classOne class does everything
Anemic domain modelEntities with only getters/setters
Dependency hellCircular dependencies
premature abstractionAbstract before patterns emerge
Big ball of mudNo clear architecture at all

When to Choose What

Monolith first:

  • Small team (< 5 engineers)
  • Early product stage
  • Simple domain

Modular monolith:

  • Medium team, growing complexity
  • Want modularity without distributed overhead

Microservices:

  • Large team, independent deploy needed
  • Different scaling requirements per service
  • Mature domain with clear boundaries

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.