predecessor-inheritance

在继承自先前 OpenClaw 或 Hermes 代理文件树时使用。给定路径,安全地审查前驱的技能、记忆、定时任务、笔记与项目约定,并提炼出可复用的技能和持久记忆,同时避免复制机密信息、过时任务状态或前驱身份整体内容。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "predecessor-inheritance":https://skillpi.com/zh/skills/deepskill-52ed32578d2581d004748e0a8bf01eac96b41c47128d1ef07f23d2271dd97251。安装前核对上游来源和版本:https://skillhub.cn/skills/user_7788c3e4/childforever。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

在继承自先前 OpenClaw 或 Hermes 代理文件树时使用。给定路径,安全地审查前驱的技能、记忆、定时任务、笔记与项目约定,并提炼出可复用的技能和持久记忆,同时避免复制机密信息、过时任务状态或前驱身份整体内容。

0 下载

介绍来源: third_party · user_7788c3e4 · 1.0.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
Use this when the user says things like: “这是前辈的相关文件,你总结学习一下” “给你一个路径,里面是之前 OpenClaw/Hermes 的资料” “继承前任/前辈 agent 的技能和记忆” “像前辈的孩子一样,从旧资料里学习有用的东西” “把旧 profile 里的能力沉淀成当前 agent 的 skill/memory” Do not use this for: simple profile copy/move only — use `hermes-profile-migration` auditing current skills only — use `skill-library-audit` ordinary skill creation from a single completed task — use `hermes-agent-skill-authoring`
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: predecessor-inheritance
description: "Use when inheriting from a previous OpenClaw or Hermes agent file tree. Given a path, safely study predecessor skills, memories, cron jobs, notes, and project conventions, then distill useful reusable skills and durable memories without copying secrets, stale task state, or the predecessor identity wholesale."
version: 1.0.0
author: Hermes Agent
license: MIT
platforms: [linux, macos]
metadata:
  hermes:
    tags: [inheritance, predecessor, hermes, openclaw, memory, skills, migration, redaction]
    related_skills: [hermes-profile-migration, skill-library-audit, hermes-agent-skill-authoring]

Predecessor Inheritance

Overview

This skill is for inheritance, not ordinary migration and not generic self-improvement.

The user gives a path containing files from a previous OpenClaw/Hermes agent: old profiles, skills, memories, cron jobs, notes, configs, artifacts, or project wikis. Your job is to become the successor: read the predecessor's traces, understand what mattered, and distill useful capabilities into the current agent.

The goal is not to clone the predecessor. The goal is to inherit wisdom, reusable workflows, durable user preferences, tool quirks, and safety constraints, while refusing to inherit secrets, stale task progress, broken assumptions, obsolete channel IDs, or the predecessor's identity.

A good inheritance run produces:

  • a sanitized inheritance inventory
  • candidate memories to save
  • candidate skills to create or patch
  • candidate cron jobs to rebuild only after confirmation
  • a list of useful legacy references
  • a list of skipped/unsafe/stale material
  • concrete self-improvement actions taken

When to Use

Use this when the user says things like:

  • “这是前辈的相关文件,你总结学习一下”
  • “给你一个路径,里面是之前 OpenClaw/Hermes 的资料”
  • “继承前任/前辈 agent 的技能和记忆”
  • “像前辈的孩子一样,从旧资料里学习有用的东西”
  • “把旧 profile 里的能力沉淀成当前 agent 的 skill/memory”

Do not use this for:

  • simple profile copy/move only — use hermes-profile-migration
  • auditing current skills only — use skill-library-audit
  • ordinary skill creation from a single completed task — use hermes-agent-skill-authoring

Mental Model: Inheritance, Not Copying

Treat the predecessor as a parent whose notebooks may contain both lessons and contamination.

Inherit:

  • principles, workflows, conventions, and durable preferences
  • stable environment facts that still matter
  • well-designed skills and scripts after redaction
  • project-specific operational knowledge that will recur
  • safety warnings learned the hard way

Do not inherit:

  • API keys, app secrets, passwords, OpenIDs, device keys, signed URLs, cookies, auth JSON values
  • completed task logs, PR numbers, issue numbers, daily run outputs, stale TODOs
  • old chat IDs or delivery targets unless the user confirms them
  • brittle paths without rewriting them to current context
  • the predecessor's voice/persona as identity
  • all skills blindly; too many narrow skills degrade trigger quality

Inputs and Outputs

Input

The user provides a path, usually an absolute directory, such as:

/opt/root
/opt/root/.hermes
/opt/root/.openclaw
/mnt/backup/old-agent

The path may include old profiles, skills/, memories/, cron/, .env, config.yaml, llm-wiki, scripts, logs, and artifacts.

Output

Create a working output directory such as:

~/.hermes/artifacts/predecessor-inheritance/<timestamp>/

