本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)101k · #982

diff-review

できること

このツールは、コードに加えられた変更をわかりやすく表示し、その変更を採用するか却下するかを判断できるようにします。変更内容を見やすく整理して、確認しやすくします。

使う場面

  • ✓ツールがコードを自動で変更した後。
  • ✓変更を完全に適用する前に内容を確認したいとき。
  • ✓一連の変更のうち、特定の部分だけを採用するか却下するか決めたいとき。

スキルのリンク

https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/diff-review/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“コードに加えられた変更を確認して、採用すべきか却下すべきか教えて。”

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

仕組み

ツールは、プロジェクトに加えられたすべての変更を集めます。その後、「diff(差分)」と呼ばれる形式で明確に表示し、変更を採用、却下、または一部だけ採用するかを選べるようにします。

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

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

Diff review

Spec §20.3 / §21.3.2: a code-migration / tune-collab handoff is worthless without a human-reviewable diff. This atom is the "present the patch, capture the decision" stage.

Inputs

  • The project cwd's accumulated edits since the run started (or since the previous diff-review iteration).
  • plan/steps.json for context per file.

Output

project-cwd/
└── review/
    ├── diff.patch        # unified diff (git apply-shaped)
    ├── summary.md        # human-friendly per-file walkthrough
    ├── decision.json     # { decision: 'accept' | 'reject' | 'partial', accepted_files: [...], rejected_files: [...], reviewer: 'user' | 'agent' }
    └── meta.json         # { generatedAt, atomDigest, planRevision }

The atom raises a choice GenUI surface with the three top-level decisions (accept / reject / partial). On partial the user flips per-file decisions through follow-up surfaces.

Convergence

The atom completes when decision.json has a non-empty decision. Acceptance writes handoffKind: 'patch' (or 'deployable-app' when a successful build-test is on file) into the eventual artifact manifest; rejection rolls back the patch via git restore or the equivalent in the code-import-bound repo path.

Anti-patterns the prompt fragment forbids

  • Skipping the surface and assuming acceptance.
  • Generating a decision.json that lacks accepted_files / rejected_files on partial decisions.
  • Rolling back files outside plan/steps.json's union of files[] — the patch boundary is a contract.

Status

Implemented by the daemon runner in apps/daemon/src/plugins/atoms/diff-review.ts, with GenUI decisions persisted by apps/daemon/src/plugins/atoms/diff-review-genui-bridge.ts.

よくある質問

「diff(差分)」とは何ですか?

2つのバージョンのファイルや、ファイル群の違いを示したレポートです。追加された部分、削除された部分、変更された部分がわかるように表示されます。

変更を却下するとどうなりますか?

変更を却下すると、ツールは変更を取り消し、変更前の状態にコードを戻します。

「一部だけ採用する」とはどういう意味ですか?

同じ変更セットの中でも、ファイルごとに内容を確認して、採用するものと却下するものを個別に選べるという意味です。

詳細

作者による元の説明

Render the patch-edit run's accumulated changes as a reviewable diff, surface it through a GenUI choice surface, and persist the user's accept / reject decision into the artifact manifest.

repo: nexu-io/open-design

人気

GitHubのスター
101k
ランキング
#982
ライセンス
Apache-2.0
更新日
2026/10/15

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

0

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

コメント

  • …

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

似ているスキル