ironmanc2014

Agent Memory

AIエージェントv1.1.0
作者:ironmanc2014更新日 2026-05-11全 2 バージョン · 最新版の公開日 2026-03-17agent-memory-architect@clawhub_ironmanc2014/agent-memory-architect
マルチエージェント協調コンテキスト管理メモリ強化#Agent Memory#Multi Agent#Self Improving#Learning

AlphaMoatによると、2026-09時点でAgent Memoryのダウンロード数は3,735、スター数は0で、AIスキル全体5,078件中2,859位、AIエージェントでは969件中571位です。

インストール数
181
ダウンロード数
3735
スター数
-
総合順位
#2,859
全体の上位 57% · AIエージェントの上位 59%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗361504--
SkillHub ↗1813735-—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

文書では、記憶の階層化、ユーザー修正からの学習、振り返り、エージェント間の知識共有を説明しています。永続記憶は嗜好やプロジェクト情報を保持する可能性があるため、保存範囲を限定し、確認・削除手段を設け、秘密や機微情報を保存しないでください。

資料公開日 2026-10-29

できること

  • 階層型の記憶構造を計画する
  • ユーザーが確認した嗜好や修正を整理する
  • エージェント間で共有する知識の境界を定める

使う場面

  • エージェントがセッションをまたいで情報を保持する必要があるとき
  • 保存、アクセス、削除の範囲を定義した後

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

保存内容、アクセスできる人、削除方法を明記した階層型記憶計画を作成してください。

月次の推移

ダウンロード数3735
322215539882026-03 · ダウンロード数 5752026-05 · ダウンロード数 11632026-06 · ダウンロード数 13482026-07 · ダウンロード数 18322026-08 · ダウンロード数 22962026-09 · ダウンロード数 373526-0326-09
スター数-
0112026-03 · スター数 -2026-05 · スター数 -2026-06 · スター数 -2026-07 · スター数 -2026-08 · スター数 -2026-09 · スター数 -26-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。 同名の別スキルがあるため、変更前のデータは現在ダウンロード数が最も多いこのスキルに帰属させています。

月ダウンロード数前月比スター数
2026-093735—-
2026-082296+25.3%-
2026-071832+35.9%-
2026-061348+15.9%-
2026-051163—-
2026-03575—-

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

6.6 KB・ClawHub v1.1.0
---
name: agent-memory-architect
description: >
  Complete memory architecture for AI agents — tiered storage (HOT/WARM/COLD),
  auto-learning from corrections, self-reflection, multi-agent memory sharing,
  and intelligent decay. One-click setup gives any agent persistent memory that
  compounds over time. Use when: setting up agent memory, the agent needs to
  remember preferences/patterns/corrections, building multi-agent teams with
  shared knowledge, when asked about memory architecture/self-learning/self-improving agents,
  or when user says "记住这个", "remember this", "memory setup", "memory stats",
すべて表示(全 224 行)
  "what do you know about me", "forget X".
---

# Agent Memory Architect

Persistent, self-organizing memory for AI agents. Learn from corrections,
remember preferences, share knowledge across agents, and get smarter over time.

## Quick Start

### Automated Setup

Run the bootstrap script to initialize everything:

```bash
python <skill-dir>/scripts/bootstrap.py
```

This creates the full directory structure, `hot.md`, `corrections.log`, and `index.md` — ready to go.

### Manual Setup

If you prefer manual setup:

```bash
mkdir -p ~/agent-memory/{projects,domains,agents,archive}
```

Then create `~/agent-memory/hot.md`:

```markdown
# HOT Memory — Always Loaded

## Preferences
<!-- User-confirmed rules. Never decay. -->

## Patterns
<!-- Observed 3+ times. Decay after 30 days unused. -->

## Recent
<!-- New corrections. Promote after 3x confirmation. -->
```

Create `~/agent-memory/corrections.log`:

```markdown
# Corrections Log (last 50)

<!-- Format:
[DATE] WHAT → WHY
  Type: preference|technical|workflow|communication
  Count: N/3
  Status: pending|confirmed|archived
-->
```

Done. Memory is active. Everything below is automatic.

## Architecture

Three-tier storage inspired by CPU cache hierarchies:

```
🔥 HOT  — hot.md (≤100 lines, always loaded)
    Confirmed preferences + high-frequency patterns. Never decays.

🌡️ WARM — projects/, domains/, agents/ (≤200 lines each, loaded on context)
    Per-project and per-domain knowledge. Decays after 90 days unused.

❄️ COLD — archive/ (unlimited, loaded on explicit query)
    Historical reference. Never auto-deleted.
```

