anchor-based-context-recovery

Locate stable documentation anchors to recover context after context compaction.

Updated Nov 27, 2025
One-click install
npx skills add https://github.com/DrSatsuma1/catherine-claude-skills --skill anchor-based-context-recovery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anchor-based-context-recovery
Source: https://github.com/DrSatsuma1/catherine-claude-skills/tree/main/anchor-based-context-recovery
Command: npx skills add https://github.com/DrSatsuma1/catherine-claude-skills --skill anchor-based-context-recovery

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Claude can lose track of files and constraints after context compaction or switching features. This Skill provides a stable method to recover context by locating searchable anchors embedded in documentation, keeping you aligned with architecture and patterns without re-reading entire files.

Core Features & Use Cases

  • Anchor Discovery: Locate relevant anchors across docs to understand current constraints and architecture.
  • Context Navigation: Find exact code locations or sections referenced by anchors (e.g., App.jsx lines, validation rules).
  • Knowledge Retention: Survive file renames and refactors as anchors remain stable.

Quick Start

Search the repository docs for anchors like <!-- anchor: validation-rules --> and read the related sections to re-establish context before editing.

Frequently Asked Questions about anchor-based-context-recovery

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I recover context after my AI loses track of files during a long session?

Context recovery uses documentation anchors—stable markers embedded in your codebase docs—to re-establish your position without re-reading entire files. Search for anchors like `<!-- anchor: validation-rules -->` to restore knowledge of architecture and constraints after context changes or feature switches.

What's the best way to keep codebase knowledge stable when files get renamed or refactored?

Anchors survive file renames and refactors because they're defined in documentation, not code paths. By referencing anchors instead of file locations, your context remains valid even as the underlying structure changes.

How do I find the exact code sections I need after switching between features?

Anchor discovery locates relevant documentation anchors across your repo docs, then targeted context extraction pinpoints exact line ranges and code locations referenced by those anchors, letting you jump directly to what you need.

Can I use anchors to survive context compaction without losing my place in active work?

Yes. When context compacts, phase-guided verification uses documented anchor sections to re-establish where you were. Search anchors relevant to your current task to restore alignment with existing patterns and constraints.

What's the difference between searching code directly versus using anchors for navigation?

Direct code search breaks when files move or refactor. Anchors remain stable because they're documentation-based reference points. This approach keeps you aligned with architecture intent rather than brittle file paths.

Do I need special setup to embed anchors in my documentation?

Anchors use standard HTML comments—`<!-- anchor: name -->`—in your existing docs. No special tools or dependencies required; they work with any documentation format that supports comments.