LogoSkills

session:wrap

Auto-update .claude/ documents on session end

ํ•ญ๋ชฉ๋‚ด์šฉ
Invoke/session:wrap
Aliases/wrap, /sw
Categorykobic-automation
Complexitymoderate

/session:wrap โ€” ์ž‘์—… ๋งˆ๋ฌด๋ฆฌ ์ •๋ฆฌ#

ํ•œ๋งˆ๋””๋กœ#

์˜ค๋Š˜ ์ž‘์—…ํ•˜๋ฉด์„œ ์ƒˆ๋กœ ๋ฐฐ์šด ๊ทœ์น™๊ณผ ํŒ์„ AI๊ฐ€ ์•Œ์•„์„œ ์ •๋ฆฌํ•ด ๋งค๋‰ด์–ผ ๋ฌธ์„œ์— ์ ์–ด๋‘๋Š” ๋‹จ๊ณ„์ž…๋‹ˆ๋‹ค. ํšŒ์˜๊ฐ€ ๋๋‚œ ๋’ค ๋ˆ„๊ตฐ๊ฐ€ ํšŒ์˜๋ก์„ ์ •๋ฆฌํ•ด ๋‹ค์Œ ์‚ฌ๋žŒ๋„ ๋ณผ ์ˆ˜ ์žˆ๊ฒŒ ๋‚จ๊ฒจ๋‘๋Š” ๊ฒƒ๊ณผ ๊ฐ™์•„์š”.

๋ˆ„๊ฐ€ยท์–ธ์ œ ์“ฐ๋‚˜์š”#

  • ํ•œ ๋ฒˆ์˜ ์ž‘์—…(์„ธ์…˜)์„ ๋งˆ์น  ๋•Œ, ๋๋‚ด๊ธฐ ์ง์ „์—
  • ์ž‘์—… ์ค‘ ์ค‘์š”ํ•œ ํŒจํ„ด์ด๋‚˜ ๊ทœ์น™์„ ์ƒˆ๋กœ ๋ฐœ๊ฒฌํ–ˆ์„ ๋•Œ
  • ๋ฐ˜๋ณต๋˜๋Š” ์ผ์ด๋ผ "์ด๊ฑด ์ž๋™ํ™”ํ•˜๋ฉด ์ข‹๊ฒ ๋‹ค" ์‹ถ์€ ๊ฒŒ ๋ณด์˜€์„ ๋•Œ
  • ๋งค๋‰ด์–ผ ๋ฌธ์„œ๋ฅผ ์ตœ์‹  ์ƒํƒœ๋กœ ๊ฐฑ์‹ ํ•˜๊ณ  ์‹ถ์„ ๋•Œ

๋ฌด์—‡์„ ํ•ด์ฃผ๋‚˜์š”#

์ž‘์—… ๋‚ด์šฉ์„ ๋ถ„์„ํ•ด์„œ, ํ”„๋กœ์ ํŠธ์˜ ์•ˆ๋‚ด ๋ฌธ์„œ๋“ค์„ ์ž๋™์œผ๋กœ ์—…๋ฐ์ดํŠธํ•ด ์ค๋‹ˆ๋‹ค. ์ฃผ๋กœ ์†๋Œ€๋Š” ๊ณณ์€:

  • CLAUDE.md โ€” ํ”„๋กœ์ ํŠธ์˜ ๊ธฐ๋ณธ ์•ˆ๋‚ด์„œ (๊ทœ์น™ยท๊ตฌ์กฐ ๋ณ€๊ฒฝ ๋ฐ˜์˜)
  • .claude/rules/ โ€” ์ฝ”๋”ฉ ๊ทœ์น™ ๋ฌธ์„œ (์ƒˆ ๊ทœ์น™ ์ถ”๊ฐ€)
  • .claude/commands/ โ€” ์ƒˆ ๊ธฐ๋Šฅ(์Šคํ‚ฌ/์—์ด์ „ํŠธ) ์ •์˜ ์ถ”๊ฐ€
  • .claude/session-logs/ โ€” ์ž‘์—… ์š”์•ฝ ๋ณด๊ด€ (์„ ํƒ)

