agentleFS
DauQuangThanhDauQuangThanh/hanoi-rainbow/skills/architecture-design/SKILL.md

architecture-design

Skill17 starsChanged 11 months agoMITView on GitHub

Designs comprehensive software solution architectures including system components, technology stacks, integration patterns, scalability strategies, and deployment models. Produces architecture diagrams, technical specifications, and implementation roadmaps. Use when planning new software systems, modernizing legacy applications, designing microservices, evaluating technology choices, creating architecture documentation, or when users mention system design, architecture patterns, scalability planning, or technical architecture decisions.

22 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use performance-optimization, api-design and 4 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.
  • dylantarreSkill

    performance-optimization

    Use when animation runs slow, janky, or causes frame drops

    Also in 5 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 5 projects that use this

  • Microsoft AzureSkill

    git-workflow

    Squad branching model: dev-first workflow with insiders preview channel

    Also in 5 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 7 projects that use this

  • StrayDragonSkill

    ui-ux-pro-max

    UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.

    Also in 3 projects that use this

  • VercelSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 17 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 17

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When activated, this skill provides:

    line 14
  2. Distinctive:

    Create microservices and domain-driven designs

    line 24
  3. Distinctive:

    Document technology decisions in ADRs with alternatives considered

    line 35
  4. Distinctive:

    Create C4 model diagrams in Mermaid format (Context, Container, Component, Code)

    line 46
  5. Distinctive:

    Write technical specifications and API contracts

    line 49
  6. Distinctive:

    Create implementation roadmaps and migration plans

    line 50
  7. Distinctive:

    Follow this systematic process:

    line 54
  8. Distinctive:

    Use for: Simple applications, MVPs, small teams, tight deadlines

    line 85
  9. Distinctive:

    Use for: Medium complexity, clear domain boundaries

    line 91
  10. Distinctive:

    Use for: Large scale, multiple teams, different tech stacks

    line 97
  11. Distinctive:

    Use for: Event-driven, variable load, rapid development

    line 103
  12. Distinctive:

    Use for: Real-time processing, loose coupling, high throughput

    line 109
  13. Distinctive:

    Use C4 model in Mermaid format for comprehensive documentation:

    line 149
  14. Distinctive:

    All diagrams should use Mermaid syntax for easy versioning and rendering in markdown.

    line 156
  15. Distinctive:

    Document all significant decisions using structured ADRs:

    line 160
  16. Distinctive:

    Ensure architecture is review-ready:

    line 200
  17. Distinctive:

    Document all significant decisions

    line 290

“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Architecture Design

Overview

This skill enables you to design comprehensive software solution architectures including system components, technology stacks, integration patterns, scalability strategies, and deployment models.

Core Capabilities

When activated, this skill provides:

  1. Requirements Analysis & Architecture Planning
    • Analyze functional and non-functional requirements
    • Identify architectural drivers (scalability, security, performance)
    • Define system boundaries and constraints
    • Establish architecture goals and success criteria
  2. System Architecture Design
    • Design layered/tiered architectures
    • Create microservices and domain-driven designs
    • Design event-driven and message-based systems
    • Plan serverless and cloud-native architectures
    • Design monolithic, modular monolithic, or distributed systems
  3. Technology Stack Selection
    • Evaluate and justify programming languages and frameworks
    • Select databases with rationale (SQL, NoSQL, time-series, graph)
    • Choose middleware and integration platforms (message queues, API gateways)
    • Select infrastructure and cloud platforms (assess vendor lock-in)
    • Recommend CI/CD and DevOps tools
    • Document technology decisions in ADRs with alternatives considered
    • Assess team skills and training needs for new technologies
  4. Architecture Patterns & Best Practices
    • Apply design patterns (MVC, MVVM, Clean Architecture, Hexagonal)
    • Implement integration patterns (REST, GraphQL, gRPC, message queues)
    • Design for scalability (horizontal/vertical, caching, CDN)
    • Implement security patterns (OAuth, JWT, zero-trust)
    • Apply resilience patterns (circuit breakers, retries, bulkheads)
  5. Documentation & Deliverables
    • Create C4 model diagrams in Mermaid format (Context, Container, Component, Code)
    • Generate Mermaid diagrams (class, sequence, deployment)
    • Produce architecture decision records (ADRs)
    • Write technical specifications and API contracts
    • Create implementation roadmaps and migration plans

