Loading...
Loading...
Compare original and translation side by side
Workflow Name: $1
Description: $2Workflow Name: $1
Description: $2plugins/<plugin-name>/
├── commands/
│ └── <workflow>.md # Lean orchestrator (~50-100 tokens per step)
├── agents/ # Optional: reusable executor agents
│ └── step-executor.md # Custom agent with specific tools/behavior
└── tasks/ # All task instructions directly here
├── step-1-<name>.md # Full instructions (~500+ tokens each)
├── step-2-<name>.md
├── step-3-<name>.md
└── common-context.md # Shared context across workflowsplugins/<plugin-name>/
├── commands/
│ └── <workflow>.md # 轻量化编排器(每步约50-100 tokens)
├── agents/ # 可选:可复用的执行器代理
│ └── step-executor.md # 具备特定工具/行为的自定义代理
└── tasks/ # 所有任务指令直接存放于此
├── step-1-<name>.md # 完整指令(每个约500+ tokens)
├── step-2-<name>.md
├── step-3-<name>.md
└── common-context.md # 工作流间共享的上下文| Component | Context Cost | Purpose |
|---|---|---|
| Orchestrator command | ~50-100 tokens/step | Dispatch and coordinate |
| Task file | ~500+ tokens | Detailed step instructions |
| Sub-agent base | ~294 tokens | System prompt overhead |
| 组件 | 上下文成本 | 用途 |
|---|---|---|
| 编排器命令 | 每步约50-100 tokens | 调度与协调 |
| 任务文件 | 约500+ tokens | 详细步骤指令 |
| 子代理基础 | 约294 tokens | 系统提示开销 |
| Capability | Available | Notes |
|---|---|---|
| Read tool | ✅ Yes | Can read any file |
| Write tool | ✅ Yes | If not restricted |
| Grep/Glob | ✅ Yes | For code search |
| Skills loading | ❌ No | Skills don't auto-load in sub-agents |
| Spawn sub-agents | ❌ No | Cannot nest Task tool |
| Resume context | ✅ Yes | Via |
| 能力 | 是否可用 | 说明 |
|---|---|---|
| Read工具 | ✅ 是 | 可读取任意文件 |
| Write工具 | ✅ 是 | 无限制时可用 |
| Grep/Glob | ✅ 是 | 用于代码搜索 |
| Skills加载 | ❌ 否 | 子代理不会自动加载Skills |
| 生成子代理 | ❌ 否 | 无法嵌套使用Task工具 |
| 恢复上下文 | ✅ 是 | 通过 |
${CLAUDE_PLUGIN_ROOT}Read ${CLAUDE_PLUGIN_ROOT}/tasks/step-1-workflow-name.md and execute.${CLAUDE_PLUGIN_ROOT}Read ${CLAUDE_PLUGIN_ROOT}/tasks/step-1-workflow-name.md and execute.feature-implementationgeneral-purposefeature-implementationgeneral-purposeundefinedundefined
**Note**: All task files (both workflow-specific steps and shared context) are placed directly in `tasks/` without subdirectories.
**注意**:所有任务文件(包括工作流专属步骤和共享上下文)直接放在`tasks/`目录下,无需子目录。undefinedundefinedundefinedundefined---
description: <Workflow description>
argument-hint: <Required arguments>
allowed-tools: Task, Read
model: sonnet
------
description: <工作流描述>
argument-hint: <必填参数>
allowed-tools: Task, Read
model: sonnet
---undefinedundefined| Field | Purpose | Default |
|---|---|---|
| Brief description of workflow purpose | Required |
| Expected arguments description | None |
| Tools the command can use | Inherits from conversation |
| Specific Claude model (sonnet, opus, haiku) | Inherits from conversation |
haikusonnetopus| 字段 | 用途 | 默认值 |
|---|---|---|
| 工作流用途的简要描述 | 必填 |
| 预期参数描述 | 无 |
| 命令可使用的工具 | 继承自对话设置 |
| 指定Claude模型(sonnet, opus, haiku) | 继承自对话设置 |
haikusonnetopusundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined---
description: Execute feature implementation through research, planning, and coding phases
argument-hint: [feature-description]
allowed-tools: Task, Read, TodoWrite
model: sonnet
------
description: 通过调研、规划和编码阶段执行功能实现
argument-hint: [feature-description]
allowed-tools: Task, Read, TodoWrite
model: sonnet
---undefinedundefinedundefinedundefinedundefinedundefined| Limitation | Impact | Workaround |
|---|---|---|
| No nested sub-agents | Sub-agents can't spawn Task tool | Keep all orchestration in main command |
| No skill auto-loading | Sub-agents don't trigger skills | Pass explicit file paths or inline context |
| Fresh context per agent | Each dispatch starts empty | Use resume pattern OR pass summaries |
| File read latency | Extra tool call per step | Acceptable trade-off for context savings |
| 限制 | 影响 | 解决方法 |
|---|---|---|
| 不支持嵌套子代理 | 子代理无法生成Task工具 | 所有编排逻辑放在主命令中 |
| 不自动加载Skills | 子代理不会触发Skills | 传递明确的文件路径或内联上下文 |
| 每个代理上下文全新 | 每次调度都从空开始 | 使用恢复模式或传递摘要 |
| 文件读取延迟 | 每步额外调用一次工具 | 为节省上下文,此开销可接受 |
${CLAUDE_PLUGIN_ROOT}${CLAUDE_PLUGIN_ROOT}${CLAUDE_PLUGIN_ROOT}/tasks/${CLAUDE_PLUGIN_ROOT}/agents/tasks/step-N-<workflow>-<name>.mdstep-1-feature-impl-research.mdstep-2-feature-impl-architecture.mdcommon-context.mdtasks/commands/<workflow-name>.mdagents//customaize-agent:test-prompt${CLAUDE_PLUGIN_ROOT}/tasks/${CLAUDE_PLUGIN_ROOT}/agents/tasks/step-N-<workflow>-<name>.mdstep-1-feature-impl-research.mdstep-2-feature-impl-architecture.mdcommon-context.mdtasks/commands/<workflow-name>.mdagents//customaize-agent:test-prompt