wf0-restore
1
总安装量
1
周安装量
#76763
全站排名
安装命令
npx skills add https://github.com/shotaiuchi/dotclaude --skill wf0-restore
Agent 安装分布
amp
1
cline
1
opencode
1
cursor
1
continue
1
kimi-cli
1
Skill 文档
Always respond in Japanese.
/wf0-restore
Restore an existing workspace for resuming work on a different PC or recreating a worktree.
Usage
/wf0-restore [work-id]
Arguments
work-id: Optional. Usesactive_workfrom state.json, or presents candidates via AskUserQuestion.
Processing
1. Check Prerequisites
Require jq and git.
2. Resolve work-id
Argument â active_work â AskUserQuestion with available work-ids (show branch and current phase for each).
3. Fetch Remote
git fetch --all --prune
4. Restore Branch
Get branch/base from state.json. Check local branch â remote branch â error if neither exists. Checkout accordingly.
5. Restore Worktree (Optional)
If config.worktree.enabled: create worktree if not exists, update .wf/local.json with path.
6. Update active_work
Set active_work in state.json.
7. Display Status
Show: Work ID, Branch, Base, Current phase, Next phase, Docs path, next step command.
Notes
- Error if state.json missing or work-id not found
- Worktree root directory created automatically