๋˜ํ•œ ์ž๋™ํ™”ํ•˜๋ฉด ์ข‹์„ ๋ฐ˜๋ณต ์ž‘์—…, ๋‹ค์Œ์— ์ด์–ด์„œ ํ•  ํ›„์† ์ž‘์—…๋„ ํ•จ๊ป˜ ์ •๋ฆฌํ•ด ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.

์–ด๋–ป๊ฒŒ ์“ฐ๋‚˜์š”#

# ์ „์ฒด ์ž‘์—… ๋ถ„์„ ํ›„ ๋ฌธ์„œ ์—…๋ฐ์ดํŠธ
/session:wrap

# ํŠน์ • ์˜์—ญ๋งŒ ๊ฐฑ์‹ 
/session:wrap --scope rules      # ๊ทœ์น™๋งŒ
/session:wrap --scope commands   # ๋ช…๋ น(์Šคํ‚ฌ)๋งŒ
/session:wrap --scope agents     # ์—์ด์ „ํŠธ๋งŒ

# ๋ฏธ๋ฆฌ๋ณด๊ธฐ (์‹ค์ œ ์ˆ˜์ • ์—†์ด ๋ฐ”๋€” ๋‚ด์šฉ๋งŒ ํ™•์ธ) - ์ถ”์ฒœ
/session:wrap --dry-run

์ฒ˜์Œ ์“ธ ๋•Œ๋Š” --dry-run์œผ๋กœ ๋จผ์ € ๋ฏธ๋ฆฌ๋ณด๊ธฐ ํ•˜๋Š” ๊ฒƒ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค. ์‹ค์ œ ํŒŒ์ผ์„ ๊ณ ์น˜๊ธฐ ์ „์— ์–ด๋–ค ๋‚ด์šฉ์ด ์ถ”๊ฐ€/์ˆ˜์ •๋ ์ง€ ํ™•์ธํ•  ์ˆ˜ ์žˆ์–ด์š”.

์•ˆ์—์„œ ๋ฌด์Šจ ์ผ์ด ๋ฒŒ์–ด์ง€๋‚˜์š”#

ํฌ๊ฒŒ ๋‘ ๋‹จ๊ณ„๋กœ ์ง„ํ–‰๋ฉ๋‹ˆ๋‹ค.

  1. ์—ฌ๋Ÿฌ ๊ด€์ ์—์„œ ๋™์‹œ์— ๋ถ„์„ (4๊ฐ€์ง€) โ€” โ‘  ๋ฌธ์„œ ์—…๋ฐ์ดํŠธํ•  ๋‚ด์šฉ ์ฐพ๊ธฐ, โ‘ก ์ž๋™ํ™”ํ•˜๋ฉด ์ข‹์„ ๋ฐ˜๋ณต ํŒจํ„ด ์ฐพ๊ธฐ, โ‘ข ์ด๋ฒˆ์— ๋ฐฐ์šด ๊ทœ์น™ยทํŒจํ„ด ๋ฝ‘์•„๋‚ด๊ธฐ, โ‘ฃ ๋‹ค์Œ์— ์ด์–ด์„œ ํ•  ํ›„์† ์ž‘์—… ์ œ์•ˆํ•˜๊ธฐ. ๋„ค ๊ฐ€์ง€๋ฅผ ํ•œ๊บผ๋ฒˆ์— ์‚ดํŽด๋ด…๋‹ˆ๋‹ค.
  2. ์ค‘๋ณต ์ •๋ฆฌ ํ›„ ๋งˆ๋ฌด๋ฆฌ (1๊ฐ€์ง€) โ€” ์•ž์—์„œ ๋ชจ์€ ๊ฒฐ๊ณผ ์ค‘ ๊ฒน์น˜๊ฑฐ๋‚˜ ์ถฉ๋Œํ•˜๋Š” ๋‚ด์šฉ์„ ์ •๋ฆฌํ•˜๊ณ , ๊ธฐ์กด ๋ฌธ์„œ์™€ ์ผ๊ด€์„ฑ์„ ๋งž์ถฐ ์ตœ์ข… ๋ฐ˜์˜ํ•ฉ๋‹ˆ๋‹ค. ๋งˆ์ง€๋ง‰์— ๋ฌด์—‡์ด ๋ฐ”๋€Œ์—ˆ๋Š”์ง€ ์š”์•ฝํ•ด์„œ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.

