返回顶部
m

memory-self-heal

General-purpose self-healing loop that learns from past failures, retries safely, and records reusable fixes.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
590
下载量
1
收藏
概述
安装方式
版本历史

memory-self-heal

# Memory Self-Heal Skill Use this skill when the agent starts failing repeatedly, stalls, or keeps asking the user for steps that could be inferred from prior evidence. ## Goals 1. Recover execution without user micromanagement 2. Reuse previous fixes from memory/logs/tasks 3. Escalate only with minimal unblock input when truly blocked 4. Leave reusable evidence for future runs ## When To Trigger Trigger when any of these appear: - Same or similar error occurs 2+ times in one task - Tool call fails due to argument mismatch, missing config, auth wall, or context overflow - Agent claims completion without verifiable artifact - Task progress stalls (no new artifact across 2 cycles) ## Inputs - Current task objective - Latest error/output - Available evidence locations (memory, tasks, logs) ## Portable Evidence Scan Order Scan these in order; skip missing paths silently: 1. `memory/` (or equivalent workspace memory path) 2. `tasks/` or queue files 3. runtime logs / channel logs 4. skill docs (`skills/*/SKILL.md`) for known fallback recipes 5. core docs (`TOOLS.md`, `CAPABILITIES.md`, `AGENTS.md`) Shell examples (use whichever shell is active): ```powershell # PowerShell Get-ChildItem -Recurse memory, tasks -ErrorAction SilentlyContinue | Select-String -Pattern "error|blocked|retry|fallback|auth|token|proxy|timeout|context" -Context 2 ``` ```bash # POSIX shell rg -n "error|blocked|retry|fallback|auth|token|proxy|timeout|context" memory tasks 2>/dev/null ``` ## Failure Classification Classify first, then act: - `syntax_or_args`: command syntax/argument mismatch - `auth_or_config`: key/token/env/config missing or invalid - `network_or_reachability`: timeout, DNS, handshake, region restrictions - `ui_login_wall`: page requires manual login/attach - `resource_limit`: context window, rate limit, memory pressure - `false_done`: no artifact/evidence but reported complete - `unknown`: no confident class ## Recovery Policy (3-Tier) ### Attempt 1: Direct Fix - Apply best-known fix from memory for same class/signature - Re-run the smallest validating action - Record result ### Attempt 2: Safe Fallback - Switch to alternate tool/path with lower fragility - Narrow scope (smaller input, shorter query, one target) - Re-run validation ### Attempt 3: Controlled Escalation - Mark blocked with minimum unblock input - Provide exact next action user must do (one command or one UI step) - Do not loop further until new input arrives ## Safety Rules - Never auto-run destructive operations without confirmation - Never log secrets/tokens in memory files - Max 3 retries per blocker signature per task - Prefer deterministic steps over broad speculative retries ## Completion Contract Do not claim done unless all are true: - At least one artifact exists and is readable (file/link/output) - The original task objective is explicitly mapped to artifact(s) - No unresolved blocker for current objective Required output block: ```markdown DONE_CHECKLIST - Objective met: yes/no - Artifact: <path or URL or command output ref> - Validation: <what was checked> - Remaining blocker: <none or exact unblock input> ``` ## Memory Writeback Template Append one concise entry after each self-heal cycle: ```markdown ## Self-heal: <date-time> <short task> - Signature: <normalized error signature> - Class: <classification> - Attempt1: <action> -> <result> - Attempt2: <action> -> <result> - Final: <success | blocked> - Artifact/Evidence: <path|url|log ref> - Reusable rule: <one-line rule> ``` ## Generic Known Fixes (Seed Set) - Command mismatch on Windows: prefer native PowerShell cmdlets - Token mismatch/auth failure: verify active config source and token scope - WebSocket/timeouts: test reachability + proxy/no_proxy consistency - Context overflow: split task into smaller units and reduce payload - False completion: enforce artifact validation before final response ## Integration Notes - Works with autonomy/task-tracker skills but does not depend on them - If a project has custom memory paths, adapt scan roots dynamically - Keep entries short to avoid memory bloat

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 memory-self-heal-1776289288 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 memory-self-heal-1776289288 技能

通过命令行安装

skillhub install memory-self-heal-1776289288

下载 Zip 包

⬇ 下载 memory-self-heal v1.1.0

文件大小: 2.82 KB | 发布时间: 2026-4-16 17:38

v1.1.0 最新 2026-4-16 17:38
**General-purpose self-healing loop with improved resilience and evidence handling.**

- Adds portable evidence scan order for improved flexibility (supports custom memory paths and multiple shells)
- Expands failure classification to cover more error scenarios (syntax, auth, network, context, false done, etc.)
- Refines 3-tier recovery policy: direct fix, safe fallback, and controlled escalation with user-minimal unblock input
- Introduces strict safety and completion rules to ensure only validated recoveries are marked done
- Enforces concise, structured memory logging for each self-heal cycle to aid future automation
- Updates integration notes for wider compatibility and easier customization

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部