spawn – skill Marketing & SEO cho agent AI
Khởi chạy N subagent song song trong các git worktree riêng biệt để cạnh tranh trên tác vụ của phiên. Dùng khi người dùng chạy /hub:spawn hoặc yêu cầu bắt đầu các agent cạnh tranh cho phiên AgentHub đã khởi tạo.
Cài skill spawn bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/spawn-34aa9.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /spawn – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/spawn-34aa9.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $spawn – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/spawn-34aa9.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /spawn – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/spawn-34aa9.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /spawn – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
/hub:spawn — Launch Parallel Agents
Spawn N subagents that work on the same task in parallel, each in an isolated git worktree.
Usage
/hub:spawn # Spawn agents for the latest session
/hub:spawn 20260317-143022 # Spawn agents for a specific session
/hub:spawn --template optimizer # Use optimizer template for dispatch prompts
/hub:spawn --template refactorer # Use refactorer templateTemplates
When --template <name> is provided, use the dispatch prompt from ../agenthub/references/agent-templates.md instead of the default prompt below. Available templates:
| Template | Pattern | Use Case |
|----------|---------|----------|
| optimizer | Edit → eval → keep/discard → repeat x10 | Performance, latency, size reduction |
| refactorer | Restructure → test → iterate until green | Code quality, tech debt |
| test-writer | Write tests → measure coverage → repeat | Test coverage gaps |
| bug-fixer | Reproduce → diagnose → fix → verify | Bug fix with competing approaches |
When using a template, replace all {variables} with values from the session config. Assign each agent a different strategy appropriate to the template and task — diverse strategies maximize the value of parallel exploration.
What It Does
1. Load session config from .agenthub/sessions/{session-id}/config.yaml
2. For each agent 1..N:
- Write task assignment to
.agenthub/board/dispatch/ - Build agent prompt with task, constraints, and board write instructions
3. Launch ALL agents in a single message with multiple Agent tool calls:
Agent(
prompt: "You are agent-{i} in hub session {session-id}.
Your task: {task}
Read your full assignment at .agenthub/board/dispatch/{seq}-agent-{i}.md
Instructions:
1. Work in your worktree — make changes, run tests, iterate
2. Commit all changes with descriptive messages
3. Write your result summary to .agenthub/board/results/agent-{i}-result.md
Include: approach taken, files changed, metric if available, confidence level
4. Exit when done
Constraints:
- Do NOT read or modify other agents' work
- Do NOT access .agenthub/board/results/ for other agents
- Commit early and often with descriptive messages
- If you hit a dead end, commit what you have and explain in your result",
isolation: "worktree"
)4. Update session state to running via:
python {skill_path}/scripts/session_manager.py --update {session-id} --state runningCritical Rules
- All agents in ONE message — spawn all Agent tool calls simultaneously for true parallelism
- isolation: "worktree" is mandatory — each agent needs its own filesystem
- Never modify session config after spawn — agents rely on stable configuration
- Each agent gets a unique board post — dispatch posts are numbered sequentially
After Spawn
Tell the user:
- {N} agents launched in parallel
- Each working in an isolated worktree
- Monitor with
/hub:hub-status - Evaluate when done with
/hub:eval
Skill liên quan
- stage-launch – Giai đoạn 2 của việc xây dựng Claude Managed Agent: chuyển bảng thiết kế đã kiểm chứng…
- idea-autopsy – Mổ xẻ ý tưởng kinh doanh trước khi xây dựng: kiểm tra danh sách loại trừ, năm bộ lọc…
- identity-access-management – Thiết lập và quản lý SSO, đồng bộ SCIM và MFA cho các đội startup dùng Google Workspace…
- indexing-issue-auditor – Chuyên gia kiểm tra SEO kỹ thuật và kiến trúc site cấp cao. Gọi để quét môi trường local…
- instagram – Tích hợp Instagram đầy đủ qua Graph API. Đăng bài, analytics, bình luận, DM, hashtag…
- intern-program – Sổ theo dõi thực tập sinh: thực tập sinh và phòng ban, người giám sát và mentor, cơ sở…
- jev-social – Chạy nghiên cứu chỉ đọc, dựa trên trình duyệt về Instagram, TikTok hoặc LinkedIn thông…
- jobs-to-be-done-analyst – Khám phá các "công việc cần hoàn thành" (jobs) chức năng, cảm xúc và xã hội mà khách…