Skip to content
Back to skills

Anchor

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
devopsbash

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add rodrigooler/claude-anchor --skill anchor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Anchor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Anchor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rodrigooler-anchor/badge)](https://www.skillsdirectory.com/skills/rodrigooler-anchor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.