Update environment

From mderk/memento · View interactive version

Update environment is an AI agent skill from the GitHub repository mderk/memento. Update Memory Bank files after tech stack changes or plugin updates with smart detection

How to use this skill

Skill file

Update Environment Skill

Selective update/regeneration of Memory Bank files with smart change detection. Detects tech stack changes, plugin updates, local modifications, and applies 3-way merge to preserve user edits.

Invocation

Prerequisite: This skill requires the memento-workflow plugin. If mcp__memento-workflow__start is not available as a tool, stop and tell the user: "The memento-workflow plugin is required but not installed. Install it via Claude Code: /install-plugin memento-workflow".

Before starting the relay loop, load the relay protocol by invoking the Skill tool with skill: "memento-workflow:workflow-engine".

Then call mcp__memento-workflow__start with:

Follow the relay protocol to execute each returned action and call mcp__memento-workflow__submit with the result until the workflow completes.

Workflow Phases

Phase 0: Detect Changes

Phase 1: Execute Update

Static files: Copy via analyze-local-changes copy-static with 3-way merge

Prompt-based files: Regenerate in batches with merge support

Obsolete files: Remove from project and generation plan

New prompts: Generate missing files

Phase 2: Finalize

Required Variables

| Variable | Description |

| ---------------- | ---------------------------------- |

| plugin_root | Absolute path to memento plugin |

| plugin_version | Plugin version for commit metadata |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.