AgentSkillsCN

collab

利用 Git 分支跟踪 Claude 会话间的协作状态。通过在功能分支中持久化进度,实现无缝的上下文切换。适用于多会话协作、交接工作,以及发布已完成成果。关键词:协作、Git、分支、会话、检查点、继续、发布。

SKILL.md
--- frontmatter
name: collab
description: |
  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.
triggers:
  - /collab
  - /collab start
  - /collab save
  - /collab checkpoint
  - /collab publish
  - /collab resume
  - /collab list
  - /collab status
  - /collab abandon
  - collaboration workflow
  - git branch management
negative_triggers:
  - simple one-off tasks without tracking
  - work already on master
  - non-git repositories
version: 2.0.0
author: Christian Kusmanow / Claude
last_updated: 2026-01-23

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 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

  1. Start: /collab start project/P16/plan - Create feature branch
  2. Work: Make changes, use /collab save "message" periodically
  3. Handoff: /collab checkpoint "message" - Commit + push for later
  4. Resume: /collab resume project/P16/plan - Continue in new session
  5. Publish: /collab publish - Merge to master when complete

Commands

CommandAction
/collabShow current status
/collab start <branch>Create new collaboration branch
/collab save "message"Commit progress locally
/collab checkpoint "message"Commit + push for handoff
/collab publishFast-forward merge to master, cleanup
/collab resume <branch>Resume existing branch
/collab listList all collaboration branches
/collab abandonDelete 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 resume in vault, suggest running /teslasoft
  • During /collab publish in vault, automatically updates agenda

/repomix

  • During /collab publish in vault, refreshes vault-bundle.xml

/e2e

  • On /story or /usecase segments, suggest /e2e workflow

See Integrations Reference for details.


Failure Modes & Recovery

IssueRecovery
Fast-forward failsRebase branch: git rebase master, then retry publish
Working directory dirtyRun /collab save first or stash changes
Branch not foundCheck spelling, use /collab list to see available branches
Agenda update failsNon-blocking; run /teslasoft update-agenda manually

Security & Permissions

  • Required tools: Bash (git commands), Read, Write
  • Confirmations: Required for /collab abandon (destructive)
  • Safe defaults: Uses --force-with-lease (not --force), --ff-only merges

Best Practices

  1. Start every significant session with /collab start
  2. Save frequently with /collab save
  3. Checkpoint before ending conversations
  4. Use descriptive segments (/plan, /story, /docs)
  5. Include P# in branch names to link to projects
  6. Publish when complete to keep master current

References


Metadata

yaml
author: Christian Kusmanow / Claude
version: 2.0.0
last_updated: 2026-01-23
change_surface: references/ (command details, examples)
extension_points: references/command-handlers.md (new commands)

Changelog

  • 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