handoff
npx skills add https://github.com/chachamaru127/claude-code-harness --skill handoff
Agent 安装分布
Skill 文档
Handoff Skill
PM-å®è£ å½¹éã®ãã³ããªãã¨ã¯ã¼ã¯ããã¼é·ç§»ã管çããã¹ãã«ã
æ©è½è©³ç´°
| æ©è½ | 詳細 |
|---|---|
| PMâå®è£ å½¹ | See references/handoff-to-impl.md |
| å®è£ å½¹âPM | See references/handoff-to-pm.md |
| ã¬ãã¥ã¼ææèªåä¿®æ£ | See references/auto-fixing.md |
| ã³ãããå®è¡ | See references/execute-commit.md |
Quick Reference
- “Cursor ã«å®äºå ±åãæ¸ã㦔 â
/handoff cursor - “OpenCode ã«ãã³ããªã” â
/handoff opencode - “ã¬ãã¥ã¼ææãèªå修棔 â
/handoff auto-fix - “夿´å 容ã¨ãã¹ãçµæãå«ã㦔 â Includes git diff and test results
Prerequisites
This command should only run after harness-review APPROVE
| Condition | Required | Check Method |
|---|---|---|
| harness-review completed | Yes | Review result is APPROVE |
| No Critical/High issues | Yes | All fixed |
| Implementation complete | Yes | Plans.md tasks completed |
Why handoff requires review approval:
- PM receives unreviewed changes otherwise
- Quality not assured
- Breaks
/workflow (implement â review â fix â OK â handoff)
Usage
/handoff cursor # Handoff to Cursor
/handoff opencode # Handoff to OpenCode
Execution Flow
Step 1: Identify Completed Tasks
- Check Plans.md checkboxes
- Summarize work done
Step 2: Update Plans.md
# Before
- [ ] Task name `pm:ä¾é ¼ä¸`
# After
- [x] Task name `cc:å®äº` (YYYY-MM-DD)
Step 3: Gather Changes
git status -sb
git diff --stat
Step 4: Check CI/CD (if applicable)
gh run list --limit 3
Step 4.5: Unified Memory Finalizeï¼å¿ é ï¼
å®äºå ±åã®åã«ãå ±éã¡ã¢ãªã¸æçµç¶æ ã確å®ãã:
harness_mem_record_checkpoint(session_id, title, content, tags?, privacy_tags?)
harness_mem_finalize_session(session_id, summary_mode="standard")
ããã«ãã Claude Code / Codex / OpenCode ã®ã©ãããã§ãåä¸ã»ãã·ã§ã³ãåéã§ããã
session_id 㯠$CLAUDE_SESSION_ID â .claude/state/session.json ã® .session_id ã®é ã§åå¾ããã
harness_mem_sessions_list(project, limit=1) ã®å
é å©ç¨ã¯ read-onlyï¼resume確èªï¼ã«éå®ããhandoffæã® record_checkpoint / finalize_session ã§ã¯æç¤º session_id ãç¡ãå ´åã«å¤±ææ±ãã¨ããã
harness_mem_finalize_session ã失æãã¦ããå ´å㯠handoff ã確å®ããªãã
Step 5: Generate Report
Output Format
## Completion Report
### Summary
- (1-3 lines describing what was done)
### Completed Tasks
- **Task Name**: [Task description]
### Changed Files
| File | Changes |
|------|---------|
| `path/to/file1` | [Summary] |
| `path/to/file2` | [Summary] |
### Verification Results
- [x] Build success
- [x] Tests passed
- [x] Manual verification complete
### Risks / Notes
- (If any)
### Next Actions (for PM)
1. [ ] [What PM should do next]
2. [ ] [Optional items]
/work Integration Flow
/work execution
â
Phase 1: Parallel implementation
â
Phase 2: harness-review loop
âââ NG (Critical/High) â Fix â Re-review
âââ OK (APPROVE) â Phase 3
â
Phase 3: Auto-commit (if configured)
â
Phase 4: This skill runs â First time handoff happens
/workautomatically calls this skill in Phase 4. When running manually, always do so after harness-review APPROVE.
Target-Specific Notes
Handoff to Cursor
- Plans.md markers use
cc:å®äº(Japanese) - Report format optimized for Cursor PM workflow
- Includes context for
/review-cc-workcommand
Handoff to OpenCode
- Similar format to Cursor
- Compatible with OpenCode’s command structure
- Works with multi-LLM development workflow
Related Skills
work– Main implementation workflowharness-review– Code reviewsetup– Project setup (includes 2-Agent workflow)