Clear — Development skill for Claude Code
Context-clearing command.
How to install Clear
Installs to ~/.claude/commands/fatihkan-badi-clear.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/fatihkan/badi/HEAD/.claude/commands/clear.md -o ~/.claude/commands/fatihkan-badi-clear.md Restart Claude Code, or start a new session, for it to be picked up.
What Clear does
Context-clearing command. Provides a seamless transition across session boundaries. Target: under 30 seconds.
Required Tools
- Read (context files)
- Write (handoff note and memory update)
Procedure (6 Steps)
Step 1: Reset the Gates
- Clear the active file-watch list
- Reset temporary analysis results
- Close any open parallel work
- Clear in-session variables
Step 2: Summarize the Session (7 Components)
Build a summary covering these 7 components:
- Active Task: What task
Alternatives in Development
- Codexmcp — Enable seamless collaboration between Claude Code and Codex, transforming from a single agent to multiple agen 2k ★
- Cmux Fresh — Clear cmux's persisted session so the next launch opens with fresh/blank windows 107 ★
- Mnemosyne Context Preservation — Preserving context across sessions using Mnemosyne memory system 83 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Context Baton
Two Claude Code skills for passing context across boundaries: session-handoff (end-of-session, agent→human) +
Fleet Handoff
/fleet-handoff — hand off across a context boundary, then auto-clear + resume
ConPACT
CONtext comPACT coordinates agent-initiated context compaction at verified scope closure—after the final answe
Oc Save
Save the current OneCommand build state to disk so you can safely run /clear. Run /oc-resume afterwards to con
Budget
Use when you want to review session turn usage or set a context awareness target for the current project.
Wipe
Generate handoff, clear context, and auto-continue in fresh session
Related Agents
Neo Shadow
Memory keeper. MUST BE USED to save session context into the second brain (.neo/brain/) — at task boundaries,
Claude Code Tools
by Prasad Chalasani - Well-crafted toolset for session continuity, featuring skills/commands to avoid compacti
Session Handoff Writer
Writes and reads handoff documents so work continues across sessions or context resets, and keeps the cross-pr