wiki
できること
このスキルは、多くのリポジトリとサービスからなる大規模なソフトウェアのプロジェクトを、対応づける方法をエージェントに教えます。部分同士の関係を説明する知識ベースを作り、人もAIも全体を理解できるようにします。
使う場面
- ✓リポジトリが10個以上あり、システム全体を誰も理解していないとき。
- ✓複数のサービスにまたがる業務ルールを、コードまで遡ってたどる必要があるとき。
- ✓既存のチームの知識ベースを、ファイル名を保ったまま更新したいとき。
スキルのリンク
https://github.com/Tencent/teamai-cli/blob/main/skill-data/wiki/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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 wikito get their absolute path;{SKILL_DIR}in this document refers to that path; a reference file you open on its own writes that directory asSKILL_DIRin 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.pyaccepts both the current English and the earlier Chinese headings. The Phase 0 structural baseline usesteamai 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
コメント
- …
このリポジトリの他のスキル
core
5.7kエージェントが、チームの共有のAIスキルとルールを、pullとpushで同期し、その状態を確認し、健全性チェックを実行して、他のTeamAIのワークフローにつなげられるよう支援します。
setup
5.7kエージェントが、管理者として新しいチームのリポジトリを作るか、既存のものに参加して、TeamAIを設定できるよう支援します。メンバー、役割、削除も管理します。
share
5.7kエージェントが、コーディングのセッションで分かったことを短い学習の内容にまとめ、teamai contributeコマンドでチームの知識ベースに公開できるよう支援します。
workflow-local
5.7kエージェントが、CIのジョブやクラウドのエージェントのために、このマシン上でチームのワークフローを無人で実行できるよう支援します。すべての回答は実行の前に決まっています。
似ているスキル
technical-documentation
394k明確な技術ドキュメントやエージェントの指示ファイルを書いて確認し、人やAIツールが簡単に従えるようエージェントを支援します。
architecture-decision-records
280kエージェントがプロジェクト構成に関する重要な決定を記録できるようにします。選択の理由を把握しやすくし、変更履歴を明確に残すのに役立ちます。
code-tour
280kエージェントが正確なファイル名と行番号を示しながら、コードを段階的に解説できるようにします。紹介、説明、レビューに役立ちます。