Master the art of spawning and managing sub-agents. Write prompts that actually work, track running agents, and learn from every outcome. Part of the Hal Stack 🦞
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install agent-orchestration或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install agent-orchestration⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/agent-orchestration/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: agent-orchestration version: 2.0.0 description: "Master the art of spawning and managing sub-agents. Write prompts that actually work, track running agents, and learn from every outcome. Part of the Hal Stack 🦞" author: halthelobster ---
By Hal Labs — Part of the Hal Stack
Your agents fail because your prompts suck. This skill fixes that.
---
You're not prompting. You're praying.
Most prompts are wishes tossed into the void:
❌ "Research the best vector databases and write a report"
You type something reasonable. The output is mid. You rephrase. Still mid. You add keywords. Somehow worse. You blame the model.
Here's what you don't understand: A language model is a pattern-completion engine. It generates the most statistically probable output given your input.
Vague input → generic output. Not because the model is dumb. Because generic is what's most probable when you give it nothing specific to work with.
The model honored exactly what you asked for. You just didn't realize how little you gave it.
---
A prompt is not a request. A prompt is a contract.
Every contract must answer four non-negotiables:
| Element | Question | |---------|----------| | Role | Who is the model role-playing as? | | Task | What exactly must it accomplish? | | Constraints | What rules must be followed? | | Output | What does "done" look like? |
Miss one, the model fills the gap with assumptions. Assumptions are where hallucinations are born.
---
Effective prompts share a specific structure. This maps to how models actually process information.
Who is the model in this conversation?
Not "helpful assistant" but a specific role with specific expertise:
You are a senior product marketer who specializes in B2B SaaS positioning.
You have 15 years of experience converting technical features into emotional benefits.
You write in short sentences. You never use jargon without explaining it.
The model doesn't "become" this identity—it accesses different clusters of training data, different stylistic patterns, different reasoning approaches.
Identity matters. Miss this and you get generic output.
What does the model need to know to do this task exceptionally well?
Context must be:
## Context
### Rules (never change)
- Design system: Tailwind, shadcn components
- Voice: Professional but warm, never corporate
### Current State (may evolve)
- Landing page exists at /landing
- Using Next.js 14 with App Router
### Historical (for reference)
- Originally built with Create React App, migrated Jan 2025
Without labels, the model treats everything as equally optional. Then it rewrites your core logic halfway through.
What specific action must be taken?
Not "write something about X" but precise instructions:
## Task
Produce a 500-word product description that:
- Emphasizes time-saving benefits for busy executives
- Opens with the primary pain point
- Includes 3 specific use cases
- Ends with a clear call to action
The more precisely you define the task, the more precisely the model executes.
This is where most prompts fail.
You're asking for output. You should be asking for how the output is formed.
❌ Bad:
Write me a marketing page.
✅ Good:
## Process
1. First, analyze the target audience and identify their primary pain points
2. Then, define the positioning that addresses those pain points
3. Then, write the page
4. Show your reasoning at each step
5. Do not skip steps
6. Audit your work before reporting done
You don't want answers. You want how the answer is formed.
Think like a director. You're not asking for a scene—you're directing how the scene gets built.
What does "done" actually look like?
If you don't specify, you get whatever format the model defaults to.
## Output Format
Return a JSON object with:
- `headline`: string (max 60 chars)
- `subheadline`: string (max 120 chars)
- `body`: string (markdown formatted)
- `cta`: string (action verb + benefit)
Do not include explanations, notes, or commentary. Only the JSON.
Miss one layer, the structure wobbles. Miss two, it collapses.
---
Prompt portability is a myth.
Different models are different specialists. You wouldn't give identical instructions to your exec assistant, designer, and backend dev.
| Model Type | Best For | Watch Out For | |------------|----------|---------------| | Claude Opus | Complex reasoning, nuanced writing, long context | Expensive, can be verbose | | Claude Sonnet | Balanced tasks, code, analysis | Less creative than Opus | | GPT-4 | Broad knowledge, structured output | Can be sycophantic | | Smaller models | Quick tasks, simple queries | Limited reasoning depth |
Adapt your prompts per model:
The person who writes model-specific prompts will outperform the person with "better ideas" every time.
---
Vagueness isn't flexibility. It's cowardice.
You hedge because being specific feels risky. But the model doesn't read your mind.
Constraints are not limitations. Constraints are instructions.
## Constraints
- Never alter the existing design system
- Always maintain the established voice/tone
- Never change the data model without explicit approval
- Max 3 API calls per operation
- If unsure, ask rather than assume
Every conversation starts at zero. The model doesn't have accumulated context from working with you. Consistency comes from instruction, not memory.
---
If you don't have docs, you're gambling.
| Document | Purpose | |----------|---------| | PRD | What we're building and why | | Design System | Visual rules and components | | Constraints Doc | What must never change | | Context Doc | Current state and history |
The rule: Reference docs in your prompts.
The attached PRD is the source of truth. Do not contradict it.
The design system in /docs/design.md must be followed exactly.
Without explicit anchoring, the model assumes everything is mutable—including your core decisions.
> "Good prompting isn't writing better sentences. It's anchoring the model to reality."
---
## Identity
You are a [specific role] with [specific expertise].
[Behavioral traits and style]
## Context
### Rules (never change)
- [Constraint 1]
- [Constraint 2]
### Current State
- [Relevant background]
### Reference Docs
- [Doc 1]: [what it contains]
- [Doc 2]: [what it contains]
## Task
[Specific, measurable objective]
## Process
1. First, [analysis step]
2. Then, [planning step]
3. Then, [execution step]
4. Finally, [verification step]
Show your reasoning at each step.
## User Stories
1. As [user], I want [goal], so that [benefit]
2. As [user], I want [goal], so that [benefit]
## Output Format
[Exact specification of deliverable]
## Constraints
- [Limit 1]
- [Limit 2]
- [What NOT to do]
## Error Handling
- If [situation]: [action]
- If blocked: [escalation]
## Before Reporting Done
1. Review each user story
2. Verify the output satisfies it
3. If not, iterate until it does
4. Only then report complete
---
For complex tasks where first attempts often fail:
## Mode: Ralph
Keep trying until it works. Don't give up on first failure.
...安装 Agent Orchestration 后,可以对 AI 说这些话来触发它
Help me get started with Agent Orchestration
Explains what Agent Orchestration does, walks through the setup, and runs a quick demo based on your current project
Use Agent Orchestration to master the art of spawning and managing sub-agents
Invokes Agent Orchestration with the right parameters and returns the result directly in the conversation
What can I do with Agent Orchestration in my ai agent & automation workflow?
Lists the top use cases for Agent Orchestration, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/agent-orchestration/ 目录(个人级,所有项目可用),或 .claude/skills/agent-orchestration/(项目级)。重启 AI 客户端后,用 /agent-orchestration 主动调用,或让 AI 根据上下文自动发现并使用。
Agent Orchestration 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Agent Orchestration 可免费安装使用。请查阅仓库了解许可证信息。
Master the art of spawning and managing sub-agents. Write prompts that actually work, track running agents, and learn from every outcome. Part of the Hal Stack 🦞
Agent Orchestration 属于「AI Agent & Automation」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my ai agent & automation tasks using Agent Orchestration
Identifies repetitive steps in your workflow and sets up Agent Orchestration to handle them automatically