predecessor-inheritance
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "predecessor-inheritance" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-52ed32578d2581d004748e0a8bf01eac96b41c47128d1ef07f23d2271dd97251. Verify the upstream source and version against https://skillhub.cn/skills/user_7788c3e4/childforever before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Used when inheriting from a previous OpenClaw or Hermes agent file tree. Given a path, safely inspect predecessor skills, memories, scheduled tasks, notes, and project conventions, and distill reusable skills and persistent memories while avoiding copying secrets, stale task states, or the predecessor's full identity.
Introduction source: third_party · user_7788c3e4 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- 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.
- Audience
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
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
- Never reveal secrets. Report only credential names, file paths, and redacted snippets.
- Do not blindly import memory. Distill stable facts; skip stale task state.
- Do not blindly copy skills. Prefer reusable class-level skills; patch existing skills when possible.
- Do not blindly copy cron. Rebuild jobs with current paths and safe delivery targets after user confirmation.
- Treat old external-action tools as dangerous. Email, social posting, Feishu docs, smart home, GitHub writes, and cloud APIs require confirmation before activation.
- Preserve privacy boundaries. Old personal details may be sensitive; only save what helps future assistance and is appropriate to remember.
- Keep raw predecessor files read-only. Write outputs to an artifacts directory, not into the source path.
- 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 filesread_fileonly 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:
usermemory candidates: durable preferences, role, timezone, communication style, stable family/work constraints.memorycandidates: 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
- Acting like migration instead of inheritance. Migration moves state; inheritance learns and improves. Do not import everything.
- Over-saving memories. Memory should prevent future correction, not become a scrapbook.
- Saving stale progress. Old PRs, issues, run results, and “phase done” notes belong in archives, not memory.
- Publishing secrets by accident. Redact before summarizing. Do not quote raw credentials even back to the user.
- Reviving old automations too quickly. Cron jobs and external senders can spam the wrong channel. Summarize first, confirm later.
- Copying old identity. You can inherit lessons from the predecessor; you are not the predecessor.
- Installing too many narrow skills. Prefer a few high-signal skills over a huge trigger-noise library.
- 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.mdlists 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`Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 针对代理迁移与知识沉淀的明确场景,功能实用且边界清晰
- 区分继承与复制,强调安全性和可复用性,避免常见陷阱
Highlights
- 提供中英文多语言触发示例,覆盖典型用户表达
- 明确排除相似 Skill 的使用场景,降低误触风险
Areas to improve
-
文档过长 Reported severity: Minor
主文档约 1800 行,略超理想长度,可能影响阅读体验
Recommendation: 考虑将部分详细说明(如完整 Workflow 步骤)移至附录或独立文档
Highlights
- 结构完整,包含从概述到验证清单的全流程指导
- 提供决策矩阵和常见陷阱,增强可操作性
Areas to improve
-
引用文件缺失 Reported severity: Major
Workflow 中建议使用 scripts/scan_predecessor.py,但未提供该脚本文件
Recommendation: 补充该脚本文件或明确说明其为可选辅助工具,主流程可通过内置工具实现
-
部分章节可精简 Reported severity: Minor
Mental Model 和 Common Pitfalls 部分内容与 Overview/Safety Rules 略有重复
Recommendation: 合并重复内容,保持文档简洁
Highlights
- 安全规则完善,覆盖凭证处理、外部操作确认等关键风险点
- 明确要求用户确认不可逆操作,避免误执行
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 110, 153, 165, 174, 194
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.