本文へスキップ
Skillpedia
一般的なプログラミング394k · #17

diffs

できること

このスキルは、AIエージェントに、変更前と変更後のテキストやパッチをビジュアルな差分に変換するツールを提供します。正確な変更を確認したり共有したりしたい人のためのものです。

使う場面

  • ✓テキストやコードの編集で、何がどう変わったかを正確に示したいとき。
  • ✓リンク、PDF、またはPNGファイルとして共有できる差分が必要なとき。
  • ✓変更内容の手書きの要約では分かりにくくなる、または誤りやすいとき。

スキルのリンク

https://github.com/openclaw/openclaw/blob/main/extensions/diffs/skills/diffs/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/openclaw/openclaw/blob/main/extensions/diffs/skills/diffs/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このメモの2つのバージョンの違いを正確に示し、送れるPDFも作ってください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

ツールは古いテキストと新しいテキストを比較するか、パッチを読み取り、ビューアーのページ、ファイル、またはその両方を作成します。何か変更があったかを報告し、ビューアーのリンクやファイルのパスを返します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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.

Check details.changed: identical before/after input returns false without creating an artifact; rendered results return true.

Use mode=view when you want an interactive gateway-hosted viewer. After the tool returns, present details.viewerUrl with an available surface-presentation tool. 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 be rejected 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 fileFormat=pdf. The tool result includes details.filePath.

For 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, use an available file-sending tool to send details.filePath as an attachment.

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.

よくある質問

何も変更がない場合もファイルを作成しますか?

いいえ。変更前と変更後のテキストが同じ場合、ツールは変更なしと報告し、成果物は作成しません。

描画されたファイルを誰かに送れますか?

はい。利用可能なファイル送信ツールを通じて、このスキルがファイルを添付として送ることができます。

どのファイル形式を作成できますか?

初期設定ではPNG画像を作成し、依頼された場合にPDFファイルを作成します。

詳細

作者による元の説明

Use the diffs tool to produce real, shareable diffs (viewer URL, file artifact, or both) instead of manual edit summaries.

repo: openclaw/openclaw

人気

GitHubのスター
394k
ランキング
#17
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル