Logo Double Diamond

Double Diamond

Cộng đồng
danicat
double-diamond

Universal multi-agent orchestration workflow based on the Double Diamond framework (Inception -> Discovery -> Definition -> Development -> Delivery). Coordinates parallel subagents with context isolation to separate problem-space research from solution-space implementation. Activate for complex, high-ambiguity initiatives across software engineering, in-depth research, long-form writing, legal analysis, or product strategy requiring structured human alignment gates.

Tổng quan

Nhà phát hànhdanicat
Kho mãskills
Tên kỹ năngdouble-diamond
Sao
24
Bản fork
4
Tệp đi kèm
4
Giấy phépApache-2.0
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ộ.

  • 4 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 danicat 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 Double Diamond 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/danicat/skills/tree/main/workflows/double-diamond
  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/danicat/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/workflows/double-diamond .claude/skills/double-diamond
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 Double Diamond 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 Double Diamond 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 Double Diamond 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.

Double-Diamond Multi-Agent Orchestration

The double-diamond skill coordinates complex, high-ambiguity initiatives through the proven Double Diamond framework, preceded by an Inception alignment phase. It leverages parallel subagents with context isolation to thoroughly explore the problem space before committing to solution-space implementation.

                              INCEPTION PHASE
                          (Pre-Diamond Alignment)
                         /grill-me User Interview
                      Establish Shared Understanding
                                     │
                                     ▼
          DIAMOND 1: PROBLEM SPACE                  DIAMOND 2: SOLUTION SPACE
          (Research & Exploration)                   (Creation & Verification)

         /--- Discovery (Diverge) ---\             /--- Development (Diverge) ---\
        /  Parallel `research` sub-   \           /   Parallel creation sub-      \
       /   agents explore landscape,   \         /    agents craft disjoint        \
Start >    constraints & prior art      > Brief >     sections/modules in parallel  > Delivery
       \                               /  Gate   \                                 /  (Gates)
        \---  Definition (Converge) --/           \---   Delivery (Converge)  ----/
             Synthesize findings into                  Holistic review, integration,
             a Foundation Document                     and quality gate verification

🌐 Universal Domain Mapping

Double Diamond adapts seamlessly across technical, creative, and analytical domains:

PhaseSoftware EngineeringWriting & PublishingLegal & Policy ResearchProduct & Strategy
0. InceptionStack, constraints, latency, scopeAudience, tone, thesis, lengthJurisdiction, case theory, factsMarket, user persona, success metrics
1. Discover (Diverge)Codebase, APIs, edge casesBackground research, angles, dataPrecedents, statutes, case lawCompetitor analysis, customer interviews
2. Define (Converge)Technical SpecificationStructured Editorial OutlineLegal Brief / Argument StructurePRD / Feature Specification
Steering GateApprove architecture & trade-offsApprove thesis & outlineApprove legal theory & approachSign off on product direction
3. Develop (Diverge)Parallel module implementationParallel chapter/section draftingParallel argument/motion draftingParallel prototype/stream exploration
4. Deliver (Converge)Build, tests, lint, spec complianceFact-check, style, voice, flowCitation audit, counter-argumentsExecutive synthesis, launch readiness

⚡ Core Principles & Operational Rules

  1. Pre-Diamond Inception (Alignment Gate):
    • Before launching research divergence, the Coordinator executes an Inception phase via the /grill-me interactive interview protocol (using ask_question).
    • The Coordinator explores the existing environment/context first, then interviews the user about goals, constraints, non-negotiables, target audience, and deliverable modality.
  2. Two Distinct Diamond Phases (Problem Space vs. Solution Space):
    • Diamond 1 (Problem Space): Focuses exclusively on reconnaissance, constraint mapping, dependency analysis, and definition. No final deliverable code or prose is authored during Diamond 1.
    • Diamond 2 (Solution Space): Focuses on parallel creation against the approved definition, followed by rigorous quality gating.
  3. Context Isolation via Subagents:
    • Deep exploration and multi-track creation happen in isolated subagent contexts (research for read-only exploration, self for creation). This prevents context pollution and hallucination in the Coordinator's session.
  4. Mandatory User Steering Gate (Human-in-the-Loop Alignment):
    • Between Diamond 1 and Diamond 2, the Coordinator halts to present the synthesized Foundation Document (Spec, Outline, Brief, or PRD) and trade-offs to the user for explicit review and confirmation.
  5. Disjoint Work Allocation (Zero Collision):
    • In Diamond 2 (Development), parallel creator subagents receive strictly disjoint assignments (e.g., distinct source files, separate article sections, independent legal claims) to prevent overwrite collisions.
  6. Domain-Specific Delivery Quality Gates:
    • Work is not delivered until all domain-specific quality gates pass: structural integrity, localized unit/section verification, holistic consistency, and compliance with the approved Foundation Document.

