wiki
Что он делает
Этот скилл учит агента описывать большой программный проект из многих репозиториев и сервисов. Он строит базу знаний, которая объясняет, как части связаны между собой, чтобы люди и ИИ могли понять систему целиком.
Когда использовать
- ✓Когда у команды десять и более репозиториев и никто больше не понимает всю систему.
- ✓Когда пользователю нужно проследить бизнес-правила через множество сервисов до кода.
- ✓Когда пользователь хочет обновить существующую базу знаний команды, сохранив её имена файлов.
Ссылка на скилл
https://github.com/Tencent/teamai-cli/blob/main/skill-data/wiki/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“У моей команды пятнадцать микросервисов в разных репозиториях. Можешь описать, как они связаны, и привязать каждое утверждение к коду?”
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
Частые вопросы
Для проектов какого размера это подходит?
Скилл указывает, что он подходит для проектов с десятью и более репозиториями и годами изменений.
Нужно ли дополнительное программное обеспечение?
Скилл указывает, что нужны Python 3 и CLI teamai, а дополнительный плагин не нужен.
На каком языке пишутся документы?
Скилл указывает, что документы пишутся на упрощённом китайском, как в предыдущих версиях.
Подробности
Оригинальное описание автора
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
- Лицензия
- —
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
core
5.7kПомогает агенту синхронизировать общие ИИ-скиллы и правила команды командами pull и push, проверять их статус, запускать проверку работоспособности и переходить к другим рабочим процессам TeamAI.
setup
5.7kПомогает агенту настроить TeamAI для команды: создать новый репозиторий команды как администратор или присоединиться к существующему, а также управлять участниками, ролями и удалением.
share
5.7kПомогает агенту превратить то, что сессия программирования показала, в короткий командный урок и опубликовать его в общей базе знаний команды командой teamai contribute.
workflow-local
5.7kПомогает агенту запускать командный рабочий процесс без участия человека на этой машине, для заданий CI или облачных агентов, с заранее определёнными ответами на все вопросы.
Похожие скиллы
technical-documentation
394kПомогает агенту писать и проверять понятную техническую документацию и инструкции для агентов, чтобы людям и ИИ-инструментам было легко по ним работать.
architecture-decision-records
280kАгент записывает важные решения о структуре проекта. Помогает понимать причины выбора и вести ясную историю изменений.
code-tour
280kАгент создаёт пошаговые экскурсии по коду с точными ссылками на файлы и строки. Полезен для знакомства, объяснений и ревью.