Skip to content

Kết hợp framework

Các framework này có thể kết hợp, nhưng chỉ khi bạn phân quyền sở hữu rõ. Sai lầm lớn nhất là để mỗi framework tạo một source of truth riêng và cạnh tranh với nhau.

Nguyên tắc kết hợp

mermaid
flowchart TB
    A[Chọn một primary workflow] --> B[Chọn supporting disciplines]
    B --> C[Định nghĩa source of truth]
    C --> D[Định nghĩa gates]
    D --> E[Định nghĩa verification evidence]
    E --> F[Chạy pilot]

Các combo khuyến nghị

ComboPrimarySupporting layerPhù hợp nhấtRủi ro
LangChain + OpenSpecOpenSpecLangChain làm app frameworkRAG/tool-agent feature có lightweight change specsApp evals có thể thiếu rõ
LangGraph + AI-DLCAI-DLCLangGraph làm app frameworkLong-running agent app có enterprise riskDễ nhầm runtime orchestration với delivery governance
LangGraph + HermesTùy bối cảnhHermes làm harness, LangGraph là app codeInternal agent platformLayer ownership không rõ
Hermes + OpenSpecOpenSpecHermes làm runtimeCustom/self-hosted agent execute lightweight change specsRuntime complexity
Hermes + AI-DLCAI-DLCHermes làm runtimeInternal agent platform có enterprise governanceCần safety controls mạnh
Hermes + SuperpowersSuperpowersHermes skills/runtimeCustom agent có TDD/review disciplineSkills phải được enforce
Spec Kit + SuperpowersSpec KitSuperpowersProduct feature cần clarity và code qualityTDD có thể thấy chậm nếu team chưa quen
OpenSpec + SuperpowersOpenSpecSuperpowersBrownfield changes nhẹ nhưng vẫn cần test disciplineQuá nhẹ nếu security/governance cao
OpenSpec + GSDOpenSpecGSDChange specs iterative cộng multi-phase executionDuplicate change state nếu boundary không rõ
AWS AI-DLC + SuperpowersAWS AI-DLCSuperpowersEnterprise delivery cần implementation disciplineQuá nhiều gate nếu không risk-based
GSD + SuperpowersGSDSuperpowersStartup/solo ship nhanh nhưng vẫn cần test/reviewParallel execution có thể vượt quá khả năng review
Spec Kit + GSDSpec KitGSDFeature lớn cần spec rõ và execution nhiều phase.planning/ có thể lặp lại specs
AWS AI-DLC + ý tưởng Spec KitAWS AI-DLCConstitution/checklist conceptEnterprise muốn spec quality tốt hơnHai hệ docs có thể drift
AWS AI-DLC + GSDAWS AI-DLCGSD chỉ cho executionModernization lớn vừa cần governance vừa cần throughputComplexity cao nhất

Combo 1: Spec Kit + Superpowers

Dùng như workflow mặc định cho product feature chất lượng cao.

mermaid
flowchart LR
    A[Feature intent] --> B[Spec Kit spec]
    B --> C[Clarify]
    C --> D[Plan and tasks]
    D --> E[Superpowers TDD]
    E --> F[Superpowers review]
    F --> G[PR and spec update]

Ownership map

ConcernOwner
Source of truthSpec Kit specs/
Test disciplineSuperpowers TDD
Review disciplineSuperpowers code review
Project managementIssue tracker của bạn
CI evidenceCI system

Step-by-step

  1. Cài và initialize Spec Kit. Tham khảo: github/spec-kit.
  2. Cài Superpowers vào agent. Tham khảo: obra/superpowers.
  3. Tạo hoặc update Spec Kit constitution.
  4. Tạo feature spec.
  5. Chạy clarification đến khi unknowns quan trọng được đóng.
  6. Generate implementation plan và tasks.
  7. Bắt đầu Superpowers TDD cho task đầu tiên.
  8. Request code review sau implementation.
  9. Fix review findings.
  10. Update spec nếu behavior đổi.

Prompt pattern

text
Use Spec Kit to create the feature spec and tasks first.
After tasks are approved, use Superpowers test-driven development for implementation.
Do not edit code until the spec, plan, and first task are approved.

Combo 2: AWS AI-DLC + Superpowers

Dùng cho enterprise hoặc high-risk work khi governance và implementation quality đều quan trọng.

