Token导航 LogoToken导航TokenDH.com
研究检索只读clawhub未标认证来源可访问clear审计通过

memory-fortress记忆堡垒

Agent Skill

memory-fortress 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,184

周安装

216

GitHub Stars

公开资料未说明

下载量

1,728
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:memory-fortress(记忆堡垒)
来源仓库:https://github.com/wroadd/memory-fortress
安装命令:
openclaw skills install memory-fortress
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install memory-fortress

简介

memory-fortress 是 OpenClaw 的内存管理系统,结合压缩感知保存与结构化组织提升记忆效率。

  • 适合需要长期记忆管理、上下文检索或任务连续性维护的场景。
  • 通过关键词触发检索,支持会话预检、触发召回和预执行门控三阶段流程。
  • 安装命令为 openclaw skills install memory-fortress,需确认文件读写和网络权限。
  • 建议定期检查维护状态,避免因令牌膨胀或索引中断影响性能。

SKILL.md

name
memory-fortress
version
1.1.2
description
Complete memory management system for OpenClaw agents. Combines compaction-aware saving, a formal boot sequence, domain organization, memory scoring, structured learnings, and documentation-first project continuity.

Memory Fortress 🏰

A unified memory system that prevents agents from forgetting what they did yesterday and ensures work survives session boundaries in written form.

Built from five proven patterns:

  • Compaction-aware saving, disk is truth
  • Boot sequence + state files, Dory-proof capture
  • Domain organization, keeping MEMORY.md small and useful
  • Memory types + priority, for durable recall
  • Promote / demote lifecycle, so memory can evolve over time

Mental model

┌─────────────────────────────────────────────────────┐
│                   MEMORY FORTRESS                   │
├─────────────────────────────────────────────────────┤
│  🔴 SESSION RAM   → temporary, lost on compaction   │
│  🟡 STATE/        → active task, blockers, decisions│
│  🟢 DAILY LOG     → memory/YYYY-MM-DD.md            │
│  🔵 MEMORY.md     → curated durable knowledge       │
│  ⚪ DOMAINS/       → topic-specific detail           │
│  📦 ARCHIVE/      → older logs                      │
│  🧱 PROJECT FILES → task_plan.md + notes.md + output│
└─────────────────────────────────────────────────────┘

Core principle: session memory is temporary, files are truth.


1. Boot sequence — run at the start of every session

Order matters.

1. state/HOLD.md        — what is blocked? do not do these
2. state/ACTIVE.md      — is there an active task?
3. state/DECISIONS.md   — recent decisions, last 48h
4. state/CLOSED.md      — durable closed decisions, not to be reopened casually
5. IDENTITY.md          — who the agent is
6. SOUL.md              — learned style and operating principles
7. USER.md              — who the agent serves
8. memory/YYYY-MM-DD.md — today + yesterday
9. MEMORY.md            — long-term knowledge, main session only

Post-boot status line:

🏰 Boot: ACTIVE=[task|none] | HOLD=[n] | DECISIONS=[n last 48h]

Not a boot step

  • Domain files, load on demand with memory_search
  • Archive, only when needed
  • Other agents' memory, never by default

2. Dory-proof pattern — when a task arrives

When the user gives you a task:

  1. Immediately write their exact words to state/ACTIVE.md
  2. Then interpret the request
  3. Then do the work
  4. When done, update or clear ACTIVE

state/ACTIVE.md format

## Active task
**User said:** "[exact quote]"
**Interpretation:** [what you believe it means]
**Status:**
- [ ] Step 1
- [ ] Step 2
**Updated:** YYYY-MM-DD HH:MM

state/HOLD.md format

[YYYY-MM-DD HH:MM | session] Item — reason for blocking

state/DECISIONS.md format

[YYYY-MM-DD HH:MM | session] Decision — context / rationale

state/CLOSED.md format

[YYYY-MM-DD | decider] Topic keyword — short final decision

Use CLOSED.md for issues that were definitively settled and should not keep resurfacing as open questions.


3. Write Before Lose — compaction-aware saving

Session RAM can disappear. Save important things before that happens.

EventWhere to write
Decision madestate/DECISIONS.md + daily log
Preference discoveredMEMORY.md or daily log
Task receivedstate/ACTIVE.md
Something blockedstate/HOLD.md
Error + lessondaily log + .learnings/
Important fact discovereddaily log, later promote if durable
Work completedstate/ACTIVE.md + daily log

