Handoff twix

From Keepiluv/Keepiluv-iOS · View interactive version

Handoff twix is an AI agent skill from the GitHub repository Keepiluv/Keepiluv-iOS. Use this skill to coordinate concise low-token handoffs between Pi, Claude Code, review-twix, fix-review, and final-review in the Twix iOS repository.

How to use this skill

Skill file

handoff-twix

목적

handoff-twix는 Pi, Claude Code, review-twix, fix-review, final-review 사이의 low-token handoff를 조율합니다.

이 skill은 implementation skill이 아닙니다. 명시 요청이 없는 한 Pi가 feature를 직접 구현하지 않습니다. Pi가 계획과 handoff 파일을 만들고, Claude Code가 구현하며, Pi가 review/fix/finalize를 이어갈 수 있도록 간결한 handoff 파일과 runner를 사용합니다.

Invocation behavior

handoff-twix는 누가 작업을 수행할지 조율하는 orchestration skill입니다. 사용자가 handoff를 명시적으로 요청한 경우, 의미상 가장 가까운 다른 skill로 collapse하거나 silent switch하지 않습니다. 명시 요청이 없는 한 Pi가 직접 구현/문서 rewrite를 수행하지 않습니다.

Rules:

  1. 사용자가 concrete task 없이 /skill:handoff-twix만 호출한 경우:
  1. 사용자가 /skill:handoff-twix와 concrete task/command를 함께 제공한 경우:
  1. 요청 task가 의미상 docs-refactor, review-twix, fix-review, final-review에 가까운 경우:
  1. task가 handoff-twix scope 밖인 경우:
  1. 사용자가 이미 다음을 제공한 경우 “진행할까요?”를 묻지 않습니다.
  1. 다음처럼 필수 detail이 빠진 경우에만 질문합니다.

Examples:

Implementation agent

Claude Code가 고정 implementation agent입니다.

Codex는 이 skill의 implementation orchestration 대상이 아닙니다.

Claude implementation은 Fastlane/build verification을 실행하지 않습니다. Pi의 final-review가 verification, commit, PR draft를 담당합니다.

Primary workflow

기본 동작은 end-to-end handoff입니다. 사용자가 전체 handoff를 요청하면 plan 작성부터 Claude Code handoff, 구현 후 review, 승인된 safe fix, 필요 시 final-review handoff까지 한 흐름으로 조율합니다.

  1. Pi가 concise implementation plan을 만듭니다.
  2. Pi가 Claude Code용 handoff 파일을 작성합니다.
  3. Claude Code가 runner 또는 manual handoff로 구현합니다.
  4. Claude Code가 concise implementation result 파일을 작성합니다.
  5. Pi가 git diff를 source of truth로 삼아 review-twix 기준으로 결과를 리뷰합니다.
  6. 요청/승인 시 Pi가 fix-review 기준으로 승인된 safe finding만 수정합니다.
  7. 요청 시 Pi가 final-review로 verification, commit, PR draft를 넘깁니다.

개별 Mode A-E는 명시적으로 요청할 때 사용하는 partial workflow입니다. 전체 흐름을 진행하려면 Default workflow를 우선합니다.

기준 문서

항상 먼저 읽습니다.

  1. AGENTS.md

필요한 경우에만 canonical docs를 읽습니다.

규칙:

Handoff directory

사용 경로:

.agent/handoff/

예상 파일:

.agent/handoff/PLAN.md
.agent/handoff/IMPLEMENTATION_REQUEST.md
.agent/handoff/IMPLEMENTATION_RESULT.md
.agent/handoff/REVIEW_REPORT.md
.agent/handoff/FIX_REPORT.md
.agent/handoff/claude.out
.agent/handoff/claude.err

공통 원칙

Default workflow — End-to-end handoff

사용 시점: 사용자가 full handoff process를 요청할 때.

Process:

  1. .agent/handoff/PLAN.md를 작성합니다.
  2. .agent/handoff/IMPLEMENTATION_REQUEST.md를 작성합니다.
  3. Claude Code implementation 방식을 결정합니다.
  1. runner 실행이 요청된 경우:
  1. manual handoff가 선택된 경우:
  1. Claude implementation 완료 후:
  1. review-twix standard를 실행합니다.
  2. .agent/handoff/REVIEW_REPORT.md를 작성합니다.
  3. finding이 있으면:
  1. 사용자가 safe finding 자동 수정을 이미 승인한 경우:
  1. auto-fix 승인이 없으면:
  1. 요청된 경우 final-review로 hand off합니다.
  2. handoff-twix 내부에서는 commit, push, PR 생성을 하지 않습니다.

