smith-ctx-claude

Community

Claude Code context optimization with safe clear.

Authortianjianjiang
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Claude Code context management with a pragmatic stop-hook and persistence strategy to prevent context-loss during long sessions.

Core Features & Use Cases

  • Enforces a /clear workflow when context usage surpasses configured thresholds to prevent uncommitted work loss.
  • Persists state to CLAUDE.md and Serena memory, enabling seamless resume via read_memory.
  • Provides a one-shot stop-hook to balance safety with operability in multi-session environments.

Quick Start

Activate this skill in Claude Code to automatically enforce a context-safe /clear workflow when your context approaches the configured thresholds.

Dependency Matrix

Required Modules

jq

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: smith-ctx-claude
Download link: https://github.com/tianjianjiang/smith/archive/main.zip#smith-ctx-claude

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.