返回顶部
c

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
3,062
下载量
4
收藏
概述
安装方式
版本历史

context-anchor

# 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 ─────────────────────────────────────────────────────────── [2026-01-30] Need to enable SFTP on NAS [2026-01-30] TODO: Create Product Hunt account ═══════════════════════════════════════════════════════════ ``` --- ## Integration with AGENTS.md Add to your "Every Session" routine: ```markdown ## Every Session Before doing anything else: 1. Run `./skills/context-anchor/scripts/anchor.sh` for orientation 2. Read `SOUL.md` — this is who you are 3. Read `USER.md` — this is who you're helping ... ``` Or use it manually when you feel lost about context. --- ## Customization ### Change workspace root ```bash WORKSPACE=/path/to/workspace ./scripts/anchor.sh ``` ### Change days to scan ```bash ./scripts/anchor.sh --days 5 # Scan 5 days back ``` --- ## No Dependencies Pure bash. Uses only: - `find`, `grep`, `head`, `tail`, `date`, `stat` - Works on macOS and Linux - No external tools required --- ## When to Use - **Session start**: Quick orientation on what's happening - **After compaction**: Recover lost context - **Feeling lost**: "Wait, what was I doing?" - **Handoff**: Show another agent where things stand - **Daily review**: See what decisions were made

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 context-anchor-1776372673 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 context-anchor-1776372673 技能

通过命令行安装

skillhub install context-anchor-1776372673

下载 Zip 包

⬇ 下载 context-anchor v1.0.0

文件大小: 5.14 KB | 发布时间: 2026-4-17 15:53

v1.0.0 最新 2026-4-17 15:53
Initial release - helps agents recover from context compaction

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部