๊ธฐ์กด ๋‚ด์šฉ์„ ํ•จ๋ถ€๋กœ ์ง€์šฐ์ง€ ์•Š๊ณ  ๋”ํ•˜๊ฑฐ๋‚˜ ๊ณ ์น˜๋Š” ์‹์œผ๋กœ๋งŒ ๋ฐ”๊พธ๋ฉฐ, ์ค‘์š”ํ•œ ๋ณ€๊ฒฝ์€ ์‚ฌ์šฉ์ž ํ™•์ธ์„ ๋ฐ›์€ ๋’ค ์ ์šฉํ•ฉ๋‹ˆ๋‹ค.


โš™๏ธ ์ƒ์„ธ ์˜ต์…˜ยท์‹คํ–‰ ๋ช…์„ธ (๊ฐœ๋ฐœ์ž / AI ์—์ด์ „ํŠธ์šฉ)

Triggers#

  • Just before session end
  • After discovering important patterns/rules
  • When new automatable tasks are discovered
  • When document updates are needed

Usage#

# Full session analysis and document update
/session:wrap

# Update specific area only
/session:wrap --scope rules      # Rules only
/session:wrap --scope commands   # Commands only
/session:wrap --scope agents     # Agents only

# Dry run (preview changes) - recommended
/session:wrap --dry-run

Recommended: Use --dry-run on first use to preview changes. You can review what content will be added/modified before actual file modification.


Execution Flow (2 Phases)#

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    /session:wrap                                โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                                 โ”‚
โ”‚  โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•   โ”‚
โ”‚  โ•‘ Phase 1: Parallel Analysis (4 Agents)                     โ•‘   โ”‚
โ”‚  โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•   โ”‚
โ”‚                                                                 โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”‚
โ”‚  โ”‚ doc-updater โ”‚ โ”‚ automation  โ”‚ โ”‚ learning    โ”‚ โ”‚ followup   โ”‚โ”‚
โ”‚  โ”‚   Agent     โ”‚ โ”‚   -scout    โ”‚ โ”‚ -extractor  โ”‚ โ”‚ -suggester โ”‚โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ”‚
โ”‚         โ”‚               โ”‚               โ”‚              โ”‚        โ”‚
โ”‚         โ–ผ               โ–ผ               โ–ผ              โ–ผ        โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”‚
โ”‚  โ”‚                   Collect Analysis Results                 โ”‚โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ”‚
โ”‚                                                                 โ”‚
โ”‚  โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•   โ”‚
โ”‚  โ•‘ Phase 2: Sequential Processing (1 Agent)                  โ•‘   โ”‚
โ”‚  โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•   โ”‚
โ”‚                                                                 โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚             duplicate-checker Agent                      โ”‚   โ”‚
โ”‚  โ”‚    - Duplicate content check                             โ”‚   โ”‚
โ”‚  โ”‚    - Conflict resolution                                 โ”‚   โ”‚
โ”‚  โ”‚    - Final document cleanup                              โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ”‚                                                                 โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚                  Output Result Summary                    โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ”‚                                                                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Phase 1: Parallel Analysis Agents#

1. doc-updater Agent#

Update CLAUDE.md and related documents based on session content

Analysis Targets:

  • Newly discovered coding conventions
  • Added project settings
  • Changed architecture patterns
  • New dependencies/packages

Output:

updates:
  - file: CLAUDE.md
    section:  " ## Architecture and Structure " 
     action: append
    content:  " New architecture pattern description... " 
   - file: .claude/rules/naming.md
    section:  " ### Naming Rules " 
     action: update
    content:  " Updated naming rules... "

2. automation-scout Agent#

Detect new automatable patterns

