wiki
What it does
This skill teaches an agent how to map a large software project made of many repositories and services. It builds a knowledge base that explains how the parts relate, so people and AI can understand the whole system.
When to use it
- βWhen a team has ten or more repositories and no one understands the whole system anymore.
- βWhen a user needs to trace business rules across many services back to the code.
- βWhen a user wants an existing team knowledge base updated while keeping its file names.
Skill link
https://github.com/Tencent/teamai-cli/blob/main/skill-data/wiki/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βMy team has fifteen microservices across many repos. Can you map how they fit together and tie each claim to the code?β
5 new skills a week. 1 minute to read.
How it works
The agent reads the code with help from scripts and builds a graph of how the components relate. It writes documents in which each claim cites a code line, and each relation carries a confidence label.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
What size of project is this for?
The skill says it suits projects with ten or more repositories and years of change.
Does it need extra software?
The skill says it needs Python 3 and the teamai CLI, and no extra plugin.
What language are the documents written in?
The skill says it writes in Simplified Chinese, as earlier releases did.
Details
Original description by the author
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
Popularity
- GitHub stars
- 5.7k
- Ranking position
- #14744
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
core
5.7kHelps your agent sync your team's shared AI skills and rules with pull and push, check their status, run a health check, and reach other TeamAI workflows.
setup
5.7kHelps your agent set up TeamAI for a team, either by creating a new team repo as admin or joining an existing one, and manage members, roles, and removal.
share
5.7kHelps your agent turn what a coding session taught into a short team learning and publish it to the team knowledge base with the teamai contribute command.
workflow-local
5.7kHelps your agent run a team workflow unattended on this machine, for CI jobs or cloud agents, with every answer decided before the run starts.
Similar skills
technical-documentation
394kHelps your agent write and review clear technical docs and agent instruction files, so people and AI tools can follow them easily.
architecture-decision-records
280kHas your agent record important project structure decisions. It helps to understand the reasoning behind choices and maintain a clear history of changes.
code-tour
280kLets your agent create step-by-step code walkthroughs with exact file and line references. Useful for intros, explanations, and reviews.