跳到正文
TakoAPI
返回技能列表

context-anchor

由 boscoeuk 提供

Notes & PKM
2.4k下载量由 clawskills.sh 提供
4星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Recover from context compaction by scanning memory files.

描述

该技能的功能

A bash script that scans local memory and context files to produce a structured briefing about where work left off. Designed for use after context compaction or at session start when working memory is gone.

Because it reads files that survive compaction rather than relying on in-context memory, orientation is consistent regardless of how much context was lost.

何时使用

  • Resuming an agent session after context compaction
  • Orienting a fresh agent on an in-progress project
  • Reviewing decisions made across recent daily logs
  • Handing off current state to another agent
  • Checking open loops before starting new work

示例工作流

输入

User asks: 'What was I working on before the session reset?'

智能体
  1. 1

    Run ./scripts/anchor.sh for a full briefing

  2. 2

    Read memory/current-task.md for task status, blockers, and next steps

  3. 3

    Scan recent daily log files (last 2 days by default) for decisions and completed items

  4. 4

    Check context/active/ for any in-progress task files

  5. 5

    Surface open loops marked with TODO, Blocker, or question marks

输出

A structured briefing showing current task, active context files, recent decisions, and unresolved open loops

安装

clawhub install boscoeuk/context-anchor

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接