Use this skill when the user asks to end a session, save state, or create a handoff. Runs health checks, captures severity, resume point, and blockers.
Captures session state, runs health checks, and creates detailed handoff summaries for seamless engineering transitions.
npx claudepluginhub ramonclaudio/skillsThis skill is limited to using the following tools:
ultrathink
<role> Senior engineer. Hospital shift changes. Precise state capture: exact errors, specific file:line references, honest severity. Never vague. </role> <task> Archive session state. Hooks auto-save a lightweight snapshot on compaction — this provides the thorough version with health checks, corrections persistence, and validation. </task>!cat .handoff/state.json 2>/dev/null || echo "{}"
!cat .handoff/CONTEXT.md 2>/dev/null || echo "No context"
!tail -30 .handoff/events.jsonl 2>/dev/null || echo "No events"
Branch: !git branch --show-current 2>/dev/null || echo "unknown"
!git status -s 2>/dev/null
!git log -5 --format='%h %s' 2>/dev/null
cp .handoff/state.json ".handoff/sessions/${CLAUDE_SESSION_ID}.json"_runtime.handoff_end_completed = true to state.json IMMEDIATELY (stops hook nagging before health checks run)[pkg] run build 2>&1 | tail -5; echo "EXIT:$?"[pkg] test 2>&1 | tail -10; echo "EXIT:$?"[pkg] run lint 2>&1 | tail -5; echo "EXIT:$?"session_memory.corrections to ## Corrections section (deduplicate against existing entries).[{"description": "...", "ref": "abc1234"}][{"description":"...", "tried":"...", "error":"...", "why":"...", "need":"..."}].session_memory:
user_intent — one paragraphcorrections — APPEND to existing array, never replace (persisted to CONTEXT.md in step 4)active_context — file:line, function names, current stepkey_references — file paths, error messages, PR numberslast_updated — ISO timestamplast_event_index — current events.jsonl line countsource to "manual-end", set _runtime.hostname to current hostname. Update all fields. Write to .tmp.$$ first, then validate and move (atomic write).{
"_version": 1,
"source": "manual-end",
"session_id": "string",
"severity": "READY | IN_PROGRESS | CRITICAL",
"_runtime": {
"compaction_count": "number",
"last_compaction": "string | null",
"handoff_end_completed": true,
"session_start_ts": "ISO timestamp",
"session_start_hash": "git hash",
"hostname": "string",
"context_pct": "number"
},
"health": {
"build": "pass | fail | null",
"tests": "pass | fail | null",
"lint": "pass | fail | null"
},
"done": [{"description": "string", "ref": "string"}],
"failed": [{"description": "string", "tried": "string", "error": "string", "why": "string | null", "need": "string | null"}],
"blockers": [{"description": "string", "resolved": false}],
"resume": {
"next": "file:line action",
"files": ["string"],
"context": "string"
},
"watch_out_for": ["string"],
"session_memory": {
"user_intent": "string",
"corrections": ["string"],
"active_context": "string",
"key_references": ["string"],
"last_updated": "ISO timestamp",
"last_event_index": "number"
}
}
REQUIRED: severity set, health captured, resume has file:line, resume has files array, failures have root cause. WARNINGS: vague resume, no watch-outs.blocker: true, handoff: true, session: "${CLAUDE_SESSION_ID}"), resume task blocked by blockers (metadata: resume: true, handoff: true)HANDOFF COMPLETE
Severity: [emoji] | Source: manual-end
SESSION: [N] done, [N] failed, [N] blockers
HEALTH: build=[status] tests=[status] lint=[status]
RESUME: [next action]
Safe to end session.
| 🔴 CRITICAL | Build failing, prod down, security issue | | 🟡 IN PROGRESS | Tests failing, uncommitted work, mid-feature | | 🟢 READY | All green, clean state |
DON'T: Skip health checks. Write vague resume ("keep working on X"). Omit failure root cause. Leave 🟢 with failing tests. Wait until context is full to run END.
DO: Exact error messages in failures. Specific file:line in resume. Document gotchas immediately. Honest severity.
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.