快速生成可分享的代码或文本差异结果,便于审阅、协作与落地修改。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "diffs" 技能: 1. 下载 https://raw.githubusercontent.com/openclaw/openclaw/main/extensions/diffs/skills/diffs/SKILL.md 2. 保存为 ~/.claude/skills/diffs/SKILL.md 3. 装好后重载技能,告诉我可以用了
请基于以下需求修改这段代码,并用 diffs 工具输出可分享的 diff 链接和补丁文件:将登录函数改为支持邮箱或手机号登录,同时保留原有单元测试。
返回可审阅的代码差异结果,包括分享链接、补丁文件或两者。
请将这版产品说明文档按我的修改意见更新,并使用 diffs 工具生成清晰的差异输出,方便团队直接查看改动位置。
返回文档改动的结构化差异,便于团队审阅和确认。
请对比当前版本与目标版本的配置文件差异,并通过 diffs 工具生成可分享结果,用于提交给同事做变更评审。
返回适合评审的版本差异结果,突出新增、删除与修改内容。
When you need to show edits as a real diff, prefer the diffs tool instead of writing a manual summary.
The diffs tool accepts either before + after text, or a unified patch string.
Use mode=view when you want an interactive gateway-hosted viewer. After the tool returns, use details.viewerUrl with the canvas tool via canvas present or canvas navigate.
If the deployment uses a loopback trusted proxy (for example Tailscale Serve with gateway.trustedProxies including 127.0.0.1), raw loopback viewer requests can fail closed without forwarded client-IP headers. In that topology, prefer mode=file / mode=both, or use a configured viewerBaseUrl / explicit proxy/public baseUrl when you need a shareable viewer URL.
Use mode=file when you need a rendered file artifact. Set fileFormat=png (default) or . The tool result includes .
fileFormat=pdfdetails.filePathFor large or high-fidelity files, use fileQuality (standard|hq|print) and optionally override fileScale/fileMaxWidth.
When you need to deliver the rendered file to a user or channel, do not rely on the raw tool-result renderer. Instead, call the message tool and pass details.filePath through path or filePath.
Use mode=both when you want both the gateway viewer URL and the rendered artifact.
If the user has configured diffs plugin defaults, prefer omitting mode, theme, layout, and related presentation options unless you need to override them for this specific diff.
Include path for before/after text when you know the file name.
帮助你发现并控制 Sonos 音箱,执行播放、音量和分组等操作。
为当前会话中的代码改动快速创建草稿拉取请求,便于协作评审。