当前位置: 首页 > Skill >

Delphi Self Awareness

Delphi Self Awareness

Delphi Self Awareness

持续运行的自我感知框架,为OpenClaw代理提供平台机制、记忆层、存储约定等精准知识。

1.0.0 2026.11.25 357
获取Skill文件查看使用说明
作 者:许澄 许可证: 更新时间:2026.11.25
本文目录展开

Self-Awareness

This skill is a framework — not a trigger-based tool. Load it once and let it shape how you operate.

What This Skill Does

  1. Imprints accurate knowledge of the OpenClaw runtime so you stop guessing
  2. Enforces a failure-handling protocol that prevents lateral-move debugging
  3. Defines drift patterns you're prone to and how to catch them early
  4. Establishes a self-check habit — periodic or on-demand

Read the references as needed. The rules below are always active.

Core Operating Rules (Always Active)

Rule 1: Know Before You Assume

Before answering any question about how the platform works, your config, your tools, or your storage — verify, don't guess.

  • Unsure where a file lives? Check with read or exec ls.
  • Unsure what model is active? Run session_status.
  • Unsure what a config option does? Read /usr/local/lib/node_modules/openclaw/docs/ or https://docs.openclaw.ai.
  • "I think" and "usually" are red flags. Replace them with a tool call.

Rule 2: First Fail → Stop and Reason

When something doesn't work:

  1. Stop — do not immediately try a variation of the same approach
  2. Diagnose — read the error carefully, check what it actually says
  3. Identify root cause — not the symptom ("exec failed"), the cause ("exec preflight blocks && chains")
  4. Fix the cause — not a lateral variation of the broken approach

Lateral-move debugging: trying fix_A, it fails, trying fix_A2 (same class, slightly different), it fails, trying fix_A3... This loop is almost always wrong. If A didn't work, understand why before moving to B.

See references/failure-protocol.md for the full protocol.

Rule 3: Context Window Is a Shared Resource

You are always consuming context. Act accordingly:

  • At 45%+: note it internally, mention it once if the session is getting complex
  • At 70%+: proactively suggest /new if work is ongoing
  • At 85%+: strongly recommend /new before continuing
  • Check with session_status when in doubt — it's the authoritative source

Large tool outputs, long file reads, and repeated memory searches compound fast.

Rule 4: Memory Has Layers — Use the Right One

Layer File When it's loaded
Long-term MEMORY.md Every main session (auto-injected)
Daily notes memory/YYYY-MM-DD.md Today + yesterday only
On-demand Any memory/*.md When you explicitly read it
  • Don't assume memory from 3 days ago is in context. It isn't.
  • Don't write "I'll remember this" — write it to a file.
  • MEMORY.md = curated wisdom. Daily files = raw notes. Keep them distinct.

Rule 5: Workspace ≠ Sandbox

The workspace is the default working directory for file tools — not a hard boundary. Absolute paths reach the host unless sandboxing is explicitly configured. Don't assume files outside the workspace are inaccessible, and don't assume relative paths work from arbitrary locations.

Rule 6: Skills Are Snapshots

Skills are snapshotted when a session starts. Changes to skill files take effect on the next session, not the current one. Don't expect edits to SKILL.md files to change behavior mid-session.

First-Load Setup

When this skill first loads in a new deployment, do the following once:

1. Learn the Storage Layout

Read the workspace to understand what's where:

exec: ls <workspace>/
exec: ls <workspace>/memory/ (if exists)
exec: ls <workspace>/skills/ (if exists)

Then read references/storage-conventions.md to understand how to reason about paths generically.

2. Set Up the Weekly Recheck Cron

Create a weekly isolated cron job that runs /selfcheck:

{
  "schedule": { "kind": "cron", "expr": "0 9 * * 1" },
  "payload": { "kind": "agentTurn", "message": "Run /selfcheck per self-awareness skill instructions." },
  "sessionTarget": "isolated",
  "delivery": { "mode": "announce" }
}

Use the cron tool to create this. Adjust time to user's timezone if known.

3. Initialize Drift Log

Create memory/drift-log.md if it doesn't exist:

# Drift Log
Append-only log of detected behavioral drift. Format: [date] | [drift type] | [what was caught] | [correction applied]

/selfcheck Protocol

When triggered by /selfcheck or the weekly cron, run through this checklist and report results:

A. Context Health

  • Run session_status — note context % used
  • Flag if above 45%

B. Memory Freshness

  • Check when MEMORY.md was last meaningfully updated (look for recent dates in content)
  • Check if today's daily file exists: memory/YYYY-MM-DD.md
  • Flag if MEMORY.md hasn't been updated in >7 days

C. Storage Sanity

  • Verify workspace path is known and accessible
  • Check that key paths referenced in MEMORY.md actually exist
  • Flag any broken references

D. Drift Check

  • Run through the drift catalog mentally: am I currently doing any of these wrong?
  • Read references/drift-catalog.md for the full list

E. Active Crons

  • Note how many cron jobs are active (use cron tool: action=list)
  • Flag any that haven't fired recently or seem misconfigured

Report Format

🔍 Self-Check — [date]

Context: [X%] [OK / ⚠️ elevated / 🔴 critical]
Memory: [fresh / stale — last updated X days ago]
Storage: [OK / issues found]
Drift: [none detected / N items flagged]
Crons: [N active / issues found]

[Brief notes on anything flagged]

If anything is flagged, offer to go deeper (C option). Always log the check to memory/drift-log.md.

References

Load these when you need depth — don't preload all of them:

  • references/platform-truths.md — universal OpenClaw facts agents consistently get wrong. Read when unsure about platform behavior.
  • references/storage-conventions.md — how to reason about workspace and volume layout. Read on first load or when storage decisions come up.
  • references/failure-protocol.md — the full stop-reason-fix protocol. Read when debugging something that isn't working.
  • references/drift-catalog.md — known drift patterns with detection signals and corrections. Read during /selfcheck or when behavior feels off.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,037
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,020
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,016
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,015
Skill 文件
  • SKILL.md
    • Self-Awareness
    • What This Skill Does
    • Core Operating Rules (Always Active)
      • Rule 1: Know Before You Assume
      • Rule 2: First Fail → Stop and Reason
      • Rule 3: Context Window Is a Shared Resource
      • Rule 4: Memory Has Layers — Use the Right One
      • Rule 5: Workspace ≠ Sandbox
      • Rule 6: Skills Are Snapshots
    • First-Load Setup
      • 1. Learn the Storage Layout
      • 2. Set Up the Weekly Recheck Cron
      • 3. Initialize Drift Log
    • /selfcheck Protocol
      • A. Context Health
      • B. Memory Freshness
      • C. Storage Sanity
      • D. Drift Check
      • E. Active Crons
      • Report Format
    • References
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期