Analysis Targets:

  • Repetitively performed tasks
  • Manually handled tasks that could be pattern-ized
  • Tasks that could become new skills

Output:

automatable_patterns:
  - pattern:  " Always add State when adding BLoC event " 
     frequency: 3
    suggestion:  " Recommend creating bloc-event-state-pair skill " 
   - pattern:  " Always add same imports after test file creation " 
     frequency: 5
    suggestion:  " Add auto-import to test-template skill "

3. learning-extractor Agent#

Extract rules/patterns learned during the session

Analysis Targets:

  • Modified code patterns
  • Resolved errors and their solutions
  • Preferences learned from user feedback
  • Project-specific rules

Output:

learnings:
  - type: rule
    category:  " Code style " 
     content:  " Actively use dot shorthand (.start, .center, etc.) " 
     evidence:  " User pointed out unnecessary full type name usage " 
   - type: pattern
    category:  " BLoC " 
     content:  " isClosed check required after await " 
     evidence:  " Fixed multiple times due to lint errors "

4. followup-suggester Agent#

Suggest follow-up tasks

Analysis Targets:

  • Incomplete TODOs
  • Mentioned improvements
  • Discovered technical debt
  • Tasks for next session

Output:

followups:
  - priority: high
    task:  " Achieve 80% test coverage for console_author_management " 
     reason:  " Currently 45% - missing tests for key features " 
   - priority: medium
    task:  " Optimize author search API " 
     reason:  " Takes 2+ seconds for 100+ records "

Phase 2: Sequential Processing Agent#

5. duplicate-checker Agent#

Duplicate content check and cleanup

Processing Content:

  • Duplicate check of Phase 1 results
  • Conflict resolution with existing documents
  • Consistency verification
  • Apply final changes

Output:

deduplication_result:
  removed_duplicates: 2
  merged_entries: 1
  conflicts_resolved: 0
  final_changes:
    - file: CLAUDE.md
      lines_added: 15
      lines_removed: 3
    - file: .claude/rules/bloc-patterns.md
      lines_added: 8
      lines_removed: 0

Detailed Implementation#

Main Execution Logic#

async function sessionWrap(options: WrapOptions) {
  // Phase 1: Parallel analysis
  const [docUpdates, automations, learnings, followups] = await Promise.all([
    Task({
      subagent_type:  " session-doc-updater " ,
      prompt:  " Analyze session conversation content to suggest document updates " ,
    }),
    Task({
      subagent_type:  " session-automation-scout " ,
      prompt:  " Detect automatable patterns " ,
    }),
    Task({
      subagent_type:  " session-learning-extractor " ,
      prompt:  " Extract learned rules/patterns " ,
    }),
    Task({
      subagent_type:  " session-followup-suggester " ,
      prompt:  " Suggest follow-up tasks " ,
    }),
  ]);

  // Phase 2: Sequential processing
  const finalResult = await Task({
    subagent_type:  " session-duplicate-checker " ,
    prompt: `
      Review the following Phase 1 results and resolve duplicates/conflicts:

      ## Doc Updates
      ${JSON.stringify(docUpdates)}

      ## Automations
      ${JSON.stringify(automations)}

      ## Learnings
      ${JSON.stringify(learnings)}

      ## Followups
      ${JSON.stringify(followups)}
    `,
  });

  // Output results
  displayWrapSummary(finalResult);
}

Output Format#

Progress#

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘  /session:wrap Progress                                        โ•‘
โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ
โ•‘                                                                โ•‘
โ•‘  Phase 1: Parallel Analysis [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘] 75%             โ•‘
โ•‘                                                                โ•‘
โ•‘  โœ… doc-updater: 3 document updates suggested                  โ•‘
โ•‘  โœ… automation-scout: 2 automation patterns found              โ•‘
โ•‘  ๐Ÿ”„ learning-extractor: Analyzing...                           โ•‘
โ•‘  โณ followup-suggester: Waiting                                โ•‘
โ•‘                                                                โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

