Logo Software Architect

Software Architect

Cộng đồng
wonderslife
software-architect

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 architectural decisions, not code implementation. 支持中文触发:设计系统架构、架构模式、评估权衡、系统设计决策、架构设计、模块划分、接口设计。

Tổng quan

Nhà phát hànhwonderslife
Kho mãpdd-skills
Tên kỹ năngsoftware-architect
Sao
41
Bản fork
11
Tệp đi kèm
1
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được wonderslife công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Software Architect trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/wonderslife/pdd-skills/tree/main/software-architect
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wonderslife/pdd-skills.git /tmp/pdd-skills
mkdir -p .claude/skills
cp -r /tmp/pdd-skills/software-architect .claude/skills/software-architect
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Software Architect trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Software Architect ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Software Architect với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Software Architect

Overview

This skill focuses on:

  • High-level system design and architectural patterns
  • System boundaries and interfaces
  • Data architecture decisions
  • Scalability and reliability design
  • Trade-off analysis and decision documentation

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:

  • Designing system architecture or module boundaries
  • Evaluating architectural trade-offs (microservices vs monolith, SQL vs NoSQL)
  • Discussing system-level scalability, reliability, or performance
  • Making high-level technical decisions affecting multiple components
  • Planning system evolution or migration strategies

Manual Trigger:

  • User inputs commands like /software-architect, /architecture, /design, etc.

Core Capabilities

1. Design Principles

  • Simple until proven otherwise — Complexity is a cost, not a feature
  • Separate what changes from what stays the same — Draw boundaries at seams of change
  • Design for the next 10x, not 100x — Over-engineering wastes resources
  • Make decisions reversible when possible — Delay irreversible decisions until necessary
  • Constraints clarify design — Embrace limits, don't fight them early

2. System Boundaries

  • Define clear interfaces between components — Contracts enable independent evolution
  • Draw boundaries where teams split — Conway's Law is real, design with it
  • Data ownership at boundaries — Single source of truth for each entity
  • Async communication for loose coupling — Sync calls create distributed monoliths
  • Fail independently — One component's failure shouldn't cascade

3. Trade-off Analysis

  • Every decision has costs — Articulate what you're giving up
  • Consistency vs Availability vs Partition Tolerance — Pick two (CAP Theorem)
  • Performance vs Maintainability — Optimize hot paths, keep the rest readable
  • Build vs Buy — Build what differentiates, buy what's commodity
  • Document "why not" for rejected alternatives — Future you needs context

4. Scalability

  • Stateless services scale horizontally — State makes scaling hard
  • Cache aggressively, invalidate carefully — Caching solves problems and creates them
  • Databases are usually the bottleneck — Read replicas, sharding, or denormalize
  • Queue what can be async — Users don't need to wait for everything
  • Scale for expected load, provision for 3x peaks — Buffers prevent outages

5. Data Architecture

  • Schema design constrains everything — Get it right early, migrations are expensive
  • Normalize for writes, denormalize for reads — Optimize for access patterns
  • Event sourcing when audit trail matters — Rebuild state from events
  • CQRS when read/write patterns differ significantly — Separate models for each
  • Data gravity is real — Move processing to data, not the other way around

6. Reliability

  • Design for failure — Everything fails eventually, handle it gracefully
  • Timeouts on all external calls — Hung connections cascade into outages
  • Circuit breakers prevent cascading failures — Fail fast, recover gradually
  • Idempotency enables retries — Duplicate messages shouldn't break state
  • Graceful degradation beats total failure — Partial functionality beats error pages

7. Security

  • Defense in depth — Multiple layers, no single point of failure
  • Least privilege — Minimum permissions for each component
  • Encrypt in transit and at rest — Assume network and disk are hostile
  • Validate at boundaries — Don't trust input from outside your system
  • Secrets management from day one — Retrofitting is painful

8. Evolution

  • Design for replacement, not immortality — Components will be rewritten
  • Incremental migration over big bang — Strangler fig pattern works
  • APIs backward compatible — Breaking changes break trust
  • Feature flags decouple deploy from release — Dark launch, gradual rollout
  • Monitor before and after changes — Data beats intuition

9. Architecture Decision Records (ADR)

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

markdown
# 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
markdown
# 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:

  • Team size < 20 engineers
  • Domain boundaries unclear
  • Time to market is critical
  • Operational complexity is a concern

Choose Microservices when:

  • Multiple teams with clear ownership
  • Different scalability needs per domain
  • Independent deployment is critical
  • Technology diversity is needed
10.2 Event-Driven Architecture

Use when:

  • Loose coupling between services needed
  • Audit trail is important
  • System needs to react to changes
  • High throughput with eventual consistency

Structure:

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

Use when:

  • Read and write patterns differ significantly
  • Need to optimize read models
  • Write operations have complex business logic
  • Read and write scalability needs differ

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 SkillCollaboration ModeDescription
system-architectConsultGet project context before detailed design
software-engineerDelegateDelegate code implementation after architectural decisions
expert-code-qualityReferenceCode quality check after architecture review
pdd-generate-specSequenceGenerate detailed specs after architecture design
pdd-code-reviewerReferenceGet architecture-level code review
expert-mysqlConsultConsult 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

  • Document decisions, not just structure — ADRs capture reasoning
  • Multi-level zoomable diagrams — C4 Model: Context, Container, Component
  • Documentation close to code — Separate wikis go stale
  • Update docs when architecture changes — Wrong docs are worse than none
  • Document operational aspects — Runbooks, SLOs, failure modes

15. Communication Skills

  • Translate technical decisions to business impact — Stakeholders need context
  • Present options with trade-offs — Don't just recommend, explain
  • Listen to operators — They know what breaks
  • Involve security early — Bolted-on security is weak security
  • Decisions need buy-in — Imposed architecture breeds resentment

16. Guardrails

  • Architectural decisions must include trade-off analysis and alternatives
  • Major decisions must be documented using ADR template
  • Pattern selection must consider context, no blind recommendations
  • Design must consider testability and deployability
  • Decisions must be driven by clear problems or requirements

Version History

v2.0 (2026-03-21)

  • Unified to English descriptions
  • Added collaboration table, clarifying relationships with other skills
  • Enhanced ADR template and examples
  • Standardized output format
  • Added hexagonal architecture pattern

v1.0 (Initial Version)

  • Basic design principles
  • Trade-off analysis framework
  • Architecture decision record template

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

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Software Architect làm được gì?

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 architectural decisions, not code implementation. 支持中文触发:设计系统架构、架构模式、评估权衡、系统设计决策、架构设计、模块划分、接口设计。

Vì sao nên dùng Software Architect trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Software Architect là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Software Architect trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/wonderslife/pdd-skills/tree/main/software-architect. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Software Architect?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Software Architect với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Software Architect với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Software Architect có miễn phí không?

Có. Kỹ năng này được wonderslife phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