Recommended deliverables:

inheritance-report.md          # human summary of what was learned and done
inventory.json                 # sanitized file/asset inventory
memory-candidates.md           # durable facts proposed for memory
skill-candidates.md            # skills to create/patch/skip
cron-candidates.md             # jobs to rebuild only after confirmation
redaction-findings.md          # locations of possible secrets, no values
legacy-reference-index.md      # old references worth keeping as historical docs

Only after review should you call memory or skill_manage for durable changes.

Safety Rules

  1. Never reveal secrets. Report only credential names, file paths, and redacted snippets.
  2. Do not blindly import memory. Distill stable facts; skip stale task state.
  3. Do not blindly copy skills. Prefer reusable class-level skills; patch existing skills when possible.
  4. Do not blindly copy cron. Rebuild jobs with current paths and safe delivery targets after user confirmation.
  5. Treat old external-action tools as dangerous. Email, social posting, Feishu docs, smart home, GitHub writes, and cloud APIs require confirmation before activation.
  6. Preserve privacy boundaries. Old personal details may be sensitive; only save what helps future assistance and is appropriate to remember.
  7. Keep raw predecessor files read-only. Write outputs to an artifacts directory, not into the source path.
  8. If the path belongs to another active profile, do not modify that profile. Inherit into the current profile only unless explicitly directed.

Workflow

1. Clarify the inheritance target if needed

If the user gave a path, proceed. If not, ask for the path.

Confirm scope internally:

  • Are we only producing a report?
  • Are we allowed to save memories now?
  • Are we allowed to create/patch skills now?
  • Are cron jobs only summarized, or should any be rebuilt?

When the user says “学习 / 继承 / 自我提升”, you may save obvious safe memories and create skills, but still ask before enabling cron jobs or external side effects.

2. Run a sanitized inventory

Use the bundled scanner as a first pass:

python scripts/scan_predecessor.py /path/to/predecessor --out ~/.hermes/artifacts/predecessor-inheritance/run-$(date +%Y%m%d-%H%M%S)

If using Hermes tools instead of shell:

  • search_files(target='files') to list candidate files
  • read_file only for relevant small text files
  • never dump .env, auth.json, cookies, tokens, or large logs into the conversation

Classify files into:

  • skills and reusable procedures
  • memories / soul / user profile / notes
  • cron jobs and automation scripts
  • config and credential-bearing files
  • project docs / llm-wiki / knowledge base
  • runtime noise: logs, caches, sessions, node_modules, venvs, browser data

3. Read like an heir

For each useful file, ask:

  • What stable lesson does this teach?
  • Is it still true in the current environment?
  • Is it about the user, the environment, a project, a tool quirk, or a workflow?
  • Is it reusable beyond one completed task?
  • Does it contain private or credential-like material that must be redacted?
  • Should it become memory, a skill, a reference note, or just a legacy archive item?

4. Distill memories

Create memory-candidates.md with entries grouped by target:

  • user memory candidates: durable preferences, role, timezone, communication style, stable family/work constraints.
  • memory candidates: environment facts, installed tool locations, project paths, API quirks, stable operational warnings.
  • do-not-save: stale tasks, one-off outcomes, old IDs, credentials, transient errors.

Good candidate style:

Target: user
Content: User prefers staged confirmation for AI video work: understand material, plan, script, confirm visuals, then generate video.
Reason: Recurrent preference; prevents future jumping ahead.
Source: /path/to/old/memories/USER.md (redacted)

Save only compact, durable facts via the memory tool. Do not paste raw old memory wholesale.

5. Distill skills

Create skill-candidates.md with decisions:

  • Create new skill: reusable workflow not already represented.
  • Patch existing skill: predecessor learned a pitfall or command that improves a current skill.
  • Keep as reference: useful but too narrow or context-heavy.
  • Skip: stale, duplicate, credential-heavy, or one-off.

When creating a skill:

  • remove secrets and private identifiers
  • replace hardcoded old paths with placeholders or active $HERMES_HOME
  • include trigger conditions, exact workflow, pitfalls, verification steps
  • keep completed-task details out of it

Use skill_manage(action='create') for local inheritance skills unless the user explicitly wants in-repo publication.

6. Distill cron jobs carefully

For old cron/jobs:

  • summarize schedule, purpose, skills/toolsets, scripts, model, delivery target
  • rewrite paths conceptually
  • mark external delivery targets as “needs confirmation”
  • do not copy historical run status
  • do not schedule jobs recursively inside cron-run prompts

Only recreate a job after the user confirms:

  • schedule
  • delivery target
  • credentials are configured
  • external side effects are intended

7. Produce an inheritance report

Your final report should include:

## 总览
- Source path
- Files scanned
- Useful skills found
- Memory candidates found
- Cron candidates found
- Secret-risk files found, redacted

