Track collaboration state between Claude sessions using git branches. Enables seamless context switching by persisting progress in feature branches. Use for multi-session work, handoffs, and publishing completed work. Keywords: collab, git, branch, session, checkpoint, resume, publish.
Resources
1Install
npx skillscat add teslasoft-de/claude-skills-marketplace/collab Install via the SkillsCat registry.
Collaboration State Management
Track collaboration state between Claude sessions using git branches. Enables seamless context switching between conversations by persisting progress in feature branches.
When to Use
- Starting multi-session work that needs tracking
- Saving progress during long coding sessions
- Handing off work to another conversation
- Resuming previous collaboration branches
- Publishing completed work to development (or master)
- Promoting validated development branch to master
When NOT to Use
- Simple one-off tasks that don't need tracking
- Work already on master without branching
- Non-git repositories
Quick Start
- Start:
/collab start project/P16/plan- Create feature branch - Work: Make changes, use
/collab save "message"periodically - Handoff:
/collab checkpoint "message"- Commit + push for later - Resume:
/collab resume project/P16/plan- Continue in new session - Publish:
/collab publish- Merge to development (default) or master - Promote:
/collab promote- Merge development to master (after E2E validation)
Two-Stage Workflow
Feature branches merge into development first, then promote to master after E2E validation:
feature/P3/parser ──► development ──► master
publish promote
(default) (after E2E)/collab publishmerges feature →development(default target)/collab promotemergesdevelopment→master(after validation)- Use
--target masterwith publish to skip the development stage (for repos without a development branch)
Merge Gate Validation (MRG-001)
When merging to protected branches (master, main, development), tracked git hooks enforce validation:
- pre-merge-commit — Runs tests at the target branch's tier before the merge commit is created
- Tier 3 (master):
pnpm test:all - Tier 2 (project/*): project-specific tests
- Blocks merge on failure (bypass:
--no-verify)
- Tier 3 (master):
- post-merge — Auto-rebuilds after merge on protected branches
- Runs:
pnpm build→pnpm drone:restart→pnpm verify - Never blocks (merge already completed)
- Reports
POST_MERGE_REDEPLOYorPOST_MERGE_BUILD_FAILto Jarvis
- Runs:
Two merge paths:
- Proper merge (recommended): Creates merge commit, triggers both hooks, full validation
- Fast-forward: No merge commit, hooks never fire, manual
pnpm redeployrequired
Install hooks: pnpm hooks:install (symlinks coordination/git-hooks/ into .git/hooks/)
Commands
| Command | Action |
|---|---|
/collab |
Show current status |
/collab start <branch> |
Create new collaboration branch |
/collab save "message" |
Commit progress locally |
/collab checkpoint "message" |
Commit + push for handoff |
/collab publish |
Push to target branch (default: development), cleanup |
/collab publish --target master |
Push directly to master (skip development) |
/collab promote |
Merge development → master (after E2E validation) |
/collab resume <branch> |
Resume existing branch |
/collab list |
List all collaboration branches |
/collab abandon |
Delete current feature branch (with confirmation) |
Branch Naming
Vaults: <scope>/<id>/<segment> (e.g., project/P16/plan, goal/Q1-2026/review)
Code repos: <type>/<id>/<description> (e.g., feature/P3/parser, bug/P1/fix)
See Branch Naming Reference for full conventions.
Commit Formats
- Vaults:
[collab:<branch>] <message>(tag in title) - Code repos: Conventional Commits with
[collab:<branch>]in body
See Commit Formats Reference for examples.
Skill Integrations
/teslasoft
- After
/collab resumein vault, suggest running/teslasoft - During
/collab publishin vault, automatically updates agenda - During
/collab promotein vault, automatically updates agenda
/repomix
- During
/collab publishin vault, refreshesvault-bundle.xml - During
/collab promotein vault, refreshesvault-bundle.xml
/e2e
- On
/storyor/usecasesegments, suggest/e2eworkflow - Run E2E validation on
developmentbefore/collab promote
See Integrations Reference for details.
Failure Modes & Recovery
| Issue | Recovery |
|---|---|
| Fast-forward fails | Rebase: git fetch $REMOTE <target> && git rebase $REMOTE/<target>, then retry |
| Working directory dirty | Run /collab save first or stash changes |
| Branch not found | Check spelling, use /collab list to see available branches |
| Agenda update fails | Non-blocking; run /teslasoft update-agenda manually |
| Promote from wrong branch | Switch to development first, or use --force to override |
| Development not pushed | promote auto-pushes development before merging to master |
Security & Permissions
- Required tools: Bash (git commands), Read, Write
- Confirmations: Required for
/collab abandon(destructive) - Safe defaults:
- Uses
--force-with-lease(not--force) - Publish uses remote-only push (
git push $REMOTE branch:<target>) - never checks out target locally - Default publish target is
development(notmaster) - Fast-forward only - no merge commits
- Uses
Best Practices
- Start every significant session with
/collab start - Save frequently with
/collab save - Checkpoint before ending conversations
- Use descriptive segments (
/plan,/story,/docs) - Include P# in branch names to link to projects
- Publish when complete to keep master current
Cowork Sessions (Parallel Workflow)
When using Claude Desktop (Cowork) alongside Claude Code, work splits across two parallel surfaces:
Cowork (Desktop) Claude Code (Vault)
├── High-level organization ├── Implementation
├── Skill/plugin creation ├── Thread orchestration
├── Inbox triage ├── TDD, debugging
├── Agenda updates ├── Multi-agent delegation
└── Memory sync (.memory/) └── Git branch workflowsCommit Attribution
Cowork sessions use the [ai:cowork] tag — no feature branch required:
[ai:cowork] feat(vault-boot): cold-start loader for Cowork sessions
[ai:cowork] chore(P3): update agenda and inbox itemsInbox Integration
Inbox items can be created from both surfaces:
| Source | Path | Example |
|---|---|---|
| Cowork (external) | 00_Inbox/ via Obsidian MCP |
Triage, skill creation, agenda items |
| Claude Code (internal) | 00_Inbox/ via file system |
Thread briefs, project phases, research |
Both surfaces read the same inbox. Coordination happens through .memory/CLAUDE.md (shared context) and coordination/ files (harness state).
Working Memory
The .memory/CLAUDE.md file provides shared context across Cowork and Code sessions:
- People, terms, project summaries
- Collab tag conventions
- Infrastructure references
- User preferences
Feature Thread Branches
When a project phase requires multiple parallel implementation threads, use a shared feature branch where all sub-agents commit collaboratively.
Branch Convention
- Feature branch:
project/P{N}/{phase-slug}(e.g.,project/P24/phase2-service-manager) - Created from:
development(or current integration branch) - Merged back to:
developmentwhen phase is complete
Commit Attribution
Sub-agents use [ai:role@branch] tags to attribute their work:
[ai:developer@project/P24/phase2-service-manager] feat(p24): T1 — ServiceManager core
[ai:doc-specialist@project/P24/phase2-service-manager] docs(p24): D1 — skill doc updatesThe orchestrator uses [collab:branch] tags:
[collab:project/P24/phase2-service-manager] chore(p24): Wave 0 — branch setupWave/Thread Pattern
Threads are organized into sequential waves of parallel work:
| Wave | Threads | Gate |
|---|---|---|
| Wave 0 | Setup (orchestrator) | Branch + tracking files created |
| Wave 1 | T1, T2 (parallel) | Core implementation verified |
| Wave 2 | T3, T4 (parallel) | Integration verified |
| Wave N | Close (orchestrator) | Full regression green |
Each thread has a verification command that must pass before committing.
References
- Branch Naming - Full naming conventions
- Commit Formats - Message format examples
- Command Handlers - Detailed command procedures
- Dashboard - Session-end dashboard format
- Integrations - Skill integrations
Metadata
author: Christian Kusmanow / Claude
version: 2.3.0
last_updated: 2026-02-13
change_surface: references/ (command details, examples)
extension_points: references/command-handlers.md (new commands)Changelog
- v2.3.0 (2026-02-13): Cowork parallel workflow
- Added
[ai:cowork]commit tag for Claude Desktop / Cowork sessions - Added "Cowork Sessions" section documenting parallel workflow pattern
- Documented inbox integration (items from both Cowork and Code surfaces)
- Added
.memory/CLAUDE.mdworking memory as shared context reference - Updated commit-formats reference with Collaboration Tags section
- Added
- v2.2.0 (2026-02-08): Two-stage merge workflow
- Added
/collab promotecommand (development → master after E2E validation) /collab publishnow targetsdevelopmentby default (was:master)- Added
--targetflag to publish for explicit target selection - Use
--target masterto preserve v2.1.0 direct-to-master behavior
- Added
- v2.1.0 (2026-02-05): Safe publish procedure
- Publish now uses remote-only push (
git push origin branch:master) - Never checks out master locally - prevents inconsistent state on failure
- Local master ref updated via
git fetch origin master:masterafter success - Updated error messages with safer rebase instructions
- Publish now uses remote-only push (
- v2.0.0 (2026-01-23): SDL migration - Progressive disclosure structure
- Split 900-line monolith into SKILL.md (~150 lines) + 5 references
- Added YAML frontmatter with triggers and negative_triggers
- Added "When to Use / When NOT to Use" sections
- Added failure modes and security sections
- v1.5.0 (2026-01-23): Auto-refresh repomix bundle on vault publish
- v1.4.0 (2026-01-23): Auto-update Teslasoft Agenda on vault publish
- v1.3.0 (2026-01-22): Differentiated commit formats by repository type
- v1.2.0 (2026-01-22): Added Collaboration Dashboard
- v1.1.0 (2026-01-22): Added multi-repo support and WSL paths
- v1.0.0 (2026-01-21): Initial release