On Completion#

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘  Session Wrap Complete                                         โ•‘
โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ
โ•‘                                                                โ•‘
โ•‘  ๐Ÿ“ Document Updates                                           โ•‘
โ•‘  โ”œโ”€โ”€ CLAUDE.md: +15 lines (coding conventions added)           โ•‘
โ•‘  โ”œโ”€โ”€ .claude/rules/bloc-patterns.md: +8 lines                 โ•‘
โ•‘  โ””โ”€โ”€ .claude/commands/session/wrap.md: newly created           โ•‘
โ•‘                                                                โ•‘
โ•‘  ๐Ÿค– Automation Suggestions                                     โ•‘
โ•‘  โ”œโ”€โ”€ Recommend creating bloc-event-state-pair skill            โ•‘
โ•‘  โ””โ”€โ”€ Recommend adding test-template auto-import                โ•‘
โ•‘                                                                โ•‘
โ•‘  ๐Ÿ“š Learned Content                                            โ•‘
โ•‘  โ”œโ”€โ”€ [Rule] Actively use dot shorthand                         โ•‘
โ•‘  โ”œโ”€โ”€ [Rule] isClosed check required after await                โ•‘
โ•‘  โ””โ”€โ”€ [Pattern] ZenHub issueTypeId must be specified            โ•‘
โ•‘                                                                โ•‘
โ•‘  ๐Ÿ“‹ Follow-up Tasks                                            โ•‘
โ•‘  โ”œโ”€โ”€ [High] Achieve 80% test coverage                          โ•‘
โ•‘  โ””โ”€โ”€ [Medium] Optimize author search API                       โ•‘
โ•‘                                                                โ•‘
โ•‘  ๐Ÿ”„ Duplicates removed: 2                                      โ•‘
โ•‘  โš ๏ธ Conflicts resolved: 0                                      โ•‘
โ•‘                                                                โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Target Files#

Analysis Targets#

PathDescription
CLAUDE.mdProject main guide
.claude/rules/**/*.mdCoding rules
.claude/commands/**/*.mdSkill/agent definitions
.claude/settings.local.jsonLocal settings

Output Targets#

PathDescription
CLAUDE.mdConvention, architecture updates
.claude/rules/New rule file creation
.claude/commands/New skill/agent creation
.claude/session-logs/Session summary storage (optional)

Options#

OptionDefaultDescription
--scopeallAnalysis scope (all/rules/commands/agents)
--dry-runfalsePreview changes only
--auto-commitfalseAuto-commit changes
--skip-duplicatesfalseSkip duplicate check

  • session-doc-updater - Document update analysis
  • session-automation-scout - Automation pattern detection
  • session-learning-extractor - Learned content extraction
  • session-followup-suggester - Follow-up task suggestions
  • session-duplicate-checker - Duplicate check and cleanup

Context Passing#

How sub-agents access session conversation content:

Auto Context (default)#

Claude Code's Task tool auto-passes current conversation context to general-purpose agents. Sub-agents analyze by referencing previous conversation content.

// Context auto-included on agent call
Task({
  subagent_type:  " Explore " ,  // general-purpose type
  prompt:  " Extract rules learned during session " ,
  // Previous conversation content auto-passed to agent
});

Explicit Context Passing#

When specific information needs to be explicitly passed:

Task({
  subagent_type:  " session-learning-extractor " ,
  prompt: `
    ## Session Info to Analyze

    ### Modified Files
    - ${modifiedFiles.join( ' \n-  ' )}

    ### User Feedback
    - ${userFeedbacks.join( ' \n-  ' )}

    ### Errors Encountered
    - ${errors.join( ' \n-  ' )}

    Extract learned rules/patterns based on the above information.
  `,
});

Context Limitations#

ItemAccessibleNotes
Current session conversationOAuto-passed
Previous session conversationXIsolated between sessions
File systemOVia Read, Glob, Grep tools
Git historyOVia Bash tool

Key Rules#

  1. Non-destructive Updates: Prefer additions/modifications over deleting existing content
  2. Evidence-based: State session-based evidence for all changes
  3. Maintain Consistency: Maintain consistency with existing document style
  4. Prevent Duplicates: Prevent duplicate content additions
  5. User Confirmation: Apply important changes only after user confirmation