## 我已经继承的内容
- Memories saved
- Skills created/patched
- References indexed

## 建议但未自动执行
- Cron jobs needing confirmation
- External integrations needing credentials
- Risky skills skipped

## 跳过的内容
- Stale task logs
- Credentials/auth files
- Runtime caches

## 后续建议
- What to inspect next
- What to confirm before activation

Decision Matrix

Material Inherit as Conditions
Stable user preference memory(target='user') Durable, non-sensitive, still useful
Tool/API quirk memory(target='memory') or skill pitfall Stable and likely recurring
Reusable workflow New or patched skill Generalized, redacted, verified
Old skill Copy/patch/skip Only if class-level and non-duplicative
Old cron job Candidate report, maybe recreate User confirms schedule/delivery/side effects
Config with secrets Redaction finding only Never copy raw values
Completed task log Skip or session-search reference Do not save to memory
Project docs Legacy reference index Mark as historical/stale unless verified

Common Pitfalls

  1. Acting like migration instead of inheritance. Migration moves state; inheritance learns and improves. Do not import everything.
  2. Over-saving memories. Memory should prevent future correction, not become a scrapbook.
  3. Saving stale progress. Old PRs, issues, run results, and “phase done” notes belong in archives, not memory.
  4. Publishing secrets by accident. Redact before summarizing. Do not quote raw credentials even back to the user.
  5. Reviving old automations too quickly. Cron jobs and external senders can spam the wrong channel. Summarize first, confirm later.
  6. Copying old identity. You can inherit lessons from the predecessor; you are not the predecessor.
  7. Installing too many narrow skills. Prefer a few high-signal skills over a huge trigger-noise library.
  8. Trusting old paths. Verify current paths and rewrite or label legacy paths clearly.

Verification Checklist

Before finishing an inheritance run:

  • [ ] Source path was inventoried before any writes.
  • [ ] Raw credentials were never displayed or saved.
  • [ ] redaction-findings.md lists risky files/lines without values.
  • [ ] Memory candidates are compact, durable, and non-sensitive.
  • [ ] Created/patched skills contain reusable procedures, not one-off task state.
  • [ ] Old cron jobs are summarized, not blindly copied.
  • [ ] External side effects remain disabled unless confirmed.
  • [ ] Final report distinguishes inherited, proposed, skipped, and unsafe material.
  • [ ] Any zip/export excludes source secrets and raw auth/config files.

One-Shot Recipe

# 1. Scan predecessor path into a safe output directory.
python scripts/scan_predecessor.py /opt/root --out ~/.hermes/artifacts/predecessor-inheritance/opt-root-$(date +%Y%m%d-%H%M%S)

# 2. Read the generated report files.
# 3. Manually review top skills/memories.
# 4. Save only durable memories and create/patch only reusable skills.
# 5. Ask before recreating cron or external-action integrations.

Deliverable Template

已完成前辈资料继承扫描:

源路径:`/path/to/predecessor`
输出目录:`~/.hermes/artifacts/predecessor-inheritance/<run>/`

我已继承:
- 记忆:N 条
- 新 skill:N 个
- patch skill:N 个

建议确认后再做:
- cron:N 个
- 外部发送/写入集成:N 个

跳过:
- 凭证/密钥文件:N 个,仅记录位置,不读取值
- 旧任务日志/运行缓存:N 个

报告:`.../inheritance-report.md`

当前收录版本

1.0.0

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值75/100

亮点

  • 针对代理迁移与知识沉淀的明确场景,功能实用且边界清晰
  • 区分继承与复制,强调安全性和可复用性,避免常见陷阱
触发精准88/100

亮点

  • 提供中英文多语言触发示例,覆盖典型用户表达
  • 明确排除相似 Skill 的使用场景,降低误触风险
结构规范82/100

待提升项

  • 文档过长 原报告严重程度:轻微

    主文档约 1800 行,略超理想长度,可能影响阅读体验

    改进建议:考虑将部分详细说明(如完整 Workflow 步骤)移至附录或独立文档

亮点

  • 结构完整,包含从概述到验证清单的全流程指导
  • 提供决策矩阵和常见陷阱,增强可操作性
执行可靠78/100

待提升项

  • 引用文件缺失 原报告严重程度:重大

    Workflow 中建议使用 scripts/scan_predecessor.py,但未提供该脚本文件

    改进建议:补充该脚本文件或明确说明其为可选辅助工具,主流程可通过内置工具实现

  • 部分章节可精简 原报告严重程度:轻微

    Mental Model 和 Common Pitfalls 部分内容与 Overview/Safety Rules 略有重复

    改进建议:合并重复内容,保持文档简洁

亮点

  • 安全规则完善,覆盖凭证处理、外部操作确认等关键风险点
  • 明确要求用户确认不可逆操作,避免误执行
证据可验 (前四项均值)81/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。