From polydev
This skill should be used at conversation start when user mentions parallel, multiple tasks/features, worktrees, lists 2+ independent work items, or similar keywords - determines which polydev skill to use.
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-2 --plugin shikihane-polydevThis skill uses the workspace's default tool permissions.
Use polydev skills when the user mentions:
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
Use polydev skills when the user mentions:
At the start of this session, read the polydev scripts path:
cat ~/.polydev/scripts-path
# Example output: /home/user/.claude/plugins/cache/polydev-marketplace/polydev/1.5.0/scripts
Remember the full absolute path from the output above, then use it directly in all commands.
Example:
# ✓ CORRECT - Use full path directly
/path/to/polydev/scripts/spawn-session.sh myproject feature/auth .worktrees/feature-auth PLAN.md
# ✗ WRONG - Do not use variables
"$POLYDEV_SCRIPTS/spawn-session.sh" myproject feature/auth .worktrees/feature-auth PLAN.md
# ✗ WRONG - Do not use relative paths
./scripts/spawn-session.sh myproject feature/auth .worktrees/feature-auth PLAN.md
Note: If
~/.polydev/scripts-pathdoesn't exist, polydev is not installed.
User message received
|
Contains parallel/multiple keywords?
| YES
Is it complex/unclear? --YES--> Run /polydev-brainstorm
| NO
Ready to execute? --YES--> Use polydev:polydev skill
|
Need detailed plans? --YES--> Use polydev:writing-plans skill
|
Running background command? --YES--> Use polydev:terminal-task-runner skill
| Skill | When to Use | Who Uses |
|---|---|---|
/polydev-brainstorm | Complex/unclear requirements, need to decompose | Main Agent |
polydev:polydev | Ready to execute parallel tasks | Main Agent |
polydev:writing-plans | Need detailed implementation plans | Main Agent |
polydev:terminal-task-runner | Long-running commands (builds, tests, servers, SSH) | Main Agent |
polydev:polycron | Schedule Claude agents to run at specific times | Main Agent |
polydev:worktree-executor | Execute in isolated worktree | Sub-Agent only |
polydev:agent-investigator | Read-only research tasks | Sub-Agent only |
All scripts must be called via full absolute path (read from ~/.polydev/scripts-path).
| Scenario | Script | Parameters |
|---|---|---|
| Create worktree + Claude | spawn-session.sh | <workspace> <branch> <worktree-path> <plan-file> |
| Monitor status | poll.sh | <worktrees-dir> <timeout> |
| Restore crashed session | restore-session.sh | <worktree-path> [--force] |
| Send to worktree | wo-send-command.sh | <worktree-path> "<cmd>" [--peek N] |
| Send to any session | send-to-session.sh | <pane_id> "<cmd>" [--peek N] |
| Read screen output | capture-screen.sh | --pane-id <id> --lines N |
| List sessions | list-sessions.sh | [workspace] |
| Close session | close-session.sh | <worktree_path> or --pane-id <id> |
| Start background command | run-background.sh | <name> "<cmd>" [--peek N] |
| Start Claude sub-agent | spawn-agent.sh | <name> --prompt "<task>" --report <path> --cwd <dir> [--peek N] |
| Start Codex CLI session | spawn-codex.sh | <name> --prompt "<task>" --cwd <dir> [--output <path>] |
| Start Gemini CLI session | spawn-gemini.sh | <name> --prompt "<task>" --cwd <dir> [--output <path>] |
| Add scheduled task | polycron-add.sh | <job-id> --schedule "..." --prompt "..." --cwd <dir> |
| Remove scheduled task | polycron-remove.sh | <job-id> |
| List scheduled tasks | polycron-list.sh | [--all|--enabled|--disabled] |
| View task history | polycron-history.sh | [job-id] [--last N] |
Example calls:
/path/to/polydev/scripts/spawn-session.sh myproject feature/auth .worktrees/feature-auth PLAN.md
/path/to/polydev/scripts/poll.sh .worktrees 10
/path/to/polydev/scripts/list-sessions.sh
所有返回 pane_id 的脚本均支持 --peek N 选项:
--peek 0: 立即截屏--peek 5: 等 5 秒后截屏示例:
/path/to/polydev/scripts/send-to-session.sh 5 "docker ps" --peek 3
/path/to/polydev/scripts/run-background.sh build "npm test" --peek 10
If the main agent thinks:
| Thought | Reality |
|---|---|
| "Execute these sequentially" | If independent, parallelize. Check polydev. |
| "Simple enough to do directly" | 2+ tasks = potential parallelism. Check. |
| "Don't need the overhead" | Polydev saves time on multi-task work. |
| "Explore first" | Run /polydev-brainstorm to explore properly. |
| "Parallelize later" | Parallelize NOW if tasks are independent. |
All of these mean: Check polydev skills first.
User says "implement X, Y, and Z":
User says "run this build/test":
User says "SSH to server and run commands":
run-background.sh to start SSHsend-to-session.sh to send subsequent commandscapture-screen.sh to read outputUser says "research X":
User says "schedule a task" or "run at specific time":
polycron-add.sh to schedulepolycron-list.sh to view scheduled taskspolycron-history.sh to check execution historySub-agents MUST use model: "sonnet" unless user explicitly requests otherwise.
// Correct
Task({ prompt: "...", subagent_type: "general-purpose", model: "sonnet" })
// Wrong - will bankrupt user
Task({ prompt: "...", subagent_type: "general-purpose" })
This skill is the entry point. After determining which skill to use:
using-polydev (this skill)
|
/polydev-brainstorm (if complex)
|
polydev:writing-plans (if need plans)
|
polydev:polydev (execution)
|
polydev:worktree-executor (per-branch, sub-agent)