Skip to content
memory-updater logo

Memory Bank 更新技能

memory-updater

Update and maintain Memory Bank files (activeContext, progress, decisionLog). Triggers: MB, memory, 記憶, 進度, 更新記憶, update memory, 記錄進度, 更新上下文, sync, 同步, 記下來, note, 筆記, context, 脈絡, 追蹤, track, 狀態, status.

SKILL.md

Full skill instructions

Memory Bank 更新技能

描述

維護和更新專案的 Memory Bank 記憶系統,確保專案狀態在對話間持久化。

觸發條件

  • 「更新 memory bank」「MB」「記錄進度」
  • 「更新上下文」「sync」「同步」
  • 工作階段結束時
  • 完成重要任務後

📁 Memory Bank 檔案結構

memory-bank/
├── activeContext.md   # 當前工作焦點(最常更新)
├── progress.md        # 進度追蹤 Done/​Doing/​Next
├── decisionLog.md     # 重要決策記錄
├── architect.md       # 架構文檔
├── productContext.md  # 專案上下文
├── projectBrief.md    # 專案簡介
└── systemPatterns.md  # 系統模式

🔧 操作步驟

Step 1: 讀取現有內容

使用 read_file 工具讀取要更新的檔案:

read_file("memory-bank/​activeContext.md")
read_file("memory-bank/​progress.md")

Step 2: 判斷更新類型

情況更新檔案更新方式
開始新任務activeContext.md, progress.md新增 Doing
完成任務progress.mdDoing → Done
做出決策decisionLog.md新增條目
架構變更architect.md更新相關區塊

Step 3: 執行更新

使用 replace_string_in_file 進行精確更新(推薦):

replace_string_in_file(
  filePath="memory-bank/​progress.md",
  oldString="## Doing\n\n- [ ] 任務 A",
  newString="## Doing\n\n- [ ] 任務 A\n- [ ] 新任務 B"
)

或使用 write_file 完整覆寫(適合大幅修改)。


📝 檔案格式規範

activeContext.md

# Active Context

> Last updated: 2026-01-15

## 🎯 當前焦點

[一句話描述正在處理的主要任務]

## 📁 相關檔案

- `path/​to/​file1.py` - [用途說明]
- `path/​to/​file2.ts` - [用途說明]

## ⚠️ 待解決問題

- [ ] 問題 1
- [ ] 問題 2

## 💡 備註

[其他需要記住的事項]

progress.md

# Progress

## Done ✅

- [x] 已完成任務 1 (2026-01-15)
- [x] 已完成任務 2 (2026-01-14)

## Doing 🚧

- [ ] 進行中任務 1
- [ ] 進行中任務 2

## Next 📋

- [ ] 計劃任務 1
- [ ] 計劃任務 2

decisionLog.md

# Decision Log

## 2026-01-15

### 決策:選擇 React 作為前端框架

- **背景**:需要選擇前端框架
- **選項**:React, Vue, Svelte
- **決定**:React
- **原因**:團隊熟悉度高,生態系完整

---

## 2026-01-14

### 決策:...

⚡ 更新原則

1. 增量更新

✅ 正確:只修改相關區塊
❌ 錯誤:每次都覆寫整個檔案

2. 保持簡潔

✅ 正確:「完成用戶認證模組」
❌ 錯誤:「今天我們完成了用戶認證模組的開發工作,包括...」

3. 時間標記

✅ 正確:- [x] 完成功能 A (2026-01-15)
❌ 錯誤:- [x] 完成功能 A

4. 檔案路徑完整

✅ 正確:`src/​domain/​entities/​User.py`
❌ 錯誤:`User.py`

🔄 與其他 Skills 整合

Skill整合方式
memory-checkpointcheckpoint 後呼叫 updater 寫入
git-precommitcommit 前強制更新 progress.md
feature-development功能完成後更新 Done

📊 輸出格式

執行完成後回報:

📝 Memory Bank 已更新

更新內容:
- ✅ activeContext.md - 更新當前焦點
- ✅ progress.md - 新增 1 個 Done 項目
- ⏭️ decisionLog.md - 無變更

下次記得:完成重要任務後執行「更新 memory bank」

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View