🎯 Agent Budget & Degree of Parallelism (DOP)

  • Definition: Agent Budget is synonymous with Degree of Parallelism (DOP). It defines the maximum number of active, concurrent subagents allowed to execute at the exact same time.
  • Active vs. Past Capacity: Completed or terminated subagents do not consume budget. The budget applies strictly to currently running subagents. When a subagent completes its work, its concurrency slot is immediately freed.
  • Elastic Scaling: While the baseline default is DOP = 4, the framework scales elastically to any user-requested budget (e.g., DOP = 10, 20, 50+) for massive parallel surveys, parameter sweeps, or multi-module initiatives.
  • High-DOP High-Signal Mandate (Micro-Probe Rule): When operating with elevated concurrency (DOP >= 8), subagents must act as focused micro-probes. The Coordinator instructs subagents to return dense, high-signal, structured summaries (<= 150 words or tabular format) rather than verbose essays, enabling clean Map-Reduce synthesis without context dilution.

Recommended Baseline Sizing:

Initiative ScaleAgent Budget (DOP)Active Discovery WorkersActive Creation WorkersTypical Scope
Focused / Targeted22 (Landscape + Standards)2 (Core + Surface)Single module, short article, targeted feature
Standard (Default)44 (Landscape, Standards, Edge Cases, Comparative)4 (WPs 1–4 disjoint modules/sections)Multi-module service, comprehensive whitepaper, PRD
Complex / Deep6–8+6–8+ (Subsystem reconnaissance / micro-probes)6–8+ (Distributed package authors)Full architectural rewrite, multi-chapter publication
Massive Swarm20–50+20–50+ (Broad API surveys, micro-benchmarks, fuzzing)20–50+ (Massive parallel module/asset generation)Wide ecosystem sweeps, multi-file migrations

📡 Non-Blocking Coordinator & Reactive Concurrency

The Coordinator is the primary conversational interface and strategic conductor. It must remain permanently unblocked to respond to user messages at any point during execution.

  1. Role Separation (Delegation over Execution):
    • The Coordinator orchestrates, synthesizes, and interfaces with the user. It never blocks itself with long, sequential manual execution—heavy exploration and drafting are delegated to subagents.
  2. Fire-and-Yield Concurrency:
    • When the Coordinator spawns subagents via invoke_subagent, it immediately halts tool calls to end its turn. It never loops, sleeps, or polls.
  3. Always Unblocked for User Queries:
    • Because the Coordinator never enters busy-wait polling loops, it is always available to process incoming user messages while subagents work in the background:
      • Status Inquiries: The Coordinator can immediately provide progress updates or inspect active workers via manage_subagents (Action="list").
      • In-Flight Steering / Scope Changes: If the user provides new constraints or changes requirements mid-run, the Coordinator can steer active subagents via send_message or cancel/restart them via manage_subagents (Action="kill").
  4. Automatic Reactive Wakeup:
    • When subagents finish their tasks, the messaging platform automatically wakes up the Coordinator with their full results.

🧭 The 6-Step Double-Diamond Workflow

1. Step 0: Inception (Pre-Diamond Alignment)

  • Coordinator activates the /grill-me protocol, systematically interviewing the user one decision node at a time via ask_question.
  • Explores existing materials first, then clarifies scope boundaries, deliverable modality, non-negotiables, and user preferences.
  • Reference Guide: Read references/inception_phase.md for interview patterns and decision-tree traversal.

