Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

save-memory

verified

Additional tags for this memory episode

View on GitHub

Marketplace

yoshiwatanabe-plugins

yoshiwatanabe/yoshiwatanabe-plugins

Plugin

yoshiwatanabe-dev

development

Repository

yoshiwatanabe/yoshiwatanabe-plugins

dev-memory/skills/save-memory/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/yoshiwatanabe/yoshiwatanabe-plugins/blob/main/dev-memory/skills/save-memory/SKILL.md -a claude-code --skill save-memory

Installation paths:

Claude
.claude/skills/save-memory/
Powered by add-skill CLI

Instructions

# Save Memory

This skill saves the current session's progress and context to the personal memory system.

## Instructions for Agent

### 1. Collect Session Context

Gather the following information:
- **Current working directory**: Use `pwd` or `Get-Location`
- **Repository details** (if in a git repo):
  - Repository root: `git rev-parse --show-toplevel`
  - Current branch: `git branch --show-current`
  - Latest commit: `git rev-parse HEAD`
  - Worktree (if applicable): check if cwd is different from repo root
- **Machine identifier**: `hostname` (lowercase)
- **OS environment**:
  - Windows: `$env:OS` contains "Windows"
  - WSL: check `/proc/version` for "microsoft"
  - Linux: `uname -s`

### 2. Generate Summary

Analyze the recent conversation history to extract:
- **Goals**: What was the user trying to accomplish?
- **Activities**: What work was performed?
- **Progress**: What was completed?
- **Next steps**: What remains to be done?
- **Keywords**: Important terms, technologies, features
- **Tags**: Categorize the work (from user parameter or inferred)

Use the specified `detail_level` parameter (or default to "normal").

### 3. Call Python Script

Execute the manage_memory.py script:

```bash
cd /path/to/.prototype-plugin
python scripts/manage_memory.py save \
  --config-repo /path/to/yoshiwatanabe-configurations \
  --detail-level {detail_level} \
  --repo-path {repo_path} \
  --branch {branch} \
  --commit {commit} \
  --machine {machine} \
  --os {os} \
  --summary "{summary}" \
  --keywords "{keywords}" \
  --tags "{tags}"
```

**Note**: Adjust paths based on Windows vs Linux/WSL:
- Windows: Use `python` and backslash paths
- Linux/WSL: Use `python3` and forward slash paths

### 4. Handle Result

Parse the JSON output:
```json
{
  "success": true,
  "episode_id": "ep-12345abcd",
  "filepath": "memory/episodes/2026-01-31_work-main_windows_repo-name_ep-12345.md",
  "synced": true
}
```

Return a concise confirmation to the user:
```
Memory saved successfull

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
2448 chars