Slash Command90 estrellas del repoactualizado 27d ago
save
Save context to branch-aware memory bank
Instalar en Claude Code
Copiarmkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/tony/claude-code-riper-5/HEAD/.claude/commands/memory/save.md -o ~/.claude/commands/save.mdDespués abre una sesión nueva de Claude Code; el slash command carga automáticamente.
Definición
save.md
# Saving to Memory Bank ## ⚠️ Memory Bank Location Requirements **CRITICAL PATH POLICY**: - Memory-bank MUST be at repository root: Use `git rev-parse --show-toplevel` to find root, then `[ROOT]/.claude/memory-bank/` - NEVER create package-level memory-banks: `packages/*/.claude/memory-bank/` ❌ - In monorepos: ONE memory-bank at root serves entire project ### Correct vs Incorrect Paths ✅ **Correct**: `[ROOT]/.claude/memory-bank/main/session.md` (where ROOT = `git rev-parse --show-toplevel`) ❌ **Wrong**: `[ROOT]/packages/react/.claude/memory-bank/main/session.md` ❌ **Wrong**: `packages/react/.claude/memory-bank/main/session.md` I'll save the following information to the branch-aware memory bank: ## Context Information - **Date**: !`date +%Y-%m-%d` - **Time**: !`date +%H:%M:%S` - **Branch**: !`git branch --show-current` - **Latest Commit**: !`git log -1 --oneline` - **Working Directory Status**: !`git status --short` ## Memory Content $ARGUMENTS ## Storage Location The memory will be saved to: 1. First run: `git rev-parse --show-toplevel` to get repository root 2. Save to: `[ROOT]/.claude/memory-bank/!`git branch --show-current`/!`date +%Y%m%d`-session.md` This ensures memories are: - Branch-specific (won't conflict when switching branches) - Date-organized (easy to find recent work) - Persistent across sessions - Shareable with team (can be committed if desired)
Del mismo repositorio
plan-executeSubagent
Planning and execution phase - specifications and implementation
research-innovateSubagent
Research and innovation phase - information gathering and brainstorming
reviewSlash Command
Enter REVIEW mode to validate implementation
listSlash Command
List all memories across branches
recallSlash Command
Recall memories from current branch's memory bank
rebaseSlash Command
Rebase current branch onto trunk (origin/master or origin/main), predict and resolve conflicts
executeSlash Command
Enter EXECUTE mode to implement approved plan
innovateSlash Command
Enter INNOVATE mode for brainstorming approaches