lov-auto-context

Featured

Manual or hook-triggered context operator. Evaluates the current session for pollution (long conversations, topic drift, stale noise), AND takes concrete context-shaping actions: writing project memory, updating global or project CLAUDE.md (with diff + confirm), and recommending harness commands like /fork, /compact, /btw. Covers the full surface of context-affecting operations Claude can reach — direct file edits are auto-executed or confirmed based on sensitivity; harness-only commands (/fork etc.) are surfaced as one-click suggestions.

Data & Documents 64 stars 16 forks Updated today MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
60
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# AutoContext: Context Operator Not just a health check — a full operator over everything that shapes context. Three layers by action sensitivity: | Layer | Examples | Behavior | |-------|----------|----------| | **Auto-execute** | write project memory, update `MEMORY.md` index | Do it, report path | | **Confirm-first** | edit global agent instructions, edit project `CLAUDE.md`, overwrite/delete existing memory | Show diff, wait for "yes" | | **Suggest-only** | `/fork`, `/compact`, `/btw`, new session | Print the exact command to paste | The harness owns `/fork` and `/compact`; this skill cannot invoke them. But it can do everything else and will. ## Auto Mode (via Plugin Hook) When the skill-publisher plugin is enabled, a `UserPromptSubmit` hook monitors transcript size. Above threshold (40+ entries or 150KB+), it injects a lightweight `<auto-context>` reminder. **When you see `<auto-context>`:** | Context State | Action | |---------------|--------| | Mostly relevant | Continue, say nothing | | Some stale noise | Mentally deprioritize, proceed | | Mostly irrelevant | Suggest `/fork` or `/btw` with exact command | | Near capacity | Suggest `/compact` or `/fork` with exact command | Rules: - 1 sentence max unless acting. - If context is fine, say nothing. - Never auto-fork/auto-compact (can't anyway — harness-only). - Don't mention "AutoContext" unless asked. ## Manual Mode (`/lov-auto-context [args]`) Two call shapes: ### A. Bare call — health report + opportunisti...

Details

Author
lovstudio
Repository
lovstudio/skills
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category