Get the FREE Ultimate OpenClaw Setup Guide →

dev-session

npx machina-cli add skill jezweb/claude-skills/dev-session --openclaw
Files (1)
SKILL.md
4.5 KB

Dev Session

Manage multi-session development work with structured progress files, checkpoint commits, and durable learnings. Produces SESSION.md files that survive context compaction and enable clean handoff between sessions.

Operating Modes

Mode 1: Start Session

When: Beginning multi-step work, "start session", "new session for [feature]"

  1. Check if SESSION.md already exists in the project root
  2. Pre-fill fields:
    • Project: from CLAUDE.md or directory name
    • Branch: from git branch --show-current
    • Last Updated: current timestamp
    • Phase: ask user what they're working on
  3. Read the project's CLAUDE.md to orient on context
  4. Present a brief summary: "Session started. Working on [phase] on branch [branch]."

Mode 2: Checkpoint

When: "checkpoint", major milestone reached, before risky changes, context getting large

  1. Update SESSION.md:
    • Add completed items to What Works
    • Update Current Position with exact location (file paths, line numbers)
    • Clear resolved Blockers, add new ones
    • Write concrete Resume Instructions
  2. Capture learnings:
    • If any patterns, gotchas, or commands were discovered during work, add them to CLAUDE.md
    • One line per concept — concise, not verbose
  3. Git checkpoint:
    git add -A && git commit -m "WIP: [what was accomplished]"
    
  4. Record the commit hash in SESSION.md under Checkpoint
  5. Confirm: "Checkpointed at [hash]. SESSION.md updated."

Mode 3: Resume Session

When: "resume", "continue from last session", "where were we", start of a new conversation

  1. Read SESSION.md — if missing, inform user and offer to start a new session
  2. Read the project's CLAUDE.md for context
  3. Check what's changed since the recorded checkpoint:
    git log --oneline [checkpoint-hash]..HEAD
    
  4. Check for uncommitted changes: git status
  5. Present a summary:
    • Phase: what we were working on
    • Position: where we left off
    • Changes since: any commits or modifications since checkpoint
    • Blockers: anything unresolved
    • Suggested next step: first item from Resume Instructions

Mode 4: Wrap Session

When: "wrap session", "done for now", "save progress", ending a session

  1. Run a full checkpoint (Mode 2)
  2. Review SESSION.md for completeness:
    • Are Resume Instructions concrete enough for a fresh session to continue?
    • Is Current Position specific (file paths, not vague descriptions)?
  3. If the phase is complete:
    • Collapse the phase summary to 2-3 lines
    • Clear Resume Instructions or note "Phase complete — ready for next phase"
  4. Confirm: "Session wrapped. Resume with 'resume session' next time."

When to Use

ScenarioUse this skill?
Multi-phase feature spanning 2+ sessionsYes
Work that might hit context compactionYes
Before making risky or destructive changesYes (checkpoint first)
Quick bug fix or single-file editNo
Single-session task with clear scopeNo

SESSION.md Principles

  • Track progress, not architecture — SESSION.md is a work log, not project documentation
  • Concrete over vague — "Resume at src/auth.ts:42, implement token refresh" beats "Continue auth work"
  • Collapse completed work — finished phases become 1-2 line summaries
  • Keep under 100 lines — if it's longer, collapse more aggressively

Autonomy Rules

  • Just do it: Read SESSION.md, read CLAUDE.md, check git status/log, present summaries
  • Brief confirmation: Creating new SESSION.md, committing WIP checkpoints
  • Ask first: Overwriting an existing SESSION.md, deleting session data

Reference Files

WhenRead
Creating a new SESSION.mdreferences/session-template.md
Context compaction tips, what survivesreferences/compaction-survival.md

Source

git clone https://github.com/jezweb/claude-skills/blob/main/plugins/dev-tools/skills/dev-session/SKILL.mdView on GitHub

Overview

Dev Session helps manage long development work by creating SESSION.md files for multi-session handoffs, checkpointing progress with WIP commits, and capturing learnings to CLAUDE.md. It surfaces a durable context across sessions by recording the current phase, position, blockers, and next steps.

How This Skill Works

Operates in four modes: Start Session creates or resumes a SESSION.md and pre-fills project, branch, and phase by reading CLAUDE.md and the repo. Checkpoint updates What Works, Current Position, Blockers, and Resume Instructions, then commits a WIP and records the hash. Resume Session reads SESSION.md and CLAUDE.md to summarize progress and suggest the next step. Wrap Session performs a full checkpoint and collapses completed work for a clean handoff.

When to Use It

  • Starting a feature that will span 2+ sessions
  • Work that might hit context compaction and risk losing context
  • Before making risky or destructive changes to establish a checkpoint
  • Performing a large refactor or handoff across modules
  • Planning to hand off work between teammates for seamless continuation

Quick Start

  1. Step 1: Trigger Start Session with 'start session' or 'new session for [feature]'
  2. Step 2: Work and update SESSION.md with Phase, Current Position, and Blockers
  3. Step 3: Use 'checkpoint' before risky changes and commit WIP; use 'wrap session' to end when appropriate

Best Practices

  • Check for existing SESSION.md before starting a new session
  • Pre-fill Project, Branch, Last Updated, and Phase to orient context
  • Read CLAUDE.md to align the session with project context
  • Record concrete What Works, Current Position, Blockers, and Resume Instructions
  • Commit WIP with a clear message and store the resulting hash in SESSION.md

Example Use Cases

  • Starting a feature that unfolds over multiple sessions with clear checkpoints
  • Checkpoint after implementing a risky refactor to lock in progress
  • Resuming after CLAUDE.md context updates to align next steps
  • Wrapping a session to prepare a clean handoff to the next engineer
  • Handing off ongoing work to a teammate using SESSION.md as the guide

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers