Chuyển đến nội dung
Skillpedia
Tài liệu kỹ thuật5.7k · #14744

wiki

Skill này làm gì

Skill này dạy agent cách lập bản đồ một dự án phần mềm lớn gồm nhiều repository và dịch vụ. Nó xây một kho kiến thức giải thích các phần liên hệ với nhau thế nào, để con người và AI hiểu được toàn bộ hệ thống.

Khi nào nên dùng

  • ✓Khi nhóm có mười repository trở lên và không ai còn hiểu toàn bộ hệ thống.
  • ✓Khi người dùng cần truy vết các quy tắc nghiệp vụ qua nhiều dịch vụ về đến code.
  • ✓Khi người dùng muốn cập nhật một kho kiến thức nhóm có sẵn trong khi giữ nguyên tên tệp.

Liên kết skill

https://github.com/Tencent/teamai-cli/blob/main/skill-data/wiki/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/Tencent/teamai-cli/blob/main/skill-data/wiki/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

“Nhóm tôi có mười lăm microservice nằm trong nhiều repo. Bạn có thể lập bản đồ cách chúng ghép với nhau và liên kết mỗi khẳng định với code không?”

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

Cách hoạt động

Agent đọc code với sự hỗ trợ của các script và xây một đồ thị về cách các thành phần liên hệ. Nó viết tài liệu trong đó mỗi khẳng định trích dẫn một dòng code, và mỗi quan hệ có nhãn độ tin cậy.

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.

wiki: AI cognition engineering for large codebases

Prerequisites: an accessible source directory (multiple repositories supported), Python 3, and an installed teamai CLI. The methodology, sub-agent prompts, templates and scripts ship with the CLI. Run teamai skill path wiki to get their absolute path; {SKILL_DIR} in this document refers to that path; a reference file you open on its own writes that directory as SKILL_DIR in braces. Write the knowledge-base documents in Simplified Chinese, as earlier releases did. When updating an existing knowledge base, keep its file names and headings; validate_kb.py accepts both the current English and the earlier Chinese headings. The Phase 0 structural baseline uses teamai import --dir. TeamAI does not ship a separate team-wiki CLI. No extra plugin is required.

The problem: large projects (10+ repositories, dozens of microservices, years of iteration) defeat global understanding by AI. The context window cannot hold all the code, component relations are scattered everywhere, and business rules hide deep in call chains. Letting AI read the code directly is both slow (huge token counts) and inaccurate (no global view).

The solution: use architecture reverse-engineering to systematically compress a huge codebase into a structured, verifiable, AI-Native deep knowledge base. Every conclusion traces back to a code line, every relation carries a confidence label, and every update is incrementally verified. AI reads the knowledge base instead of the source, and gains global architecture awareness for about 1/50 of the tokens.

For recalled source freshness, current means only that the cited file matches the scan baseline; check current source when available before relying on claims marked stale, missing or unknown.

Usage

The user states the mode in natural language, or simply says "build a codebase knowledge base":

default     Standard: single-session core path
--deep      Full K1~K4 + G1~G9
--update    Incremental update of an existing knowledge/
continue    Resume from the _review/progress.json checkpoint

Agent architecture

Agent File When started
Knowledge base document generator Agent {SKILL_DIR}/references/agents/kb-doc-generator.md Phase K2, every component batch
Graph RAG Agent {SKILL_DIR}/references/agents/graph-rag-agent.md Phase K3

Main agent responsibilities: workflow orchestration, confirmation point management, progress.json maintenance, quality report aggregation.


Entry decision

This decision must run first on every activation.

IF the user input contains "--update" or "incremental update":
  → Update mode
ELSE IF the user input contains "continue" or "resume":
  → Continue mode
ELSE:
  → Check whether _review/progress.json exists under the user-specified directory
  IF it exists → report the state, wait for "resume last run" or "start over"
  ELSE         → Phase 0

Continue mode

Step 1: Locate progress.json
Step 2: Read and parse it, show a resume summary
Step 3: Jump according to current_phase:
  "phase0_done"              → Phase K1
  "phasek1_waiting_confirm"  → Show k1-architecture-map.md, wait for confirmation ①
  "phasek1_confirmed"        → Phase K2
  "phasek2_batch_N"          → Continue Phase K2 from batch N (skip completed ones)
  "phasek2_waiting_confirm"  → Wait for confirmation ②
  "phasek2_confirmed"        → Phase K3
  "phasek3_done"             → Phase K4
  "phasek4_done"/"completed" → Report completion, ask whether to --update or rerun a component

Update mode (incremental update)

Trigger: the user asks for an "incremental update", or specifies the --update mode in this skill. Precondition: an existing progress.json in the completed state.

Step 1: Read progress.json, get file_hash_cache
Step 2: Scan project_root, compute the current SHA256 of every file
Step 3: Compare hashes, classify: added / modified / deleted
Step 4: Show the change summary, wait for user confirmation:
  ┌────────────────────────────────────┐
  │ Change summary                     │
  │ Added: N files                     │
  │ Modified: N files (incl. Aurora.py)│
  │ Deleted: N files                   │
  │ Affected components: [list]        │
  │ Affected graph documents: G1/G2/G6/G7 │
  └────────────────────────────────────┘
Step 5: Rerun only the affected scope:
  - Phase K2: regenerate t
Câu hỏi thường gặp

Skill này dành cho dự án cỡ nào?

Skill nói nó phù hợp với dự án có mười repository trở lên và nhiều năm thay đổi.

Nó có cần phần mềm bổ sung không?

Skill nói nó cần Python 3 và teamai CLI, không cần plugin bổ sung.

Tài liệu được viết bằng ngôn ngữ nào?

Skill nói nó viết bằng tiếng Trung giản thể, như các phiên bản trước.

Chi tiết

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

Make AI truly understand large codebases: for multi-repository, multi-microservice projects that have evolved over years, run architecture reverse-engineering + a Graph RAG graph + multi-language AST to compress a huge codebase into a structured knowledge base, where every conclusion traces back to a code line and every relation carries a confidence label. Suited to projects with 10+ repositories or microservices that AI cannot understand globally by reading the code directly. Triggers: architecture analysis, architecture reverse-engineering, codebase knowledge base, code-to-knowledge, archite

repo: Tencent/teamai-cli

Độ phổ biến

Sao GitHub
5.7k
Vị trí xếp hạng
#14744
Giấy phép
—
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ự