经 AI Skill Hub 精选评估,子代理技能 获评「强烈推荐」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.0 分,适合有一定技术背景的用户使用。
子代理编排,支持Codex、Claude等
子代理技能 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
子代理编排,支持Codex、Claude等
子代理技能 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:pip 安装(推荐)
pip install sub-agents-skills
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install sub-agents-skills
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/shinpr/sub-agents-skills
cd sub-agents-skills
pip install -e .
# 验证安装
python -c "import sub_agents_skills; print('安装成功')"
# 命令行使用
sub-agents-skills --help
# 基本用法
sub-agents-skills input_file -o output_file
# Python 代码中调用
import sub_agents_skills
# 示例
result = sub_agents_skills.process("input")
print(result)
# sub-agents-skills 配置文件示例(config.yml) app: name: "sub-agents-skills" debug: false log_level: "INFO" # 运行时指定配置文件 sub-agents-skills --config config.yml # 或通过环境变量配置 export SUB_AGENTS_SKILLS_API_KEY="your-key" export SUB_AGENTS_SKILLS_OUTPUT_DIR="./output"
English | 简体中文 | Русский | Deutsch | Español
Run task-specific agents on different AI coding backends from a single parent tool.
Write an agent once in Markdown, then choose the backend that runs it. Send implementation, review, investigation, and verification work to different coding tools without duplicating the agent definition.
The skill itself follows the Agent Skills standard; the agents it runs are Markdown files under .agents/.

