Atlas / Skills / alapha888 / session-handoff-kit

session-handoff-kitSAFE

skills/alapha888/session-handoff-kit

Free kit for AI coding agent users: end sessions with a structured handoff (skill + context hygiene checklist + template)

Verdict
SAFE
Grade
B
Trust score
89 /100
Version
—
Hosts
3 documented
License
MIT
Stars
0
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

A free kit for users of AI coding agents (Claude Code, Codex, Cursor): end every session with a structured handoff, so the next session — or the next agent — starts from facts, not from a degraded, over-full context.

What's inside

Read the checklist free as a Gist: Context Hygiene Checklist for AI Coding Agents.

Install the skill

Copy SKILL.md into a session-handoff folder in your agent's skills directory, or use the skills CLI:

npx skills add alapha888/session-handoff-kit

Why

Agent output quality drops as context fills with stale exploration. The fix is not a bigger context window; it is a habit: capture state before you reset, in a format the next session can execute from without re-asking you everything.

MIT licensed. Feedback via GitHub issues.

Install via skills.sh

Listed at skills.sh/alapha888/session-handoff-kit.

Listed on OpenAgentSkill: alapha888-session-handoff-kit

Included in sickn33/agentic-awesome-skills, a curated registry of agent skills — find it under skills/session-handoff in that repository.

Also listed on AwesomeSkills.dev and Skillstore.

