Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

resume-context恢复上下文

Agent Skill

resume-context 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,951

周安装

168

GitHub Stars

公开资料未说明

下载量

1,384
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:resume-context(恢复上下文)
来源仓库:https://github.com/nickleodoen/resume-context
安装命令:
openclaw skills install resume-context
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install resume-context

简介

聚焦开发者工作记忆与项目细节的上下文检索技能,用于编码会话与开发笔记查询。

  • 适合在开发过程中追溯历史讨论、技术决策或项目阶段性成果时使用。
  • 通过自然语言提问精准定位相关代码片段、会议记录或任务说明内容。
  • 安装后需确保具备本地文件访问权限,以读取项目目录下的日志与文档资源。
  • 注意:不单独使用 memory_search 或 exec,应结合具体任务上下文协同调用。

SKILL.md

name
resume-context
description
ALWAYS use this skill (never memory_search or exec alone) when the user asks about coding sessions, recent dev work, project briefings, or developer notes. Trigger phrases: give me a briefing on [project], what was I working on for [project], show my session briefing, catch me up on [project], show me my notes for [project]. Runs the resume CLI and returns real session data cached in Redis.
metadata
{"openclaw":{"requires":{"bins":["resume","node"],"env":["REDIS_URL"]},"primaryEnv":"REDIS_URL"}}

resume-context

Ask OpenClaw about your coding sessions and project notes — powered by the resume CLI and cached via Redis.

Usage

In the OpenClaw dashboard or any connected channel, say:

  • "Claw give me a briefing on resume" → session briefing with what you worked on
  • "Claw what was I working on for [project]?" → same
  • "Claw show me my notes for [project]" → project notes
  • "Claw what notes do I have on [project]?" → same

How it works

  1. OpenClaw receives your message and triggers this skill
  2. The skill finds your project directory (searches ~/Documents/Projects/, ~/, ~/projects/)
  3. Checks Redis cache — if fresh (< 5 min), returns instantly
  4. On cache miss: runs resume show or resume notes in your project directory
  5. resume calls your LLM (Anthropic/Ollama) to generate a plain-English briefing
  6. Result is cached in Redis and returned to you

Architecture

You → OpenClaw → resume-context skill ↓ Redis GET (cache hit → instant) ↓ (cache miss) resume show / resume notes ↓ LLM briefing generation ↓ Redis SET (5 min TTL) ↓ Response back to you

Step 1 — Classify intent

  • "briefing", "working on", "session", "status", "catch me up" → resume show
  • "notes", "note" → resume notes
  • Ambiguous → run notes first (fast), then show

Step 2 — Resolve project path

Extract project name from the message (e.g. "for resume" → "resume").

Search in order:

  1. ~/Documents/Projects/<name>
  2. ~/<name>
  3. ~/projects/<name>
  4. ~/code/<name>
find ~ -maxdepth 4 -type d -name "<project_name>" 2>/dev/null | grep -v node_modules | grep -v ".git" | head -5

Prefer the match that contains a .resume/ subdirectory. If no project named, find the most recently active session:

ls -t ~/.resume/projects/ 2>/dev/null | head -3

Step 3 — Run the bridge

REDIS_URL="$REDIS_URL" node {baseDir}/resume-mcp.js show <project_path>
REDIS_URL="$REDIS_URL" node {baseDir}/resume-mcp.js notes <project_path>

Step 4 — Return output

The bridge returns JSON with an output field — return it as-is. If cached: true, add "(answered from cache)". If empty: "No session data found. Is resume running in that project?"

Requirements

1. Install resume

cargo install --git https://github.com/nickleodoen/resume

Then set up the shell hook so resume captures your commands:

resume init --install-hook
# Open a new terminal (or source ~/.zshrc / ~/.bashrc)

Start a session in your project:

cd ~/your-project && resume

2. Set ANTHROPIC_API_KEY

Add to your shell profile (~/.zshrc or ~/.bashrc):

export ANTHROPIC_API_KEY=sk-ant-...

resume uses this to generate plain-English briefings via Claude.

3. Get a Redis URL (free)

Sign up at Redis Cloud → New Subscription → Free Tier. Copy the connection string from the database dashboard — it looks like: redis://default:password@host:port

4. Node.js 18+

Required to run the bridge script (resume-mcp.js).

Environment variables

VariableRequiredDefaultDescription
REDIS_URLRedis connection string
RESUME_CACHE_TTL300Cache TTL in seconds
RESUME_BIN~/.cargo/bin/resumePath to resume binary

Install

# Via ClawHub
openclaw skills install resume-context

# Manual
cp -r resume-context ~/.openclaw/skills/
cd ~/.openclaw/skills/resume-context && npm install

Add to ~/.openclaw/openclaw.json:

{
  "skills": {
    "entries": {
      "resume-context": {
        "enabled": true,
        "env": {
          "REDIS_URL": "redis://your-redis-url:6379"
        }
      }
    }
  }
}

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

91.06%
按下载量换算1,260

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills