Install or manage claude-anchor compaction hooks. Use when user types /anchor, wants to set up better compaction, or asks to install/update/uninstall claude-anchor.
Scanned 5/27/2026
Install via CLI
openskills install rodrigooler/claude-anchor---
name: anchor
description: Install or manage claude-anchor compaction hooks. Use when user types /anchor, wants to set up better compaction, or asks to install/update/uninstall claude-anchor.
---
# claude-anchor Setup Skill
When the user invokes `/anchor`, determine what they want based on any arguments:
- `/anchor` or `/anchor install` → run installation
- `/anchor uninstall` → run uninstallation
- `/anchor status` → check current state
- `/anchor context` → open or create the anchor-context.md file
## Install
Run the installer script from the repo root using Bash:
```bash
CLAUDE_ANCHOR_LOCAL=1 bash install.sh
```
Report what was installed: hook paths, threshold percentage, and location of `~/.claude/anchor-context.md`.
## Uninstall
```bash
CLAUDE_ANCHOR_LOCAL=1 bash uninstall.sh
```
## Status
Check if anchor hooks are active by reading `~/.claude/settings.json` and looking for `anchor-pre-compact.sh` and `anchor-post-compact.sh` in the hooks section. Report:
- PreCompact hook: installed / not installed
- PostCompact hook: installed / not installed
- CLAUDE_AUTOCOMPACT_PCT_OVERRIDE: current value or not set
- anchor-context.md: exists / not found
## Context
Open `~/.claude/anchor-context.md` for editing, creating it from the template if it doesn't exist.
No comments yet. Be the first to comment!