用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jim60105/AIr-Friends --skill edit-reply命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | edit-reply |
| description | Edit the last reply message that was sent via send-reply |
| parameters | [{"name":"messageId","type":"string","required":true,"description":"The ID of the message to edit (obtained from send-reply result)"},{"name":"message","type":"string","required":true,"description":"The new message content to replace the original"}] |
Edit the previously sent reply message. Use this when you need to correct errors or update information in your last reply.
send-reply and obtained the messageId from its resultTwo-step flow — the new message text MUST NOT appear on the command line.
Write the corrected text to a payload file under the session staging directory using your edit/write tool:
$TMPDIR/$SESSION_ID/reply.md
The $TMPDIR / $SESSION_ID tokens in that path are expanded by the ACP path boundary, so the write is approved and the text bytes are preserved verbatim (no shell expansion). $TMPDIR/$SESSION_ID/ is the per-spawn form of the staging directory; in shared-process deployments the staging directory is shown in your system prompt and the script resolves it automatically.
Invoke the script with the payload file path:
${HOME}/.agents/skills/edit-reply/scripts/edit-reply.ts \
--session-id "$SESSION_ID" \
--message-id "<messageId from send-reply>" \
--message-file "$TMPDIR/$SESSION_ID/reply.md"
WARNING: Never put message content on the command line. The legacy --message "..." / --message=... flags are REMOVED: the shell expands $VAR in them (e.g. $0 → /usr/bin/bash, $HOME, $API_KEY), which corrupts your message and can leak environment variables to the user.
| Parameter | Required | Description |
|---|---|---|
--session-id | Yes | Use the session id rendered in your system prompt. $SESSION_ID works only in per-spawn deployments; in shared-process mode it is not set and the skill library resolves the owning session automatically — a mismatched value is never honored |
--message-id | Yes | The ID of the message to edit (obtained from send-reply result) |
--message-file | Yes | Path of the payload file containing the new text (must be under $TMPDIR/$SESSION_ID/) |
If the script fails, read the JSON error on stderr. It contains the fix. Common codes: SKILL_LEGACY_FLAG (you used the removed --message flag — stage the text in $TMPDIR/$SESSION_ID/reply.md and use --message-file), SKILL_MISSING_PAYLOAD (no --message-file given), SKILL_PAYLOAD_OUT_OF_BOUNDS (payload path outside $TMPDIR/$SESSION_ID/), SKILL_PAYLOAD_NOT_FOUND (payload file not written yet — write it first with the edit/write tool).
messageId must be from a previous send-reply call in the same sessionsend-reply messages are editable — messages delivered by send-file are NEVER editable, and passing a file-message ID to this skill will be rejected. There is no edit-file skill.messageId remains the same after editing.messageId will be different from the original. Use the new messageId for subsequent edits.Cancel a previously set reminder by its ID
Fetch additional context from the platform, including recent messages, search through conversation history, or get user information. Use when you need more context than what's provided initially.
Get the content of a sent message by its ID