yoshiwatanabe/yoshiwatanabe-plugins
yoshiwatanabe-dev
dev-memory/skills/save-memory/SKILL.md
February 1, 2026
Select agents to install to:
npx add-skill https://github.com/yoshiwatanabe/yoshiwatanabe-plugins/blob/main/dev-memory/skills/save-memory/SKILL.md -a claude-code --skill save-memoryInstallation paths:
.claude/skills/save-memory/# 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