From aida-core
Manages mementos for session persistence - save and restore context across /clear and /compact
npx claudepluginhub joshuarweaver/cascade-ai-ml-agents-misc-2 --plugin oakensoul-aida-core-pluginThis skill uses the workspace's default tool permissions.
Mementos are persistent context snapshots that help Claude resume work after
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
Mementos are persistent context snapshots that help Claude resume work after
/clear, /compact, or in new conversations. Each memento captures the problem,
approach, progress, and next steps for a work session.
This skill activates when:
/aida memento [create|update|read|list|remove|complete]/clear when active mementos exist (for suggestion)When this skill activates, parse the command to determine:
create, update, read, list, remove, completeFor create operations:
references/memento-workflow.md for the full workflowSources:
manual (default): User provides descriptionfrom-pr: Extract context from current PRfrom-changes: Summarize current file changesScript invocation:
# Phase 1: Get questions
python {base_directory}/scripts/memento.py --get-questions \
--context='{"operation": "create", "description": "user description", "source": "manual"}'
# Phase 2: Execute
python {base_directory}/scripts/memento.py --execute \
--context='{"operation": "create", "slug": "my-memento", "description": "...", ...}'
For read operations:
Script invocation:
python {base_directory}/scripts/memento.py --execute \
--context='{"operation": "read", "slug": "my-memento"}'
For list operations:
~/.claude/memento/ directoryScript invocation:
python {base_directory}/scripts/memento.py --execute \
--context='{"operation": "list", "filter": "active"}'
Filtering options:
--all - List mementos from all projects--project <name> - List mementos for a specific projectFor update operations:
updated timestampScript invocation:
# Phase 1: Get section options
python {base_directory}/scripts/memento.py --get-questions \
--context='{"operation": "update", "slug": "my-memento"}'
# Phase 2: Execute update
python {base_directory}/scripts/memento.py --execute \
--context='{"operation": "update", "slug": "my-memento", "section": "progress", "content": "..."}'
For complete operations:
completed~/.claude/memento/.completed/Script invocation:
python {base_directory}/scripts/memento.py --execute \
--context='{"operation": "complete", "slug": "my-memento"}'
For remove operations:
Script invocation:
python {base_directory}/scripts/memento.py --execute \
--context='{"operation": "remove", "slug": "my-memento"}'
Base Directory: Provided when skill loads via <command-message> tags.
Script Execution:
{base_directory}/scripts/memento.py
Reference Files:
{base_directory}/references/memento-workflow.md
Templates:
{base_directory}/templates/work-session.md.jinja2
{base_directory}/templates/freeform.md.jinja2
Memento Storage:
~/.claude/memento/ # Active mementos
~/.claude/memento/.completed/ # Completed mementos
This skill uses a two-phase API pattern:
Analyzes context and returns:
Performs the operation with:
User: /aida memento create "fix auth token expiry"
1. Parse: operation=create, description="fix auth token expiry"
2. Run Phase 1:
- Infer: slug="fix-auth-token-expiry", source="manual"
- Question: "What's the core problem you're solving?"
3. User provides problem description
4. Run Phase 2:
- Create ~/.claude/memento/fix-auth-token-expiry.md
5. Report: "Created memento. Start working, then /aida memento update to track progress"
User: /aida memento read fix-auth-token-expiry
1. Parse: operation=read, slug="fix-auth-token-expiry"
2. Load ~/.claude/memento/fix-auth-token-expiry.md
3. Return full content
4. Claude summarizes: "I see you were working on X. Next step was Y. Ready to continue?"
/aida memento list --all # All projects
/aida memento list --project my-proj # Specific project
User: /aida memento create from-pr
1. Parse: operation=create, source="from-pr"
2. Detect current branch, fetch PR via `gh pr view`
3. Extract title, body, files changed
4. Pre-fill template with PR context
5. Create memento with PR-derived content