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

repo-architecture

Skill này làm gì

Skill này đặt ra quy tắc cho nơi các ghi chú mới được lưu trong kho tri thức. Nó sắp xếp các trang theo nội dung chính, chẳng hạn một người, một công ty hoặc một cuộc họp.

Khi nào nên dùng

  • ✓Khi agent của bạn sắp tạo một trang mới và cần chọn thư mục.
  • ✓Khi một ghi chú có thể thuộc nhiều thư mục và bạn muốn có quy tắc rõ ràng.
  • ✓Khi bạn muốn kiểm tra xem một trang có sẵn có bị đặt sai chỗ không.

Liên kết skill

https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/repo-architecture/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/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/repo-architecture/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ôi nên lưu ghi chú từ cuộc gọi với Alice từ Acme ở đâu? Hãy chọn thư mục phù hợp.”

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

Cách hoạt động

Agent hỏi trang chủ yếu nói về điều gì, rồi làm theo một danh sách quyết định ngắn. Nó đề xuất một thư mục kèm lý do và liên kết trang từ những nơi liên quan.

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.

Repo Architecture — Filing Rules

Full filing rules: See skills/_brain-filing-rules.md

Contract

This skill guarantees:

  • Every new page is filed by primary subject (not format, not source)
  • The decision protocol is followed for ambiguous cases
  • Common misfiling patterns are caught

Phases

  1. Identify the primary subject. What would you search for to find this page?
  2. Walk the decision tree:
    • About a person → people/{name-slug}.md
    • About a company → companies/{name-slug}.md
    • A reusable concept/framework → concepts/{slug}.md
    • An original idea → originals/{slug}.md
    • A meeting → meetings/{slug}.md
    • Media content → media/{type}/{slug}.md
    • Raw data import → sources/{slug}.md
  3. Cross-link. Link from related directories.
  4. Check notability. See skills/conventions/quality.md notability gate.

Output Format

Advisory: "File this at {type}/{slug}.md because the primary subject is {reason}."

When it fails

Follow the agent operator protocol for any gbrain error code, exit code, [AGENT] block or notice block. Specific to this skill:

  • list_pages / search cannot find a matching directory or the brain is unreachable: fall back to skills/_brain-filing-rules.md and say the placement came from the rules, not the live brain.
  • get_page returns page_not_found for the page being filed: confirm the slug with the user before choosing a directory.

Anti-Patterns

  • Filing by format ("it's a PDF so it goes in sources/")
  • Filing by source ("it came from email so it goes in sources/")
  • Creating pages without checking if one already exists
  • Using sources/ for anything except raw data dumps
Câu hỏi thường gặp

Thư mục có phụ thuộc vào nơi ghi chú đến từ không?

Không. Việc phân loại dựa trên chủ đề chính của ghi chú, không dựa trên nguồn hay loại tệp.

Nếu không kết nối được kho tri thức thì sao?

Agent dùng các quy tắc đã viết và cho bạn biết việc đặt trang là theo các quy tắc đó.

Các skill khác có theo cùng quy tắc không?

Có. Các skill ghi vào kho tri thức khác dùng cùng quy tắc, nên toàn bộ kho tri thức được nhất quán.

Chi tiết

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

Where new brain files go. Decision protocol for filing brain pages by primary subject, not by format or source. Reference for all brain-writing skills.

repo: garrytan/gbrain

Độ phổ biến

Sao GitHub
31k
Vị trí xếp hạng
#9266
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ự