Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add pandego/parallel-thread-skill --skill "pthd (Parallel Terminal Hydra)"
Install specific skill from multi-skill repository
# Description
Spawn multiple parallel agent processes using mprocs. Use when user wants to run the same prompt across multiple agents simultaneously.
# SKILL.md
name: pthd (Parallel Terminal Hydra)
description: Spawn multiple parallel agent processes using mprocs. Use when user wants to run the same prompt across multiple agents simultaneously.
Purpose
Spawn multiple parallel agent instances using mprocs. Each agent runs the same prompt in its own terminal pane.
Variables
ENABLE_CLAUDE_CODE: true
ENABLE_GEMINI_CLI: true
ENABLE_CODEX_CLI: true
TOOL_ALIASES:
cc: claude-code
gem: gemini-cli
codex: codex-cli
Instructions
Parse the user's request to extract:
1. Prompt: The task/prompt to run on all agents
2. Tool specification: Which tools and how many instances
Tool Specification Formats
3 cc, 3 gem, 3 codex- Explicit count per toolcc 2, gem 1- Alternate syntax4- Single number means all enabled tools with that count
Agent Name Placeholder
Use {{AGENT}} in prompts - replaced with unique agent name (cc-1, gem-2, etc.).
When user mentions saving files with dynamic names (<agent>, $agent), convert to {{AGENT}}.
Parallel Summary Prompts
- IF: The user requests parallel agents with summary context (e.g., "include summary", "with context").
- THEN:
- Read
.claude/skills/pthd/prompts/parallel_agent_prompt.mdas a template. - Fill in
<fill_in_conversation_summary_here>with relevant conversation history. - Fill in
<fill_in_task_here>with the user's task verbatim. - Pass the filled prompt to each parallel agent.
- IMPORTANT: Fill the template IN YOUR MEMORY, don't modify the file.
- EXAMPLES:
- "pthd 3 cc: build a todo app, include summary"
- "spawn agents with context: refactor this code"
Workflow
- Parse the user request for prompt and tool specification
- READ:
.claude/skills/pthd/tools/pthd.pyto understand the implementation - READ the relevant cookbooks for each enabled tool to get command templates
- (First time only) Run
claude --help,gemini --help,codex --helpto understand CLI options - Execute
pthd.pyto generate the mprocs config - Use fork-terminal skill to launch:
mprocs -c /tmp/pthd/<slug>.yml
Cookbook
Claude Code Instances
- IF: User specifies
ccinstances ANDENABLE_CLAUDE_CODEis true - THEN: Read
.claude/skills/pthd/cookbook/claude-code.mdfor command template - EXAMPLES:
- "pthd 3 cc: build a todo app"
- "spawn 2 claude agents for: refactor this code"
Gemini CLI Instances
- IF: User specifies
geminstances ANDENABLE_GEMINI_CLIis true - THEN: Read
.claude/skills/pthd/cookbook/gemini-cli.mdfor command template - EXAMPLES:
- "pthd 3 gem: analyze this codebase"
- "run gemini 2x on: explain this function"
Codex CLI Instances
- IF: User specifies
codexinstances ANDENABLE_CODEX_CLIis true - THEN: Read
.claude/skills/pthd/cookbook/codex-cli.mdfor command template - EXAMPLES:
- "pthd 3 codex: write unit tests"
- "codex x2: implement feature X"
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.