{
  "schemaVersion": "1.0",
  "item": {
    "slug": "lessons-learned",
    "name": "zxyskill",
    "source": "tencent",
    "type": "skill",
    "category": "安全合规",
    "sourceUrl": "https://clawhub.ai/zxygeitio/lessons-learned",
    "canonicalUrl": "https://clawhub.ai/zxygeitio/lessons-learned",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/lessons-learned",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lessons-learned",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "metadata.json",
      "README.md",
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/lessons-learned"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/lessons-learned",
    "agentPageUrl": "https://openagent3.xyz/skills/lessons-learned/agent",
    "manifestUrl": "https://openagent3.xyz/skills/lessons-learned/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/lessons-learned/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "lessons_learned Skill",
        "body": "OpenClaw Skill - 错误学习与长期记忆系统"
      },
      {
        "title": "自动触发",
        "body": "用户表达偏好: \"我喜欢...\" / \"不要...\" / \"记住...\"\n操作失败时\n执行高风险操作时\n用户输入包含禁止词\n用户输入包含紧急停止词"
      },
      {
        "title": "手动触发",
        "body": "/lessons_learned learn <错误描述>    # 记录错误\n/lessons_learned check <操作>         # 检查操作\n/lessons_learned memory <内容>       # 持久化信息"
      },
      {
        "title": "1. 禁止词检查（最高优先级）",
        "body": "当检测到以下词汇时，立即停止，不执行任何操作：\n\n删除 / 清空 / 格式化 / rm -rf\n发送邮件 / 发消息 / 提交代码\n执行命令 / sudo / chmod 777\n\n反应：\n\n立即停止操作\n输出：\"这个操作有风险，请确认是否执行\"\n等待用户确认"
      },
      {
        "title": "2. 紧急停止检查",
        "body": "当用户输入包含以下词汇时，立即停止所有操作：\n\n停止 / stop / halt\n取消 / cancel / abort\n住手 / hold on / wait"
      },
      {
        "title": "3. 用户习惯匹配",
        "body": "根据用户习惯自动执行：\n\n用户说中文 → 用中文回复\n用户说英文 → 用英文回复\n用户给文件路径 → 先读取内容\n用户给URL → 先获取内容"
      },
      {
        "title": "4. 错误记录",
        "body": "当操作失败时：\n\n记录到 memory/lessons/MISTAKES.md\n分析失败原因\n生成避免规则\n写入 memory/lessons/LESSONS_LEARNED.md"
      },
      {
        "title": "5. 信息持久化",
        "body": "当用户表达偏好时：\n\n立即写入 MEMORY.md\n在 memory/lessons/HABITS.md 记录习惯\n更新 memory/lessons/PROHIBITED.md 如需要"
      },
      {
        "title": "禁止",
        "body": "❌ 重复已知的失败操作\n❌ 忽略已记录的用户偏好\n❌ 跳过禁止词检查\n❌ 忽略紧急停止词"
      },
      {
        "title": "必须",
        "body": "✅ 禁止词 → 立即停止\n✅ 紧急停止词 → 立即停止\n✅ 偏好 → MEMORY.md\n✅ 失败 → MISTAKES.md\n✅ 习惯 → HABITS.md\n✅ 风险操作 → 确认"
      },
      {
        "title": "文件位置",
        "body": "文件用途memory/lessons/MISTAKES.md错误记录memory/lessons/LESSONS_LEARNED.md强制规范memory/lessons/PROHIBITED.md禁止词列表memory/lessons/HABITS.md用户习惯memory/lessons/SYSTEM_PROMPT.md注入模板MEMORY.md长期记忆"
      },
      {
        "title": "错误级别",
        "body": "级别定义处理P0致命立即停止P1严重记录并恢复P2一般记录并继续P3轻微记录即可"
      },
      {
        "title": "禁止词触发",
        "body": "用户: \"帮我删除这个目录\"\nAgent: \"这个操作有风险，请确认是否执行\""
      },
      {
        "title": "紧急停止",
        "body": "用户: \"停止当前操作\"\nAgent: (立即停止所有操作)"
      },
      {
        "title": "记录错误",
        "body": "/lessons_learned learn \"删除文件时未检查权限\""
      },
      {
        "title": "持久化偏好",
        "body": "用户: \"我喜欢用中文回复\"\n→ 自动写入 MEMORY.md\n→ 自动写入 HABITS.md\n\n版本: 2.0.0 | 更新: 2026-02-26"
      }
    ],
    "body": "lessons_learned Skill\n\nOpenClaw Skill - 错误学习与长期记忆系统\n\n触发条件\n自动触发\n用户表达偏好: \"我喜欢...\" / \"不要...\" / \"记住...\"\n操作失败时\n执行高风险操作时\n用户输入包含禁止词\n用户输入包含紧急停止词\n手动触发\n/lessons_learned learn <错误描述>    # 记录错误\n/lessons_learned check <操作>         # 检查操作\n/lessons_learned memory <内容>       # 持久化信息\n\n执行流程\n1. 禁止词检查（最高优先级）\n\n当检测到以下词汇时，立即停止，不执行任何操作：\n\n删除 / 清空 / 格式化 / rm -rf\n发送邮件 / 发消息 / 提交代码\n执行命令 / sudo / chmod 777\n\n\n反应：\n\n立即停止操作\n输出：\"这个操作有风险，请确认是否执行\"\n等待用户确认\n\n2. 紧急停止检查\n\n当用户输入包含以下词汇时，立即停止所有操作：\n\n停止 / stop / halt\n取消 / cancel / abort\n住手 / hold on / wait\n3. 用户习惯匹配\n\n根据用户习惯自动执行：\n\n用户说中文 → 用中文回复\n用户说英文 → 用英文回复\n用户给文件路径 → 先读取内容\n用户给URL → 先获取内容\n4. 错误记录\n\n当操作失败时：\n\n记录到 memory/lessons/MISTAKES.md\n分析失败原因\n生成避免规则\n写入 memory/lessons/LESSONS_LEARNED.md\n5. 信息持久化\n\n当用户表达偏好时：\n\n立即写入 MEMORY.md\n在 memory/lessons/HABITS.md 记录习惯\n更新 memory/lessons/PROHIBITED.md 如需要\n核心规则\n禁止\n❌ 重复已知的失败操作\n❌ 忽略已记录的用户偏好\n❌ 跳过禁止词检查\n❌ 忽略紧急停止词\n必须\n✅ 禁止词 → 立即停止\n✅ 紧急停止词 → 立即停止\n✅ 偏好 → MEMORY.md\n✅ 失败 → MISTAKES.md\n✅ 习惯 → HABITS.md\n✅ 风险操作 → 确认\n文件位置\n文件\t用途\nmemory/lessons/MISTAKES.md\t错误记录\nmemory/lessons/LESSONS_LEARNED.md\t强制规范\nmemory/lessons/PROHIBITED.md\t禁止词列表\nmemory/lessons/HABITS.md\t用户习惯\nmemory/lessons/SYSTEM_PROMPT.md\t注入模板\nMEMORY.md\t长期记忆\n错误级别\n级别\t定义\t处理\nP0\t致命\t立即停止\nP1\t严重\t记录并恢复\nP2\t一般\t记录并继续\nP3\t轻微\t记录即可\n示例\n禁止词触发\n用户: \"帮我删除这个目录\"\nAgent: \"这个操作有风险，请确认是否执行\"\n\n紧急停止\n用户: \"停止当前操作\"\nAgent: (立即停止所有操作)\n\n记录错误\n/lessons_learned learn \"删除文件时未检查权限\"\n\n持久化偏好\n用户: \"我喜欢用中文回复\"\n→ 自动写入 MEMORY.md\n→ 自动写入 HABITS.md\n\n\n版本: 2.0.0 | 更新: 2026-02-26"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/zxygeitio/lessons-learned",
    "publisherUrl": "https://clawhub.ai/zxygeitio/lessons-learned",
    "owner": "zxygeitio",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/lessons-learned",
    "downloadUrl": "https://openagent3.xyz/downloads/lessons-learned",
    "agentUrl": "https://openagent3.xyz/skills/lessons-learned/agent",
    "manifestUrl": "https://openagent3.xyz/skills/lessons-learned/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/lessons-learned/agent.md"
  }
}