Fork a terminal session to a new terminal window. Using one agentic coding tools or raw cli commands.
Follow the Instructions, execute the Workflow, based on the Cookbook.
Based on the user's request, follow the Cookbook to determine which tool to use.
Fork Summary User Prompts
IF: The user requests a fork terminal with a summary. This ONLY works for our agentic coding tools AGENTIC_CODING_TOOLS. The tool MUST BE enabled as well.
THEN:
STEP 1 - Create Context File: ALWAYS create/overwrite C:\Users\261906\.claude\skills\fork-terminal\temp-fork-context.md with the conversation history
Use the template structure from .claude/skills/fork-terminal/prompts/fork_summary_user_prompt.md
Fill in the conversation history in YAML format
Include current status and next steps
This file will be overwritten each time to keep context fresh
STEP 2 - Launch Terminal: Fork terminal WITHOUT using -p parameter (to avoid Windows batch escaping issues)
Use: claude --model opus --dangerously-skip-permissions (or appropriate model)
Do NOT include -p parameter - launch interactive mode only
STEP 3 - Provide User Instruction: After terminal launches, tell the user to paste this into the new Claude session:
Read C:\Users\261906\.claude\skills\fork-terminal\temp-fork-context.md for the full conversation history, then help me continue working.
IMPORTANT: This file-based approach avoids Windows command-line escaping issues with long -p prompts
EXAMPLES:
"fork terminal use claude code to summarize work so far"
"spin up a new terminal request using claude code include summary"
"create a new terminal to with claude code with summary"
"start a new terminal session with claude code" (implies summary if in ongoing conversation)
Workflow
Understand the user's request.
READ: .claude/skills/fork-terminal/tools/fork_terminal.py to understand our tooling.
Follow the Cookbook to determine which tool to use.
Execute the .claude/skills/fork-terminal/tools/fork_terminal.py: fork_terminal(command: str) tool.
Cookbook
Raw CLI Commands
IF: The user requests a non-agentic coding tool AND ENABLE_RAW_CLI_COMMANDS is true.
THEN: Read and execute: .claude/skills/fork-terminal/cookbook/cli-command.md
EXAMPLES:
"Create a new terminal to with ffmpeg"
"Create a new terminal to with curl"
"Create a new terminal to with python"
Claude Code
IF: The user requests a claude code agent to execute the command AND ENABLE_CLAUDE_CODE is true.
THEN: Read and execute: .claude/skills/fork-terminal/cookbook/claude-code.md
EXAMPLES:
"fork terminal use claude code to "
"spin up a new terminal request using claude code"
"create a new terminal to with claude code"
Codex CLI
IF: The user requests a codex CLI agent to execute the command AND ENABLE_CODEX_CLI is true.
THEN: Read and execute: .claude/skills/fork-terminal/cookbook/codex-cli.md
EXAMPLES:
"fork terminal use codex to "
"spin up a new terminal request using codex"
"create a new terminal to with codex"
Gemini CLI
IF: The user requests a gemini CLI agent to execute the command AND ENABLE_GEMINI_CLI is true.
THEN: Read and execute: .claude/skills/fork-terminal/cookbook/gemini-cli.md
EXAMPLES:
"fork terminal use gemini to "
"spin up a new terminal request with gemini"
"create a new terminal to using gemini"
1---2name: fork-terminal3description: Purpose4---56# Purpose78Fork a terminal session to a new terminal window. Using one agentic coding tools or raw cli commands.9Follow the `Instructions`, execute the `Workflow`, based on the `Cookbook`.1011## Variables1213ENABLE_RAW_CLI_COMMANDS: true14ENABLE_GEMINI_CLI: true15ENABLE_CODEX_CLI: true16ENABLE_CLAUDE_CODE: true17AGENTIC_CODING_TOOLS: claude-code, codex-cli, gemini-cli1819## Instructions2021- Based on the user's request, follow the `Cookbook` to determine which tool to use.2223### Fork Summary User Prompts2425- IF: The user requests a fork terminal with a summary. This ONLY works for our agentic coding tools `AGENTIC_CODING_TOOLS`. The tool MUST BE enabled as well.26- THEN:27 - **STEP 1 - Create Context File**: ALWAYS create/overwrite `C:\Users\261906\.claude\skills\fork-terminal\temp-fork-context.md` with the conversation history28 - Use the template structure from `.claude/skills/fork-terminal/prompts/fork_summary_user_prompt.md`29 - Fill in the conversation history in YAML format30 - Include current status and next steps31 - This file will be overwritten each time to keep context fresh3233 - **STEP 2 - Launch Terminal**: Fork terminal WITHOUT using `-p` parameter (to avoid Windows batch escaping issues)34 - Use: `claude --model opus --dangerously-skip-permissions` (or appropriate model)35 - Do NOT include -p parameter - launch interactive mode only3637 - **STEP 3 - Provide User Instruction**: After terminal launches, tell the user to paste this into the new Claude session:38 ```39 Read C:\Users\261906\.claude\skills\fork-terminal\temp-fork-context.md for the full conversation history, then help me continue working.40 ```4142- IMPORTANT: This file-based approach avoids Windows command-line escaping issues with long `-p` prompts43- EXAMPLES:44 - "fork terminal use claude code to <xyz> summarize work so far"45 - "spin up a new terminal request <xyz> using claude code include summary"46 - "create a new terminal to <xyz> with claude code with summary"47 - "start a new terminal session with claude code" (implies summary if in ongoing conversation)4849## Workflow50511. Understand the user's request.522. READ: `.claude/skills/fork-terminal/tools/fork_terminal.py` to understand our tooling.533. Follow the `Cookbook` to determine which tool to use.544. Execute the `.claude/skills/fork-terminal/tools/fork_terminal.py: fork_terminal(command: str)` tool.5556## Cookbook5758### Raw CLI Commands5960- IF: The user requests a non-agentic coding tool AND `ENABLE_RAW_CLI_COMMANDS` is true.61- THEN: Read and execute: `.claude/skills/fork-terminal/cookbook/cli-command.md` 62- EXAMPLES:63 - "Create a new terminal to <xyz> with ffmpeg"64 - "Create a new terminal to <xyz> with curl"65 - "Create a new terminal to <xyz> with python"6667### Claude Code6869- IF: The user requests a claude code agent to execute the command AND `ENABLE_CLAUDE_CODE` is true.70- THEN: Read and execute: `.claude/skills/fork-terminal/cookbook/claude-code.md`71- EXAMPLES:72 - "fork terminal use claude code to <xyz>"73 - "spin up a new terminal request <xyz> using claude code"74 - "create a new terminal to <xyz> with claude code"7576### Codex CLI7778- IF: The user requests a codex CLI agent to execute the command AND `ENABLE_CODEX_CLI` is true.79- THEN: Read and execute: `.claude/skills/fork-terminal/cookbook/codex-cli.md`80- EXAMPLES:81 - "fork terminal use codex to <xyz>"82 - "spin up a new terminal request <xyz> using codex"83 - "create a new terminal to <xyz> with codex"8485### Gemini CLI8687- IF: The user requests a gemini CLI agent to execute the command AND `ENABLE_GEMINI_CLI` is true.88- THEN: Read and execute: `.claude/skills/fork-terminal/cookbook/gemini-cli.md`89- EXAMPLES:90 - "fork terminal use gemini to <xyz>"91 - "spin up a new terminal request <xyz> with gemini"92 - "create a new terminal to <xyz> using gemini"
Run npx skillmds@latest add ranjanpoudel1234/fork-terminal in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Purpose It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
ranjanpoudel1234 (@ranjanpoudel1234) published this skill. Their other Agent Skills are listed on their SkillMD profile.