Architecture Design Workflow

Follow this systematic process:

Step 1: Discovery & Requirements

  1. Gather Requirements
    • Functional requirements (features, use cases)
    • Non-functional requirements (performance, scalability, security)
    • Business constraints (budget, timeline, compliance)
    • Technical constraints (existing systems, team skills)
  2. Analyze Architecture Drivers
    • Performance: latency, throughput targets
    • Scalability: user growth, data volume projections
    • Availability: uptime SLA, disaster recovery needs
    • Security: authentication, authorization, compliance requirements
    • Maintainability: testability, modularity goals
  3. Define System Context
    • Identify stakeholders and their needs
    • Map external systems and dependencies
    • Define system boundaries
    • Identify integration points

Step 2: Architecture Design

  1. Choose Architecture Style

Select based on requirements and constraints:

Monolithic

  • Use for: Simple applications, MVPs, small teams, tight deadlines
  • Benefits: Simple deployment, strong consistency, no network overhead
  • Trade-offs: Scaling limitations, technology lock-in

Modular Monolithic

  • Use for: Medium complexity, clear domain boundaries
  • Benefits: Better organization, some isolation, shared infrastructure
  • Trade-offs: Still single deployment, limited independent scaling

Microservices

  • Use for: Large scale, multiple teams, different tech stacks
  • Benefits: Independent scaling/deployment, technology flexibility
  • Trade-offs: Distributed complexity, network overhead, eventual consistency

Serverless

  • Use for: Event-driven, variable load, rapid development
  • Benefits: Auto-scaling, pay-per-use, no infrastructure management
  • Trade-offs: Cold starts, vendor lock-in, debugging complexity

Event-Driven

  • Use for: Real-time processing, loose coupling, high throughput
  • Benefits: Scalability, flexibility, asynchronous processing
  • Trade-offs: Complexity, eventual consistency, debugging challenges
  1. Design System Components

Define key layers and components:

┌─────────────────────────────────┐
│   Presentation Layer            │  UI, Controllers, APIs
├─────────────────────────────────┤
│   Application Layer             │  Use Cases, Orchestration
├─────────────────────────────────┤
│   Domain Layer                  │  Business Logic, Entities
├─────────────────────────────────┤
│   Data Layer                    │  Databases, Caches
├─────────────────────────────────┤
│   Infrastructure Layer          │  External APIs, Services
└─────────────────────────────────┘
  1. Define Data Architecture
    • Design data models and schemas
    • Choose database types (relational, document, graph, time-series)
    • Plan data partitioning and sharding strategies
    • Design caching layers (Redis, Memcached)
    • Define data flows and ETL processes
  2. Design Integration Points
    • API design (REST, GraphQL, gRPC)
    • Message queues (Kafka, RabbitMQ, SQS)
    • Event streaming architectures
    • Authentication and authorization flows
    • Rate limiting and throttling strategies

Step 3: Document Architecture

  1. Create Architecture Diagrams

Use C4 model in Mermaid format for comprehensive documentation:

  • Context: System in environment with users and external systems (use Mermaid C4Context)
  • Container: High-level technology choices and communication (use Mermaid C4Container)
  • Component: Internal structure of containers (use Mermaid C4Component)
  • Code: Class diagrams for complex components (use Mermaid classDiagram)

All diagrams should use Mermaid syntax for easy versioning and rendering in markdown.

  1. Write Architecture Decision Records (ADRs)

Document all significant decisions using structured ADRs:

# ADR-001: [Decision Title]

## Status
Proposed | Accepted | Deprecated | Superseded

