Create Agent
vectorize-io/hindsight
Create a new Hindsight-powered subagent with long-term memory.
This skill should be used when the user asks to "create a team", "create agent team", "蜂群", "swarm", "团队协作", "parallel agents", "spawn teammates", "多 agent 协作", "组建团队", or executes "/swarm".
$ npx skills add apple-ouyang/book-to-skill --skill swarm -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install apple-ouyang/book-to-skill swarm --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/apple-ouyang/book-to-skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/swarm .claude/skills/swarm && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "swarm" agent skill from https://github.com/apple-ouyang/book-to-skill/tree/main/skills/swarm into .claude/skills/swarm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swarm", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/apple-ouyang/book-to-skill/tree/main/skills/swarmType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add apple-ouyang/book-to-skill --skill swarm -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install apple-ouyang/book-to-skill swarm --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/apple-ouyang/book-to-skill.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/swarm .agents/skills/swarm && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "swarm" agent skill from https://github.com/apple-ouyang/book-to-skill/tree/main/skills/swarm into .agents/skills/swarm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swarm", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add apple-ouyang/book-to-skill --skill swarm -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install apple-ouyang/book-to-skill swarm --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/apple-ouyang/book-to-skill.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/swarm .cursor/skills/swarm && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "swarm" agent skill from https://github.com/apple-ouyang/book-to-skill/tree/main/skills/swarm into .cursor/skills/swarm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swarm", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/apple-ouyang/book-to-skill.git --path skills/swarm--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add apple-ouyang/book-to-skill --skill swarm -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install apple-ouyang/book-to-skill swarm --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/apple-ouyang/book-to-skill.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/swarm .gemini/skills/swarm && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "swarm" agent skill from https://github.com/apple-ouyang/book-to-skill/tree/main/skills/swarm into .gemini/skills/swarm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swarm", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install apple-ouyang/book-to-skill swarmInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add apple-ouyang/book-to-skill --skill swarm -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/apple-ouyang/book-to-skill.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/swarm .github/skills/swarm && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "swarm" agent skill from https://github.com/apple-ouyang/book-to-skill/tree/main/skills/swarm into .github/skills/swarm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swarm", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add apple-ouyang/book-to-skill --skill swarm -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install apple-ouyang/book-to-skill swarm --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/apple-ouyang/book-to-skill.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/swarm .opencode/skills/swarm && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "swarm" agent skill from https://github.com/apple-ouyang/book-to-skill/tree/main/skills/swarm into .opencode/skills/swarm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swarm", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
swarmThis skill should be used when the user asks to "create a team", "create agent team", "蜂群", "swarm", "团队协作", "parallel agents", "spawn teammates", "多 agent 协作", "组建团队", or executes "/swarm".
Swarm is an agent skill from apple-ouyang/book-to-skill. This skill should be used when the user asks to "create a team", "create agent team", "蜂群", "swarm", "团队协作", "parallel agents", "spawn teammates", "多 agent 协作", "组建团队", or executes "/swarm". Analyzes user tasks, designs optimal team structure (roles, count, prompts), presents plan for confirmation, then orchestrates team execution.
Its SKILL.md is about 830 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/agent-types.md` and `references/team-patterns.md`).
It sits in Agent Workflows, covering Building AI agents and Subagents. The repository describes itself as: 把书拆成 AI Agent 可执行的 Skill,让书中的智慧变成你的决策副驾驶 | Turn books into executable AI Agent Skills. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit a24960a. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Swarm loads about 826 tokens when it runs, and up to ~2.6k if it reads all its reference files. Until then it costs about 85 tokens; SKILL.md has 173 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from apple-ouyang/book-to-skill at commit a24960a, republished under its MIT licence (© apple-ouyang). 173 words, ~826 tokens.
.claude/skills/swarm/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.分析用户任务,自动规划 Agent 团队结构(角色、数量、提示词),确认后执行团队协作。
分析任务 → 选择团队模式 → 设计角色与提示词 → 用户确认 → 创建团队 → 分配任务 → 监控执行收到用户任务描述后,从以下维度分析:
| 维度 | 评估内容 |
|---|---|
| 任务类型 | 功能开发 / 代码审计 / Bug 调试 / 技术选型 / 重构迁移 |
| 可并行度 | 哪些子任务可以同时进行 |
| 文件冲突 | 不同角色是否会修改同一文件 |
| 依赖关系 | 哪些任务必须按顺序执行 |
| 复杂度 | 决定团队规模(2-8 人) |
根据分析结果,从预定义模式中选择最匹配的模式。详见 references/team-patterns.md。
五种基础模式:
可混合使用或自定义。如果任务不完全匹配任何模式,基于模式原则自行设计。
为每个 teammate 设计:
frontend-dev、security-reviewer)references/agent-types.md)提示词结构:
角色:{role}
职责:{responsibilities}
工作范围:
- 只修改:{allowed_dirs}
- 不要触碰:{excluded_dirs}
输出要求:
- {output_format}
协作规则:
- 发现跨模块影响时,通过消息通知 {related_teammate}
- 完成后标记任务为 completed
完成标准:
- {completion_criteria}以结构化格式展示团队计划,等待用户确认:
## 团队计划
**任务**:{task_description}
**模式**:{pattern_name}
**团队规模**:{count} 人
### 角色分配
| # | 角色 | Agent 类型 | 模型 | 职责概要 |
|---|------|-----------|------|---------|
| 1 | {name} | {type} | {model} | {summary} |
| ...
### 任务列表与依赖
| ID | 任务 | 负责人 | 依赖 |
|----|------|--------|------|
| 1 | {task} | {owner} | - |
| 2 | {task} | {owner} | blockedBy: 1 |
| ...
### 文件分工(避免冲突)
| 角色 | 可操作目录 |
|------|-----------|
| {name} | {dirs} |
| ...
确认此计划?(Y/修改建议)使用 AskUserQuestion 工具让用户确认或提出修改。
用户确认后,按以下顺序执行:
TeamCreate → team_name: "{task-slug}"按计划创建所有任务(TaskCreate),设置依赖关系(TaskUpdate + addBlockedBy)。
对每个角色,使用 Task 工具启动 teammate:
Task → subagent_type: "{agent_type}"
name: "{role_name}"
team_name: "{team_name}"
model: "{model}"
mode: "{permission_mode}"
prompt: "{designed_prompt}"通过 TaskUpdate 将任务分配给对应 teammate(设置 owner)。
团队运行期间:
所有任务完成后:
最重要的规则:不同 teammate 不能同时修改同一文件。
领导应专注协调,不直接写代码。如果发现自己在实现任务,停下来分配给 teammate。
模糊的提示词导致 teammate 偏离方向。包含:
references/team-patterns.md — 五种团队模式模板、决策树、规模建议references/agent-types.md — Agent 类型能力对照、模型选择、提示词模板© apple-ouyang, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (references) in skills/swarm of apple-ouyang/book-to-skill.
Open the folder on GitHubat commit a24960a
Swarm next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Swarm this skillapple-ouyang/book-to-skill | 161 | — | ~826 | Automated safety check: Pass | MIT | |
| Create Agentvectorize-io/hindsight | 48k | — | ~1.1k | Automated safety check: Pass | MIT | |
| Adk Debuggoogle/adk-python | 22k | — | ~837 | Automated safety check: Pass | Apache-2.0 | |
| Deep Agentslangchain-ai/docs | 426 | — | ~1.1k | Automated safety check: Pass | MIT | |
| Create AgentApocrathia/home-assistant-config | 179 | — | ~1.1k | Automated safety check: Pass | None | |
| Agent Creatorsickn33/agentic-awesome-skills | 47k | 1 repos | ~2.7k | Automated safety check: Pass | MIT |
vectorize-io/hindsight
Create a new Hindsight-powered subagent with long-term memory.
google/adk-python
Diagnoses misbehaving ADK agents by inspecting sessions, events, tool calls, and the exact request that reached the model.
langchain-ai/docs
Build batteries-included agents with planning, context management, subagent delegation, and sandboxed execution.
Apocrathia/home-assistant-config
Create a new agent persona under .agents/agents/. An agent skill from Apocrathia/home-assistant-config.
sickn33/agentic-awesome-skills
Create custom AI subagents with proper plugin structure, persona generation, and companion routing skills.
testdouble/han
Builds a new Claude Code agent (subagent) from scratch through a relentless, evidence-based interview that walks the agent's design tree decision-by-decision — entity fit, domain focus and…
apple-ouyang/book-to-skill
A skill your agent uses when facing a significant decision, evaluating options, or feeling stuck between choices.
apple-ouyang/book-to-skill
A skill your agent uses when a decision feels obvious or everyone agrees, when evaluating omeone's proposal or pitch, when in a team debate that's going nowhere, or when you suspect confirmation…
apple-ouyang/book-to-skill
A skill your agent uses when committing resources to a project, investment, or relationship.
apple-ouyang/book-to-skill
A skill your agent uses when tempted to predict, analyze, or debate whether something will work instead of testing it.
apple-ouyang/book-to-skill
把一本书拆解成 Claude Code 可执行的 Skill。当用户说"拆书"、"把这本书变成 Skill"、"book to skill"、"extract skill from book" 时触发。
Categories
This skill should be used when the user asks to "create a team", "create agent team", "蜂群", "swarm", "团队协作", "parallel agents", "spawn teammates", "多 agent 协作", "组建团队", or executes "/swarm". Swarm is an agent skill from apple-ouyang/book-to-skill. This skill should be used when the user asks to "create a team", "create agent team", "蜂群", "swarm", "团队协作", "parallel agents", "spawn teammates", "多 agent 协作", "组建团队", or executes "/swarm".
Swarm fits situations like: asks to create a team; create agent team; parallel agents; spawn teammates.
Run `npx skills add apple-ouyang/book-to-skill --skill swarm -a claude-code`. Or copy the skill folder (skills/swarm in apple-ouyang/book-to-skill) into .claude/skills/swarm in your project. Claude Code loads it when a task matches its description.
Run `npx skills add apple-ouyang/book-to-skill --skill swarm -a codex`. Or copy the skill folder (skills/swarm in apple-ouyang/book-to-skill) into .agents/skills/swarm in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add apple-ouyang/book-to-skill --skill swarm -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/swarm, .gemini/skills/swarm, .github/skills/swarm and .opencode/skills/swarm in your project.
SKILL.md names no scripts, command-line tools or credentials: Swarm is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Swarm is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 826 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.8k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Swarm: Create Agent (vectorize-io/hindsight, 48k stars), Adk Debug (google/adk-python, 22k stars), Deep Agents (langchain-ai/docs, 426 stars) and Create Agent (Apocrathia/home-assistant-config, 179 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
apple-ouyang (a GitHub user) maintains it in apple-ouyang/book-to-skill, which has 161 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on February 25, 2026.
Source: apple-ouyang/book-to-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.