https://github.com/non4me/session-wizard
Full session lifecycle skill for Claude Code β knowledge routing, session handoff, and skill evolution
https://github.com/non4me/session-wizard
agent-skills claude-code claude-code-skill memory session-management
Last synced: 21 days ago
JSON representation
Full session lifecycle skill for Claude Code β knowledge routing, session handoff, and skill evolution
- Host: GitHub
- URL: https://github.com/non4me/session-wizard
- Owner: non4me
- License: mit
- Created: 2026-03-26T20:13:44.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-03-26T20:27:01.000Z (3 months ago)
- Last Synced: 2026-03-27T08:42:43.731Z (3 months ago)
- Topics: agent-skills, claude-code, claude-code-skill, memory, session-management
- Language: Python
- Homepage: https://github.com/non4me/session-wizard
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# π§ Session Wizard
**Full session lifecycle management for Claude Code** β analyzes sessions on close, routes knowledge to memory and skills, and passes context to the next session automatically.
> Auto-dream cleans your memory. Session Wizard makes sure nothing worth remembering gets lost in the first place.
## The Problem
Claude Code's **Auto-memory** takes notes. **Auto-dream** cleans them up. But neither does three things:
1. **Route knowledge** β decide what goes into memory vs. what becomes a reusable skill
2. **Hand off context** β give the next session a structured summary so it can pick up where you left off
3. **Evolve skills** β detect reusable patterns and update skills automatically
After 20+ sessions, Claude either forgets critical decisions or drowns in noise. Session Wizard solves this.
## How It Works
```
βββββββββββββββ ββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββ
β Session N ββββββΆβ /es ββββββΆβ ~/.claude/projects/{cwd}/memory/ β
β (working) β β (analysis) β β βββ MEMORY.md (index) β
β β β β β βββ last-session.md (handoff) β
βββββββββββββββ ββββββββββββββββ β βββ *.md (topic files) β
β ~/.claude/skills/ (if skill updated) β
ββββββββββββββββββββ¬βββββββββββββββββββ
β
ββββββββββββββββ β
β Session N+1 βββββββββββββββββββββββββββ
β sessionStart β Python hook reads
β hook fires β last-session.md β JSON
β β β additionalContext
ββββββββββββββββ β deletes file
```
**`/es`** analyzes the session and writes:
- Classified memory files (user prefs, project state, bugs, references)
- Skill updates (if a reusable pattern was discovered)
- `last-session.md` β structured handoff for the next session
**SessionStart hook** fires on the next session:
- Reads `last-session.md`
- Injects it as `[session-memory]` into the conversation
- Deletes the file (one-shot consumption β no stale context)
## What `/es` Does (6 Steps)
| Step | Action |
|------|--------|
| 1. **Analyze** | Scans full conversation, classifies findings into `user` / `feedback` / `project` / `reference` / `pitfall` types |
| 2. **Save to Memory** | Creates/updates memory files with YAML frontmatter, updates `MEMORY.md` index |
| 3. **Update Active Work** | Maintains `## Active Work` and `## Completed` sections with exact next steps |
| 4. **Update Skills** | If a reusable pattern was found β updates global or project skill |
| 5. **Write Handoff** | Saves `last-session.md` with date, branch, completed items, next steps, key decisions |
| 6. **Respond** | Compact summary: what was done, what's next, memory stats |
## Installation
### 1. Install the skill
**Global (all projects):**
```bash
git clone https://github.com/non4me/session-wizard.git
cp -r session-wizard ~/.claude/skills/session-wizard
```
**Or with npx:**
```bash
npx skills add non4me/session-wizard
```
### 2. Install the SessionStart hook
Copy the hook script:
```bash
mkdir -p ~/.claude/hooks
cp session-wizard/scripts/session-start-memory.py ~/.claude/hooks/
```
Register it in `~/.claude/settings.json`:
```json
{
"hooks": {
"sessionStart": [
{
"type": "command",
"command": "python ~/.claude/hooks/session-start-memory.py"
}
]
}
}
```
> **Windows**: use `python` or `python3` depending on your setup. The script handles both Windows and Unix paths.
### 3. Verify
```bash
# Start a Claude Code session
# Do some work
# Type /es
# Check that memory/last-session.md was created
# Start a new session
# You should see [session-memory] at the start
```
## Session Wizard vs Auto-dream
| Feature | Auto-dream | Session Wizard |
|---------|-----------|----------------|
| Cleans memory files | β
| β (not its job) |
| Routes knowledge to memory | β (auto-memory does raw capture) | β
(classified by type) |
| Routes knowledge to skills | β | β
|
| Session-to-session handoff | β | β
|
| Tracks active work & next steps | β | β
|
| Runs automatically | β
(background) | `/es` on demand |
| Logs pitfalls & solutions | β | β
(`problems-and-fixes.md`) |
**They complement each other.** Auto-dream keeps memory clean. Session Wizard makes sure the right knowledge gets to the right place and the next session starts warm.
## Memory Directory Structure
```
~/.claude/projects/{sanitized_cwd}/memory/
βββ MEMORY.md β index of all memory files
βββ last-session.md β handoff file (auto-deleted by hook)
βββ problems-and-fixes.md β accumulated pitfalls & solutions
βββ *.md β topic memory files with YAML frontmatter
```
## Compatibility
- **Claude Code**: Full support (skills + hooks)
- **OS**: Windows, macOS, Linux
- **Works with Auto-dream**: Yes
- **Works with Auto-memory**: Yes
- **Python**: 3.8+ (no external dependencies)
## License
MIT β see [LICENSE](LICENSE)
## Author
[@non4me](https://github.com/non4me)