Part of the TeamAI CLI Usage Guide.
| What you are doing | Section |
|---|---|
| Creating the team repo | Set up a team |
| Joining a repo that already exists | Join a team |
| Share a skill, rule, or other AI asset you wrote with the team | Share with the team |
-
Create an empty repository on GitHub, GitLab, GitCode, CNB, TGit, or a private Git host.
<team-name>-teamaiis a clear name. Give teammates permission to push branches, and leave the default branch protected. No repo yet? Fork one from teamai-hub. -
Initialize in the project where you use your AI tool.
In your AI tool:
Install the teamai skill: https://github.com/Tencent/teamai-cli/tree/main/skills/teamai , load the teamai skill, then set up TeamAI for my team from scratch.Or in a terminal:
cd /path/to/my-workspace teamai init https://github.com/your-org/your-repoinitdetects the Git host, signs you in if needed, registers you as a member, installs a session-start hook in the AI tools it finds, and pulls. -
Check it.
teamai doctor # every line should pass teamai status # empty right after init
-
Publish one file so the first pull is not empty. Put a skill in
~/.claude/skills/<name>/SKILL.md(or a rule in~/.claude/rules/<name>.md) and runteamai push. Merge the pull request it opens. -
Send the repo URL to the team.
More management features are in Distribution mechanism.
You need the repo URL.
-
Initialize in the project where you use your AI tool.
In your AI tool:
/teamai Help me join my team's TeamAI, repo URL is https://github.com/your-org/your-repoOr in a terminal:
cd /path/to/my-workspace teamai init https://github.com/your-org/your-repoAdd
--scope userto install into your home directory. Every project on this machine then sees the files. Without that flag, files install into this project. -
Check it.
teamai doctor teamai list # the team's skills, rules, docs, env, agents, hooks and MCP servers -
Open your AI tool in that project.
Day-to-day commands are in the Member Guide. Searching what teammates learned is in Team Context.
You have a skill, rule, agent, or MCP server that teammates should have.
-
Push it.
In your AI tool:
/teamai Share my <name> skill with the teamOr in a terminal:
teamai push # pick from what it finds under your AI tools teamai push --skill ~/.claude/skills/<name>
pushfills in missingSKILL.mdfrontmatter, pushes a branch, and opens a pull request on the team repo. -
A reviewer on the team repo merges the pull request.
-
The next session on a teammate's machine pulls it.
teamai list skills --source reposhows it before that session.
The pull request is merged, and teamai list skills --source repo shows the skill.
Roles and namespaces are in Distribution mechanism. The format of each asset is in Core Harness.
Run teamai doctor. It names a missing hook, a tool it did not detect, or a token that is not set, and prints a fix. Other cases are in Uninstall & FAQ.
| Next | Read |
|---|---|
Talk with /teamai |
teamai skill |
| More management features | Distribution mechanism |
| How to write skills, rules, and the rest | Core Harness |
| After you have joined | Member Guide |