mermaid
flowchart LR
    A[Using AI-DLC] --> B[Inception]
    B --> C[Architecture and risk approval]
    C --> D[Construction unit]
    D --> E[Superpowers TDD]
    E --> F[Review]
    F --> G[Audit and release readiness]

Ownership map

ConcernOwner
Lifecycle stateAI-DLC aidlc-docs/
Approval gatesAI-DLC governance map
TestsSuperpowers TDD + CI
Code reviewSuperpowers review
Operations readinessAI-DLC operations extension hoặc checklist nội bộ

Step-by-step

  1. Cài AI-DLC rules cho agent. Tham khảo: awslabs/aidlc-workflows.
  2. Cài Superpowers. Tham khảo: obra/superpowers.
  3. Định nghĩa approvers cho product, architecture, security, operations.
  4. Bắt đầu bằng Using AI-DLC, ....
  5. Để AI-DLC tạo questions và inception artifacts.
  6. Chỉ approve inception khi business, architecture và risk rõ.
  7. Với mỗi construction unit, yêu cầu dùng Superpowers TDD.
  8. Bắt buộc resolve code review findings trước khi hoàn tất audit.
  9. Ghi material decisions vào audit.md.
  10. Hoàn tất production readiness trước release.

Prompt pattern

text
Using AI-DLC, run inception for this change and create units of work.
For each approved construction unit, use Superpowers TDD and request code review.
Record approval decisions and test evidence in the AI-DLC audit trail.

Combo 3: GSD + Superpowers

Dùng khi tốc độ quan trọng nhưng không muốn agent-generated chaos.

mermaid
flowchart LR
    A[GSD project memory] --> B[Discuss phase]
    B --> C[Plan phase]
    C --> D[Execute tasks]
    D --> E[Superpowers TDD/review]
    E --> F[GSD verify]
    F --> G[GSD ship]

Ownership map

ConcernOwner
Project memoryGSD .planning/
Phase executionGSD
Test-first implementationSuperpowers
Review trước shipSuperpowers + GSD verifier
Final state.planning/STATE.md và PR

Step-by-step

  1. Cài GSD. Tham khảo: open-gsd/gsd-core.
  2. Cài Superpowers. Tham khảo: obra/superpowers.
  3. Chạy codebase mapping nếu repo đã tồn tại.
  4. Tạo .planning/ project memory.
  5. Discuss và plan một phase hẹp.
  6. Chỉ split task song song nếu thật sự độc lập.
  7. Với mỗi behavior-changing task, dùng Superpowers TDD.
  8. Chạy GSD verification.
  9. Chạy Superpowers code review hoặc reviewer agent tương đương.
  10. Ship và update .planning/STATE.md.

Combo 4: Spec Kit + GSD

Dùng khi feature cần spec clarity mạnh và multi-phase execution.

BoundaryRule
Feature intentSpec Kit sở hữu
Roadmap và phase executionGSD sở hữu
Task detailsSpec Kit tasks có thể import vào GSD phase plans
Behavior changesUpdate Spec Kit spec trước

Step-by-step

  1. Tạo Spec Kit spec, clarification, plan và tasks.
  2. Chuyển approved tasks thành GSD phase plan.
  3. Chạy GSD execution phase.
  4. Verify bằng GSD.
  5. Nếu implementation làm lộ requirement change, update Spec Kit spec trước khi tiếp tục.
  6. Ship phase và update cả PR summary lẫn .planning/STATE.md.

Combo 5: AWS AI-DLC + GSD

Combo này mạnh nhưng nặng. Chỉ dùng khi project vừa high-risk vừa execution-heavy.

Boundary khuyến nghị:

ConcernOwner
Governance, approvals, auditAI-DLC
Execution memory và phase orchestrationGSD
Risk gatesAI-DLC
Parallel executionGSD, chỉ sau AI-DLC approval

Rule:

AI-DLC quyết định work có được approve không. GSD quyết định approved work được execute thế nào.

Combo 6: OpenSpec + Superpowers

Dùng khi bạn muốn change specs nhẹ và implementation discipline mạnh.

mermaid
flowchart LR
    A["/opsx:propose"] --> B[Review proposal/specs/design/tasks]
    B --> C[Superpowers TDD]
    C --> D[Code review]
    D --> E["/opsx:sync"]
    E --> F["/opsx:archive"]

