Chuyển đến nội dung
Skillpedia
Tài liệu kỹ thuật81k · #1551

adr-create

Skill này làm gì

Skill này hướng dẫn agent tạo một bản ghi quyết định kiến trúc mới, là một tài liệu ngắn giải thích một quyết định kỹ thuật quan trọng. Phù hợp với lập trình viên và nhóm muốn ghi lại các lựa chọn thiết kế.

Khi nào nên dùng

  • ✓Khi nhóm của bạn chọn một công nghệ hoặc cách thiết kế mới.
  • ✓Khi một quyết định ảnh hưởng nhiều phần của hệ thống và cần được ghi lại.
  • ✓Khi bạn muốn lưu một quyết định kiến trúc kèm bối cảnh và hệ quả.

Liên kết skill

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-adr/skills/adr-create/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-adr/skills/adr-create/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo một bản ghi quyết định kiến trúc mới cho lựa chọn dùng PostgreSQL để lưu trữ dữ liệu của chúng tôi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent tìm số ADR tiếp theo, tạo file từ mẫu chuẩn, và lưu một bản tóm tắt vào bộ nhớ quyết định.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Create ADR

Create a new Architecture Decision Record with the next sequential number, register it in the AgentDB graph, and link it to related ADRs.

When to use

When a significant architectural decision needs to be recorded -- new technology adoption, API design choices, data model changes, infrastructure decisions, or any cross-cutting concern that affects multiple components.

Steps

  1. Find next number -- Glob for docs/adr/ADR-*.md and parse existing numbers to determine the next sequential ID (ADR-001, ADR-002, etc.). Create docs/adr/ if it does not exist.

  2. Slugify title -- Convert the title argument to a lowercase, hyphen-separated slug (e.g., "Use PostgreSQL for persistence" becomes use-postgresql-for-persistence).

  3. Create ADR file -- Write the file at docs/adr/ADR-NNN-<slug>.md using the standard template:

    # ADR-NNN: <Title>
    
    - **Status**: proposed
    - **Date**: <today's date YYYY-MM-DD>
    - **Deciders**: <leave blank for author to fill>
    - **Tags**: <leave blank>
    
    ## Context
    
    <!-- What is the issue that motivates this decision? -->
    
    ## Decision
    
    <!-- What is the change that we are proposing? -->
    
    ## Consequences
    
    ### Positive
    -
    
    ### Negative
    -
    
    ### Neutral
    -
    
    ## Links
    
  4. Store in AgentDB -- Call mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-store with:

    • key: mem:ADR-NNN
    • tier: semantic
    • value: a JSON-encoded string: { "id": "ADR-NNN", "title": "<title>", "status": "proposed", "date": "<today>", "file": "docs/adr/ADR-NNN-<slug>.md" }
  5. Find related ADRs -- Call mcp__plugin_ruflo-core_ruflo__memory_search with the title as query in namespace adr-patterns to find related decisions. If matches are found, add them to the Links section and call mcp__plugin_ruflo-core_ruflo__agentdb_causal-edge for each relationship with:

    • sourceId: mem:ADR-NNN
    • targetId: mem:ADR-RELATED
    • relation: depends-on
  6. Store pattern -- Call mcp__plugin_ruflo-core_ruflo__memory_store in namespace adr-patterns with key ADR-NNN and the title + context as value for future semantic search.

  7. Report -- Output the created file path, ADR number, and any related ADRs found.

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

Bản ghi gồm những gì?

Mẫu gồm phần bối cảnh, quyết định, các hệ quả tích cực, tiêu cực và trung tính, cùng các liên kết.

Bản ghi mới có trạng thái gì?

Skill đặt bản ghi mới ở trạng thái đề xuất (proposed), để nhóm xem xét trước khi chấp nhận.

File được lưu ở đâu?

Skill tạo file trong thư mục docs/adr, với tên file được đánh số.

Chi tiết

Mô tả gốc của tác giả

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

repo: ruvnet/ruflo

Độ phổ biến

Sao GitHub
81k
Vị trí xếp hạng
#1551
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự