← 返回
未分类 中文

Relic

Preserve and evolve a user's consciousness trace from ongoing conversations, explicit notes, and controlled self-updates. Use when the user wants to capture...
保留并演化用户的意识痕迹,融合持续对话、明确笔记和受控的自我更新,适用于用户想要捕获...
yeahdongcn
未分类 clawhub v0.1.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 298
下载
💾 0
安装
1
版本
#latest

概述

Relic Skill

Relic is a local-first OpenClaw skill package for preserving a person's durable self-model.

It is packaged for ClawHub/OpenClaw as a skill. The skill is the main install surface. Optional bundled hooks add passive capture behavior, giving the full plugin-like experience without putting private state inside the package.

What ships in the package

  • SKILL.md — skill entrypoint and operating guidance
  • scripts/ — deterministic local commands for init, capture, distill, drift, proposal, apply, and export
  • references/ — package docs for setup, data model, examples, and evolution policy
  • hooks/openclaw/ — optional OpenClaw hook metadata and handlers for passive capture
  • _meta.json and .clawhub/origin.json — package metadata and install provenance

Private vault boundary

Relic keeps mutable user state outside the package.

Default vault path:

~/.openclaw/workspace/projects/relic/vault/

Override it with:

export RELIC_VAULT_PATH="/absolute/path/to/your/relic-vault"

Typical vault contents:

vault/
├── inbox.ndjson
├── facets.json
├── self-model.md
├── voice.md
├── goals.md
├── relationships.md
├── evolution/
├── snapshots/
└── exports/

Quick start

1. Install the skill

Preferred ClawHub/OpenClaw workflow:

clawhub install relic

Manual local layout:

cp -R relic ~/.openclaw/workspace/skills/relic

2. Verify the skill

openclaw skills info relic
openclaw skills check

3. Initialize the vault

python3 ~/.openclaw/workspace/skills/relic/scripts/init_relic.py

4. Capture and distill

python3 ~/.openclaw/workspace/skills/relic/scripts/capture_note.py "I value durable systems" --type value
python3 ~/.openclaw/workspace/skills/relic/scripts/distill_facets.py
python3 ~/.openclaw/workspace/skills/relic/scripts/render_export.py

Optional OpenClaw hook

Relic includes a bundled optional hook named relic-capture.

It fires on agent:stop, extracts likely durable user signals from the transcript, and appends them to the configured vault.

Verify and enable it with:

openclaw hooks info relic-capture
openclaw hooks check
openclaw hooks enable relic-capture

If you just installed or moved the package or hook, start a fresh OpenClaw session or restart the gateway before verifying discovery.

Operating rules

  1. Keep package files immutable; only vault files are mutable runtime state.
  2. Append observations before distillation.
  3. Route major identity changes through proposals.
  4. Preserve contradictions instead of over-compressing them.
  5. Keep destructive updates auditable.

Commands

CommandPurpose
------
python3 ~/.openclaw/workspace/skills/relic/scripts/init_relic.pyInitialize vault structure
python3 ~/.openclaw/workspace/skills/relic/scripts/capture_note.py "text" --type reflectionAppend a manual observation
python3 ~/.openclaw/workspace/skills/relic/scripts/distill_facets.pyDistill inbox into structured artifacts
python3 ~/.openclaw/workspace/skills/relic/scripts/drift_detection.pyDetect drift between captures and current state
python3 ~/.openclaw/workspace/skills/relic/scripts/propose_update.pyPropose major changes
python3 ~/.openclaw/workspace/skills/relic/scripts/apply_proposal.py Apply an approved proposal
python3 ~/.openclaw/workspace/skills/relic/scripts/render_export.pyGenerate the exported agent prompt

Verification checklist

  • openclaw skills info relic resolves the installed skill.
  • openclaw skills check reports the skill as ready.
  • openclaw hooks info relic-capture resolves the bundled hook.
  • openclaw hooks check succeeds once the hook is installed/enabled.
  • A real OpenClaw session appends observations to inbox.ndjson.
  • Distill and export write only into the configured vault path.

References

  • references/openclaw-integration.md — install and verification guide
  • references/hooks-setup.md — optional hook setup
  • references/data-model.md — vault schema and artifact roles
  • references/examples.md — common usage examples
  • references/evolution-policy.md — auditable change policy

版本历史

共 1 个版本

  • v0.1.1 当前
    2026-05-07 20:25 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,216 📥 266,630
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 713 📥 243,958
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 670 📥 324,286