my-session-wrap/skills/my-session-wrap/SKILL.md
세션 마무리: handoff 문서 저장 + git commit. /wrap 슬래시 명령어로만 실행.
npx skillsauth add ahnbu/my-claude-plugins wrapInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
세션 마무리 시 실행하는 경량 워크플로우. Claude, Codex, Gemini 공통.
_handoff/handoff_YYYYMMDD_01_한줄요약.md 저장으로 다음 세션에서 즉시 재개Step 1. handoff 파일 생성
Step 2. git commit — cp 위임 (git 없으면 종료)
Step 3. 규칙 후보 확인 + 재개 안내
다음 스크립트 실행 전에 파일명에 포함될 <한줄요약>을 작성한다.
파일명 형식: _handoff/handoff_YYYYMMDD_01_한줄요약.md (예: next-handoff-스크립트화, 세션ID-훅-수정)
SCRIPT="$(node -e "process.stdout.write(require('os').homedir())")/.claude/my-claude-plugins/my-session-wrap/skills/my-session-wrap/scripts/next-handoff.mjs"
node "$SCRIPT" --json "" "<한줄요약>" "<session_id>"
<session_id>: hook 피드백 [session_id=...] 값. 없으면 빈 문자열.스크립트가 런타임 감지, 세션 ID 해결, 세션 요약 조회, handoff 파일 생성을 일괄 수행한다. JSON 출력을 CONTEXT로 기억한다.
CONTEXT.handoff_path: 생성된 파일 — Read 후 Edit으로 본문을 채운다CONTEXT.summary: null이면 AI 컨텍스트에서 직접 작성CONTEXT.handoff_path 파일을 Read한 뒤, Edit으로 채운다.
YAML frontmatter:
tags: 필수 — 프로젝트명·작업유형 (예: my-claude-plugins, wrap, refactor)plan: 비어있고 이 세션에서 Plan Mode 사용 시 plan 파일 절대경로 직접 채움본문 §1~§6:
CONTEXT.summary가 null이 아니면: 헤더에 토큰·도구 통계 포함, keyEvents로 진행 현황 교차 검증[규칙 후보] 태그 추가금지: YAML frontmatter 형식 변경, BQ(>) 헤더 추가
handoff 작성 완료 후, CONTEXT.summary의 gaps 배열과 작성된 handoff를 대조한다:
decision 유형이 있지만 handoff §1 의사결정에 미반영 → 보완unresolved 유형이 있지만 handoff에 미반영 → §4 다음 세션 작업에 추가lesson 유형이 있지만 handoff §5에 미반영 → 보완Step 1의 handoff 작성이 완료되면, 아래 스킬을 읽고 그대로 따른다.
C:\Users\ahnbu\.claude\my-claude-plugins\my-session-wrap\skills\cp\SKILL.md
cp의 staging, commit message, push 로직을 여기서 재구현하지 않는다.handoff의 [규칙 후보] 태그가 1개 이상이면 재개 안내에 포함시켜 출력:
⚠️ [규칙 후보] N건 — handoff §3 참조. 반영하려면 "규칙 후보 반영해줘"로 요청.
생성된 handoff 경로를 포함한 재개 프롬프트 출력:
---
✅ Handoff 저장: <handoff 절대경로 (상대경로 금지)>
다음 세션에서 이어가려면:
이전 세션에 이어서 작업합니다. /continue
---
주의: MEMORY.md(auto memory)는 이 워크플로우의 범위가 아니다. auto memory는 작업 중 자연스럽게 갱신되는 별도 기능이다.
tools
스킬별 컨텍스트 소모량 리포트. 각 스킬 호출이 cp%를 얼마나 소모하는지 집계. Triggers: 'skill-context', 'skill context', '스킬 컨텍스트', '스킬 소모', '컨텍스트 비용'
tools
--- name: session-timeline description: Generate a per-session execution timeline from Claude Code JSONL logs. Triggers: "session timeline", "세션 타임라인", "소요시간 정리", "tool wait", "turn_duration". --- # Session Timeline 특정 Claude Code 세션 ID의 시간축을 복원한다. ## Workflow 1. `sessionId`를 받는다. 2. `scripts/session_timeline.js`를 실행해 timeline을 생성한다. 3. 기본은 markdown, 분석 파이프라인 연결 시 `--format json`을 사용한다. 4. 대형 `tool_result`는 원문 대신 persisted output 경로와 요약만 유지한다. ## Command ```bash node skills/session-timelin
development
This skill should be used when the user asks to "analyze session", "세션 분석", "evaluate skill execution", "스킬 실행 검증", "check session logs", "로그 분석", provides a session ID with a skill path, or wants to verify that a skill executed correctly in a past session. Post-hoc analysis of Claude Code sessions to validate skill/agent/hook behavior against SKILL.md specifications.
development
This skill should be used when user wants to access, capture, or reference Claude Code session history. Trigger when user says "capture session", "save session history", or references past/current conversation as a source - whether for saving, extracting, summarizing, or reviewing. This includes any mention of "what we discussed", "today's work", "session history", or when user treats the conversation itself as source material (e.g., "from our conversation").