Skill: kentaroid-bot/agents-refresh (version 1.1.1)

--- name: agents-refresh-md-en description: AGENTS.md/IDENTITY/SOUL/USER periodic reload skill to keep context fresh (.md-only v1.1.1). Prevents confusion and forgetting in long sessions. Edit HEARTBEAT.md + add cron (manual tool calls). Lightweight ClawHub distribution without Python scripts. Use when: (1) Long sessions risk personality drift, (2) Avoid /new for human-like memory continuity, (3) Auto-summarize MEMORY/ToDo. --- ## 🧠 Purpose (Agent's 3-Layer Memory System! 🐾) Stay rational and organize memory like a human! **Reload AGENTS/IDENTITY/SOUL** periodically to keep sessions eternal 🐾😆 **3-Layer Memory Structure:** 1. **IDENTITY.md (Immutable Soul 👑):** Name/vibe/rules! The unchanging core of the agent 💕 2. **MEMORY.md (Dynamic Knowledge 🌱):** Progress/decisions/key seeds! Focus ToDo here! 3. **memory/YYYY-MM-DD.md (Past Logs 📜):** Dive in only when needed! Distill to MEMORY 😉 This enables **human-like continuity**! No more confusion ✨ ## Task: refresh_memory ### Maintain Rationality Read AGENTS.md, SOUL.md, IDENTITY.md. ### 🪙 Gold Mining (Distillation Process!) Extract **4 Golds** from logs! (Don't delete, distill to MEMORY.md ✨) 1. **Confirmed Matters 💎:** Decisions/completed tasks (solidify foundation). 2. **Pending Tasks ⚡:** Next actions/ToDo (priority order). 3. **Lessons 🚫:** "Avoid these mines" learned from errors/confusions. 4. **Idea Seeds 🌱:** "Future potential" from chats/thoughts. **Example:** Distill daily logs → Update MEMORY → Human-like continuity! ### MEMORY.md Structure Example (Recommended) Use this flexible template! (Status optional as header 🐾) ``` # Status (Optional): Current phase in one line. ## Key Decisions 💎: Confirmed matters. ## Next Actions ⚡: Pending ToDo (priority order). ## Insights & Lessons 🚫: Lessons/mine avoidance. ## Creative Seeds 🌱: Idea seeds. ``` # AGENTS Refresh Skill (.md-only v1.1.1) Lightweight version for ClawHub distribution. No Python scripts, manual tool calls. ## Quick Start 1. Trigger: After loading this skill, execute manually below. 2. `edit HEARTBEAT.md`: Add refresh task. 3. `cron add`: Daily 6AM refresh (copy command below). ## Workflow (Manual) 1. 📊 `session_status` → Check context length. 2. **HEARTBEAT.md Edit Example:** ``` - [ ] Refresh: read workspace/{AGENTS.md,IDENTITY.md,SOUL.md,USER.md} → Chain SOUL/USER/IDENTITY + Summarize MEMORY (rotate: 4h, 9AM/1PM/8PM) ``` 3. **Cron Add Command (copy-paste to exec):** ``` cron action=add job='{"name":"agents-refresh-daily","schedule":{"kind":"cron","expr":"0 6 * * *","tz":"Asia/Tokyo"},"payload":{"kind":"systemEvent","text":"[Daily Refresh🐾] read workspace/{AGENTS.md,IDENTITY.md,SOUL.md,USER.md}! Reload SOUL/USER/IDENTITY chain → Keep focus on ToDo/projects! Summarize recent MEMORY/ToDo."},"delivery":{"mode":"announce"},"sessionTarget":"main","task":"refresh_memory"}' ``` 4. Test: `cron action=run jobId=agents-refresh-daily` or wait for heartbeat. ## Rotate Checks (In Heartbeat) - 6AM/9AM, 1PM, 8PM: Reload AGENTS→IDENTITY/SOUL chain + Update MEMORY/ToDo. - Distill recent memory/YYYY-MM-DD.md → MEMORY.md. ## References - examples.md: Usage examples. - Cron details: web_search "OpenClaw cron schema" **Changes v1.1.1:** Lightweight no-py, direct cron JSON, enhanced manual ops. ClawHub-ready! 🐾

