Claude Code 会话记忆 Skill — 轻量级本地 Markdown 记忆库,自动保存对话为结构化记忆并在新会话中检索相关上下文
This plugin requires configuration values that are prompted when the plugin is enabled. Sensitive values are stored in your system keychain.
use_jieba是否使用 jieba 中文分词(需 pip install jieba)
${user_config.use_jieba}Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
memory_dir记忆存储目录(相对于项目根目录)
${user_config.memory_dir}max_context_items检索时最多返回的记忆条数
${user_config.max_context_items}auto_save_interval每 N 轮对话自动保存一次记忆(默认 10,设为 0 禁用自动保存)
${user_config.auto_save_interval}中文 | English
Lightweight local memory bank for Claude Code — automatically saves sessions as structured Markdown and retrieves historical context in new sessions.
Each Claude Code session is isolated. When you switch sessions, all prior project context, bug analyses, and design decisions are lost, forcing you to manually repeat yourself.
This skill automatically distills conversations into structured memories (summaries, key decisions, TODOs) at session end, and auto-retrieves relevant context based on your input in new sessions.
git clone https://github.com/Junhaozhang-127/ClaudeMeory.git
cd ClaudeMeory
python scripts/install.py --interactive
On first run, you'll be prompted to choose a memory storage path — press Enter for the default.
Requirements: Python 3.7+, zero core dependencies. Optional: pip install jieba for enhanced Chinese word segmentation.
# Save a memory
python scripts/summarize_session.py --topic "Architecture Discussion" --text "Decided to use microservices..."
# Retrieve relevant memories
python scripts/retrieve_memory.py --query "architecture plan"
# View JSON output (with score breakdown)
python scripts/retrieve_memory.py --query "architecture" --json
# Rebuild index
python scripts/update_index.py
Automatically extracts summaries, key decisions, and TODOs from conversations into structured Markdown memory files. Each memory records both creation time and last update time for clear traceability.
Saving to the same topic intelligently updates the existing memory: keywords, decisions, and TODOs are merged (with deduplication), the created_at timestamp is preserved, and updated_at is refreshed. New conversation blocks are appended to the same file — no duplicate files.
Multi-signal weighted scoring (topic > keywords > decisions > TODOs > summary), returning interpretable score_breakdown results.
Memory directories are isolated per project — different projects never interfere.
python scripts/workspace_manager.py init --workspace my-project
python scripts/summarize_session.py --workspace my-project --topic "..." --text "..."
Auto-save at session end, auto-retrieve at session start. Features a turn-based auto-save timer that saves your conversation every N turns (default 10) — no need to wait until session end.
# Configure auto-save interval
export MEMORY_AUTO_SAVE_INTERVAL=5 # Save every 5 turns
export MEMORY_AUTO_SAVE_INTERVAL=0 # Disable turn-based auto-save
Supports bash / Windows CMD / PowerShell. See docs/HOOK_SETUP.md for details.
Deduplication, merging, compaction, archiving — all with dry-run protection.
python scripts/memory_maintenance.py detect-duplicates
python scripts/memory_maintenance.py compact --topic "..." --dry-run
python scripts/memory_maintenance.py archive-old --days 180 --dry-run
| Command | Purpose |
|---|---|
install.py | Installation & initialization |
uninstall.py | Safe uninstallation |
upgrade.py | Upgrade & migration |
health_check.py | System health diagnostics |
memory_stats.py | Memory bank statistics |
release_prepare.py | Pre-release cleanup |
run_acceptance.py | Acceptance tests |
ClaudeMeory/
├── scripts/ # Core Python scripts
├── hooks/ # Hook scripts (bash/bat/ps1)
│ ├── pre_prompt.* # Retrieve on input
│ ├── post_conversation.* # Save on session end
│ └── auto_save.* # Turn-based auto-save timer
├── memory/ # Memory storage directory
│ ├── index.json # Topic index
│ ├── .turn_state.json # Auto-save turn counter
│ └── topics/ # Markdown memory files
├── docs/ # Documentation
│ ├── CAPABILITY_MATRIX.md # Capability matrix
│ ├── DEVELOPMENT_ROADMAP.md # Development roadmap
│ ├── HOOK_SETUP.md # Hook configuration guide
│ ├── PROJECT_STRUCTURE.md # Architecture overview
│ └── SUMMARIZER_DESIGN.md # Summarizer design
├── tests/ # Tests (78 items)
├── plugin.json # Plugin Manifest
├── install.sh # One-click install
├── CHANGELOG.md # Changelog
└── LICENSE # MIT
python tests/test_memory_skill.py # 78 unit tests
python scripts/run_acceptance.py --quick # 7 acceptance tests
Priority: CLI arguments > environment variables > config.json > defaults
# Environment variables
export CLAUDE_MEMORY_WORKSPACE=my-project
export CLAUDE_MEMORY_DIR=/path/to/memories
export MEMORY_AUTO_SAVE_INTERVAL=10 # Auto-save every N turns (default 10)
npx claudepluginhub junhaozhang-127/claudecodememoryskill --plugin claude-code-memory-skillClaude Code 工作状态可视化监控面板 — 三色信号灯 + 工具活动 + Token 估算
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Memory compression system for Claude Code - persist context across sessions
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.
Write feature specs, plan roadmaps, and synthesize user research faster. Keep stakeholders updated and stay ahead of the competitive landscape.