Clean Session — Productivity skill for Claude Code
You are implementing a session-start workspace hygiene workflow.
How to install Clean Session
Installs to ~/.claude/skills/cathrynlavery-dotagents-clean-session/SKILL.md
mkdir -p ~/.claude/skills/cathrynlavery-dotagents-clean-session && curl -fsSL https://raw.githubusercontent.com/cathrynlavery/dotagents/HEAD/commands/clean-session.md -o ~/.claude/skills/cathrynlavery-dotagents-clean-session/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Clean Session does
You are implementing a session-start workspace hygiene workflow. This command runs **at the beginning of a new session** to guard against context injection by removing untracked artifacts and ensuring only official git-tracked content is loaded.
Workflow Overview
This workflow maintains workspace hygiene by:
- Removing untracked files and artifacts from previous sessions
- Reverting uncommitted changes
- Restoring the workspace to a clean git state
- Ensuring only **official, committed cont
Alternatives in Productivity
- Nosqli — NoSQL injection scanner (MongoDB/Mongoose/operator-injection DBs) — auth bypass via $ne/$gt operators, bracket 4.5k ★
- Swarm Worker — You are a swarm worker agent for the {{tentacleName}} tentacle 1.4k ★
- Start Task 335 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Hatch3r Debug
Standalone debug-and-fix workflow — add strategic debug logging, collect runtime logs from the user, perform r
Quality Check
Score recent Shipwright artifacts against core rubric dimensions to detect quality drift over time.
Resume Fantasy
Resume Alex's "It's Business Time" Fantasy War Room context at the start of a new session — reloads memory, ch
Recall Context
Pull relevant prior-session context from memory MCP for the current project/task — run at start of any session
Session
Session workflow for implementing tasks from a phase file
Generate All
Generate all project planning artifacts from PROJECT-CONTEXT.md using the full orchestrated workflow
Related Agents
Hatch3r Handoff Loader
Session-start agent that surfaces active handoff documents from .hatch3r/handoffs/active/. Use at the beginnin
Git Workflow Specialist
Use this agent for git workflow management, branch strategies, commit hygiene, and git worktree operations. Th
Doc Janitor
Use this agent to clean up stale documentation artifacts before merging a branch. Finds plan files, session su