← 返回 Skills 市场
AI Rebirth
作者
Chenxin Li
· GitHub ↗
· v1.0.0
· MIT-0
99
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ai-rebirth
功能描述
AI Rebirth - Load conversation history from a previous CodeBuddy session into the current session. Use when the user wants to resume, reference, or continue...
使用说明 (SKILL.md)
AI Rebirth
AI 重生 - 让新的 session 继承前世的记忆。加载并展示之前 CodeBuddy session 的对话历史,用于恢复中断的工作或导入其他 session 的上下文。
Core Script
scripts/load_session.py
After installing, copy scripts/load_session.py to ~/.codebuddy/bin/load_session.py for easy access.
Usage
List sessions for current project
python3 scripts/load_session.py --project /path/to/project
Load a specific session (summary mode, default)
python3 scripts/load_session.py --id \x3CSESSION_UUID>
Load full message chain
python3 scripts/load_session.py --id \x3CSESSION_UUID> --mode full
Load last N turns
python3 scripts/load_session.py --id \x3CSESSION_UUID> --mode "tail 5"
Output Modes
| Mode | Description |
|---|---|
summary |
Structured summary: stats, topics, user requests, last 3 turns (default) |
full |
Complete message chain in Markdown |
tail N |
Last N conversation turns (user+assistant pairs) |
Workflow
- User asks to load/resume/reference a previous session
- If no session ID given, list available sessions for the current project
- User selects or provides a session ID (can paste partial conversation to help identify)
- Run the script with chosen mode
- Present the output to the user as context for continuing work
How It Works
- Reads session JSONL files from
~/.codebuddy/projects/\x3Cproject-name>/ - Extracts
type=messagerecords (user and assistant messages) - Extracts
type=topicrecords for conversation topic tracking - Generates structured Markdown output
Notes
- Read-only: never modifies source session data
- No external dependencies, pure Python 3 standard library
- Handles large JSONL files (4MB+) via line-by-line streaming
- Project directory name is derived from the working directory path (slashes replaced with dashes)
安全使用建议
This skill appears coherent and low-risk: it only reads CodeBuddy session files in ~/.codebuddy/projects and prints summaries. Before installing, you may (1) inspect the script locally (it is short and pure Python) to confirm behavior, (2) run it in list mode (no --id) to verify it only lists files, and (3) avoid copying it into system-wide paths—copying to a per-user ~/.codebuddy/bin is fine. If you do not use CodeBuddy or do not keep session data under ~/.codebuddy, the skill will do nothing useful.
能力评估
Purpose & Capability
The name/description match the included script: both describe locating and parsing CodeBuddy JSONL session files under ~/.codebuddy/projects and producing summary/full/tail outputs. Required resources (none) are proportional to the task.
Instruction Scope
SKILL.md instructs running the provided Python script and copying it to ~/.codebuddy/bin for convenience. The script only reads files under ~/.codebuddy/projects (and uses cwd/project args) and prints structured Markdown; it does not attempt to read unrelated system files, environment secrets, or make network calls.
Install Mechanism
There is no install spec (instruction-only plus a single Python script). The user is asked to copy the script into their home directory; nothing is downloaded from external URLs and no archives are extracted.
Credentials
The skill requires no environment variables or credentials. It reads only the user-local ~/.codebuddy/projects directory and (optionally) uses the current working directory for project detection, which is appropriate for the described functionality.
Persistence & Privilege
Flags are default (always: false, user-invocable: true). The script advises copying itself into ~/.codebuddy/bin for convenience, which is a local user-level action and not a system-level persistent privilege.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ai-rebirth - 安装完成后,直接呼叫该 Skill 的名称或使用
/ai-rebirth触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
AI Rebirth 1.0.0 — Initial release
- Load and display conversation history from previous CodeBuddy sessions into the current session.
- Supports session listing by project, summary and full message output modes, and loading the last N conversation turns.
- No external dependencies; pure Python 3, read-only operation, handles large history files efficiently.
- Provides a command-line script for flexible session lookup and loading.
- Documentation included for usage and workflow.
元数据
常见问题
AI Rebirth 是什么?
AI Rebirth - Load conversation history from a previous CodeBuddy session into the current session. Use when the user wants to resume, reference, or continue... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 99 次。
如何安装 AI Rebirth?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ai-rebirth」即可一键安装,无需额外配置。
AI Rebirth 是免费的吗?
是的,AI Rebirth 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
AI Rebirth 支持哪些平台?
AI Rebirth 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 AI Rebirth?
由 Chenxin Li(@chenxinli001)开发并维护,当前版本 v1.0.0。
推荐 Skills