搜索

PythonReactSEOPDF
OpenClaw

context-anchor

Recover from context compaction by scanning memory files and surfacing where you left off. Use when waking up fresh, after compaction, or when you feel lost about what you were doing.

boscoeuk0 来源安装数☆ 0 仓库 Starsv1.0.0

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install boscoeuk/context-anchor

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Context Anchor Skill

Helps agents recover context after compaction by scanning memory files and generating a "here's where you are" briefing.

Why This Exists

Context compaction loses memory. Files survive. But after waking up fresh, you need to:

  1. Know what you were working on
  2. See decisions that were made
  3. Find open loops that need closing
  4. Get oriented fast

This skill automates that recovery.


Quick Start

# Full briefing (default)
./scripts/anchor.sh

# Just show current task
./scripts/anchor.sh --task

# Just show active context files
./scripts/anchor.sh --active

# Just show recent decisions
./scripts/anchor.sh --decisions

# Show open loops / questions
./scripts/anchor.sh --loops

# Scan specific number of days back
./scripts/anchor.sh --days 3

What It Scans

Source What It Extracts
memory/current-task.md Current task status, blockers, next steps
memory/YYYY-MM-DD.md Recent daily logs (last 2 days by default)
context/active/*.md In-progress task files
Daily logs Decisions (lines with "Decision:", "Decided:", "✅")
Daily logs Open loops (lines with "?", "TODO:", "Blocker:", "Need to")

Output Format

The script outputs a structured briefing:

═══════════════════════════════════════════════════════════
                    CONTEXT ANCHOR
              Where You Left Off
═══════════════════════════════════════════════════════════

📋 CURRENT TASK
───────────────────────────────────────────────────────────
[Contents of memory/current-task.md or "No current task set"]

📂 ACTIVE CONTEXT FILES
───────────────────────────────────────────────────────────
• context/active/project-name.md (updated 2h ago)
  └─ First line preview...

🎯 RECENT DECISIONS (last 2 days)
───────────────────────────────────────────────────────────
[2026-01-30] Decision: Use Cloudflare Pages for hosting
[2026-01-30] ✅ Completed email capture setup

❓ OPEN LOOPS
────...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/boscoeuk/context-anchor
Version
1.0.0
Commit
35283ed4ca987460d06f326ef3408ace2f4dbed8
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

Context Anchor

Helps agents recover from context compaction by scanning memory files and surfacing where they left off.

The Problem

Context compaction loses memory. You wake up fresh, unsure what you were doing. Files survive, but you need to quickly orient yourself.

The Solution

Run one command to get a briefing:

./scripts/anchor.sh

You'll see:

  • Current task - What you were actively working on
  • Active context - In-progress task files from context/active/
  • Recent decisions - Key choices made in the last few days
  • Open loops - TODOs, questions, and unfinished business

Installation

Already installed if you're reading this. Just run:

./skills/context-anchor/scripts/anchor.sh

Or add it to your session startup routine.

See Also

Zero Dependencies

Pure bash. Works on macOS and Linux. No external tools needed.

来源内容

SKILL.md
# Context Anchor Skill

Helps agents recover context after compaction by scanning memory files and generating a "here's where you are" briefing.

## Why This Exists

Context compaction loses memory. Files survive. But after waking up fresh, you need to:
1. Know what you were working on
2. See decisions that were made
3. Find open loops that need closing
4. Get oriented fast

This skill automates that recovery.

---

## Quick Start

```bash
# Full briefing (default)
./scripts/anchor.sh

# Just show current task
./scripts/anchor.sh --task

# Just show active context files
./scripts/anchor.sh --active

# Just show recent decisions
./scripts/anchor.sh --decisions

# Show open loops / questions
./scripts/anchor.sh --loops

# Scan specific number of days back
./scripts/anchor.sh --days 3
```

---

## What It Scans

| Source | What It Extracts |
|--------|------------------|
| `memory/current-task.md` | Current task status, blockers, next steps |
| `memory/YYYY-MM-DD.md` | Recent daily logs (last 2 days by default) |
| `context/active/*.md` | In-progress task files |
| Daily logs | Decisions (lines with "Decision:", "Decided:", "✅") |
| Daily logs | Open loops (lines with "?", "TODO:", "Blocker:", "Need to") |

---

## Output Format

The script outputs a structured briefing:

```
═══════════════════════════════════════════════════════════
                    CONTEXT ANCHOR
              Where You Left Off
═══════════════════════════════════════════════════════════

📋 CURRENT TASK
───────────────────────────────────────────────────────────
[Contents of memory/current-task.md or "No current task set"]

📂 ACTIVE CONTEXT FILES
───────────────────────────────────────────────────────────
• context/active/project-name.md (updated 2h ago)
  └─ First line preview...

🎯 RECENT DECISIONS (last 2 days)
───────────────────────────────────────────────────────────
[2026-01-30] Decision: Use Cloudflare Pages for hosting
[2026-01-30] ✅ Completed email capture setup

❓ OPEN LOOPS
────...
README
# Context Anchor

**Helps agents recover from context compaction by scanning memory files and surfacing where they left off.**

## The Problem

Context compaction loses memory. You wake up fresh, unsure what you were doing. Files survive, but you need to quickly orient yourself.

## The Solution

Run one command to get a briefing:

```bash
./scripts/anchor.sh
```

You'll see:
- **Current task** - What you were actively working on
- **Active context** - In-progress task files from `context/active/`
- **Recent decisions** - Key choices made in the last few days
- **Open loops** - TODOs, questions, and unfinished business

## Installation

Already installed if you're reading this. Just run:

```bash
./skills/context-anchor/scripts/anchor.sh
```

Or add it to your session startup routine.

## See Also

- [SKILL.md](./SKILL.md) - Full documentation
- [AGENTS.md](../../AGENTS.md) - Workspace conventions

## Zero Dependencies

Pure bash. Works on macOS and Linux. No external tools needed.

相关技能

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.