본문으로 건너뛰기
Skillpedia
문서화5.7k · #14744

wiki

하는 일

이 스킬은 많은 저장소와 서비스로 이루어진 대규모 소프트웨어 프로젝트를 지도화하는 방법을 에이전트에게 가르칩니다. 구성 요소가 어떻게 연결되는지 설명하는 지식 베이스를 만들어, 사람과 AI가 전체 시스템을 이해할 수 있게 합니다.

사용하는 경우

  • ✓저장소가 10개 이상이고 아무도 전체 시스템을 이해하지 못할 때.
  • ✓여러 서비스에 걸친 업무 규칙을 코드까지 추적해야 할 때.
  • ✓기존 팀 지식 베이스를 파일 이름을 유지한 채 업데이트하고 싶을 때.

스킬 링크

https://github.com/Tencent/teamai-cli/blob/main/skill-data/wiki/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Tencent/teamai-cli/blob/main/skill-data/wiki/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“우리 팀에는 여러 저장소에 걸친 마이크로서비스 15개가 있습니다. 어떻게 연결되는지 지도로 만들고 각 주장을 코드와 연결해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 스크립트의 도움을 받아 코드를 읽고, 구성 요소의 관계를 나타내는 그래프를 만듭니다. 각 주장은 코드 줄을 인용하며, 각 관계에는 신뢰도 라벨이 붙은 문서를 작성합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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
자주 묻는 질문

어느 규모의 프로젝트에 맞나요?

저장소가 10개 이상이고 수년간 변경된 프로젝트에 맞다고 스킬이 설명합니다.

추가 소프트웨어가 필요한가요?

Python 3과 teamai CLI가 필요하며, 추가 플러그인은 필요 없다고 설명합니다.

문서는 어떤 언어로 작성되나요?

이전 버전과 마찬가지로 간체 중국어로 작성한다고 설명합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
5.7k
순위
#14744
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