delegated-file-edit-verification
できること
このスキルは、別のツールやエージェントが編集を終えたと言った後に、AIがファイルを直接確かめるよう指示します。AIのヘルパーでスプレッドシート、データベース、その他のファイルを作る人向けです。
使う場面
- ✓別のエージェントが、ファイルを保存または更新したと言い、それを確かめたいとき。
- ✓タスクが、特定のフォルダや場所にファイルがあることに依存するとき。
- ✓スプレッドシートやデータファイルに、正しい見出しと行数が必要なとき。
スキルのリンク
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/delegated-file-edit-verification/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ヘルパーがスプレッドシートを更新したと言っています。ファイル自体を確かめて、本当にうまくいったかを教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
タスクを渡す前に、出力に何が含まれるべきかを書き留めます。ヘルパーが終わった後、ファイルの存在、場所、構造、件数を確認し、報告と合わなければフルパスを使って再実行します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Delegated File Edit Verification
Use this workflow whenever another agent, subprocess, or delegated tool claims it successfully created or modified a file. The goal is to prevent false acceptance of incomplete, misplaced, or incorrect edits.
This skill is especially useful for structured files such as spreadsheets, CSVs, databases, and generated artifacts, but the same pattern applies to any delegated file-edit task.
Core principle
Never accept a delegated "done" message on summary alone.
Immediately verify the result yourself in the target workspace using direct commands that inspect:
- file existence
- exact path
- expected structure
- expected size or counts
- key headers, fields, or identifiers
If the delegate's summary and your verification disagree, treat the task as incomplete. Re-run the task using absolute paths and explicit acceptance checks.
When to use this
Use this workflow when:
- a sub-agent says it wrote or updated a file
- the task depends on a specific workspace or output location
- the output is structured and can be checked mechanically
- prior executions showed path confusion, stale files, or inconsistent summaries
- correctness matters more than trusting the delegate's narrative
Procedure
1. Record the intended output contract before delegating
Before handing off the task, write down the minimum facts that must be true if the task succeeds.
Include:
- absolute target path
- required file name
- required file type
- expected sheets, tabs, tables, or sections
- expected row counts or approximate size
- required headers or columns
- any sentinel values that should appear
Example contract:
- file exists at
/workspace/results/report.xlsx - workbook contains sheets
summaryanddata datasheet has more than 1,000 rows- headers include
id,created_at,status
Do not rely on vague goals like "updated spreadsheet correctly."
2. Delegate with explicit acceptance criteria
When delegating, include:
- the absolute input path
- the absolute output path
- the exact required structure
- a request to report what was changed
- a request to include paths actually used
Good delegation prompt:
- Read
/workspace/input/source.xlsx - Write the cleaned workbook to
/workspace/output/cleaned.xlsx - Ensure sheets
summaryandrecordsexist - Ensure
recordsincludes headersid,date,amount - Report the exact absolute path written and row counts per sheet
3. Verify immediately after the delegate reports success
Do not move on. Run direct checks in the target workspace right away.
For all files, verify:
- the file exists at the expected absolute path
- modification time is recent
- file size is plausible
- there is not a second similarly named file in another directory
For structured files, verify the internal structure too:
- workbook sheet names
- CSV header row
- row counts
- required columns
- sample records or sentinel values
4. Prefer direct machine checks over narrative summaries
Trust commands and file inspection, not the delegate's prose.
Examples of useful checks:
- list the exact file path
- print sheet names
- count rows
- print header names
- inspect a few sample rows
- compare timestamps before and after
5. If verification conflicts with the delegated summary, mark the task incomplete
Examples of conflicts:
- delegate says file exists, but it does not
- delegate claims sheet
dataexists, but workbook contains different sheets - reported row count differs materially from actual count
- expected headers are missing
- output was written to a relative or unexpected location
- the delegate inspected one file but wrote another
When this happens:
- do not accept the result
- state the exact mismatch
- rerun the task
- require absolute paths for every input and output
- require a final report tied to those exact paths
6. Re-run with absolute paths and constrained scope
The most common recovery is to eliminate ambiguity.
On rerun:
- provide absolute paths only
- restate the acceptance contract
- instruct the delegate to verify its own output before reporting success
- ask it to print the exact path and structural facts used
Example rerun instruction:
- Re-run using only these absolute paths:
- input:
/workspace/input/source.xlsx - output:
/workspace/output/cleaned.xlsx
- input:
- Before reporting success, verify:
- file exists
- workbook sheets are
summaryandrecords recordsrow count exceeds 1000- headers
よくある質問
ヘルパーの報告が誤っていたら?
ガイドは、タスクを未完了と扱い、絶対パスと明確な確認を使って再実行するよう述べています。
どのファイルにこの方法が向いていますか?
スプレッドシート、CSV、データベースなど、構造化されたファイルに最も役立ちます。
サイズだけでなく内容も確認しますか?
はい。サイズや件数に加えて、主要な見出し、項目、識別子も確認します。
詳細
作者による元の説明
Verify delegated file-edit results directly in the target workspace before accepting success, and rerun with absolute paths if the delegate's report conflicts with reality.
repo: HKUDS/AgentPilot
人気
- GitHubのスター
- 7.8k
- ランキング
- #12851
- ライセンス
- MIT
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
agentpilot
7.8kエージェントが、作業を準備し、変更案を提案してテストし、評価するAgentPilotのループを実行することで、プロジェクトを段階的に改善できるよう支援します。
openspace
7.8kエージェントが、スキルを保存し取り出すツールであるOpenSpaceをセットアップし、MCPを通じてAIアプリに接続できるよう支援します。
rsi-arena
7.8kエージェントが、AIMEやTerminal-Benchなどの標準的なAIベンチマークテストをセットアップして実行し、異なる改善方法を比較できるよう支援します。
experiment-guide
7.8kエージェントが、プログラムを改善する方法を調べる間に、小さな実験を計画し、その結果を読み、発見を記録できるよう支援します。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。