| name | handoff-prompt |
| description | Use when ending a session, switching AI tools, or creating a PR โ to generate a structured handoff prompt that the next AI session can use as context. Covers branch state, completed work, do-not-touch constraints, verification results, and next actions. Does NOT capture raw logs or auto-summarize conversation. |
| metadata | {"source":"born-here","summary":"์ธ์
์ ํ ์ ๋ค์ AI ์ธ์
์ ๋ถ์ฌ๋ฃ์ handoff prompt๋ฅผ ์ฌ๋์ด ์ง์ ์์ฑํ๋๋ก ์๋ด","routing":{"visibility":"contextual","risk_level":"medium","task_types":["handoff","session-transfer"],"triggers":[{"kind":"keyword","values":["ํธ๋์คํ","์ธ์์ธ๊ณ","์ ์ธ์
","๋๊ฒจ์ค","handoff"]},{"kind":"intent","values":["prepare_next_session_context"]}],"keywords":{"ko":["ํธ๋์คํ","์ธ์์ธ๊ณ","๋๊ฒจ","์ ์ธ์
"],"en":["handoff","transfer","next session"]},"use_when":["์ธ์
์ข
๋ฃ๋ AI ๋๊ตฌ ์ ํ ์ ์ ๋ค์ ์ธ์
์ด ์ด์ด๋ฐ์ ์ ์๋ ์งง์ export prompt๊ฐ ํ์ํ ๊ฒฝ์ฐ"],"do_not_use_when":["์ฅ๊ธฐ ๋ณด์กดํ ์ค๊ณ ๋งฅ๋ฝ์ docs/context์ ์ถ์ ํด์ผ ํ๋ ๊ฒฝ์ฐ"],"requires":["current_repo_state"]}} |
Handoff Prompt โ ์ธ์
์ ํ export ๊ฐ์ด๋
์ด ์คํฌ์ ๋ฒ์
์ด ์คํฌ์ ์ธ์
์ด ๋๋ ๋ ๋ค์ AI ์ธ์
์ ๋ถ์ฌ๋ฃ์ handoff prompt๋ฅผ ์ฌ๋์ด ์ง์ ์์ฑํ๋๋ก ์๋ดํ๋ค.
- raw log ์ฝ๊ธฐ ๊ธ์ง
- transcript_path ์ฝ๊ธฐ ๊ธ์ง
- ์๋ summary ์์ฑ ๊ธ์ง
- hook, script, make target ์์
- ์๋
docs/context ์น๊ฒฉ ์์
์
๋ ฅ: ํ์ฌ repo ์ํ, ์ฌ๋์ด ํ์ธํ ๊ฒฐ์ ยท์ ์ฝยท๋ค์ ์ก์
์ถ๋ ฅ: ๋ณต๋ถ์ฉ handoff prompt ํ
์คํธ
project-context์์ ์ฐจ์ด
| ํญ๋ชฉ | handoff-prompt | project-context |
|---|
| ๋ชฉ์ | ๋ค์ ์ธ์
์ ์ฆ์ ์คํ์ ์ํ ๋จ๊ธฐ export | ์ฅ๊ธฐ ์ค๊ณยท๊ฒฐ์ ๋งฅ๋ฝ ์ถ์ |
| ์ ์ฅ ์์น | ๊ธฐ๋ณธ ๋ฏธ์ ์ฅ. ํ์ ์ local-only ์์ ํ์ผ | docs/context/* (Git tracking ๊ฐ๋ฅ) |
| ์
๋ ฅ | ํ์ฌ repo ์ํ + ์ฌ๋์ด ํ์ธํ ์ ์ฝ/๊ฒฐ์ | human-confirmed ์ค๊ณ ๋ฐฐ๊ฒฝ, ์ฅ๊ธฐ ๋ณด์กด ๋งฅ๋ฝ |
| Git tracking | ๊ธ์ง | curated ๋ด์ฉ๋ง ๊ฐ๋ฅ |
| ์๋ช
| ๋ค์ ์ธ์
์์ ํ ํ๊ธฐ | ์ฅ๊ธฐ ์ ์ง |
handoff-prompt๋ project-context๋ฅผ ๋ฐ๋์ ๊ฑฐ์น ํ์ ์๋ค. ํ์ฌ repo ์ํ๋ง์ผ๋ก๋ ์์ฑ ๊ฐ๋ฅํ๋ค.
conversation-capture์์ ์ฐจ์ด
conversation-capture๋ raw event ๊ด์ธก ๊ณ์ธต์ด๋ค. raw log๋ฅผ ์์ฑํ๊ณ redacted candidate๋ฅผ ๋ง๋ ๋ค.
handoff-prompt๋ ๊ทธ candidate๋ฅผ ์ฌ๋์ด ๊ฒํ ยทํ์ธํ ๋ค์ ์ฐ๋ export ๋จ๊ณ๋ค.
ํ๋ฆ: conversation-capture โ raw log โ human review โ confirmed โ handoff-prompt export
์์ ๊ฒฝ๊ณ (ํญ์ ์ค์)
- raw log ์๋ฌธ์ handoff prompt์ ํฌํจํ์ง ์๋๋ค
- tool output ์๋ฌธ์ ์ฅ๊ธฐ ๋ณต์ฌํ์ง ์๋๋ค
- secret / token / ๊ฐ์ธ ๊ฒฝ๋ก๋ฅผ ํฌํจํ์ง ์๋๋ค
- ์๋ summary๋ฅผ ์ฌ์ค๋ก ๋จ์ ํ์ง ์๋๋ค
- ๋ฏผ๊ฐ ์ ๋ณด๊ฐ ํฌํจ๋ prompt๋ฅผ ๋ค๋ฅธ AI ์ธ์
์ ์ ๋ฌํ์ง ์๋๋ค
- next session์ raw log๋ฅผ ์๋ ์ฃผ์
ํ์ง ์๋๋ค
Handoff Prompt ์์ฑ ์ ์ฐจ
1. ํ์ฌ repo ์ํ ์์ง (CLI๋ก ์ง์ ํ์ธ)
git remote -v
git branch
git status
git log --oneline -3
gh pr list
2. ์ฌ๋์ด ์ง์ ํ์ธํด์ผ ํ ํญ๋ชฉ
์๋๋ฅผ CLI ๊ฒฐ๊ณผ๋ ์ง์ ํ๋จ์ผ๋ก ์ฑ์ด๋ค. ์๋ summary๊ฐ ์๋๋ผ ์ฌ๋์ด ์ธ์งํ๊ณ ์๋ ์ฌ์ค๋ง ์จ์ผ ํ๋ค.
- ์๋ฃ๋ ๋ณ๊ฒฝ์ ๋ชฉ์
- ์ค์ํ ๊ฒฐ์ ๊ณผ ์ด์
- ๋ค์ ์ก์
(1~3๊ฐ, ๊ตฌ์ฒด์ ์ผ๋ก)
- ๊ฑด๋๋ฆฌ๋ฉด ์ ๋๋ ๋ธ๋์นยทํ์ผยทstash
- ๊ฒ์ฆ ๊ฒฐ๊ณผ (pass/fail/blocked)
3. ํ
ํ๋ฆฟ ์ฑ์ฐ๊ธฐ
์๋ ํ
ํ๋ฆฟ์ ๋ณต์ฌํด์ ์ฑ์ด๋ค. ๋น ํญ๋ชฉ์ (์์) ๋๋ N/A๋ก ํ์ํ๋ค.
Handoff Prompt ํ
ํ๋ฆฟ
# Agent Handoff Prompt
## Goal
- <์์
๋ชฉํ์ ์๋ฃ ๊ธฐ์ค>
## Current Repo State
- Repository: <owner/repo ๋๋ local path>
- Current branch: <branch>
- Base branch: <base>
- Worktree status: <clean / dirty + ํ์ผ ๋ชฉ๋ก>
- Last commit: <sha ์ ๋ชฉ>
- Remote: <credential ์ ๊ฑฐํ remote URL>
## Related Work
- Primary PR: <๋ฒํธ/URL/์ํ>
- Related PRs: <๊ฑด๋๋ฆฌ๋ฉด ์ ๋๋ PR ํฌํจ>
- Tags / release baselines: <์์ผ๋ฉด>
## Do Not Touch
- master ์ง์ push ๊ธ์ง
- reset / rebase / force push ๊ธ์ง
- <๋ค๋ฅธ PR ๋ธ๋์น ์ด๋ฆ> ๋ธ๋์น ๊ธ์ง
- stash@{n} ๊ฑด๋๋ฆฌ์ง ์์
- <generated file ๋ชฉ๋ก> ์ง์ ์์ ๊ธ์ง (make instructions๋ก ์ฌ์์ฑ)
## Local State / Stash
- Stashes: <๊ด๋ จ ํญ๋ชฉ๋ง>
- Must not apply/drop: <์ฃผ์ stash>
- Local-only files/profiles: <profiles/local ๋ฑ git tracking ์ ๋๋ ํ์ผ>
## Completed Work
- <์๋ฃ๋ ๋ณ๊ฒฝ ์์ฝ โ raw log ์๋๋ผ ์ฌ๋์ด ํ๋จํ ์ฌ์ค>
- <์ค์ ๊ฒฐ์ ๊ณผ ์ด์ >
## Verification
- `make instructions`: <pass / fail / skip>
- `git diff --check`: <pass / fail / skip>
- `make doctor`: <pass / fail / skip>
- Known environment issues: <bwrap ๋ฑ ํ๊ฒฝ ์ ์ฝ์ด ์์ผ๋ฉด>
- Generated file drift: <make instructions ํ clean ์ฌ๋ถ>
## Next Action
1. <์ ํํ ๋ค์ ์ก์
>
2. <๊ทธ ๋ค์ ์ก์
>
3. <์์ผ๋ฉด>
## Expected Final Report
- Branch:
- Changed files:
- Verification:
- Risks:
- Whether push/merge/tag was done:
์์ฑ ํ ์ฒดํฌ๋ฆฌ์คํธ
์ ์ฅ ์ฌ๋ถ
๊ธฐ๋ณธ: ์ ์ฅํ์ง ์๋๋ค. ๋ถ์ฌ๋ฃ๊ณ ์ธ์
์์ ํ ํ๊ธฐํ๋ค.
์ ์ฅ์ด ํ์ํ๋ฉด:
- local-only ์์ ๊ฒฝ๋ก (
~/.local/state/oh-my-ai/handoff-prompt-<date>.md)
- Git tracking ๊ธ์ง
- ๋ฏผ๊ฐ ์ ๋ณด ํฌํจ ์ฌ๋ถ ์ฌํ์ธ ํ ์ ์ฅ
docs/context/์ ๊ทธ๋๋ก ์ ์ฅํ์ง ์๋๋ค. docs/context/๋ human-confirmed ์ฅ๊ธฐ ๋งฅ๋ฝ ์ ์ฉ์ด๋ค.