360 Secure SkillHub
360 安全技能中心

Claude Code Memory Kit

该 Skill 是一份模式指南,提供 CLAUDE.md、memory.md、mistakes.md、bootstrap.md 等模板,以及跨会话记忆持久化、预工具门禁、错误自动升级为规则等实现思路,并附安装与排障说明;需用户自行适配环境,不含可直接运行的软件包。

abhinas90
abhinas90
热度 54.14
最近更新 2026-06-01 02:10:24
分类:知识依赖:读写文件应用场景:笔记整理 / 工作流 / 代码审查 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add claude-code-memory-kit
Metadata
name
Claude Code Memory Kit
slug
claude-code-memory-kit
version
1.0.0
description
Stop Claude Code from repeating mistakes — enforce guardrails, preserve context, maintain consistency across sessions

Claude Code Memory Kit — Stop Repeating Mistakes

Tagline

Go from "correcting the same error 10 times" to "zero-repeat mistakes" in one afternoon.

Problem

Claude Code users hit the same wall every day:

  • Mistakes repeat across sessions (force pushes, untested edits, style violations)
  • CLAUDE.md isn't enough — preferences ≠ enforcement
  • Memory leaks — context gets lost between sessions
  • No guardrails for high-risk actions
  • Corrections don't stick — you're teaching the same lesson daily

Solution

A structured memory system that enforces rules, preserves context, and prevents repeat mistakes.

What's Inside

What's Actually Included

This is a pattern guide — not a ready-to-run server software package. You get:

  1. Architectural patterns for session memory persistence
  2. Python code snippets showing implementation approach
  3. Integration patterns with Claude Code CLI lifecycle
  4. Testing strategies for memory reliability

You'll need to adapt these patterns to your specific environment. The value is in the proven approach, not pre-packaged executables.

1. Memory Architecture Template

  • CLAUDE.md — project rules & preferences (template)
  • memory.md — learned patterns & recurring decisions (template)
  • mistakes.md — mistakes to avoid (auto-promoted from corrections) (template)
  • bootstrap.md — session initialization context (template)

2. Pre-Tool Gates

  • Block force-push to main
  • Require tests before edits in specific repos
  • Confirm destructive commands
  • Validate code style before commit

3. Cross-Session Persistence

  • Structured context bootstrapping (no chat history dumping)
  • Mistake → rule automation (3 corrections = new policy)
  • Project-specific memory that actually sticks

4. Real-World Templates

  • JavaScript/TypeScript project setup
  • Python data science workflow
  • Multi-repo coordination
  • Team coding standards enforcement

5. Installation & Troubleshooting

  • INSTALL.md — Step-by-step setup guide
  • TROUBLESHOOTING.md — Common issues and solutions
  • Pre-tool gate configurations
  • Team deployment guide

Who This Is For

  • Developers using Claude Code full-time (6+ months experience)
  • Teams needing consistent code style across members
  • Anyone tired of repeating the same corrections
  • Projects with safety/security requirements

What You'll Achieve

  • Zero-repeat mistakes within 48 hours
  • 80% reduction in manual corrections
  • Consistent code quality across sessions
  • Auditable decision trails for team reviews

Price & Value

  • Launch price: $99 (regular $149)
  • Comparable value: Saves 10+ hours/month of correction time
  • ROI: 1-2 days for full investment recovery

Quick Start

  1. Install the templates
  2. Configure project-specific rules
  3. Set up pre-tool gates for high-risk actions
  4. Start tracking corrections → auto-promote to rules
  5. Enjoy consistent, reliable Claude Code sessions

Based on analysis of 7 high-priority leads where memory/reliability was the #1 pain point (score 9/10).