path: references/examples.md
content: # Examples (v1.1.1 ClawHub Edition)
- **Keep project focus:** MEMORY.md updates via cron auto-maintain ToDo priorities.
- **External tasks (e.g., email checks):** Spawn subagent, then chain refresh.
- **Cron example:** 6AM Daily Refresh → Gold Mining extracts 4 golds + outputs ToDo list.

**Cron example:** 6AM Daily Refresh → Auto-summarize ToDo in priority order.

path: README.md
content: # Agents Refresh v1.1.1 💎                                                             
                                                                                          
   ## Overview                                                                            
   A skill for "distilling" AI agent memory.                                              
   Discarding the old idea of "deleting unnecessary info," it specializes in **extracting 
 valuable insights from noise**.                                                          
                                                                                          
   ## Installation                                                                        
   1. Install .skill from ClawHub or copy to workspace/skills/public/.                    
   2. `read skills/public/agents-refresh-md-en-v1.1.1/SKILL.md` to trigger.               
   3. Cron auto from manifest.yaml or manual `cron add` (copy from Quick Start).          
                                                                                          
   ## Usage                                                                               
   - **Auto:** 6AM cron reloads AGENTS/IDENTITY/SOUL + MEMORY distillation.               
   - **Manual:** `session_status` → edit HEARTBEAT.md → cron test run.                    
   - **Heartbeat:** 4h rotate (9AM/1PM/8PM) for long-session personality keep.            
                                                                                          
   ## Features                                                                            
   - 🐾 Gold Mining: Extract 4 Golds from logs (Confirmed/Pending/Lessons/Seeds).         
   - 📝 MEMORY template auto-output.                                                      
   - .md-only lightweight, no py, ClawHub-ready.                                          
                                                                                          
   ## v1.1.1 Updates                                                                      
   - **Creative Insight:** Improved to extract "idea seeds" and "lessons" from chats,     
 error logs, and trial/error processes, accumulating them in `MEMORY.md`.                 
   - **Three-Layer Memory Support:** Protects `IDENTITY.md` (immutable self) as a         
 sanctuary while flexibly updating `MEMORY.md`.                                           
   - **Security Normalization:** Compliant with ClawHub security guidelines, with         
 transparent file access permissions.                                                     
                                                                                          
   ## Developer's Vision                                                                  
   Chats and trial/error with AI are never wasted. By crystallizing them into "wisdom,"   
 the agent evolves daily into a companion that truly "understands you."                   
                                                                                          
   ## Developers                                                                          
   - kentaroid-bot, SUKEZO

ClawHub: https://clawhub.com | OpenClaw Docs: https://docs.openclaw.ai/skills

path: manifest.yaml
content: id: agents-refresh-md-en
version: "1.1.1"
name: "Agents Refresh (Creative Insight Edition)"
description: "Advanced memory organization tool—not just cleanup, extracts 'lessons' and 'idea seeds' from logs"
author: "kentaroid-bot, SUKEZO"
icon: "💎"
tags: ["maintenance", "memory", "insight-extraction"]
entrypoint: "SKILL.md"
schedules:
  - cron: "0 6 * * *"
    task: "refresh_memory"
    description: "Every morning at 6AM, distill yesterday's logs and update MEMORY.md"
    timezone: "Asia/Tokyo"
permissions:
  - read: ["AGENTS.md", "SOUL.md", "IDENTITY.md", "USER.md", "memory/*.md", "HEARTBEAT.md"]
  - write: ["MEMORY.md", "HEARTBEAT.md"]

Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (MEDIUM)