## Context
[Problem and constraints requiring decision]

## Decision
[Chosen solution and approach]

## Consequences
[Benefits and trade-offs]

Full ADR Template: See adr-template.md for complete structure with examples

  1. Produce Technical Specifications
    • System overview and objectives
    • Component descriptions and responsibilities
    • API contracts and interfaces
    • Data models and schemas
    • Security and compliance measures
    • Deployment and operations guidelines

Step 4: Validate & Review

  1. Quality Attributes Assessment
    • Performance: Response time, throughput
    • Scalability: Horizontal/vertical scaling capabilities
    • Availability: Fault tolerance, disaster recovery
    • Security: Authentication, authorization, encryption
    • Maintainability: Code organization, testability
    • Cost: Infrastructure and operational expenses
  2. Design Validation Checklist

Ensure architecture is review-ready:

  • All functional and non-functional requirements addressed
  • Architecture style justified with trade-offs documented
  • Scalability strategy defined (horizontal/vertical, capacity planning)
  • Security measures implemented (authentication, authorization, encryption)
  • Data architecture validated (storage, consistency, replication)
  • Integration patterns specified (sync/async, APIs, events)
  • Monitoring and observability planned (metrics, logs, traces, alerts)
  • Disaster recovery and backup strategy documented (RPO/RTO)
  • Cost estimates provided (infrastructure, operations, scaling)
  • Architecture Decision Records (ADRs) created for major decisions

Reference Files

Load reference files based on specific needs:

  • Architecture Design Process: See architecture-design-process.md when:
    • Need detailed step-by-step guidance for complex architectures
    • Working through each phase systematically
    • Require comprehensive checklists and considerations
  • Architecture Patterns: See architecture-patterns.md when:
    • Need detailed pattern descriptions with benefits and trade-offs
    • Comparing multiple architecture styles
    • Looking for specific pattern implementations and examples
  • Technology Stack Guide: See technology-stack-guide.md when:
    • Evaluating specific technologies or frameworks
    • Need recommendations for databases, languages, or cloud platforms
    • Comparing technology options for specific requirements
  • Best Practices: See best-practices.md when:
    • Need design principles and guidelines
    • Looking for API design standards
    • Require security or operational best practices
  • Design Considerations: See design-considerations.md when:
    • Evaluating quality attributes (performance, scalability, security)
    • Need guidance on specific architectural concerns
    • Planning for observability, resilience, or cost optimization
  • Common Anti-Patterns: See common-anti-patterns-to-avoid.md when:
    • Reviewing existing architectures for issues
    • Validating design decisions
    • Need examples of what NOT to do
  • Migration Patterns: See migration-patterns.md when:
    • Modernizing legacy applications
    • Planning migration strategies
    • Need patterns for phased migrations or strangler fig approaches
  • Examples: See examples.md when:
    • Need complete architecture examples for common scenarios
    • Looking for real-world reference implementations
    • Want to see how patterns are applied in practice
  • Resources and References: See resources-and-references.md when:
    • Need external documentation links
    • Looking for additional learning resources
    • Require specifications or standards references

Output Format

Produce clear, comprehensive architecture documentation:

  1. Architecture Overview
    • System purpose and scope
    • Key architecture decisions and rationale
    • High-level component diagram
  2. Detailed Design
    • Component descriptions and responsibilities
    • Data models and schemas
    • API specifications
    • Integration patterns
  3. Diagrams (All in Mermaid format)
    • C4 Context diagram (Mermaid C4Context)
    • C4 Container diagram (Mermaid C4Container)
    • Sequence diagrams for key flows (Mermaid sequenceDiagram)
    • Deployment diagram (Mermaid flowchart or C4Deployment)
  4. Implementation Roadmap
    • Phase breakdown with milestones
    • Dependencies and sequencing
    • Resource requirements
    • Risk mitigation strategies
  5. Architecture Decision Records
    • Document all significant decisions
    • Include context, alternatives, and trade-offs

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.