AI Rebirth

v1.0.0

AI Rebirth - Load conversation history from a previous CodeBuddy session into the current session. Use when the user wants to resume, reference, or continue...

0· 94·0 current·0 all-time
byChenxin Li@chenxinli001

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for chenxinli001/ai-rebirth.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "AI Rebirth" (chenxinli001/ai-rebirth) from ClawHub.
Skill page: https://clawhub.ai/chenxinli001/ai-rebirth
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install ai-rebirth

ClawHub CLI

Package manager switcher

npx clawhub@latest install ai-rebirth
Security Scan
VirusTotalVirusTotal
Pending
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk975a32qzce6cm6j1k5kbec9g583z789
94downloads
0stars
1versions
Updated 4w ago
v1.0.0
MIT-0

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 <SESSION_UUID>

Load full message chain

python3 scripts/load_session.py --id <SESSION_UUID> --mode full

Load last N turns

python3 scripts/load_session.py --id <SESSION_UUID> --mode "tail 5"

Output Modes

ModeDescription
summaryStructured summary: stats, topics, user requests, last 3 turns (default)
fullComplete message chain in Markdown
tail NLast N conversation turns (user+assistant pairs)

Workflow

  1. User asks to load/resume/reference a previous session
  2. If no session ID given, list available sessions for the current project
  3. User selects or provides a session ID (can paste partial conversation to help identify)
  4. Run the script with chosen mode
  5. Present the output to the user as context for continuing work

How It Works

  • Reads session JSONL files from ~/.codebuddy/projects/<project-name>/
  • Extracts type=message records (user and assistant messages)
  • Extracts type=topic records 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)

Comments

Loading comments...