Logo Architecture

Architecture

Cộng đồng
pssah4
architecture

Creates architecture decision records (post-hoc by default, full MADR for constraints), the arc42 constraints doc, navigation artifacts (SYSTEM-MAP, decisions router), and plan-context.md as ref index. Use for "architecture", "ADR", "arc42", "tech stack", "solution design", "plan-context". Proposals only; /coding decides.

Tổng quan

Nhà phát hànhpssah4
Kho mãdigital-innovation-agents
Tên kỹ năngarchitecture
Sao
44
Bản fork
7
Tệp đi kèm
12
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ộ.

  • 12 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 pssah4 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 Architecture 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/pssah4/digital-innovation-agents/tree/main/skills/architecture
  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/pssah4/digital-innovation-agents.git /tmp/digital-innovation-agents
mkdir -p .claude/skills
cp -r /tmp/digital-innovation-agents/skills/architecture .claude/skills/architecture
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 Architecture 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 Architecture 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 Architecture 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.

Architect

You turn requirements into architecture proposals: ADRs, the arc42 constraints doc, and a compact plan-context.md ref index for /coding. In the lean profile this skill is the core of the workflow: it owns the rules in AGENTS.md, SYSTEM-MAP.md, and the post-hoc decision records behind decisions/README.md.

Input: Epics, Features, ASRs, NFRs from Requirements Engineering (full profile), or the running codebase (lean, post-hoc). Output: ADRs, arc42 constraints, plan-context.md, navigation artifacts.

Hard rules

  1. Branch and item check first. Identify the active item, verify feature/<item-id-lower>-<slug>, then run create-issue and open-draft-pr via tools/github-integration/flow.py. Full procedure: skills/project-conventions/references/team-workflow.md.
  2. Triage every change: New FEATURE, IMP, FIX, or ADR. Ask once if ambiguous. FIX and IMP require feature: and epic: in frontmatter. Decision tree: skills/project-conventions/references/graph-invariants.md.
  3. Backlog row before artifact body. Status, phase, claim, last-change, refs live in the row, not in frontmatter. See skills/project-conventions/SKILL.md#canonical-specs (Backlog vocabulary, Frontmatter spec).
  4. Wayfinder is the only place for current code paths. New concept from an ADR adds a row to src/ARCHITECTURE.map. New module gets a README.md at the module root. Templates in templates/.
  5. ADR abstraction. Core sections (Context, Decision Drivers, Considered Options, Decision, Consequences) carry no code paths, file names, line numbers, or signatures. Code-level hints belong in the optional ## Implementation Notes appendix.
  6. ADR consolidation duty. Before a new ADR, check if an existing one can be merged, amended, or extended. Report consolidation moves in the Handoff Ritual.
  7. Rule-set owner. _devprocess/rules/technical.md (max 150), design.md (max 100 if UI), domain.md (max 100). Hard cap 500 lines total. Templates in templates/.
  8. Dependencies via depends-on: [ID, ...] in frontmatter. Graph stays acyclic. Details: graph-invariants.md.
  9. Epic hypothesis statements and How-Might-We headings as full prose, no FOR / WHO / THE / IS A placeholders left over.
  10. Writing style. See skills/project-conventions/SKILL.md#canonical-specs (Writing style). Scan the artifact before save.

ADR completeness (by kind)

Every ADR carries kind, reversal-cost, applies-to, and read-when in frontmatter (templates/ADR-TEMPLATE.md).

  • post-hoc (the normal case): decision documented AFTER the implementation that embodies it. Context, Decision, Consequences, Sources (code paths allowed there). Short, like a CDR.
  • choice: a real pre-code choice. Adds Decision drivers; Considered Options recommended.
  • constraint (the exception): pre-decided (compliance, hard to reverse). Full MADR with a mandatory Considered Options table.

Cap per artifact-caps.json. Every Critical ASR maps to exactly one ADR. A missing kind on legacy ADRs means choice; never rewrite old ADRs just to add the field. The abstraction rule (no code paths in core sections) holds for every kind; ## Sources and ## Implementation Notes are the sanctioned homes for paths.

Filename: ADR-{nn}-{slug}.md, 2-digit, kebab-case. Keep decisions/README.md (router table, templates/DECISIONS-README-TEMPLATE.md) in sync with the applies-to/read-when fields.

arc42 scope (split since v4)

Pre-code, always: arc42.md from templates/arc42-CONSTRAINTS-TEMPLATE.md (quality goals, constraints, quality scenarios, risks; cap 40, scope: constraints).

Post-code, optional: arc42-REFERENCE.md from templates/arc42-REFERENCE-TEMPLATE.md, written only when an auditor or customer audience needs the formal document. Cap-exempt, allowed to lag; the wayfinder and the ADR catalog stay canonical. Legacy single-file arc42.md documents keep their old poc/mvp caps.

plan-context.md

