Context Surfing
Monitors context window health during long-running or multi-session agent work and hands off cleanly on drift.
- CCM score
- 49 of 100
- skills.sh installs
- 265
- GitHub stars
- 343
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers activation for large, long-running, or multi-session tasks, loading the instruction file, intent frame, plan, and prior handoff as the wave anchor
- Includes an optional Entire CLI integration that records session state, with a fallback to the intent frame and plan when unavailable
- Enforces one cold-context review when self-recovery is uncertain, and writes a structured
.context-surfing/handoff-*.mdfile on real drift - Designed for complex refactors and long-running tasks where degraded context would silently corrupt output, and where the pipeline runs alongside intent-framed-agent
Install
$ npx -y skills add pskoett/pskoett-ai-skills --skill context-surfing -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Context Surfing
Install
gh skill install pskoett/pskoett-skills context-surfing
Fallback using the Agent Skills CLI:
npx skills add pskoett/pskoett-skills/skills/context-surfing
The agent rides the wave of peak context. When the wave crests, it commits. When it detects drift, it pulls out cleanly — saving state, handing off, and letting the next session catch the next wave.
No wipeouts. No zombie sessions. Only intentional, high-fidelity execution.
Mental Model
Think of context like an ocean wave:
- Paddling in = loading the intent frame, plan, and initial context. Energy is building.
- The peak = full context coherence. The agent knows exactly what it's doing and why. This is when to execute.
- The shoulder = context starting to flatten. Still rideable, but output density is dropping.
- The close-out = drift. Contradiction, hedging, second-guessing, or hallucinated details. Wipe-out territory.
The skill's job: ride as long as the wave is good, exit before it closes out.
Lifecycle Position
Details
- Repository
- github.com/pskoett/pskoett-ai-skills
- Categories
- Memory & Context, Agent Workflow & Planning
- First seen
- Jun 3, 2026
Questions
What does the context-surfing skill do?
Context Surfing monitors the health of the agent's context window during large, long-running, or multi-session work. It uses external anchors such as the intent frame, plan and session state to detect drift, and it hands off cleanly when context quality degrades.
Who is context-surfing for?
It is for multi-step agent tasks where session continuity or context drift is a concern, such as long-running tasks, complex refactors, or work across several sessions. It is not meant for ordinary medium-sized tasks that merely have a plan.
How do I install the context-surfing skill?
Run npx -y skills add pskoett/pskoett-ai-skills --skill context-surfing -y in your project. After that, the skill lets the agent monitor its own context quality while it executes a multi-step task.
Which skills sit alongside context-surfing in the Memory & Context category?
context-surfing sits in the Memory & Context category on Claude Marketplaces, next to handoff and the caveman skills. Its distinct role is watching context quality during execution and preparing a handoff when that quality drops.
More from pskoett/pskoett-ai-skills
All 8Similar to Context Surfing
More Memory & Contextintent-framed-agentpskoett/pskoett-ai-skills436 installsStructured execution contract that frames coding sessions with intent capture, drift checks, and resolution records.
filesystem-contextmuratcankoylan/agent-skills-for-context-engineering404 installsFilesystem-backed overflow storage for agent context, with on-demand loading instead of static prompt inclusion.
context-engineeringaddyosmani/agent-skills80K installsStructured context curation that feeds agents the right information at the right time to improve output quality.
context-compressionmuratcankoylan/agent-skills-for-context-engineering644 installsStructured summaries that preserve session intent, file changes, decisions, and next steps across long agent sessions.
session-handoffsoftaworks/agent-toolkit4.3K installsStructured handoff documents that let a fresh AI agent resume long-running work with minimal ambiguity.
proactive-agenthalthelobster/proactive-agent15.4K installsAgent architecture that anticipates needs, survives context loss, and self-improves through a write-ahead log.