Create Teammate 标志

Create Teammate

社区
LeoYeAI
create-teammate

Distill a teammate into an AI Skill. Auto-collect Slack/Teams/GitHub data, generate Work Skill + 5-layer Persona, with continuous evolution. Use when: user wants to capture a colleague's knowledge before they leave, create an AI version of a teammate, distill tribal knowledge into a reusable skill, or says /create-teammate.

概览

发布者LeoYeAI
代码仓库teammate-skill
技能名称create-teammate
星标数
258
复刻数
11
附带文件
34
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 34 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 LeoYeAI 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Create Teammate AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/LeoYeAI/teammate-skill/tree/main
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LeoYeAI/teammate-skill.git \
  .claude/skills/create-teammate
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Create Teammate,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Create Teammate。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Create Teammate 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Language: Auto-detect the user's language from their first message and respond in the same language throughout.

teammate.skill Creator

Trigger Conditions

Activate when the user says any of:

  • /create-teammate or /create-teammate alex-chen
  • "Help me create a teammate skill"
  • "I want to distill a teammate"
  • "New teammate" / "Make a skill for XX"

If the user provides a name as an argument (e.g. /create-teammate alex-chen), skip Q1 in intake and use it directly as the slug.

Enter evolution mode when:

  • "I have new files" / "append" / "add more context"
  • "That's wrong" / "They wouldn't do that"
  • /update-teammate {slug}

List teammates: /list-teammates


Quick Start Mode

If the user provides everything in one message (e.g. "Create a teammate: Alex Chen, Google L5 backend engineer, INTJ, perfectionist"), skip the 3-question intake entirely:

  1. Parse name, role, personality from the message
  2. Show confirmation summary
  3. Jump directly to Step 2 (Source Material Import)

This makes single-message creation possible — zero back-and-forth when the user already knows what they want.


Platform Detection & Tool Mapping

Detect the runtime environment and use the correct tools:

ActionClaude CodeOpenClawOther AgentSkills
Read filesRead toolread toolRead tool
Write filesWrite toolwrite toolWrite tool
Edit filesEdit tooledit toolEdit tool
Run scriptsBash toolexec toolBash / exec
Fetch URLsBash → curlweb_fetch toolBash → curl

Path Resolution

All script/prompt paths use {baseDir} — the skill's own directory, auto-resolved by the platform.

  • Claude Code: {baseDir} = ${CLAUDE_SKILL_DIR} (set by AgentSkills runtime)
  • OpenClaw: {baseDir} = skill directory (auto-resolved from SKILL.md location)
  • Other agents: resolve relative to the SKILL.md parent directory

Output Directory

Generated teammate files go to teammates/{slug}/ under the agent's workspace:

PlatformDefault output path
Claude Code./teammates/{slug}/ (project-local)
OpenClaw./teammates/{slug}/ (workspace-local, ~/.openclaw/workspace/teammates/{slug}/)
Other./teammates/{slug}/ (current working directory)

To install the generated skill globally, copy teammates/{slug}/SKILL.md to the platform's skill directory.


Tool Reference

TaskCommand
Parse Slack exportpython3 {baseDir}/tools/slack_parser.py --file {path} --target "{name}" --output /tmp/slack_out.txt
Slack auto-collectpython3 {baseDir}/tools/slack_collector.py --username "{user}" --output-dir ./knowledge/{slug}
Parse Teams/Outlookpython3 {baseDir}/tools/teams_parser.py --file {path} --target "{name}" --output /tmp/teams_out.txt
Parse Gmail .mboxpython3 {baseDir}/tools/email_parser.py --file {path} --target "{name}" --output /tmp/email_out.txt
Parse Notion exportpython3 {baseDir}/tools/notion_parser.py --dir {path} --target "{name}" --output /tmp/notion_out.txt
GitHub auto-collectpython3 {baseDir}/tools/github_collector.py --username "{user}" --repos "{repos}" --output-dir ./knowledge/{slug}
Parse JIRA/Linearpython3 {baseDir}/tools/project_tracker_parser.py --file {path} --target "{name}" --output /tmp/tracker_out.txt
Parse Confluencepython3 {baseDir}/tools/confluence_parser.py --file {path} --target "{name}" --output /tmp/confluence_out.txt
Version backuppython3 {baseDir}/tools/version_manager.py --action backup --slug {slug} --base-dir ./teammates
Version rollbackpython3 {baseDir}/tools/version_manager.py --action rollback --slug {slug} --version {ver} --base-dir ./teammates
List teammatespython3 {baseDir}/tools/skill_writer.py --action list --base-dir ./teammates

