architecture-design
Skill1 starsChanged 11 months agoMITView on GitHub
Technical system architecture with modern best practices For each technology choice, evaluate:
- Sends data out
32 other projects use a version of this.
Adopted by
Most recently taken up by
- ishandutta2007/Awesome-Claude-Skillstheir own version, first seen Nov 8, 2026
- shkodnik1917/claude-brainlabtheir own version, first seen Nov 8, 2026
- SWEStash/swe-workflow-skillstheir own version, first seen Nov 8, 2026
- celestialdust/achilles-skillstheir own version, first seen Nov 1, 2026
- Lixiuxiu559/AgentForgetheir own version, first seen Nov 1, 2026
- bmad-labs/skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use results-report, daily-coding and 10 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.
Galaxy-DawnSkillresults-report
This skill should be used when the user asks to "write an experiment report", "summarize experimental results", "do experiment retrospection", "write a results report", "写实验总结报告", "写实验复盘", or mentions turning completed experiment artifacts into a structured, decision-oriented research report. It assumes strict analysis should come from `results-analysis` first.
Also in 3 projects that use this
Clay-HHKSkilldaily-coding
Daily coding assistant that auto-triggers when writing/modifying code, providing a core checklist.
Also in 3 projects that use this
Clay-HHKSkillkaggle-learner
This skill should be used when the user asks to "learn from Kaggle", "study Kaggle solutions", "analyze Kaggle competitions", or mentions Kaggle competition URLs. Provides access to extracted knowledge from winning Kaggle solutions across NLP, CV, time series, tabular, and multimodal domains.
Also in 3 projects that use this
kharlamenkodevSkillbug-detective
Also in 4 projects that use this
gclmSkillobservability-design
Design logs, metrics, traces, alerts, and debugging signals so systems can be operated and diagnosed before incidents expose blind spots.
Also in 3 projects that use this
Google CloudSkillcitation-verification
Verify that citations in a document resolve to real records and that claimed titles match. Use before trusting a document's reference list.
Also in 4 projects that use this
- +2 more from Clay-HHK
Other versions32 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 32
- Galaxy-Dawn/claude-scholar★ 5.9ksame name
- derHaken/SuperAntigravity★ 439same name
- bkywksj/knowledge-base★ 340same name
- shawnpang/startup-founder-skills★ 331same name
- thomast1906/github-copilot-agent-skills★ 203same name
- GenerativeAgents/claude-code-book-chapter8★ 114same name
- kumaran-is/claude-code-onboarding★ 35same name
- shkodnik1917/claude-brainlab★ 35same name
- Vepricov/claude-brainlab★ 35same name
- bmad-labs/skills★ 19same name
22 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- dev-documentationSkill
- product-researchSkill
- project-planningSkill
- uiux-designSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 26 edited versions we read keep these.
4
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
- Distinctive: line 29
Solve real problems: - Not theoretical elegance
- Distinctive: line 35
Document trade-offs: - Every choice has costs
- Distinctive: line 41
Actionable specifications: - Not hand-wavy diagrams
- Distinctive: line 44
Deployment-aware: - Consider operational reality
“Common” is measured: kept by at least 6 in 10 of the 26 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.
Files
Architecture Design Skill
Technical system architecture with modern best practices
Skill Metadata
name: architecture-design
version: 1.0.0
description: Technical architecture design with stack selection, data modeling, and API design
triggers:
- /architecture-design
- /tech-architecture
- /system-design
dependencies:
- skill: product-research (for tech stack insights)
- skill: uiux-design (for component requirements)
- mcp: context7 (for library documentation)
- mcp: augment-context-engine (for codebase analysis)Core Principles
1. Pragmatic Architecture
- Solve real problems - Not theoretical elegance
- Start simple - Complexity only when proven necessary
- Evolution over revolution - Design for incremental improvement
- Boring technology - Proven solutions over shiny new tools
2. Evidence-Based Decisions
- Document trade-offs - Every choice has costs
- Reference prior art - Learn from similar systems
- Validate assumptions - POC before commitment
- Measure outcomes - Define success metrics
3. Implementation-Ready Design
- Actionable specifications - Not hand-wavy diagrams
- Clear interfaces - Contracts between components
- Testable boundaries - Design for verification
- Deployment-aware - Consider operational reality
Tech Stack Selection Framework
Decision Criteria Matrix
For each technology choice, evaluate:
| Criterion | Weight | Description |
|-----------|--------|-------------|
| Team Expertise | 25% | Current team familiarity |
| Ecosystem Maturity | 20% | Libraries, tools, community |
| Performance Fit | 20% | Meets technical requirements |
| Hiring Pool | 15% | Talent availability |
| Long-term Viability | 10% | Company backing, roadmap |
| Integration Ease | 10% | Works with other choices |Stack Documentation Template
## Technology: [Name]
### Selection Rationale
| Factor | Assessment | Evidence |
|--------|------------|----------|
| Team Experience | High/Medium/Low | "3 of 4 devs have production experience" |
| Community Size | Large/Medium/Small | "150k GitHub stars, 10k Discord members" |
| Performance | Excellent/Good/Adequate | "Benchmarks show 10k RPS for our use case" |
### Alternatives Considered
| Alternative | Pros | Cons | Why Not Selected |
|-------------|------|------|------------------|
| [Alt 1] | - Pro 1<br>- Pro 2 | - Con 1<br>- Con 2 | Primary reason |
| [Alt 2] | - Pro 1<br>- Pro 2 | - Con 1<br>- Con 2 | Primary reason |
### Risks & Mitigations
| Risk | Probability | Impact | Mitigation |
|------|-------------|--------|------------|
| [Risk 1] | Low/Med/High | Low/Med/High | [Strategy] |
### Version & Configuration
- Version: X.Y.Z (pinned)
- Key Configuration: [Settings]
- Update Strategy: [Approach]Architecture Pattern Library
Frontend Architectures
1. Component-Based SPA (React/Vue/Svelte)
Use When:
├── Rich interactivity required
├── Complex client-side state
├── Offline capabilities needed
└── Single deployment target
Structure:
src/
├── components/ # Reusable UI components
│ ├── common/ # Buttons, inputs, cards
│ └── features/ # Feature-specific components
├── hooks/ # Custom React hooks
├── stores/ # State management
├── services/ # API clients
├── utils/ # Helper functions
└── pages/ # Route components2. Server-Rendered with Islands (Next.js/Nuxt/SvelteKit)
Use When:
├── SEO critical
├── Fast initial load required
├── Content-heavy application
└── Progressive enhancement needed
Structure:
app/
├── (routes)/ # File-based routing
├── components/ # Shared components
├── lib/ # Server utilities
└── api/ # API routes3. Multi-Page Application (HTMX/Hotwire)
Use When:
├── Simple interactions
├── Maximum SEO control
├── Team prefers server-side
└── Minimal JavaScript desired
Structure:
templates/
├── layouts/ # Base templates
├── pages/ # Full page templates
└── partials/ # Reusable fragmentsBackend Architectures
1. Modular Monolith
Use When:
├── Small team (1-5 devs)
├── Uncertain domain boundaries
├── Rapid iteration phase
└── Simple deployment preferred
Structure:
src/
├── modules/
│ ├── users/
│ │ ├── domain/ # Business logic
│ │ ├── application/ # Use cases
│ │ ├── infrastructure/ # DB, external
│ │ └── api/ # HTTP handlers
│ ├── billing/
│ └── notifications/
├── shared/ # Cross-cutting concerns
└── infrastructure/ # Framework setup2. Microservices
Use When:
├── Large team (10+ devs)
├── Clear domain boundaries
├── Independent scaling needs
└── Polyglot requirements
Structure:
services/
├── user-service/
├── billing-service/
├── notification-service/
└── api-gateway/3. Serverless Functions
Use When:
├── Variable/spiky traffic
├── Cost optimization priority
├── Simple, stateless operations
└── Event-driven architecture
Structure:
functions/
├── http/
│ ├── users/
│ └── webhooks/
├── scheduled/
│ └── cleanup/
└── events/
└── processors/Data Modeling
Database Selection Guide
| Use Case | Recommended | Alternatives |
| General CRUD | PostgreSQL | MySQL, SQLite |
| Document Store | MongoDB | Firestore, CouchDB |
| Key-Value Cache | Redis | Memcached, KeyDB |
| Search | Elasticsearch | Meilisearch, Typesense |
| Time Series | TimescaleDB | InfluxDB, QuestDB |
| Graph | Neo4j | ArangoDB, DGraph |
| Vector/AI | pgvector | Pinecone, Weaviate |
Entity-Relationship Diagram Template
## Data Model: [Domain Name]
### Entity: [Entity Name]
| Field | Type | Constraints | Description |
|-------|------|-------------|-------------|
| id | UUID | PK, NOT NULL | Unique identifier |
| created_at | TIMESTAMP | NOT NULL, DEFAULT NOW() | Creation time |
| updated_at | TIMESTAMP | NOT NULL | Last modification |
| [field] | [type] | [constraints] | [description] |
### Relationships
```mermaid
erDiagram
USER ||--o{ ORDER : places
ORDER ||--|{ ORDER_ITEM : contains
PRODUCT ||--o{ ORDER_ITEM : "ordered in"
USER {
uuid id PK
string email UK
string name
timestamp created_at
}
ORDER {
uuid id PK
uuid user_id FK
enum status
decimal total
timestamp created_at
}Indexes
| Table | Index Name | Columns | Type | Rationale |
| users | idx_users_email | UNIQUE | Login lookup | |
| orders | idx_orders_user_created | user_id, created_at | BTREE | User order history |
Migrations Strategy
| Phase | Changes | Rollback Plan |
| 1 | Add new columns | Drop columns |
| 2 | Backfill data | Revert to snapshot |
| 3 | Remove old columns | Re-add columns |
---
## API Design
### RESTful API Guidelines
#### Resource NamingGOOD: /users # Collection /users/{id} # Individual resource /users/{id}/orders # Nested collection /orders/{id}/items # Nested resources
BAD: /getUsers # Verb in URL /user/{id} # Inconsistent plurality /users/{id}/getOrders # Verb in nested route
#### HTTP MethodsGET /resources # List (with pagination) GET /resources/{id} # Read single POST /resources # Create PUT /resources/{id} # Full update (idempotent) PATCH /resources/{id} # Partial update DELETE /resources/{id} # Delete
#### Response Format
```json
{
"data": {
"id": "uuid",
"type": "user",
"attributes": {
"email": "user@example.com",
"name": "John Doe"
},
"relationships": {
"orders": {
"links": {
"related": "/users/{id}/orders"
}
}
}
},
"meta": {
"requestId": "uuid"
}
}Error Response Format
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid input data",
"details": [
{
"field": "email",
"message": "Must be a valid email address"
}
]
},
"meta": {
"requestId": "uuid",
"timestamp": "2024-01-01T00:00:00Z"
}
}API Specification Template
## Endpoint: [Method] [Path]
### Description
[What this endpoint does]
### Authentication
- Required: Yes/No
- Method: Bearer token / API key / Session
### Request
#### Path Parameters
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| id | UUID | Yes | Resource identifier |
#### Query Parameters
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| page | integer | No | 1 | Page number |
| limit | integer | No | 20 | Items per page |
#### Request Body
```json
{
"email": "string (required, email format)",
"name": "string (required, 2-100 chars)"
}Response
Success (200/201)
{
"data": {
"id": "uuid",
"email": "user@example.com",
"name": "John Doe"
}
}Errors
| Status | Code | Description |
| 400 | VALIDATION_ERROR | Invalid input |
| 401 | UNAUTHORIZED | Missing/invalid token |
| 404 | NOT_FOUND | Resource doesn't exist |
| 409 | CONFLICT | Duplicate email |
Example
curl -X POST https://api.example.com/users \
-H "Authorization: Bearer token" \
-H "Content-Type: application/json" \
-d '{"email": "user@example.com", "name": "John"}'
---
## Security Architecture
### Authentication Patterns
| Pattern | Use Case | Implementation |
|---------|----------|----------------|
| Session-based | Traditional web apps | Secure cookies + Redis |
| JWT | SPAs, mobile apps | Short-lived access + refresh tokens |
| API Keys | Service-to-service | Hashed keys in DB |
| OAuth 2.0 | Third-party auth | Authorization code flow |
| Passkeys/WebAuthn | Passwordless | FIDO2 authenticators |
### Security Checklist
```markdown
## Authentication & Authorization
- [ ] Password hashing (Argon2id / bcrypt)
- [ ] Rate limiting on auth endpoints
- [ ] Account lockout after failed attempts
- [ ] Secure session management
- [ ] RBAC/ABAC implemented
- [ ] JWT expiration < 15 minutes
- [ ] Refresh token rotation
## Data Protection
- [ ] Encryption at rest (AES-256)
- [ ] Encryption in transit (TLS 1.3)
- [ ] PII handling documented
- [ ] Data retention policies
- [ ] Backup encryption
## API Security
- [ ] Input validation on all endpoints
- [ ] Output encoding
- [ ] CORS configured properly
- [ ] Rate limiting implemented
- [ ] Request size limits
- [ ] SQL injection prevention (parameterized queries)
- [ ] XSS prevention (CSP, sanitization)
## Infrastructure
- [ ] Secrets in environment/vault
- [ ] No secrets in code/logs
- [ ] Dependency scanning (Snyk/Dependabot)
- [ ] Container security scanning
- [ ] Network segmentationPerformance Architecture
Performance Budget
| Metric | Target | Measurement |
| LCP | < 2.5s | Core Web Vitals |
| FID | < 100ms | Core Web Vitals |
| CLS | < 0.1 | Core Web Vitals |
| TTI | < 3.5s | Lighthouse |
| Bundle Size | < 200KB gzipped | Build analysis |
| API P95 | < 200ms | APM |
| API P99 | < 500ms | APM |
Caching Strategy
| Layer | Technology | TTL | Invalidation |
|-------|------------|-----|--------------|
| Browser | Cache-Control headers | Varies | Versioned URLs |
| CDN | Cloudflare/Fastly | 1 hour | Purge API |
| Application | Redis | 5 min | Cache-aside |
| Database | Query cache | 1 min | Write-through |Scaling Considerations
## Horizontal Scaling Points
- [ ] Stateless application servers
- [ ] Database read replicas
- [ ] Caching layer
- [ ] Message queue for async work
- [ ] CDN for static assets
## Vertical Scaling Points
- [ ] Database instance size
- [ ] Cache memory allocation
- [ ] Worker process count
## Auto-scaling Triggers
| Metric | Scale Up | Scale Down |
|--------|----------|------------|
| CPU | > 70% for 5m | < 30% for 15m |
| Memory | > 80% | < 40% |
| Queue Depth | > 1000 | < 100 |Output Requirements
Deliverable: Architecture Document
# Technical Architecture: [Product Name]
## Executive Summary
[High-level architecture overview]
## System Context
```mermaid
C4Context
Person(user, "User", "Application user")
System(app, "Application", "Our system")
System_Ext(payment, "Payment Provider", "Stripe")
System_Ext(email, "Email Service", "SendGrid")
Rel(user, app, "Uses")
Rel(app, payment, "Processes payments")
Rel(app, email, "Sends emails")Technology Stack
Frontend
[Stack selection with rationale]
Backend
[Stack selection with rationale]
Data Layer
[Database choices with rationale]
Infrastructure
[Cloud services and deployment]
Data Model
[ERD and schema definitions]
API Specification
[Endpoint documentation]
Security Architecture
[Authentication, authorization, data protection]
Performance Architecture
[Budgets, caching, scaling]
Decision Records
ADR-001: [Decision Title]
- Status: Accepted
- Context: [Why we need this decision]
- Decision: [What we decided]
- Consequences: [Trade-offs accepted]
Appendix
- Deployment diagrams
- Network topology
- Disaster recovery plan
---
## Quality Gates
### Architecture Review Checklist
- [ ] All technology choices have documented rationale
- [ ] Alternatives were considered and documented
- [ ] Data model is normalized appropriately
- [ ] API follows consistent conventions
- [ ] Security requirements addressed
- [ ] Performance budgets defined
- [ ] Scaling strategy documented
- [ ] Deployment architecture specified
### Quality Score Rubric
| Criterion | Weight | 90+ | 70-89 | Below 70 |
|-----------|--------|-----|-------|----------|
| Tech Justification | 25% | All justified | Most justified | Missing rationale |
| Completeness | 25% | All areas covered | Minor gaps | Major gaps |
| Implementability | 20% | Clear specs | Mostly clear | Ambiguous |
| Security | 15% | Comprehensive | Basic coverage | Gaps |
| Performance | 15% | Budgets defined | Partial budgets | Missing |
---
## Integration Points
### Receives From:
- `product-research` skill (competitor tech insights)
- `uiux-design` skill (component requirements)
### Feeds Into:
- `project-planning` skill (task dependencies)
- `dev-documentation` skill (implementation guide)
---
## Version History
| Version | Date | Changes |
|---------|------|---------|
| 1.0.0 | 2024-12-28 | Initial release |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
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.