Codex (plugin):
codex plugin marketplace add shinpr/sub-agents-skills
Then open the plugin picker, install Runner, and restart Codex:
/plugins
After restart, invoke the skill as $runner:sub-agents.
Claude Code (plugin):
/plugin marketplace add shinpr/sub-agents-skills
/plugin install runner@sub-agents-skills
/reload-plugins
Grok Build (plugin):
grok plugin marketplace add shinpr/sub-agents-skills
grok plugin install runner --trust
Google Antigravity (plugin):
agy plugin install https://github.com/shinpr/sub-agents-skills/tree/main/plugins/runner
Other clients (Cursor CLI, VS Code, etc.):
Use the install script to copy the skill into the client's skill path:
```bash
Most backends use their CLI's existing authentication. The following backends need additional routing or provider configuration.
<a id="glm-zai"></a> <details> <summary>GLM (Z.ai)</summary>
The glm backend runs the Claude Code binary against GLM's Anthropic-compatible endpoint. Install Claude Code, then set your Z.ai token:
export GLM_API_KEY=<your-z.ai-token>
The runner sends the key through the child environment and points Claude Code at https://api.z.ai/api/anthropic.
</details>
<a id="kimi"></a> <details> <summary>Kimi</summary>
The kimi backend runs the Claude Code binary against Kimi's coding endpoint. Install Claude Code, then set your Kimi API key:
export KIMI_API_KEY=<your-kimi-api-key>
The runner sends the key through the child environment and points Claude Code at https://api.kimi.com/coding/.
Provider-specific keys take priority, so multiple backends can remain configured at the same time:
export GLM_API_KEY=<your-z.ai-token>
export KIMI_API_KEY=<your-kimi-api-key>
export CURSOR_API_KEY=<your-cursor-token> # optional when cursor-agent is logged in
</details>
<a id="opencode"></a> <details> <summary>OpenCode</summary>
The opencode backend uses the model selected in the agent definition. If model is omitted, it uses OpenCode's configured default. Through OpenCode, an agent can run on supported providers, OpenAI-compatible APIs, gateways, or local models.
Configure OpenCode in ~/.config/opencode/opencode.json or the project's opencode.json, then use provider/model syntax when selecting a model:
Requirements: Python 3.9+ and at least one supported backend installed.
To run an agent, describe the task in your prompt:
Use the code-reviewer agent to check my UserService class.
Use the test-writer agent to create unit tests for the auth module.
Use the doc-writer agent to add JSDoc comments to all public methods.
| Field | Values | Description |
|---|---|---|
run-agent | codex, claude, cursor-agent, glm, kimi, grok, antigravity, gemini, opencode, command-code | Which backend executes this agent |
model | Backend-specific model name (optional) | Model passed to the selected CLI; omit to use its configured default |
effort | Backend/model-specific value (optional) | Reasoning-effort override; omit to use the backend/model default |
permission | read-only, safe-edit (default), yolo | Approval/sandbox level the sub-agent runs with |
run-agent is required unless --cli explicitly overrides it for one run.
effort is forwarded unchanged to the selected backend. Accepted values depend on the backend and model, so check the provider documentation before setting it. Invalid combinations fail at runtime. Cursor and Gemini do not support this field.
Permission levels:
read-only: investigation/review mode that prevents direct edits where supported; shell behavior depends on the backend and this mode is not a security boundary (codex -s read-only / claude --permission-mode plan / cursor --mode plan --sandbox enabled / grok --sandbox read-only / antigravity --mode plan --sandbox / gemini --approval-mode plan / OpenCode permission rules / Command Code --permission-mode plan)safe-edit: default non-interactive edit mode (codex -s workspace-write + approval_policy=never / claude --permission-mode acceptEdits / cursor --trust --sandbox enabled / grok --sandbox workspace / antigravity --mode accept-edits --sandbox / gemini --approval-mode auto_edit / OpenCode permission rules / Command Code --yolo --permission-mode auto-accept)yolo: bypass all approvals and sandboxing; use it only for tasks and environments you trust.Sub-agents have no stdin, so the runner uses non-interactive backend modes. The isolation guarantees depend on the selected CLI; permission flags are not equivalent across backends. For Cursor, the sandbox confines supported shell commands, while --mode plan supplies the read-only constraint.
</details>
<details> <summary>Agent authoring guidelines</summary>
Add these sections when the agent needs them:
</details>
<details> <summary>Complete agent example</summary>
Each .md or .txt file in your .agents/ folder becomes an agent. The filename becomes the agent name (e.g., bug-investigator.md → "bug-investigator").
bug-investigator.md
<details> <summary>Agent location and backend selection</summary>
--cli argument (explicit one-run override)run-agent frontmatter--cli always overrides the agent definition's run-agent; omit it for normal runs.
</details>
<details> <summary>Direct runner CLI parameters</summary>
Install the required CLI: - Codex: npm install -g @openai/codex - Claude Code: curl -fsSL https://claude.ai/install.sh | bash - Cursor CLI: curl https://cursor.com/install -fsS | bash - Grok Build: curl -fsSL https://x.ai/cli/install.sh | bash - Google Antigravity: curl -fsSL https://antigravity.google/cli/install.sh | bash - OpenCode: brew install anomalyco/tap/opencode - Command Code: npm install -g command-code
If you use Gemini CLI, install it with npm install -g @google/gemini-cli.
curl -fsSL https://raw.githubusercontent.com/shinpr/sub-agents-skills/main/install.sh | bash -s -- --target .github/skills
sub-agents-skills 是一个专为 AI Agent 设计的技能扩展库,旨在通过标准化的方式为不同的 AI 客户端提供子代理(Sub-Agents)能力。它允许开发者在 Codex、Claude Code 等工具中快速集成具备特定任务能力的 Agent,实现复杂任务的自动化拆解与执行。
运行本项目需要 Python 3.9 或更高版本环境,并且必须安装至少一个受支持的后端(Supported Backends)CLI 工具,以确保 Agent 能够正常调用执行。
根据您使用的客户端进行安装:对于 Codex,请使用 `codex plugin marketplace add shinpr/sub-agents-skills` 命令并安装 Runner 插件;对于 Claude Code,通过 `/plugin marketplace add` 命令添加并安装 runner@sub-agents-skills 后执行 `/reload-plugins`;其他客户端(如 Cursor CLI)也需遵循类似的插件安装流程。
使用非常直观,您只需在 Prompt 中描述任务即可。例如,通过指令 "Use the code-reviewer agent to check my UserService class" 来调用特定的 Agent。系统会根据文件名自动识别 Agent 名称(如 .agents/ 目录下的 bug-investigator.md 会被识别为 bug-investigator)。此外,您可以在同一个项目中混合使用不同的后端来处理不同类型的任务。
Agent 的行为通过文件头(Frontmatter)进行配置。您可以设置 `run-agent` 字段来指定执行该 Agent 的 CLI(如 codex, claude, gemini 等),并利用 `permission` 字段控制权限级别(如 read-only, safe-edit 或 yolo),以实现不同安全等级的沙箱运行环境。
关于 CLI 的选择优先级,系统遵循以下逻辑:首先是命令行参数 `--cli` 的显式覆盖,其次是 Agent 定义中的 `run-agent` 配置,随后是自动检测调用者环境,最后默认使用 `codex`。如果遇到 CLI 未找到的错误(exit code 127),请确保已通过 npm 或 curl 正确安装了对应的 Codex、Claude Code 或 Cursor CLI。
针对常见问题,若遇到 CLI 缺失,请检查是否已安装对应的工具链;若 Agent 权限不足,请检查配置文件中的 `permission` 设置;若需切换执行环境,请通过 `--cli` 参数进行强制覆盖。
高质量的AI工作流项目,支持多种LLM子代理
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:子代理技能 的核心功能完整,质量优秀。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | sub-agents-skills |
| 原始描述 | 开源AI工作流:Cross-LLM sub-agent orchestration as an Agent Skills. Route tasks to Codex, Clau。⭐54 · Python |
| Topics | ai-agentscodexclaudepython |
| GitHub | https://github.com/shinpr/sub-agents-skills |
| License | MIT |
| 语言 | Python |
收录时间:2026-07-07 · 更新时间:2026-07-11 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端