Skip to content

Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.

feat: add dev-session skill — multi-session progress tracking and handoff

Jez490a7f0d74ca
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index 22420dc8..d2350836 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -6,13 +6,13 @@
},
"metadata": {
"description": "Workflow skills for Claude Code - each produces tangible output",
- "version": "8.0.0",
+ "version": "9.0.0",
"updated": "2026-02-18"
},
"plugins": [
{
"name": "all",
- "description": "All 22 workflow skills: Cloudflare, Hono APIs, D1/Drizzle, web design, SEO, Google integrations, Tailwind, shadcn/ui, favicons, icons, colour palettes, ElevenLabs, MCP, memory management, GitHub releases, Gemini peer review, capabilities reference, writing style.",
+ "description": "All 23 workflow skills: Cloudflare, Hono APIs, D1/Drizzle, web design, SEO, Google integrations, Tailwind, shadcn/ui, favicons, icons, colour palettes, ElevenLabs, MCP, memory management, dev sessions, GitHub releases, Gemini peer review, capabilities reference, writing style.",
"source": "./",
"skills": [
"./skills/skill-creator",
@@ -36,7 +36,8 @@
"./skills/hono-api-scaffolder",
"./skills/shadcn-ui",
"./skills/github-release",
- "./skills/gemini-peer-review"
+ "./skills/gemini-peer-review",
+ "./skills/dev-session"
]
},
{
@@ -108,14 +109,15 @@
},
{
"name": "development",
- "description": "Skill creation, CLAUDE.md memory management, GitHub releases, Gemini peer review, and Claude capabilities reference.",
+ "description": "Skill creation, CLAUDE.md memory management, dev session tracking, GitHub releases, Gemini peer review, and Claude capabilities reference.",
"source": "./",
"skills": [
"./skills/skill-creator",
"./skills/memory-manager",
"./skills/claude-capabilities",
"./skills/github-release",
- "./skills/gemini-peer-review"
+ "./skills/gemini-peer-review",
+ "./skills/dev-session"
]
},
{
diff --git a/CLAUDE.md b/CLAUDE.md
index 907758a9..fde50336 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -15,7 +15,7 @@ Production workflow skills for Claude Code CLI. Each skill guides Claude through
```
claude-skills/
-├── skills/ # All skills (22)
+├── skills/ # All skills (23)
│ ├── skill-creator/ # Foundation: create new skills (Anthropic official)
│ ├── cloudflare-worker-builder/ # Scaffold Cloudflare Worker projects
│ ├── vite-flare-starter/ # Full-stack Cloudflare app from starter template
@@ -34,6 +34,7 @@ claude-skills/
│ ├── elevenlabs-agents/ # Build ElevenLabs voice agents
│ ├── mcp-builder/ # Build MCP servers with FastMCP
│ ├── memory-manager/ # Audit and restructure CLAUDE.md hierarchy
+│ ├── dev-session/ # Multi-session progress tracking and handoff
│ ├── github-release/ # Sanitize and publish GitHub releases
│ ├── gemini-peer-review/ # Second opinion from Gemini on code/architecture
│ ├── claude-capabilities/ # Current Claude AI & Code capabilities reference
diff --git a/README.md b/README.md
index 208aa568..f03e8ba1 100644
--- a/README.md
+++ b/README.md
@@ -30,6 +30,7 @@ Workflow skills for [Claude Code](https://claude.com/claude-code) that produce t
| **[shadcn-ui](skills/shadcn-ui)** | shadcn/ui components with installation, customisation, recipes |
| **[github-release](skills/github-release)** | Sanitized, tagged GitHub releases with safety checks |
| **[gemini-peer-review](skills/gemini-peer-review)** | Second opinion from Gemini on code, architecture, security |
+| **[dev-session](skills/dev-session)** | SESSION.md progress tracking, checkpoints, multi-session handoff |
## Install
@@ -49,7 +50,7 @@ Workflow skills for [Claude Code](https://claude.com/claude-code) that produce t
/plugin install ai@jezweb-skills # ElevenLabs agents
/plugin install mcp@jezweb-skills # MCP servers
/plugin install writing@jezweb-skills # Australian business English
-/plugin install development@jezweb-skills # skill-creator, memory-manager, releases, Gemini review
+/plugin install development@jezweb-skills # skill-creator, memory-manager, sessions, releases, Gemini review
```
## Create Your Own
@@ -70,7 +71,7 @@ See [CLAUDE.md](CLAUDE.md) for development details.
This repo started as a collection of 105 skills — many were informational reference guides (CSS patterns, API docs, framework cheatsheets). With Claude Opus 4.6's expanded training data and built-in capabilities, those reference skills became redundant. Claude already knows the material.
-**v2** keeps only skills that produce tangible output: files, projects, configurations, deployments. The count dropped from 105 to 22, but each one earns its place.
+**v2** keeps only skills that produce tangible output: files, projects, configurations, deployments. The count dropped from 105 to 23, but each one earns its place.
The full v1 collection is preserved and usable:
diff --git a/skills/dev-session/SKILL.md b/skills/dev-session/SKILL.md
new file mode 100644
index 00000000..8443e27e
--- /dev/null
+++ b/skills/dev-session/SKILL.md
@@ -0,0 +1,106 @@
+---
+name: dev-session
+description: "Manage long development sessions with structured progress tracking. Creates SESSION.md files for multi-session handoff, checkpoints progress with WIP commits, and captures learnings to CLAUDE.md. Trigger with 'start session', 'checkpoint', 'wrap session', 'resume session', or 'context getting full'."
+compatibility: claude-code-only
+---
+
+# 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
+ - If yes: read it and ask whether to **continue** the existing session or **start fresh**
+ - If no: create from template (see [references/session-template.md](references/session-template.md))
+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:
+ ```bash
+ 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:
+ ```bash
+ 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
+
+| Scenario | Use this skill? |
+|----------|----------------|
+| Multi-phase feature spanning 2+ sessions | Yes |
+| Work that might hit context compaction | Yes |
+| Before making risky or destructive changes | Yes (checkpoint first) |
+| Quick bug fix or single-file edit | No |
+| Single-session task with clear scope | No |
+
+## 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
+
+| When | Read |
+|------|------|
+| Creating a new SESSION.md | [references/session-template.md](references/session-template.md) |
+| Context compaction tips, what survives | [references/compaction-survival.md](references/compaction-survival.md) |
diff --git a/skills/dev-session/references/compaction-survival.md b/skills/dev-session/references/compaction-survival.md
new file mode 100644
index 00000000..30b5c206
--- /dev/null
+++ b/skills/dev-session/references/compaction-survival.md
@@ -0,0 +1,38 @@
+# Context Compaction Survival
+
+## What Is Compaction?
+
+Long Claude Code sessions automatically compress earlier conversation to stay within the context window. This is invisible — there's no warning. After compaction, detailed reasoning and nuance from earlier in the conversation is lost.
+
+## What Survives vs What's Lost
+
+| Survives | Lost |
+|----------|------|
+| Files on disk (SESSION.md, CLAUDE.md) | Conversation details and reasoning |
+| Git commits and their messages | Why a decision was made (unless written down) |
+| Tool output summaries | Nuanced understanding built up over many exchanges |
+| Recent messages (post-compaction) | Earlier trial-and-error context |
+
+## Rules
+
+1. **Write discoveries to files immediately** — if you find a gotcha, command, or pattern, add it to CLAUDE.md now, not "when we wrap up"
+2. **Use sub-agents for heavy operations** — sub-agent context is separate from yours, so reading 20 files in a sub-agent doesn't consume your main context
+3. **Checkpoint before context fills up** — don't wait for compaction to happen; checkpoint at milestones
+4. **Git commits are your safety net** — WIP commits preserve exact file state even if SESSION.md is vague
+5. **Make SESSION.md self-sufficient** — a fresh session reading only SESSION.md + CLAUDE.md should know exactly what to do next
+
+## When to Checkpoint
+
+- After completing a logical unit of work (a function, a component, a migration)
+- Before attempting something risky (major refactor, dependency upgrade, destructive operation)
+- When context feels large (many files read, long back-and-forth debugging)
+- Before switching to a different area of the codebase
+
+## Anti-Patterns
+
+| Anti-Pattern | Why It Fails |
+|-------------|--------------|
+| "I'll update SESSION.md at the end" | Compaction happens mid-session — you lose the context to write a good summary |
+| Vague resume instructions | Next session wastes time re-discovering what you already knew |
+| SESSION.md over 100 lines | Defeats the purpose — becomes another doc to maintain instead of a quick handoff |
+| Checkpointing every 5 minutes | Creates noise; checkpoint at milestones, not on a timer |
diff --git a/skills/dev-session/references/session-template.md b/skills/dev-session/references/session-template.md
new file mode 100644
index 00000000..100958b4
--- /dev/null
+++ b/skills/dev-session/references/session-template.md
@@ -0,0 +1,58 @@
+# SESSION.md Template
+
+## Template
+
+```markdown
+# Session Progress
+
+**Project**: [project name]
+**Branch**: [current branch]
+**Last Updated**: [YYYY-MM-DD HH:MM]
+**Phase**: [what you're working on]
+**Checkpoint**: [commit hash from last checkpoint, or "none"]
+
+## What Works
+- [completed items, validated patterns, things confirmed working]
+
+## Current Position
+- [exact file and line being worked on]
+- [specific state of the work]
+
+## Blockers
+- [anything preventing progress]
+- [include what was already tried]
+
+## Resume Instructions
+1. [first concrete step — read this file, run this command, make this decision]
+2. [second step]
+3. [third step]
+```
+
+## Field Guidelines
+
+| Field | Good | Bad |
+|-------|------|-----|
+| Phase | "Add OAuth login flow" | "Working on auth" |
+| Current Position | "Implementing callback handler in `src/auth/callback.ts:35`" | "Doing the auth stuff" |
+| Resume Instructions | "1. Run `npm test` to verify auth tests pass" | "1. Continue working" |
+| Blockers | "D1 returns 500 on bulk insert >10 rows — tried batching, need to check param limits" | "Database broken" |
+
+## Lifecycle
+
+```
+Start Session → creates SESSION.md
+ ↓
+Work + periodic Checkpoints → updates SESSION.md + WIP commits
+ ↓
+Wrap Session → final checkpoint, concrete resume instructions
+ ↓
+Resume Session → reads SESSION.md, orients, continues
+```
+
+## Housekeeping
+
+- **Collapse completed phases**: When a phase is done, replace its details with a 1-2 line summary
+- **Keep under 100 lines**: If SESSION.md grows beyond this, collapse more aggressively
+- **Don't duplicate docs**: Architecture belongs in CLAUDE.md or ARCHITECTURE.md, not here
+- **Checkpoint hash**: Always record the git hash so Resume can detect what changed since
+- **Clean up on completion**: When the project/feature is done, delete SESSION.md — it's temporary by design