fatihkan

Clear — Development skill for Claude Code

Development community

Context-clearing command.

How to install Clear

Installs to ~/.claude/commands/fatihkan-badi-clear.md

Terminal
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:

  1. 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 Repository