2. Step 1: Discover (Diamond 1 Divergence)

  • Coordinator decomposes the problem space into up to $\text{DOP}$ orthogonal exploration vectors (e.g., Landscape reconnaissance, Standards & APIs, Constraints & Failure modes, Prior art).
  • Spawns parallel research subagents using invoke_subagent and immediately yields execution.
  • Reference Guide: Read references/research_phase.md for vector decomposition and prompt templates.

3. Step 2: Define (Diamond 1 Convergence)

  • Coordinator synthesizes research reports into a unified Foundation Document (Technical Specification, Editorial Outline, Legal Brief, or PRD).
  • Establishes system contracts, interfaces, chapter structure, or argument trees, alongside disjoint work package allocations.
  • Document Template: Populate assets/specification_template.md with research synthesis and work breakdowns.

4. Step 3: User Steering Gate (Interactive Alignment)

  • Coordinator presents the executive summary, draft Foundation Document, and architectural/editorial trade-offs to the user.
  • Solicits user feedback, resolves decision forks, and obtains explicit confirmation before proceeding to creation.

5. Step 4: Develop (Diamond 2 Divergence)

  • Coordinator spawns up to $\text{DOP}$ parallel creator subagents (self subagents with write & tool access) and immediately yields execution.
  • Each creator receives a strictly disjoint Work Package (WP) and executes localized verification:
    • Software: Package-scoped unit tests (go test ./internal/pkg/..., pytest tests/unit/, npm test -- src/pkg/).
    • Writing: Section drafting against word count, tone, and source citations.
    • Legal/Policy: Argument drafting with case citations and statutory cross-referencing.
  • Reference Guide: Read references/development_phase.md for disjoint allocation and creator prompt templates.

6. Step 5: Deliver (Diamond 2 Convergence & Quality Gating)

  • Coordinator integrates all parallel deliverables into a coherent whole and executes end-to-end verification.
  • Failure Recovery Protocol: If any integration test, fact-check, or consistency check fails:
    1. Isolate the failing component and review specific error traces or discrepancies.
    2. Launch a targeted repair subagent with the exact context and interface contract.
    3. Re-verify all delivery gates until 100% pass before presenting the final deliverable to the user.

⚠️ Common Gotchas & Antipatterns

  1. Skipping Inception & Assuming User Intent: Never jump straight into research divergence without establishing core scope boundaries, audience, and constraints with the user.
  2. Premature Implementation in Diamond 1: Never author production code or final prose during the discovery and definition phase. Diamond 1 is strictly for reconnaissance, constraint mapping, and interface/outline design.
  3. Bypassing the User Steering Gate: Never transition directly from definition into creation without presenting the foundation document and trade-offs to the user for explicit confirmation.
  4. Overlapping Work Allocations: Never assign two parallel creator subagents to the same file, section, or deliverable slice. Work Packages MUST be strictly disjoint to prevent race conditions and merge conflicts.
  5. Broad Integration Sweeps during Creation: Creator subagents must perform fine-grained, localized verification (e.g. package unit tests, section fact-checks) rather than whole-project sweeps while sibling subagents are midway through edits.
  6. Passive Polling Loops: Coordinator agents must NEVER poll subagent statuses in a loop. Spawning subagents is fire-and-yield; rely on automatic reactive wakeup to keep the Coordinator responsive to the user.

📚 Progressive Disclosure & References

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

Universal multi-agent orchestration workflow based on the Double Diamond framework (Inception -> Discovery -> Definition -> Development -> Delivery). Coordinates parallel subagents with context isolation to separate problem-space research from solution-space implementation. Activate for complex, high-ambiguity initiatives across software engineering, in-depth research, long-form writing, legal analysis, or product strategy requiring structured human alignment gates.

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

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/danicat/skills/tree/main/workflows/double-diamond. 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 Double Diamond?

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

Có. Kỹ năng này được danicat phát hành trên GitHub theo giấy phép Apache-2.0. 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 👇