donelisted
Install: claude install-skill stepanenkoviktor0110-boop/ai-dev-methodology
# Done — Finalize Session
Closes a work session by detecting what changed in code/config and verifying
that project documentation reflects those changes.
Works in two modes:
- **Feature mode** — if `work/{feature}/` directory exists with specs
- **Session mode** — any work session, no feature directory required
## Step 1: Collect Session Diff
Determine what changed in this session:
```
git log --oneline -20
```
From the log, identify the range of commits made in the current session
(typically: everything after the last `docs:` commit or the last commit
before the session started).
Then collect changed files:
```
git diff --name-only <first-session-commit>^..HEAD
```
## Step 2: Check if Project Knowledge Exists
If `.claude/skills/project-knowledge/references/` does not exist or is empty:
- Skip documentation check
- Inform user: "Project knowledge not initialized, skipping docs check."
- Jump to Step 6
## Step 3: Load Drift Checklist
Read `.claude/skills/project-knowledge/references/drift-checklist.md`.
This file maps source file patterns → PK documentation sections.
Each project maintains its own checklist tailored to its structure.
**If the file does not exist** — generate it:
1. Read the project's PK files to understand what's documented
2. Scan the project structure (`ls` key directories)
3. Create a checklist mapping actual project paths → PK sections
4. Write to `.claude/skills/project-knowledge/references/drift-checklist.md`
5. Inform user: "Generated drift