Step-by-step

  1. Initialize OpenSpec. Tham khảo: Fission-AI/OpenSpec.
  2. Cài Superpowers. Tham khảo: obra/superpowers.
  3. Chạy /opsx:explore nếu idea còn mơ hồ.
  4. Chạy /opsx:propose <change>.
  5. Review proposal.md, specs/, design.md, tasks.md.
  6. Dùng Superpowers TDD cho từng behavior-changing task.
  7. Request code review.
  8. Chạy /opsx:sync sau khi behavior verified.
  9. Chạy /opsx:archive.

Boundary rule

OpenSpec sở hữu change artifacts. Superpowers sở hữu implementation discipline.

Combo 7: OpenSpec + GSD

Dùng khi change cần spec control nhẹ nhưng execution kéo dài nhiều phase hoặc nhiều agents.

ConcernOwner
Current/proposed behaviorOpenSpec
Multi-phase executionGSD
Context memoryGSD .planning/
Change archiveOpenSpec

Rule:

OpenSpec định nghĩa change. GSD execute work. Đừng duplicate OpenSpec requirements trong .planning/; hãy link tới chúng.

Combo xấu nên tránh

PatternVì sao fail
Spec Kit và AI-DLC cùng sở hữu requirementsSpecs drift và reviewer mất trust
OpenSpec và Spec Kit cùng sở hữu cùng feature specHai hệ SDD cạnh tranh
GSD yolo mode trên high-risk AI-DLC workExecution vượt governance
Superpowers TDD nhưng không chạy test thậtDiscipline trở thành diễn kịch
Cài cả bốn framework mà không có source-of-truth ruleTeam tốn thời gian reconcile docs hơn là build

Runtime combinations với Hermes

Hermes thường nên được coi là execution harness, không phải workflow source of truth.

Hermes + OpenSpec

mermaid
flowchart LR
    A[Hermes runtime] --> B[OpenSpec change artifacts]
    B --> C[Implementation]
    C --> D[Tests and review]
    D --> E["/opsx:sync + /opsx:archive"]

Boundary:

ConcernOwner
Runtime, tools, memory, subagentsHermes
Current/proposed behaviorOpenSpec
Test disciplineCI hoặc Superpowers-like skills

Hermes + AI-DLC

Dùng khi muốn custom runtime nhưng vẫn cần enterprise governance.

ConcernOwner
Agent runtimeHermes
Lifecycle state và auditAI-DLC
Human approvalsAI-DLC governance map
Tool safetyPlatform team

Rule:

Hermes execute. AI-DLC govern.

Hermes + Superpowers

Dùng khi build internal agent runtime nhưng vẫn bắt buộc TDD/review discipline.

ConcernOwner
RuntimeHermes
SkillsSuperpowers-like methodology
Test evidenceRepo CI
Review evidencePR review hoặc reviewer agent

App framework combinations

LangChain + OpenSpec

Dùng cho RAG hoặc tool-agent features khi muốn lightweight change specs.

mermaid
flowchart LR
    A["/opsx:propose"] --> B[LangChain app implementation]
    B --> C[Retriever/tools/prompts]
    C --> D[Tests and evals]
    D --> E["/opsx:sync + /opsx:archive"]

LangGraph + AI-DLC

Dùng khi build high-risk stateful agent system.

ConcernOwner
Runtime orchestrationLangGraph
Lifecycle governanceAI-DLC
TDD/review disciplineSuperpowers hoặc CI/review policy
Production readinessAI-DLC operations checklist

LangGraph + Hermes

Dùng khi Hermes là harness cho developer/platform, còn LangGraph là framework trong app đang được build.

Rule:

LangGraph build agent app. Hermes chạy coding/research agent hoặc platform harness.

FrameworkLink chính
GitHub Spec Kithttps://github.com/github/spec-kit
OpenSpechttps://github.com/Fission-AI/OpenSpec
AWS AI-DLC Workflowshttps://github.com/awslabs/aidlc-workflows
GSD Corehttps://github.com/open-gsd/gsd-core
Superpowershttps://github.com/obra/superpowers
Hermes Agenthttps://github.com/NousResearch/hermes-agent

Built as a static bilingual AI engineering stack guide.