Sweep the session into the attic
Goal: after this runs, a fresh session that reads only .attic/INDEX.md
could continue the work.
Pipeline:
- Collect. Review the conversation for anything not yet stashed: findings, decisions and why, the current plan and what is done, open questions, and in-progress state (files being edited, failing tests, commands to rerun).
- Dedupe. Run the index and drop anything already covered. Append to an existing item where there is genuinely new detail.
node "${CLAUDE_SKILL_DIR}/../attic/scripts/attic.js" index
- Write. One stash per finding or decision, following
/attic-stash. Then one session item, usingtemplates/session.mdas the shape:
node "${CLAUDE_SKILL_DIR}/../attic/scripts/attic.js" stash \
--slug session-$(date +%F) --kind plan --title "Session $(date +%F)" \
--hook "<what this session is doing, one line>" --body-file <tmpfile>
- Verify.
node "${CLAUDE_SKILL_DIR}/../attic/scripts/attic.js" validate
Fix anything it reports before finishing. 5. Report. List the handles written, one per line, then a single line: "Safe to /compact."
Copy commands, paths and errors verbatim. No secrets.