📦 Context Engine — 技能工具

v2.0.0

Maintains and restores conversation and project context across sessions, tracks projects, tasks, and notes, and supports switching and summarizing projects.

0· 309·0 当前·0 累计
by @deus-pandora·MIT-0
下载技能包
License
MIT-0
最后更新
2026/4/3
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
The skill's code, instructions, and requirements are internally consistent with a local context/memory manager: it only reads/writes local JSON files and does not request external credentials or network access.
评估建议
This skill appears to do what it says: a local context manager that stores project/session data in JSON files. Before installing, consider: (1) the script writes to /home/deus/.openclaw/... — if your system user is not 'deus' the path will likely be incorrect; review or modify the code to use a configurable path or $HOME; (2) the included Node.js script will be executed locally and will create/modify JSON files in that directory — back up any existing data at that path; (3) there are no network ...
详细分析 ▾
用途与能力
The name/description match the included CLI script and SKILL.md: the skill manages projects, saves/restores session context, and summarizes projects. One implementation detail worth noting: storage is hard-coded to /home/deus/.openclaw/workspace/memory/projects/ rather than using a portable $HOME or configurable path. That is not inconsistent with its purpose but is an implementation fragility (will not work as-is for other system usernames or environments).
指令范围
SKILL.md instructions are narrowly scoped to saving/restoring project context, switching projects, heartbeats, and listing/summarizing projects. The runtime instructions and triggers reference only local files and the MEMORY.md integration; they do not instruct reading unrelated system files, environment secrets, or sending data to external endpoints.
安装机制
There is no install spec (instruction-only), which minimizes install-time risk. A JavaScript CLI file is included; since no install or remote download occurs, there's no archive or external code fetch risk. Users should still be aware the included script can be executed locally and will write files to disk.
凭证需求
The skill declares no required environment variables, credentials, or config paths beyond its own project storage path. The code only accesses local filesystem paths under the stated projects directory and does not reference or demand tokens, keys, or unrelated credentials.
持久化与权限
The skill does not request always:true and uses normal invocation. Its persistence is limited to writing its own JSON files in the projects directory and updating its own session file; it does not modify other skills or global agent settings.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv2.0.02026/3/13

No changes detected in this version. - Version updated to 2.0.0, but no file or documentation changes noted. - Functionality and documentation remain the same as previous release.

无害

安装命令

点击复制
官方npx clawhub@latest install deus-context-engine
镜像加速npx clawhub@latest install deus-context-engine --registry https://cn.longxiaskill.com

技能文档

Smart Context Engine maintains conversation state and project continuity across OpenClaw sessions.

Quick Start

The context engine automatically:

  • Restores your last active project on session start
  • Saves context periodically (heartbeat) and on session end
  • Tracks pending tasks and notes per project

Commands

  • "remember" / "save context" - Manually save current context
  • "switch to [project]" - Switch to a project (creates if doesn't exist)
  • "show projects" / "what are we working on" - List all projects
  • "summarize" / "where did we leave off" - Get project summary

Storage

Projects are stored in: /home/deus/.openclaw/workspace/memory/projects/

  • projects.json - All project data
  • session.json - Current session state

Actions

save_context

Saves the current context including:

  • Last topic discussed
  • Last file worked on
  • Last command executed
  • Pending tasks
  • Notes

Trigger: Explicit mention ("remember", "save context"), session_end, heartbeat

restore_context

Restores the previous session's context:

  • Loads last active project
  • Shows "Welcome back to [project]"
  • Lists pending tasks if any

Trigger: session_start, explicit request

switch_project

Switches between projects:

  • Saves current project context
  • Loads or creates new project
  • Sets as active

Trigger: Explicit mention ("switch to X")

list_projects

Lists all projects with status indicators:

  • Shows active project highlighted
  • Displays status (active/paused/completed/archived)
  • Shows last session date

Trigger: Explicit mention ("show projects", "what are we working on")

summarize

Generates a summary of the active project:

  • Current status
  • Pending tasks
  • Last topic
  • Session history

Trigger: Explicit mention ("summarize", "where did we leave off")

Triggers

TriggerConditionPriority
session_startNew session begins1
explicit_mentionUser says "remember", "save context", "project", "switch to", "show projects", "summarize"2
heartbeatEvery ~30 min when enabled3

Integration

Works with the MEMORY.md system - updates long-term memory with project summaries.

数据来源ClawHub ↗ · 中文优化:龙虾技能库