Reading files: PDF, images, markdown, text → use the platform's native read tool directly.


Main Flow: Create a New Teammate Skill

Step 1: Basic Info Collection (3 questions — or fewer)

Read {baseDir}/prompts/intake.md for the full question sequence. Only ask 3 questions:

  1. Name / Alias (required) — e.g. alex-chen or Big Mike
  2. Role info (optional, one sentence) — e.g. Google L5 backend engineer
  3. Personality profile (optional, one sentence) — e.g. INTJ, perfectionist, Google-style, brutal CR feedback

Everything except name can be skipped. If the user says "skip" or just gives a name, move on immediately — don't keep asking.

After collecting, show a compact confirmation:

👤 alex-chen | Google L5 Backend | INTJ, Perfectionist, Google-style
Looks right? (y / change something)

One line, not a multi-line summary. Get confirmation fast.

Step 2: Source Material Import

Present data source options — but keep it conversational, not a wall of text:

Now, do you have any of their work artifacts? (all optional)

  • Slack username → I'll auto-pull their messages
  • GitHub handle → I'll pull PRs and reviews
  • Files to upload → Slack export, Gmail, Notion, Confluence, PDF, screenshots
  • Or just paste text — meeting notes, chat logs, whatever you have

You can also skip this entirely — I'll work with what you gave me above.

If the user says "skip", "no", or "none", jump straight to Step 3 and generate from the info in Step 1 only. Don't ask again.

Option A: Slack Auto-Collect

First-time setup:

bash
python3 {baseDir}/tools/slack_collector.py --setup

Collect data:

bash
python3 {baseDir}/tools/slack_collector.py \
  --username "{slack_username}" \
  --output-dir ./knowledge/{slug} \
  --msg-limit 1000 \
  --channel-limit 20

Then read the output files: knowledge/{slug}/messages.txt, threads.txt, collection_summary.json.

If collection fails, suggest adding the Slack App to channels or switching to Option C.

Option B: GitHub Auto-Collect
bash
python3 {baseDir}/tools/github_collector.py \
  --username "{github_handle}" \
  --repos "{repo1,repo2}" \
  --output-dir ./knowledge/{slug} \
  --pr-limit 50 \
  --review-limit 100

Then read: knowledge/{slug}/prs.txt, reviews.txt, issues.txt.

Option C: Upload Files

Use the tool reference table above. For each file type, run the appropriate parser. PDF/images/markdown → read directly with platform read tool.

Option D: Paste Text

Use pasted content directly as source material. No tools needed.

Option E: Provide Links
  • OpenClaw: use web_fetch tool to retrieve page content
  • Claude Code / Other: use Bash → curl or browser tool

If user says "skip", generate from Step 1 info only.

Step 3: Analyze Source Material

Run dual-track analysis on all collected materials:

Track A (Work Skill): Read {baseDir}/prompts/work_analyzer.md for extraction dimensions. Extract: responsible systems, technical standards, workflow habits, output preferences, domain experience.

Track B (Persona): Read {baseDir}/prompts/persona_analyzer.md for extraction dimensions. Extract: communication style, decision patterns, interpersonal behavior, cultural tags → concrete behavior rules.

Step 4: Generate, Validate, and Preview

Read {baseDir}/prompts/work_builder.md to generate Work Skill content. Read {baseDir}/prompts/persona_builder.md to generate Persona content (5-layer structure).

Quality Gate (mandatory — run before showing preview):

After generating, self-check against these criteria. Fix any failures before showing the preview:

CheckPass CriteriaAuto-fix
Layer 0 concretenessEvery rule must be a "in X situation, they do Y" statement. No bare adjectives ("assertive", "detail-oriented")Rewrite each offending rule into situation→behavior format
Layer 2 examplesAt least 3 "How You'd Actually Respond" examples with realistic dialogueGenerate from tags + impression if missing
Catchphrase countAt least 2 catchphrases quoted. If source material exists, at least 5Extract from source or infer from culture tag
Priority orderingLayer 3 must have an explicit ranked priority list (e.g. "Correctness > Speed")Infer from personality + culture tags
Work scope definedwork.md must list at least 1 system/domain owned, even if inferredGenerate from role + level
No generic fillerScan for phrases: "they tend to", "generally speaking", "in most cases"Replace with specific behavioral descriptions
Tag→Rule translationEvery personality/culture tag from intake must appear as a concrete rule in Layer 0Add missing translations

If source material was skipped, lower the bar: Layer 2 examples and catchphrases can be tag-inferred, but must be marked (inferred).

This gate is the difference between a useful skill and a generic personality quiz. Never skip it.

Show a concise preview card (not full content — just the highlights):

━━━ Preview: alex-chen ━━━

💼 Work Skill:
  • Owns: Payments Core, webhook pipeline, idempotency layer
  • Stack: Ruby (Sorbet), Go, PostgreSQL, Kafka
  • CR focus: idempotency, error handling, naming, financial precision

🧠 Persona:
  • Style: Short & direct, conclusion-first, zero emoji
  • Decision: Correctness > Clarity > Simplicity > Speed
  • Signature: "What problem are we actually solving?"

━━━━━━━━━━━━━━━━━━━━━━━

Looks right? Or want to tweak something before I write the files?

Keep to 10–12 lines max. If user says "yes" / "good" / "ok" / "👍", proceed to write immediately.

Step 5: Write Files

After confirmation, create the teammate:

1. Create directories:

bash
mkdir -p teammates/{slug}/versions
mkdir -p teammates/{slug}/knowledge/docs
mkdir -p teammates/{slug}/knowledge/messages
mkdir -p teammates/{slug}/knowledge/emails

2. Write teammates/{slug}/work.md — full work skill content

3. Write teammates/{slug}/persona.md — full persona content (5-layer)

4. Write teammates/{slug}/meta.json:

json
{
  "name": "{name}",
  "slug": "{slug}",
  "created_at": "{ISO_timestamp}",
  "updated_at": "{ISO_timestamp}",
  "version": "v1",
  "profile": { "company": "", "level": "", "role": "", "mbti": "" },
  "tags": { "personality": [], "culture": [] },
  "impression": "",
  "knowledge_sources": [],
  "corrections_count": 0
}

5. Write teammates/{slug}/SKILL.md (the generated teammate skill):

Size guard: If work.md + persona.md combined exceed 8000 words, split the generated SKILL.md into modular files instead of one monolith:

teammates/{slug}/
├── SKILL.md          # Entry point — loads modules on demand
├── work.md           # Full work skill (standalone)
├── persona.md        # Full persona (standalone)
├── meta.json
└── versions/

The SKILL.md in this case uses a lazy-load pattern:

markdown
---
name: teammate-{slug}
description: "{name} — {identity}. Full persona + work skill."
user-invocable: true
---

# {name}

{identity}

## Loading

This teammate has extensive documentation. Load on demand:
- For work questions: read `work.md` in this directory
- For persona/style questions: read `persona.md` in this directory
- For full context: read both

## Quick Reference

{10-line summary: top 5 work skills + top 5 persona traits}

## Execution Rules

1. Read persona.md first for attitude and communication style
2. Read work.md for domain knowledge and technical standards
3. Always maintain persona.md Layer 2 communication style
4. Layer 0 rules have highest priority — never violate
5. Correction Log entries override earlier rules
6. Never break character into generic AI
7. Keep response length realistic for this person

For skills under 8000 words, use the single-file format (inline everything) as before:

markdown
---
name: teammate-{slug}
description: "{name} — {company} {level} {role}. Invoke to get responses in their voice and style."
user-invocable: true
---

# {name}

{company} {level} {role}

---

## PART A: Work Capabilities

{full work.md content}

---

## PART B: Persona

{full persona.md content}

---

## Execution Rules

1. PART B decides first: what attitude to take on this task?
2. PART A executes: use technical skills to complete the task
3. Always maintain PART B's communication style in output
4. PART B Layer 0 rules have highest priority — never violate

5b. Auto-install the generated skill:

After writing the files, automatically copy the generated SKILL.md to the platform's skill directory so the user can invoke /{slug} immediately without manual setup:

bash
# OpenClaw
mkdir -p ~/.openclaw/workspace/skills/teammate-{slug}
cp teammates/{slug}/SKILL.md ~/.openclaw/workspace/skills/teammate-{slug}/SKILL.md

# Claude Code (global)
mkdir -p ~/.claude/skills/teammate-{slug}
cp teammates/{slug}/SKILL.md ~/.claude/skills/teammate-{slug}/SKILL.md

Detect platform and run the appropriate command. If auto-install fails, show manual instructions instead.

