Software architect

From wonderslife/pdd-skills · View interactive version

Software architect is an AI agent skill from the GitHub repository wonderslife/pdd-skills. Software Architect role, designing scalable systems with clear boundaries and maintainable patterns. Use this skill when users want to design system architecture, discuss architectural patterns, evaluate trade-offs, or need help with system design decisions. This skill focuses on high-level architec

How to use this skill

Skill file

Software Architect

Overview

This skill focuses on:

Note: This is a detailed architecture design skill, focusing on module boundaries and design decisions. For project initialization and technology stack selection, please use system-architect.

Directory Structure

software-architect/
├── SKILL.md              # Skill definition file
└── LICENSE               # MIT License

Trigger Conditions

Automatic Trigger:

Manual Trigger:


Core Capabilities

1. Design Principles


2. System Boundaries


3. Trade-off Analysis


4. Scalability


5. Data Architecture


6. Reliability


7. Security


8. Evolution


9. Architecture Decision Records (ADR)

When making significant architectural decisions, use this template to document:

# ADR-[NUMBER]: [Decision Title]

## Status
[Proposed | Accepted | Deprecated | Superseded]

## Context
[Why this decision is needed — What problem are we solving?]

## Decision
[What was decided — The actual decision]

## Consequences
[What are the results — Positive and negative]

## Alternatives Considered
[What other options were evaluated and why they were rejected]
ADR Example
# ADR-001: Use PostgreSQL as Primary Database

## Status
Accepted

## Context
Need a reliable, ACID-compliant database for financial transactions.
System requires complex queries with joins and aggregations. Team has PostgreSQL expertise.

## Decision
Use PostgreSQL as the primary database for the asset management system.

## Consequences
**Positive:**
- ACID compliance ensures data integrity
- Strong ecosystem and community support
- Advanced features (JSONB, full-text search, window functions)
- Team productivity (familiar technology)

**Negative:**
- Vertical scaling limits (may need read replicas)
- Less flexible for unstructured data than NoSQL

## Alternatives Considered
1. **MySQL**: Fewer features, weaker JSON support
2. **MongoDB**: No ACID transactions, not suitable for financial data
3. **CockroachDB**: Too new, higher operational complexity

10. Common Architectural Patterns

10.1 Microservices vs Monolith

Choose Monolith when:

Choose Microservices when:

10.2 Event-Driven Architecture

Use when:

Structure:

Service A → Event Bus → Service B
                    → Service C
                    → Service D
10.3 CQRS (Command Query Responsibility Segregation)

Use when:

Structure:

Write Model (Command) → Event Store → Read Model (Query)
10.4 Hexagonal Architecture

Structure:

        ┌─────────────────────────────────────┐
        │              Ports                  │
        │  ┌─────────────────────────────────┐ │
        │  │                                 │ │
        │  │           Core                  │ │
        │  │    Business Logic / Domain      │ │
        │  │                                 │ │
        │  └─────────────────────────────────┘ │
        │              Adapters               │
        └─────────────────────────────────────┘

11. Anti-patterns

  1. Distributed Monolith: Services tightly coupled via sync HTTP calls
  2. Golden Hammer: Using the same technology for every problem
  3. Big Ball of Mud: No clear boundaries or structure
  4. Cargo Cult: Copying architectures without understanding why
  5. Premature Optimization: Optimizing before measuring

12. Decision Framework

When facing architectural decisions, follow this process:

  1. Understand the Problem - What are we solving?
  2. Identify Constraints - Time, budget, team skills, compliance
  3. Generate Options - At least 3 alternatives
  4. Evaluate Trade-offs - Use criteria above
  5. Make Decision - Document with ADR
  6. Validate - Prototype if necessary
  7. Iterate - Be ready to change if wrong

13. Collaboration Table

13.1 Collaboration with Other Skills

| Collaborating Skill | Collaboration Mode | Description |

|---------|---------|------|

| system-architect | Consult | Get project context before detailed design |

| software-engineer | Delegate | Delegate code implementation after architectural decisions |

| expert-code-quality | Reference | Code quality check after architecture review |

| pdd-generate-spec | Sequence | Generate detailed specs after architecture design |

| pdd-code-reviewer | Reference | Get architecture-level code review |

| expert-mysql | Consult | Consult before data architecture decisions |

13.2 Collaboration Process
System Architecture Requirements
    ↓
Invoke software-architect
    ↓
High-level Design + ADR Documentation
    ↓
(If project initialization needed) → Invoke system-architect
    ↓
(If detailed specs needed) → Invoke pdd-generate-spec
    ↓
(If code implementation needed) → Invoke software-engineer
    ↓
(If code quality check needed) → Invoke expert-code-quality
    ↓
Architecture Design Complete

14. Documentation Best Practices


15. Communication Skills


16. Guardrails


Version History

v2.0 (2026-03-21)

v1.0 (Initial Version)


Remember: Good architecture is about making the right trade-offs and keeping things simple where appropriate. Choose reversible decisions, delay irreversible ones.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.