xiaohongshu
xiaohongshu
managing-forks
Manages parallel conversation branches using git worktrees. Use when you want to explore multiple solution approaches simultaneously, need to try different implementations, or want to checkpoint your current conversation state before branching into alternative paths.
Full skill instructions
This skill enables you to create and manage parallel conversation branches (forks) using git worktrees. Each fork is an independent workspace where you can explore different approaches to solving a problem.
Use fork management when:
Basic Fork Creation:
src/fork_create.sh <number>
Creates N parallel fork branches from the current conversation checkpoint.
Example:
src/fork_create.sh 3
Creates 3 parallel branches, each with its own git worktree.
Fork with Target Branch:
src/fork_create.sh <number> --target <branch-name>
Creates N forks that all target a specific branch (useful for feature development).
Example:
src/fork_create.sh 3 --target feature-auth
Creates 3 forks from and targeting the feature-auth branch. All forks will merge back to this branch.
src/fork_list.sh
Shows all active fork branches with their metadata, creation time, status, and worktree paths.
src/fork_tree.sh
Displays a visual tree representation of all forks and their parent-child relationships. Useful for understanding nested fork structures.
src/fork_switch.sh <fork-id>
Switches the working environment to a different fork branch.
Example:
src/fork_switch.sh fork-1730678901-a1b2c3d4-2
src/fork_status.sh
Shows the current fork's status, including git status, worktree information, and fork metadata.
src/fork_merge.sh <source-fork-id>
Merges changes from another fork branch into the current branch.
Example:
src/fork_merge.sh fork-1730678901-a1b2c3d4-1
src/fork_delete.sh <fork-id>
Deletes a fork branch, its worktree, and associated metadata. Prompts for confirmation.
Example:
src/fork_delete.sh fork-1730678901-a1b2c3d4-3
User asks: "I want to try implementing this feature using both REST and GraphQL approaches"
Response workflow:
src/fork_create.sh 2 --target feature-apiUser asks: "Let's explore both MVC and Clean Architecture for this"
Response workflow:
src/fork_create.sh 2 --target feature-refactorUser asks: "In the GraphQL approach, let's try two different schema designs"
Response workflow:
src/fork_create.sh 2 --target graphql-schemaCommit current work: Ensure git working directory is clean
git add . && git commit -m "checkpoint before forking"
Check you're in a git repository:
git status
Plan your forks: Think about how many parallel approaches you need
src/fork_status.sh to see where you aresrc/fork_merge.sh to combine best elementssrc/fork_delete.sh~/.claude-code/forks/~/.claude-code/forks/
├── fork-xxx-1/
│ ├── checkpoint.json # Conversation state
│ ├── metadata.json # Fork metadata
│ ├── worktree/ # Git worktree
│ └── launch.sh # Launcher script
├── fork-xxx-2/
│ └── ...
└── .fork-groups.json # Fork group relationships
Each fork stores:
fork_id: Unique identifierparent_id: Parent fork (for nested forks)target_branch: Target branch for merging (if specified)branch_number: Position in fork grouptotal_branches: Total forks in groupworktree_path: Path to git worktreestatus: active/archivedcreated_at: ISO timestamp"Not in a git repository"
"Worktree already exists"
git worktree prune to clean up stale worktrees"Fork not found"
src/fork_list.sh to see available forks"Cannot create worktree"
If forks become corrupted:
git worktree listgit worktree prunerm -rf ~/.claude-code/forks/<bad-fork-id>When tmux is installed:
tmux attach -t fork-<id>When tmux is not available:
User configuration is stored in ~/.config/fork-yeah/config.yaml:
terminal:
mode: auto # auto, tmux, macos, linux, basic
fork:
max_forks: 10
auto_checkpoint: true
display:
use_colors: true
tree_ascii: true
--target for feature worksrc/fork_tree.sh to stay orientedREADME.mddocs/TROUBLESHOOTING.mdMARKETPLACE.mdconfig/config.yamlxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience