What problem does it solve?
End-of-session cleanup ensures the workspace is returned to a known, validated state by executing a fixed, ordered checklist: update artifacts, run typechecks, verify Git status, clean temporary files, commit, and push. It prevents drift between sessions and guarantees a reproducible end state.
Core Features & Use Cases
- Update TODO.md when present to reflect reality: current state, next steps, landmines with exact prescriptions.
- Run Typechecks using the project's configured tool (e.g., pnpm typecheck, tsc, mypy) and halt on failures.
- Verify Git Status to ensure only expected files are changed and no credentials or large binaries are committed.
- Clean Temp Files by removing contents of temp/ and related artifacts while preserving the directories.
- Check for Doc Drift by scanning markdown changes for consistency with the current state.
- Commit changes with descriptive messages and enforce repository conventions.
- Push changes to origin and perform a final verification.
Quick Start
Execute the squeaky-clean skill from the project root to run the cleanup checklist, performing typechecks, git status verification, temp cleanup, commits, and pushes.