skills/session-handoff/SKILL.md
Create consistent session handoff documents for context transfer between sessions. Use when closing a session, reaching 75% token consumption, or when user requests handoff. Ensures proper YAML headers for metrics collection, LF line endings, and complete documentation of progress, decisions, and next steps.
npx skillsauth add ashaykubal/essential-agents-skills session-handoffInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create handoff documents that enable seamless context transfer between sessions.
Use LF (Unix) line endings only. Never CRLF.
^M characters, rewrite the filePattern: sessions/session_{N}_{YYYYMMDD}.md
{N}: Session number (integer, no leading zeros){YYYYMMDD}: Date without separatorsExamples: session_5_20260104.md (correct), session_05_20260104.md (wrong)
# Session {N} Handoff
```yaml
session: {N}
date: {YYYY-MM-DD}
phase: "P{X} - {Phase Name}"
task: "P{X}.{Y} - {Task Name}"
status: {completed | in_progress | blocked}
tokens_end: "~{X}K ({Y}%)"
```
---
## Session Summary
{2-3 sentences on outcomes, not process. What was achieved?}
## What Was Accomplished
- [x] {Completed item with file path}
- [x] {Completed item with file path}
- [ ] {Incomplete item - carried forward}
## Files Created/Modified
| File | Action | Lines | Purpose |
|------|--------|-------|---------|
| {path} | Created | ~{N} | {Brief description} |
| {path} | Modified | +{N}/-{M} | {What changed} |
## Verification Status
| Check | Status | Notes |
|-------|--------|-------|
| Typecheck | {Pass/Fail/Skipped} | |
| Lint | {Pass/Fail/Skipped} | |
| Tests | {Pass/Fail/Skipped} | {X/Y if applicable} |
## Technical Decisions
### {Decision Title}
- **Decision**: {What was decided}
- **Rationale**: {Why}
- **Impact**: {What it affects}
## What's Next
1. {Specific actionable step}
2. {Next step}
## Blockers / Issues
{List blockers or "None"}
## Learnings
{Patterns discovered or "None"}
The YAML header enables metrics collection. All fields required:
| Field | Format | Example |
|-------|--------|---------|
| session | Integer | session: 5 |
| date | YYYY-MM-DD | date: 2026-01-04 |
| phase | Quoted string | phase: "P1 - Foundation" |
| task | Quoted string | task: "P1.2 - Test Auditor" |
| status | Enum | status: completed |
| tokens_end | Quoted string | tokens_end: "~95K (48%)" |
Focus on outcomes not process. What was delivered?
Good: "Completed session-handoff skill with CRLF handling. Ready for use." Bad: "I started by reading files, then thought about structure, then wrote..."
[x] for complete, [ ] for incompleteDocument decisions that affect future work. Include rationale so future sessions understand WHY. Skip if no significant decisions.
Always include these sections. Write "None" if empty - don't omit.
Before finalizing:
session_{N}_{YYYYMMDD}.mdFor detailed examples of completed and in-progress handoffs, see references/examples.md.
testing
Prompt template for test classification stage in Test Audit pipeline
testing
--- name: test-audit description: Audit test suites for T1-T4 violations using AST analysis, mock detection, and multi-stage synthesis. Invoke when user asks to audit tests, check test quality, find mock violations, review test effectiveness, or inspect test suites for over-mocking. Triggers automatic rewrites when quality gates fail. user-invocable: true argument-hint: [path] [--threshold=N] skills: - test-classification - mock-detection - assertion-patterns - component-pattern
development
Template for structured sub-agent invocation using 4-part prompting (GOAL/CONSTRAINTS/CONTEXT/OUTPUT) and F# pipeline notation. Use when orchestrating sub-agents or designing multi-agent workflows.
development
Template for structured sub-agent output including YAML log format, task completion reports (WHY/WHAT/TRADE-OFFS/RISKS), and summary constraints. Use when defining how sub-agents should report results.