share
它能做什么
这项技能教智能体如何总结一次编程会话解决了什么问题或学到了什么,然后把总结保存到团队共享知识库中,方便其他人查找。
适用场景
- ✓当用户想把编程会话学到的内容分享给全团队的时候。
- ✓当某次会话找到了团队其他人也应该知道的变通方法或修复方法的时候。
- ✓当 TeamAI 提示需要分享刚结束的会话中的学习心得的时候。
技能链接
https://github.com/Tencent/teamai-cli/blob/main/skill-data/share/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请总结我在这次会话中弄明白的内容,并分享到团队知识库。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会回顾会话,撰写一份带有标题和命名空间的简短学习文档。在本人确认后,它会使用 teamai contribute 命令发布。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Contribute — share what a session taught you with the team
Summarize what this AI coding session taught you and push it to the team knowledge base.
Who sent you here
- The
learningstep of ateamai-share-learningsrun (its brief names this skill): work steps 1–3 of How It Works with the person, in this session rather than a sub-agent. The session may have taught more than one thing: write each learning the person wants to share to its own document outside the repository, and return them as the list the brief asks for, each with its path, title and learnings namespace; return an empty list when nothing is worth sharing. Do not runteamai contribute: the run'scontributestep runs it for each one after its approval. - The friction reminder (its
[teamai]text namesteamai skill get share): teamai already found thatteamai-share-learningscannot run here. Follow How It Works to the end. - The person asked to share what this session taught, or to close it: start the
teamai-share-learningsworkflow (to only publish or score it,teamai-share-session). Runteamai workflow start --describe teamai-share-learnings --driver skill, give the person each proposed input with itswhy, and start it with those values once they confirm or change them (teamai skill get workflowcovers the run). Itslearningstep brings you back here. When describe refuses it (invoke_denied,unattended_denied,nested_workflow), tell the person why and follow How It Works to the end. - Anything else in When to Use: follow How It Works to the end.
Write the document in Simplified Chinese, as earlier releases required. Commands, flags, URLs, paths and code identifiers stay as they are.
When to Use
- When teamai suggests this session has valuable content worth sharing
- When you've solved a tricky problem and want to document the solution
- When you've discovered a useful workflow or pattern
- After a long session with diverse tool usage
- When
teamai scoreprinted a label that did not pass: read the reasoning file it names (<dataHome>/scores/reasoning/<labelVersion>.md) and turn what went wrong into a learning, contributed with the--session-idthat line gives, if any. Summarize it; do not paste the file
How It Works
- Summarize: review the tools used, the problems solved and the patterns found in this session
- Write the document: a Markdown document (language as above) covering:
- What the task or problem was
- The key decisions and why they were made
- The solution, workaround or pattern discovered
- Which tools or skills proved especially useful
- Pitfalls and things to watch out for
- Save it: write the document to a temporary file
- Push it to the team: run
teamai contribute --file <path> --title "<title>"
Document Template
Copy the template, the frontmatter field table and the tag taxonomy from
{SKILL_DIR}/references/doc-template.md. The frontmatter is required: it is what
makes the document searchable.
Example
# After writing the summary to /tmp/session-summary.md
teamai contribute --file /tmp/session-summary.md --title "Debugging K8s pod startup timeouts"
Important
- Outside a
teamai-share-learningsrun, run this as a sub-agent (Agent tool) to avoid polluting the main session's context - The document is pushed to the team repo's
teamai-learningsbranch, underlearnings/, with no pull request - Team members will see it on their next
teamai pull - Keep summaries concise and actionable — this is a knowledge base, not a diary
Publishing a reusable skill instead
A member asking to publish a skill ("share this xxx skill with my team") is a
different flow, and it does not need recall: it lives in the core skill, at
"$(teamai skill path core)/references/contribute-member.md". This file
is for turning a session into a learning.
References
In the files below, {SKILL_DIR} is the directory teamai skill path share prints; a reference file you open on its own writes that directory as SKILL_DIR in braces.
| File | When to load it |
|---|---|
{SKILL_DIR}/references/doc-template.md |
Writing the learning document: template, frontmatter fields, tag taxonomy. |
teamai skill get share --full prints this skill with its reference appended.
常见问题
我的会话会被自动分享吗?
不会。这项技能说明,只有在本人批准后才会分享学习内容。
我需要自己写总结吗?
不需要。智能体会根据会话起草总结,由你确认要分享的内容。
一次会话可以产生多份学习笔记吗?
可以。这项技能说明一次会话可以学到多件事,每件事都有自己的文档。
详情
作者的原始描述
Turn a session into a team learning: summarize what was solved, discovered or worked around, and publish it to the team knowledge base with `teamai contribute`. Loaded on demand by the teamai discovery stub, by the learning step of the teamai-share-learnings workflow, and by the friction reminder where teamai-share-learnings is not offered.
repo: Tencent/teamai-cli
热度
- GitHub 星标
- 5.7k
- 排名
- #14743
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
core
5.7k帮你的智能体通过拉取和推送,同步团队共享的 AI 技能和规则,检查其状态,运行健康检查,并调用其他 TeamAI 工作流。
setup
5.7k帮你的智能体为团队设置 TeamAI,可以作为管理员创建新的团队仓库,也可以加入已有的仓库,并管理成员、角色和移除。
wiki
5.7k帮你的智能体把庞大的多仓库代码库整理为结构化的知识库,其中每个结论都链接到它所来自的代码行。
workflow-local
5.7k帮你的智能体在这台机器上无人值守地运行团队工作流,适用于 CI 任务或云端智能体,且所有答案都在运行开始前确定。