Also indexed on [SkillsMP](https://sk

Read from source at commit 05e71be8db57OBSERVED · 2026-10-12
02

Install

Commands as the repository documents them. They are shown, not run.

npx skills add alapha888/session-handoff-kit
npx skills add alapha888/session-handoff-kit
03

Host compatibility

What the documentation claims. We have not run a compatibility test.

HostStatusNotes
claude-codementioned
codexmentioned
cursormentioned
04

What it tells the agent

The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.

---
name: session-handoff
description: Use this skill when context usage approaches capacity (>60%), before running /clear or /compact, when switching tasks, or when ending a coding session across Claude Code, Cursor, or Codex. Produces a structured handoff artifact that transfers execution state to a fresh agent session without loss of context or drift.
---

# Session Handoff Skill

## Purpose
Large context windows degrade in instruction adherence, reasoning precision, and tool accuracy as token counts accumulate. Long sessions fill with superseded plans, aborted scratchpads, and repetitive error traces. Resetting to a fresh session restores performance, but discarding context blindly introduces state loss, hallucinated progress, and repeated mistakes. 

The `session-handoff` skill standardizes how an agent snapshots active state. It translates ephemeral working memory into an actionable, verifiable bridge document for the next session.

---

## Workflow: Ending a Session (6 Steps)

Run this sequence when an agent session reaches operational limits or when halting work:

1. **Audit Git and Workspace State**
   Run `git status -s` and `git diff --stat` to establish grounded reality. Never rely on chat memory for what was modified. Identify modified, untracked, and staged files.

2. **Capture Goal State vs. Implemented Reality**
   Define the original objective in one sentence. Document precisely what has been verified as working (with passing test commands or runtime checks) versus what remains partial or unverified.

3. **Record Decisions Made and Discarded Paths**
   List architectural and design choices committed during the session, along with the concrete rationale. Explicitly record negative decisions (approaches tried and discarded) to prevent the next agent from re-attempting failed solutions.

4. **Catalog Files Touched and Relevant Symbols**
   List key file paths, functions, classes, and schema definitions modified or referenced. Include line references where relevant.

5. **Isolate Open Loops with Owners and Checks**
   List all unaddressed edge cases, failing tests, deferred tasks, and environment constraints. Every open loop must specify who resolves it (Human or Agent) and how completion is verified.

6. **Specify the Immediate Next Action**
   Draft a single, atomic, unambiguous instruction for the next agent to execute on turn one. Do not provide a broad list; specify the exact command to run or file to edit first.

---

## Operating Rules

- **Separate Facts from Speculation**: A test that passed is a fact; assuming code works because it compiled is speculation. Label untested assumptions explicitly as `[UNVERIFIED]`.
- **Mandate Owners and Verifications for Open Loops**: Every open loop must state an owner (`Human` or `Agent`) and a deterministic verification criteria (e.g., `pytest tests/auth/test_token.py:test_refresh_rotation passes`).
- **Ban Vague Continuations**: Never write "continue working on auth" or "finish frontend components." State the exact symbol, file, and failure mode.
- **Reference Real Workspace Identifiers**: All references to code must use exact file paths and symbol names. Do not use generalized pseudocode descriptions.

---

## Worked Example: Session Handoff Note

```markdown
# Session Handoff: JWT Rotation Implementation

### Goal & Current State
- **Target Goal**: Implement refresh token rotation and revocation in the FastAPI auth service.
- **Current State**: Refresh token database migration applied and rotation endpoint created. Token generation and database persistence work. Revocation blacklist cache is not yet wired into the dependency validator.
- **Verification**: `pytest tests/test_auth_tokens.py` passes (4/4 tests).

### Decisions Made (With Reasons)
- **Used Redis for Token Revocation List**: Selected Redis over Postgres lookups for revoked JTI tokens to keep latency under 5ms on protected routes.
- **Rejected Stateless Refresh Tokens**: We initially evaluated sliding expiration in JWT claims without persistence, but discarded it because compromised tokens could not be revoked before natural expiry.
- **Token Format**: Chose UUIDv4 for `jti` claim to maintain compatibility with existing session storage schemas.

### Files Changed
- `src/services/auth.py`: Added `rotate_refresh_token(old_token: str)` function and Redis invalidation call.
- `src/models/tokens.py`: Added `RefreshTokenRecord` SQLModel table for tracking token families.
- `alembic/versions/20261005_add_token_families.py`: Migration creating `token_records` table.
- `tests/test_auth_tokens.py`: Added unit tests for token family generation and rotation.

### Open Loops
- [Agent] Wire `verify_token_not_revoked` into `src/api/deps.py` -> Verify by checking `tests/test_auth_deps.py` fails on blacklisted token.
- [Agent] Handle database rollback if Redis is unreachable during rotation -> Verify by mocking Redis connection failure in unit test.
- [Human] Set `REDIS_AUTH_URL` secret in `.env.test` for CI execution.

### Next Action
Open `src/api/deps.py` and import `is_token_blacklisted` from `src.services.auth`. Insert the check into `get_current_user` directly after JWT decode verification.

### Watch-outs
- Do not modify the existing `access_token` expiration time (currently 15 minutes) in `src/core/config.py`.
- Alembic migration `20261005_add_token_families.py` must run before starting the API server locally (`alembic upgrade head`).
```

---

## Anti-Patterns

- **The Chat Transcript Dump**: Pasting raw conversation logs into the handoff note. The next session's context window is immediately polluted with the very conversational noise you intended to escape.
- **The Phantom Pass**: Marking a module "completed" when it has only been written, not executed or tested.
- **The Omitted Dead-End**: Leaving out solutions that failed. The next agent will read the codebase, see the same apparent path, and re-implement the failed approach.
- **The Abstract Next Step**: Ending with "Ne
05

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeNA
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
none-observed
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (0)

No findings outside the package's declared scope.

Gates applied: no_behavioural_pass.

Audited 2026-10-12 · audit v0.4.1 · source sha 05e71be8db57full audit observations/trust-audit/skill/alapha888__session-handoff-kit.json · Report an issue / request a re-scan
06

Audit history

Every audit this skill has had.

DateSourceVerdictGradeScoreChange
2026-10-1205e71be8db57SAFEB89first audit
07

Questions

What does the session-handoff-kit skill do?

Free kit for AI coding agent users: end sessions with a structured handoff (skill + context hygiene checklist + template)

Is session-handoff-kit safe to install?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.

What can session-handoff-kit access on my machine?

The audit observed no filesystem, network or shell use at all in its source.

Which assistants does session-handoff-kit work with?

Its documentation mentions claude-code, codex and cursor. That is what the text claims, not a compatibility test we ran.

How current is this page?

The grade is for one exact copy of the source (05e71be8db57), read on 2026-10-12. The repository is watched, and a new audit runs when it changes — this is the first audit.

Advertisement