Important approval policy:

Claude runner behavior

Scripts/run-claude-implementation.sh는 repository root에서 실행합니다.

Runner responsibilities:

Claude must write:

.agent/handoff/IMPLEMENTATION_RESULT.md

Required result status:

STATUS: DONE | BLOCKED | NO_CHANGES | FAILED

Partial workflows / explicit subcommands

아래 Mode A-E는 사용자가 명시적으로 요청할 때 사용하는 optional partial workflow입니다. 정상적인 필수 순서가 아니며, full handoff 요청에는 Default workflow를 우선 적용합니다.

예시 요청:

Mode A — Create Claude implementation handoff

사용 시점: 사용자가 Claude Code용 작업 계획 파일만 만들라고 요청할 때.

Process:

  1. AGENTS.md를 읽습니다.
  2. 관련 파일만 inspect합니다.
  3. architecture fit을 식별합니다.
  4. .agent/handoff/PLAN.md를 작성합니다.
  5. .agent/handoff/IMPLEMENTATION_REQUEST.md를 작성합니다.
  6. 구현하지 않습니다.
  7. 최종 chat output은 짧게 작성 파일만 알립니다.

PLAN.md 포함 항목:

IMPLEMENTATION_REQUEST.md 포함 항목:

Mode B — Run or prepare Claude implementation

사용 시점: 사용자가 handoff를 기반으로 Claude Code 구현을 실행하거나 manual handoff instruction을 원할 때.

Process:

  1. IMPLEMENTATION_REQUEST.md를 prompt source로 사용합니다.
  2. preferred runner는 Scripts/run-claude-implementation.sh입니다.
  3. runner 실행은 명시 요청과 twix-gate confirmation을 필요로 합니다.
  4. runner를 사용할 수 없으면 manual handoff instruction을 제공합니다.
  5. unknown Claude Code command를 hardcode하지 않습니다. 이 repo의 runner가 canonical command입니다.

Mode C — Review implementation result

사용 시점: 사용자가 Claude Code 작업이 끝났고 review만 이어서 하라고 말할 때.

Process:

  1. 있으면 .agent/handoff/IMPLEMENTATION_RESULT.md를 읽습니다.
  2. STATUS: line을 확인합니다.
  3. git diff를 inspect합니다.
  4. 변경 diff에 review-twix standard를 적용합니다.
  5. .agent/handoff/REVIEW_REPORT.md를 작성합니다.
  6. 요청이 없으면 긴 review를 chat에 출력하지 않습니다.
  7. blocking issue가 있으면 짧은 요약을 보고하고 fix-review 실행 여부를 묻습니다.

Mode D — Apply approved fixes

사용 시점: 사용자가 review finding 수정을 승인했을 때.

Process:

  1. REVIEW_REPORT.md를 primary input으로 사용합니다.
  2. fix-review standard를 적용합니다.
  3. 승인된 finding만 수정합니다.
  4. .agent/handoff/FIX_REPORT.md를 작성합니다.
  5. commit하지 않습니다.

Mode E — Finalize

사용 시점: 사용자가 PR finalization으로 진행하라고 요청할 때.

Process:

  1. final-review로 hand off합니다.
  2. final-review가 verification, commit, PR draft를 처리합니다.
  3. final-review workflow를 중복하지 않습니다.

Token efficiency rules

External agent rules

Safety

출력 형식

한국어로 보고합니다.

End-to-end mode

진행 단계:
- 

작성/갱신한 handoff 파일:
- 

구현 agent:
- Claude Code

리뷰 결과:
- 

자동 수정:
- 

다음 단계:
- 

Mode A

작성한 handoff 파일:
- 

Claude Code에게 줄 다음 명령:
- 

열린 질문:
- 

토큰 절약 방식:
- 

Mode C

리뷰 결과 요약:
- 

REVIEW_REPORT.md 위치:
- 

blocking 이슈:
- 

fix-review 실행 여부 질문:
- 

Mode D

수정한 finding:
- 

FIX_REPORT.md 위치:
- 

남은 이슈:
- 
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.