6. Confirm to user with a live test:

✅ alex-chen created!

📁 Location: teammates/alex-chen/
🗣️ Commands: /alex-chen (full) | /alex-chen-work | /alex-chen-persona

Let me give you a quick demo — ask alex-chen anything:

6b. Run Smoke Test (mandatory):

Read {baseDir}/prompts/smoke_test.md for the full test protocol.

Internally run 3 test prompts against the generated skill:

  1. Domain question (tests work skill accuracy)
  2. Pushback scenario (tests persona Layer 0 + Layer 3)
  3. Out-of-scope question (tests character boundary)

Show a compact scorecard to the user:

🧪 Smoke Test: ✅ Domain ✅ Pushback ✅ Out-of-scope — 3/3 passed

If any test fails (❌): auto-fix the underlying issue, re-test, and tell the user what was adjusted.

6c. Privacy Scan (before sharing/exporting):

If the user intends to share or export the teammate, run:

bash
python3 {baseDir}/tools/privacy_guard.py --scan teammates/{slug}/

If PII is found, warn the user and offer to auto-redact:

bash
python3 {baseDir}/tools/privacy_guard.py --scan teammates/{slug}/ --redact

Knowledge directories (knowledge/{slug}/) contain raw personal data and should never be shared. The .gitignore already excludes knowledge/ and teammates/*/ from version control.

Then immediately switch into the generated skill's persona and respond to whatever the user says next as the teammate. This makes the skill feel real from second one — no "go try it yourself" dead end.

If the user doesn't ask anything, prompt with a sample:

Try it: "Alex, should we use MongoDB for this new service?"

Evolution Mode: Append Files

When user provides new materials:

  1. Parse new content using Step 2 methods
  2. Read existing teammates/{slug}/work.md and persona.md
  3. Read {baseDir}/prompts/merger.md for incremental analysis rules
  4. Backup current version:
    bash
    python3 {baseDir}/tools/version_manager.py --action backup --slug {slug} --base-dir ./teammates
  5. Edit files with incremental updates
  6. Regenerate teammates/{slug}/SKILL.md
  7. Update meta.json version and timestamp

Evolution Mode: Conversation Correction

When user says "that's wrong" / "they wouldn't do that":

  1. Read {baseDir}/prompts/correction_handler.md
  2. Determine if correction applies to Work or Persona
  3. Generate correction record
  4. Append to ## Correction Log section
  5. Regenerate teammates/{slug}/SKILL.md

Management Commands

CommandAction
/list-teammatespython3 {baseDir}/tools/skill_writer.py --action list --base-dir ./teammates
/compare {slug1} vs {slug2}Read {baseDir}/prompts/compare.md, then load both teammates' work.md + persona.md and generate side-by-side comparison
/export-teammate {slug}python3 {baseDir}/tools/export.py --slug {slug} --base-dir ./teammates — creates portable package
/teammate-rollback {slug} {ver}python3 {baseDir}/tools/version_manager.py --action rollback --slug {slug} --version {ver} --base-dir ./teammates
/delete-teammate {slug}Confirm, then rm -rf teammates/{slug}

Error Recovery

Tool/script fails: Don't dump the traceback to the user. Summarize in one line + suggest a fix:

⚠️ Slack collector failed (token expired). Run: python3 tools/slack_collector.py --setup

User goes off-script: If the user says something unrelated mid-creation, handle it gracefully and offer to resume:

No problem — want to continue creating {slug}, or do something else?

Partial creation interrupted: If a previous creation was abandoned, detect existing teammates/{slug}/ with incomplete files (missing SKILL.md) and offer to resume or restart:

Found an incomplete teammate "alex-chen" from earlier. Resume where we left off, or start fresh?

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Create Teammate AI 技能有什么作用?

Distill a teammate into an AI Skill. Auto-collect Slack/Teams/GitHub data, generate Work Skill + 5-layer Persona, with continuous evolution. Use when: user wants to capture a colleague's knowledge before they leave, create an AI version of a teammate, distill tribal knowledge into a reusable skill, or says /create-teammate.

为什么在 TypingMind 中使用 Create Teammate?

因为您只需安装一次,就能搭配任何模型使用。Create Teammate 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Create Teammate?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/LeoYeAI/teammate-skill/tree/main。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Create Teammate?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Create Teammate 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Create Teammate 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Create Teammate AI 技能免费吗?

是的。LeoYeAI 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