Rule: if it matters, write it immediately.


4. Memory scoring — what belongs in MEMORY.md?

Score each candidate on 4 axes from 0 to 3.

Axis0123
DurabilityGone tomorrowWeeksMonthsYears+
ReuseOne-timeOccasionalFrequentEvery session
ImpactTrivialHelpfulChanges outputChanges decisions
UniquenessObviousMildly usefulHard to re-deriveIrreplaceable

Put it in MEMORY.md if:

  • total score ≥ 8, or
  • any axis = 3 and total score ≥ 6

Everything else belongs in the daily log or a domain file.


5. Domain organization — keep MEMORY.md ≤10KB

memory/
├── domains/
│   ├── projects.md
│   ├── infrastructure.md
│   ├── people.md
│   ├── skills-tools.md
│   ├── lessons.md
│   └── policies.md
├── .learnings/
├── archive/
└── YYYY-MM-DD.md

Rules

  • MEMORY.md stores summaries, references, and the most important durable knowledge
  • memory/domains/*.md stores detailed topic-specific material
  • memory/archive/ stores old logs
  • memory/.learnings/ stores structured mistakes, corrections, and requests

6. Memory types and priority

PrefixType
DECDecision
PREFPreference
FACTDurable fact
POLICYRule
LESSONLesson learned
ERRKnown error

Use priority 1 to 10. Reserve 9 to 10 for truly critical items.


7. Promote / Demote — memory lifecycle

Promote when

  • the memory becomes relevant again
  • the user references it
  • it supports an important decision

Demote when

  • it has not been used in 30+ days
  • it is outdated
  • a newer memory contradicts it

Contradiction handling

  1. Prefer the newer memory
  2. Mark the older one [STALE]
  3. Record why it changed in the daily log

8. Search strategy

Always use:

  1. memory_search
  2. memory_get

Search order:

  1. state/
  2. MEMORY.md
  3. memory/domains/*.md
  4. memory/YYYY-MM-DD.md
  5. memory/archive/

Do not read entire memory trees "just in case."


9. Multi-agent rules

RuleDetails
Own workspaceEach agent writes in its own workspace
No cross-readDo not read another agent's memory by default
CommunicationUse direct agent messaging, not memory files
Shared stateOnly explicitly shared folders
Private contextKeep private conversations private

10. Anti-patterns

Don'tDo instead
"I'll remember this mentally"Write it to a file immediately
Paste chat logs into MEMORY.mdUse daily log + summary
Let MEMORY.md bloatSplit into domain files
Answer past-context questions from memory aloneSearch first
Keep many tasks in ACTIVE.mdOne active task, rest in project files
Paraphrase the user's taskKeep the exact quote
Store secret valuesRecord only that they exist

11. .learnings/ — mistakes, corrections, and growth

Recommended files:

  • memory/.learnings/LEARNINGS.md
  • memory/.learnings/ERRORS.md
  • memory/.learnings/FEATURE_REQUESTS.md

Triggers

  • User correction → LEARNINGS.md / correction
  • Outdated knowledge → LEARNINGS.md / knowledge_gap
  • Better method discovered → LEARNINGS.md / best_practice
  • Command or tool failure → ERRORS.md
  • Missing capability requested → FEATURE_REQUESTS.md

ID format

TYPE-YYYYMMDD-XXX

Promotion logic

  • behavioral pattern → persona / operating docs
  • workflow improvement → operational manual
  • tool gotcha → tool docs
  • broadly reusable lesson → new skill

12. Documentation-first workflow — mandatory project continuity

Memory is not enough. The work itself must also exist in files.

Core principle

If it's not written down, it doesn't exist.

What to document, and where

WhatWhere
Incoming taskstate/ACTIVE.md, exact user words
Decisionstate/DECISIONS.md + daily log
Blockerstate/HOLD.md
Permanently closed decisionstate/CLOSED.md
Reorientation snapshotstate/ORIENT.md
Research notesnotes.md
Project progresstask_plan.md
Final outputa dedicated deliverable file
General lesson.learnings/ or a domain file

Project detection

Treat work as a project immediately if any of these are true:

  • it has 3 or more steps
  • it has a name, slug, or concrete deliverable
  • it may span multiple sessions
  • it includes research, building, and review

Required 3-file pattern

For any non-trivial task, create:

projects/<project-slug>/
├── task_plan.md
├── notes.md
└── deliverable.md   or another suitable output file

Minimum task_plan.md

# Task Plan: [name]

## Goal
[one-sentence end state]

## Phases
- [ ] Phase 1: setup
- [ ] Phase 2: discovery / research
- [ ] Phase 3: execution
- [ ] Phase 4: review / deliver

## Decisions Made
- [decision]: [why]

## Errors Encountered
- [error]: [resolution]

## Status
**Currently in Phase X** - [current focus]

Role of notes.md

Use it for sources, raw findings, analysis, and anything too large for the live context window.

Documentation rules

  1. Plan first
  2. Read the plan before major decisions
  3. Update the plan after each phase
  4. Store large content in files, not in chat context
  5. Log errors as they happen

Cron and automation prompts

If you write a cron or automation prompt, include a dedicated section like this:

### Documentation (MANDATORY)
- Append a short run summary to: [exact file path]
- Format: YYYY-MM-DD | type | slug | summary
- This must be the last step before finishing

Why this belongs in Memory Fortress

Because project files are memory too. task_plan.md, notes.md, and state/ORIENT.md together form the operational memory of ongoing work.


13. Failsafe / reorientation layer

When an agent suddenly loses the thread, starts following the wrong branch of work, or needs to recover the real task from a long conversation, it should create a focused reorientation summary before doing more execution.

Proven recovery prompt pattern

Read back the full thread content and summarize what we have done so far, where the task is documented, and what the next step is. Do not go further, only produce this detailed summary.

When to activate it

  • the agent is unsure where the work actually stands
  • too many side-tracks were followed
  • after handoff or a long pause
  • when thread state and file state must be reconciled
  • before the context window becomes too noisy

Reorientation protocol

  1. Read back the relevant thread or documented context
  2. Check state/HOLD.md, state/ACTIVE.md, state/DECISIONS.md, state/CLOSED.md
  3. Open the canonical task_plan.md and notes.md
  4. Produce a short factual summary
  5. Write the compressed version to state/ORIENT.md
  6. Only then resume execution

Recommended state/ORIENT.md format

## Reorientation snapshot
**Thread / Context:** [which thread or task this is]
**What we did so far:**
- ...
- ...

**Where it is documented:**
- `state/ACTIVE.md`
- `projects/<slug>/task_plan.md`
- `projects/<slug>/notes.md`

**Actual next step:**
- ...

**Do not do instead:**
- ...
- ...

**Closure criteria:**
- ...
- ...

**Last updated:** YYYY-MM-DD HH:MM

Important rules

  • a failsafe summary is not execution, it is reorientation
  • do not jump into a new project or side-track first
  • identify the real next step before acting
  • send it to chat only for handoff, decision points, or explicit user request
  • the canonical version should live in files, not only in chat

Why not periodic Discord summaries?

Because they create noise, duplicate the file-based source of truth, and consume context themselves. The correct model is: file-first summary, chat-only when useful.

When to make this a separate mini-skill

If the recurring task is thread readback + summary + documented next-step recovery, use a dedicated context-rescue mini-skill.


14. Maintenance schedule

FrequencyTask
Every sessionrun boot sequence
Every taskupdate ACTIVE
Important eventwrite immediately
Dailyreview daily log and clean state
Weeklysize-check MEMORY.md and update domains
Biweeklyarchive old logs
Monthlydemote stale memories and resolve contradictions
On errorwrite to .learnings/ERRORS.md
On correctionwrite to .learnings/LEARNINGS.md

15. Installation

1. Create state files

mkdir -p state
touch state/ACTIVE.md state/HOLD.md state/DECISIONS.md state/CLOSED.md

2. Create ORIENT file

touch state/ORIENT.md

3. Create memory structure

mkdir -p memory/domains memory/archive memory/.learnings

4. Create projects convention

mkdir -p projects

5. Update your agent manual

Add the boot sequence, the write-before-lose rule, the documentation-first project pattern, and the failsafe ORIENT.md reorientation layer.


*"Memory is what separates a tool from an ally."*

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

88.84%
按下载量换算1,535

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills