cathrynlavery

Clean Session — Productivity skill for Claude Code

Productivity community

You are implementing a session-start workspace hygiene workflow.

How to install Clean Session

Installs to ~/.claude/skills/cathrynlavery-dotagents-clean-session/SKILL.md

Terminal
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 Repository