一键导入
sync-work
Push branches without ceremony — all project and workspace repos. No PR, no status change, no forced capture. Use for backing up work in progress.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Push branches without ceremony — all project and workspace repos. No PR, no status change, no forced capture. Use for backing up work in progress.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | sync-work |
| description | Push branches without ceremony — all project and workspace repos. No PR, no status change, no forced capture. Use for backing up work in progress. |
Push current branches to remote for all project repos and the workspace repo. Lightest-touch backup — no PRs, no lifecycle changes, no forced context capture.
Step 1: Detect active branches
# Workspace worktree
cd work-sessions/{session-name}/workspace
git branch --show-current
# Project worktree(s) — for each repo in the session tracker's repos:
git -C work-sessions/{session-name}/workspace/repos/{repo} branch --show-current
Step 2: Check for uncommitted changes
For each repo in the session tracker's repos: list plus the workspace:
cd work-sessions/{session-name}/workspace/repos/{repo}
git status --short
If uncommitted changes exist: "You have uncommitted changes in {repo}. Commit before syncing? [Y/n]" If yes: ask for a commit message or suggest one based on the changes. If no: skip that repo (can't push uncommitted work).
Step 3: Check for remotes
For each repo in the session tracker's repos::
cd work-sessions/{session-name}/workspace/repos/{repo}
git remote -v
If no remote: "No remote configured for {repo}. Want me to create one on GitHub, or provide a URL?"
Create via gh repo create or add the provided URL. Never silently skip.
Step 4: Push For each repo with committed changes and a remote:
cd work-sessions/{session-name}/workspace/repos/{repo}
git push -u origin {branch-name}
Then push the workspace repo from the workspace worktree:
cd work-sessions/{session-name}/workspace
git push -u origin {branch-name}
The session-branch top-level files (session.md, design-*.md, plan-*.md) ride along with the workspace push — they live on the session branch, not on main, so pushing the branch is how durable session thinking reaches another machine.
Report per repo: "Synced: {repo} ({branch-name}) pushed to origin."
Step 5: Optionally offer capture "Want to /braindump or /handoff while syncing? [n/Y]" Default is no — /sync-work is about backing up, not capturing. But the offer is there.
| Skill | Intent | What happens |
|---|---|---|
| /pause-work | Stopping, someone else might pick up | Capture + push + draft PR + mark paused |
| /complete-work | Done with this branch | Synthesize + push + real PR + resolve context |
| /sync-work | Still working, just backing up | Push + no PR + no status change |
activeFinalize a work session — rebase, synthesize release notes from spec/plan/session tracker/commits, create PRs with unified presentation. Handles all project repos and workspace repo. Use when work on a session is done.
Workspace maintenance — audit integrity, clean up stale context, suggest merges. Run periodically or before /release.
Suspend current work — updates session tracker, captures state to the tracker body, pushes all repos, creates draft PRs. Use when stepping away from work that isn't finished.
First-time workspace initialization. Clones repos, installs template components, extracts team knowledge from documentation sources and Claude chat history, activates rules, configures user identity. Run once after scaffolding with --init.
Prepend a new CHANGELOG.md entry per project repo by synthesizing unreleased branch notes. Deletes consumed branch notes and synthesizes workspace-context into canonical (locked) entries. Use at release time.
Apply a staged template update to an initialized workspace. The CLI stages a payload in .workspace-update/; this skill processes it. Runs maintenance audit before and after.