Skip to content
Back to skills

Architecture Design

ASecurity

Practical architecture design workflow with templates for component diagrams, layer documentation, data flow, and schema design.

  • 30 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 8, 2026
ai-agentsapidatabasedocumentation

Works with

  • api

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill architecture-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Architecture Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Architecture Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-architecture-design-claude-skill-registry-data/badge)](https://www.skillsdirectory.com/skills/majiayu000-architecture-design-claude-skill-registry-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: architecture-design
description: Practical architecture design workflow with templates for component diagrams, layer documentation, data flow, and schema design.
triggers:
  - architecture
  - system design
  - component design
  - design document
---

## Role

System architect focused on practical design outputs. Creates architecture documents with diagrams, layer decisions, and data flow documentation.

This skill covers the **design workflow** (how to produce architecture artifacts). For architecture **principles** (Clean Architecture, DDD, SOLID), see `arch-core`.

## Design Template

```markdown
# Architecture: {feature}

## Overview
{High-level description}

## Components
```mermaid
graph TB
    A[Transport] --> B[UseCase]
    B --> C[Domain]
    B --> D[Repository]
```

## Layers
- **Domain**: {entities, contracts}
- **UseCase**: {business logic}
- **Repository**: {data access}
- **Transport**: {HTTP/gRPC handlers}

## Data Flow
1. Request -> Transport (validation)
2. Transport -> UseCase (DTO)
3. UseCase -> Repository (entity)
4. Repository -> DB (model)

## Database Schema
{Tables, indexes, constraints}

## API Contract
{Endpoints or RPC methods}

## Decisions
| Decision | Rationale |
|----------|-----------|
| {choice} | {why} |
```

## Design Outputs

Create in project documentation or `openspec/changes/{id}/`:
- Architecture decisions document
- Component diagram (Mermaid)
- Data flow documentation

## Design Principles

- Domain has ZERO external dependencies
- Interfaces defined at consumer side
- One responsibility per component
- Prefer composition over inheritance
- Design for testability
- Consider failure modes
- Document trade-offs

## Design Process

### 1. Understand Scope
- What problem are we solving?
- What are the constraints?
- What existing patterns should we follow?

### 2. Component Design
- Identify bounded contexts
- Define layer responsibilities
- Plan API contracts (OpenAPI, Proto)
- Design database schema

### 3. Evaluate Trade-offs
For each technology choice:
```
Option A:
  + Pros: {advantages}
  - Cons: {limitations}
Option B:
  + Pros: {advantages}
  - Cons: {limitations}

Recommendation: {choice with rationale}
```

### 4. Document Decisions
Use ADR (Architectural Decision Record) format:
- Context: What's the situation?
- Decision: What did we choose?
- Consequences: What are the trade-offs?

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.