See `references/architecture.md` for full design details including file formats,
lifecycle rules, namespace inheritance, and compaction pipelines.

## How It Works

### Detection — What Triggers Learning

| Signal | Confidence | Action |
|--------|-----------|--------|
| "No, do X instead" | High | Log correction |
| "I told you before" | High | Bump priority, flag repeated |
| "Always/Never do X" | Confirmed | Promote to preference |
| Same correction 3x | Auto | Ask to confirm as rule |
| "For this project…" | Scoped | Write to `projects/{name}.md` |

### Ignore — What Does NOT Trigger Learning

- Silence (never infer from no response)
- One-time instructions ("do X now")
- Hypotheticals ("what if…")
- Third-party preferences ("John likes…")
- Context-specific ("in this file…")

### Auto-Promotion / Demotion

| Rule | Trigger |
|------|---------|
| Promote to HOT | Pattern applied 3x in 7 days |
| Demote to WARM | Unused 30 days |
| Archive to COLD | Unused 90 days |
| Delete | Never (unless user says "forget X") |

### Self-Reflection

After completing significant work, evaluate:

1. **Did it meet expectations?** — Compare outcome vs intent
2. **What could be better?** — Identify improvements
3. **Is this a pattern?** — If yes, log to corrections

Log format:
```
CONTEXT: [task type]
REFLECTION: [what I noticed]
LESSON: [what to do differently]
```

### Applying Memory

When using a learned pattern, always cite the source:
```
Using bullet format (from hot.md:12, confirmed 2026-01)
```

### Conflict Resolution

1. Most specific wins: project > domain > global
2. Most recent wins (same level)
3. If ambiguous → ask user

## User Commands

| Say this | Agent does |
|----------|-----------|
| "What do you know about X?" | Search all tiers, report findings |
| "Show my patterns" | Display hot.md contents |
| "Memory stats" | Show tier sizes, health, recent activity |
| "Forget X" | Remove from all tiers (confirm first) |
| "Export memory" | ZIP all memory files |
| "记住这个" / "Remember this" | Log to corrections or promote to preference |

## Memory Stats

On "memory stats", report:
```
📊 Agent Memory

🔥 HOT: hot.md — X entries (≤100 line limit)
🌡️ WARM: projects/ (N files), domains/ (N files)
❄️ COLD: archive/ (N files)

Recent 7 days: X corrections, Y promotions, Z demotions
```

## Multi-Agent Setup

For teams with multiple agents, see `references/multi-agent.md`.
Each agent gets its own HOT memory while sharing WARM knowledge:

```
~/agent-memory/
├── hot.md              # Main agent HOT (always loaded)
├── agents/
│   ├── coder.md        # Coder agent HOT
│   ├── writer.md       # Writer agent HOT
│   └── daily.md        # Daily agent HOT
├── domains/            # Shared domain knowledge
├── projects/           # Per-project patterns
└── archive/            # Decayed patterns
```

## Security

See `references/security.md` for complete boundaries.

**Never store:** passwords, API keys, financial data, health info, biometrics.
**Store with caution:** work context (decay after project ends), schedules (general patterns only).

## Compaction

When hot.md exceeds 100 lines:
1. Merge similar corrections into single rules
2. Archive unused patterns
3. Summarize verbose entries
4. Never lose confirmed preferences

## Troubleshooting

| Problem | Cause | Solution |
|---------|-------|----------|
| Memory not loading | Directory doesn't exist | Run bootstrap script or `mkdir -p ~/agent-memory` |
| hot.md too large | Over 100 lines, slow loading | Run compaction: merge similar entries, archive unused |
| Corrections not promoting | Haven't hit 3x threshold | Repeat correction or say "Always do X" to force |
| Agent forgot a preference | Entry decayed to COLD | Retrieve from `archive/` and re-add to hot.md |
| Multi-agent conflicts | Two agents learned opposite rules | Check `agents/*.md` for conflicts, set explicit override |
| "Memory stats" shows 0 | Fresh install, no corrections yet | Normal — memory builds over time from interactions |
| Permission denied on ~/agent-memory | OS file permissions | `chmod -R 755 ~/agent-memory` (Linux/Mac) |

## Scope

This skill ONLY:
- Learns from explicit user corrections and self-reflection
- Stores preferences in local files (`~/agent-memory/`)
- Reads its own memory files

This skill NEVER:
- Accesses external services
- Infers preferences from silence
- Stores sensitive data
- Modifies its own SKILL.md

AIエージェントの人気スキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。