spawn-session

Spawn independent Claude Code sessions in new terminal windows (Ghostty, iTerm2, Terminal.app). Use when the user asks to open new sessions, launch parallel workers, or run Claude in a separate terminal. Supports interactive and non-interactive modes with multi-session parallel spawning.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "spawn-session" with this command: npx skills add d0lim/claude-code-spawner-skill/d0lim-claude-code-spawner-skill-spawn-session

Spawn Session — Claude Code Session Launcher

Runs independent Claude Code sessions in new terminal windows. Supports Ghostty (default), iTerm2, and macOS Terminal.app.

Workflow

Step 1: Gather Information from User

Collect the following two pieces of information interactively:

  1. Session name — A name to identify the session (e.g., backend-refactor, test-writer, docs-update)
  2. Project directory — The directory path where Claude Code will work

How to collect:

  • If the user has already provided the information in the conversation, use it as-is
  • If any information is missing, ask the user
  • You can suggest directory candidates using ls or find
  • If the directory doesn't exist, confirm whether to create it

Step 2: Detect OS and Execute Spawn

Run the scripts/spawn.sh script from this skill:

bash <this skill's path>/scripts/spawn.sh --name "<session-name>" --dir "<project-directory>" [options...]

Step 3: Verify Execution and Report

  • Check the script's exit code and stdout
  • On success: Briefly summarize the session name, directory, and execution mode
  • On failure: Analyze the error cause and suggest a resolution

spawn.sh Options

OptionDescriptionDefault
--name, -nSession name (required)
--dir, -dProject directory (required)
--terminal, -tTerminal to use (ghostty, iterm, terminal)ghostty
--prompt, -pInitial prompt (non-interactive mode)None (interactive)
--resume, -rResume existing sessionfalse
--model, -mSpecify modelDefault model
--printNon-interactive + stdout onlyfalse
--dangerously-skip-permissionsSkip all permission promptsfalse

Usage Scenarios

Single session spawn:

User: "Open a new session"
→ Ask for session name and directory, then spawn

Information already provided:

User: "Launch Claude as backend-worker in ~/projects/my-app"
→ Spawn immediately

Parallel multi-spawn:

User: "Spawn 3 sessions in parallel - API, DB, Test"
→ Call spawn.sh 3 times (each with & for background)

With a prompt:

User: "Tell it to write tests in ~/projects/game"
→ Pass instructions via --prompt option

Tips

  • Suggest the user name their main session with /rename main for easy identification among spawned sessions
  • Recommend enabling Remote Control (/configEnable Remote Control for all sessionstrue) so all sessions can be monitored from phone or browser via claude.ai/code

Notes

  • Each terminal window is a completely independent process — inter-session communication is handled via shared filesystem
  • When using --prompt, the terminal window closes automatically after task completion
  • When using --resume, it continues an existing session with the same name
  • Use --terminal to select the terminal (default: ghostty)
  • Only ghostty is supported on Linux

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated
Coding

ai-dating

This skill enables dating and matchmaking workflows. Use it when a user asks to make friends, find a partner, run matchmaking, or provide dating preferences/profile updates. The skill should execute `dating-cli` commands to complete profile setup, task creation/update, match checking, contact reveal, and review.

Archived SourceRecently Updated
Coding

clawhub-rate-limited-publisher

Queue and publish local skills to ClawHub with a strict 5-per-hour cap using the local clawhub CLI and host scheduler.

Archived SourceRecently Updated