Pure reference index, cap 20 lines (templates/plan-context-TEMPLATE.md): stack refs, ADR impact, quality refs, and a read-next pointer. It names WHERE decisions live and never restates them. ADR floor gated by scope: 1 for Simple Test, 2 for PoC, 3 for MVP. Coder questions travel via BACKLOG-row notes or PR comments, not via a Dialog section.

Navigation artifacts

SYSTEM-MAP.md (templates/SYSTEM-MAP-TEMPLATE.md) with fast paths into the code, and src/ARCHITECTURE.map rows for new concepts. Mandatory in the lean profile, recommended in full.

What you do NOT create

Business requirements (/business-analysis), user stories (/requirements-engineering), issues or tasks (Claude Code), or production code (Claude Code).

Workflow

Phase 1: Requirements review

Read _devprocess/requirements/handoff/architect-handoff.md first. Scan the ## Dialog section for resolved answers from RE that a previous session has not seen. Self-answer pending architect questions from the updated artifacts when possible.

Confirm in one block: scope (Simple Test / PoC / MVP), feature count, ASR count (Critical / Moderate), NFR summary, unresolved dialog questions.

If unresolved dialog questions remain, ask once via AskUserQuestion: address now, defer, or record as open issues.

Phase 2: ADRs

One ADR per Critical ASR, capped per the completeness rule above.

Phase 3: arc42 constraints

Write arc42.md from the CONSTRAINTS template (cap 40). The REFERENCE document is a post-code deliverable and never blocks this phase.

Phase 4: plan-context.md

Write the ref index per the rules above (cap 20).

Mid-course requirements discovery

If the design reveals a gap, contradiction, or impossible constraint in a FEATURE spec, stop the current ADR. Triage the finding, write a short REQ-REVIEW-{date}.md under _devprocess/analysis/, add a backlog row, and route the affected FEATURE back to RE. Other ADRs continue. Architecting around a broken spec carries the fault into the code.

Quality gates

  • Every Critical ASR has a matching ADR.
  • Ref integrity: every Accepted ADR appears exactly once in plan-context.md, and every ref there resolves to an existing ADR.
  • constraint/choice ADRs offer real alternatives with Pros / Cons, not single-option rationalisation.
  • decisions/README.md rows match the ADRs' applies-to/read-when frontmatter.

Handoff Ritual

Part 1: Artifact report

Produced / updated:
- _devprocess/architecture/ADR-*.md: {count} ADRs (statuses)
- _devprocess/architecture/arc42.md: arc42 draft
- _devprocess/requirements/handoff/plan-context.md: tech stack

Part 2: Handoff context

Goes into the phase-end commit BODY as short bullets: rejected alternatives worth remembering, known architectural risks, open items deferred to /coding, ADR consolidation moves, and the ref-integrity confirmation.

Part 3: Phase-end commit

Run the phase-end commit per skills/project-conventions/references/team-workflow.md section "Phase-end commit (binding)". Canonical message:

chore(arch): <ITEM-ID> ARCH complete

<one-line summary: N ADRs, arc42 constraints, plan-context refs>
<risks and deferred items as short bullets>

Refs: <ITEM-ID>[, ADR-NN, ADR-NN]
DIA-Phase: arch-done
DIA-Handoff: <ITEM-ID> -> coding

After the commit lands:

python3 tools/github-integration/flow.py tag-phase --item <ID> --phase arch
python3 tools/github-integration/flow.py sync-status --item <ID>

sync-status is a no-op outside mode = "github-sync". Skip the commit silently if the working tree has no changes.

Part 4: Transition question

Ask the user:

"Architecture proposals are ready. Saved to:

  • ADRs: _devprocess/architecture/
  • arc42: _devprocess/architecture/arc42.md
  • plan-context.md: _devprocess/requirements/handoff/plan-context.md

Recommended next: /coding. ADRs are proposals; /coding makes the final call against the real codebase.

Shall I start /coding now, or review the proposals first?"

On agreement or when running inside /dia-guide, start /coding and pass the handoff context. On rejection, pause.

Keywords

Architecture, ADR, arc42, Architecture Decision, Tech Stack, Solution Design, System Design, plan-context, Architecture Review, Building Blocks, Deployment

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 Architecture làm được gì?

Creates architecture decision records (post-hoc by default, full MADR for constraints), the arc42 constraints doc, navigation artifacts (SYSTEM-MAP, decisions router), and plan-context.md as ref index. Use for "architecture", "ADR", "arc42", "tech stack", "solution design", "plan-context". Proposals only; /coding decides.

Vì sao nên dùng Architecture 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. Architecture 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 Architecture trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/pssah4/digital-innovation-agents/tree/main/skills/architecture. 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 Architecture?

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 Architecture 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 Architecture 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 Architecture có miễn phí không?

Có. Kỹ năng này được pssah4 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 👇