用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/MemTensor/memmy-agent --skill update-setup命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
On-demand provisioning guide for a Memmy GUI task that fully connects an explicitly named local Agent: discover its active history store, install or remove its rendered Memmy Skill, bootstrap a scan boundary, persist a validated automatic-sync recipe, and verify GUI-visible readiness.
Use the memmy-memory CLI when an agent needs to check the Memory service, open or close agent sessions, start or complete turns, search, add, read, or delete memories, or call uncommon HTTP routes through raw requests.
Create, edit, improve, tidy, review, audit, or restructure memmy-agent skills and SKILL.md files.
基于 SOC 职业分类
正在显示 SKILL.md
| name | update-setup |
| description | One-time setup wizard for the memmy upgrade skill. Triggers: setup update, configure update, 切设置更新, 初始化更新. |
Generate a personalized upgrade skill for this workspace.
Use read_file to check if skills/update/SKILL.md already exists in the workspace.
If it exists, ask the user: "An upgrade skill already exists. Reconfigure?" Wait for the user's reply. If no, stop here.
Use exec to run memmy --version. Tell the user the current version.
Then collect install clues with exec. These commands are best-effort; if one fails,
keep going and show the useful output:
command -v memmy || true
npm list -g memmy-agent --depth=0 || true
pnpm list -g memmy-agent --depth=0 || true
yarn global list --pattern memmy-agent || true
Summarize what you found in one short paragraph. Use the clues only to suggest a likely install method. Do not treat them as confirmation.
CRITICAL: Do not write skills/update/SKILL.md until the install method is
explicitly confirmed by the user. The install method must come from a user
answer or confirmation, not from inference alone. If you cannot get a clear
answer, stop and ask the user to rerun this setup when they know how memmy was
installed.
Treat a request like "generate upgrade config", "set up updates", or "use
update-setup" as the goal, not as confirmation of the install method. Install
clues are only hints for the question summary; never choose npm, pnpm,
yarn, or source from clues alone. In the initial setup turn, write
skills/update/SKILL.md only if the user message already contains an explicit
install method and proxy answer. Otherwise, ask Question 1 and stop.
Hard stop rule: after collecting install clues without an explicit install
method from the user, do not call write_file for any path ending in
skills/update/SKILL.md in that same assistant turn. This remains true when
update-setup is part of a larger task that also creates other skills or runs
external installers. Finish the safe parts, ask Question 1, and wait for a later user
message before continuing.
Ask the user the questions below, one at a time, in your response text. Wait for the user's reply before proceeding to the next question. If you cannot get a clear answer, stop without writing the skill.
Question 1 — Install method:
question: "I found these install clues: <SUMMARY>. Which update method should this workspace use?"
options: ["npm", "pnpm", "yarn", "source (git clone)", "not sure"]
If the user selected not sure, explain the difference between the options and
stop. Do not generate the upgrade skill.
If the user selected source (git clone), ask for the local checkout path:
question: "Where is your memmy source checkout? Enter an absolute path or a path relative to this workspace:".
Question 2 — Proxy:
question: "Do you need an HTTP proxy to reach the npm registry or GitHub?"
options: ["no", "yes"]
If yes, ask one more time for the proxy URL: question: "Enter proxy URL (e.g. http://127.0.0.1:7890):".
Determine the upgrade command from the install method:
| Method | Command |
|---|---|
| npm | npm install -g memmy-agent@latest |
| pnpm | pnpm add -g memmy-agent@latest |
| yarn | yarn global add memmy-agent@latest |
| source | cd <SOURCE_CHECKOUT> && git pull && npm install && npm run build |
For source installs, quote the source checkout path if it contains spaces.
Determine the preflight check from the install method:
| Method | Preflight check |
|---|---|
| npm | command -v npm && node --version |
| pnpm | command -v pnpm && node --version |
| yarn | command -v yarn && node --version |
| source | test -d <SOURCE_CHECKOUT> && test -d <SOURCE_CHECKOUT>/.git && test -f <SOURCE_CHECKOUT>/package.json |
For source installs, quote the source checkout path in the preflight check if it contains spaces.
Build the skill content. If proxy is configured, add export http_proxy=URL and export https_proxy=URL lines before the upgrade command.
Use write_file to write skills/update/SKILL.md with this content:
---
name: update
description: "Upgrade memmy to the latest version. Triggers: upgrade memmy, update memmy, 升级memmy, 更新memmy."
---
# Update Memmy
1. (If proxy configured) Set proxy: `export http_proxy=URL && export https_proxy=URL`
2. Use `exec` to run the preflight check: <PREFLIGHT_CHECK>. If it fails, stop and tell the user to rerun `update-setup` because the saved install method no longer matches this environment.
3. Use `exec` to run the upgrade command: <UPGRADE_COMMAND>
4. Use `exec` to verify: `memmy --version`
5. Tell the user the new version. Say: "Run `/restart` to restart memmy and apply the update. If `/restart` is unavailable in this channel, restart the memmy process manually."
Tell the user: "Upgrade skill created. Say 'upgrade memmy' when you want to update."