搜索

PythonReactSEOPDF
GitHub Skill

mem-save

Explicitly save knowledge, patterns, decisions, or learnings to the knowledge base. Use when you want to document something for future reference.

Z-M-Huang☆ 10 仓库 Stars3 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Memory Save Skill

Explicitly save knowledge to the Claude Code memory system for future reference.

When to Use

  • Recording an important decision
  • Documenting a useful pattern
  • Saving a solution to a tricky error
  • Noting learnings for future reference
  • Creating reusable knowledge

Usage

The skill accepts content to save. Examples:

/mem-save decision: We chose PostgreSQL over MongoDB for this project
/mem-save pattern: This regex pattern works for parsing dates: /\d{4}-\d{2}-\d{2}/
/mem-save learning: The API rate limits at 100 requests per minute
/mem-save error-fix: The CORS issue was fixed by adding the origin header

Note Types

Type Use For
decision Architectural or design decisions with rationale
pattern Reusable code patterns, regex, algorithms
error Error solutions and workarounds
learning General insights and knowledge
file File-specific notes and documentation

Workflow

  1. Identify Content Type

    • Parse the user's input to determine the note type
    • If unclear, ask for clarification
  2. Structure the Content

    • Extract the main information
    • Add appropriate context (project, tags)
    • Format with Obsidian-friendly markdown
  3. Save and Confirm

    • Use mem_write to persist
    • Show the saved note path
    • Offer to add more details

Content Templates

Decision
## Context
[Why this decision was needed]

## Decision
[What was decided]

## Rationale
[Why this approach was chosen]

## Consequences
- Positive: ...
- Negative: ...
Pattern
## Description
[What this pattern does]

## When to Use
[Scenarios where this applies]

## Implementation
\`\`\`language
[Code example]
\`\`\`
Error Fix
## Problem
[The error encountered]

## Cause
[Root cause]

## Solution
[How it was fixed]

## Prevention
[How to avoid in future]

Guidelines

  • Always include context about why something was decided
  • Add relevant tags for discoverability
  • Link to related notes when possible
  • Be specific enough to be useful later

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-02-04
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!