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.
59
67%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./benchmarks/gdpval/skills/delegated-file-edit-verification/SKILL.mdUse 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.
Never accept a delegated "done" message on summary alone.
Immediately verify the result yourself in the target workspace using direct commands that inspect:
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.
Use this workflow when:
Before handing off the task, write down the minimum facts that must be true if the task succeeds.
Include:
Example contract:
/workspace/results/report.xlsxsummary and datadata sheet has more than 1,000 rowsid, created_at, statusDo not rely on vague goals like "updated spreadsheet correctly."
When delegating, include:
Good delegation prompt:
/workspace/input/source.xlsx/workspace/output/cleaned.xlsxsummary and records existrecords includes headers id, date, amountDo not move on. Run direct checks in the target workspace right away.
For all files, verify:
For structured files, verify the internal structure too:
Trust commands and file inspection, not the delegate's prose.
Examples of useful checks:
Examples of conflicts:
data exists, but workbook contains different sheetsWhen this happens:
The most common recovery is to eliminate ambiguity.
On rerun:
Example rerun instruction:
/workspace/input/source.xlsx/workspace/output/cleaned.xlsxsummary and recordsrecords row count exceeds 1000id, date, amountRepeat your independent verification. Only accept the task when your checks match the expected contract.
Use this checklist before accepting a delegated file-edit result:
Use direct shell checks first.
ls -l /workspace/output/result.xlsx
stat /workspace/output/result.xlsx
find /workspace -name 'result.xlsx' -o -name '*result*'Interpretation:
test -f /workspace/output/data.csv
head -n 3 /workspace/output/data.csv
python - <<'PY'
import csv
path = "/workspace/output/data.csv"
with open(path, newline="") as f:
reader = csv.reader(f)
rows = list(reader)
print("rows_including_header:", len(rows))
print("headers:", rows[0])
PYCheck:
python - <<'PY'
from openpyxl import load_workbook
path = "/workspace/output/report.xlsx"
wb = load_workbook(path, read_only=True, data_only=True)
print("sheets:", wb.sheetnames)
for ws in wb.worksheets:
print(ws.title, ws.max_row, ws.max_column)
headers = [c for c in next(ws.iter_rows(min_row=1, max_row=1, values_only=True))]
print("headers:", headers)
PYCheck:
Delegate says:
/workspace/output/report.xlsxdataYour verification shows:
./report.xlsx insteadSheet1 and summarydata sheet existsCorrect response:
Use a concise recovery message like this:
/absolute/path/to/output.extDo not:
Delegated file-edit failures often come from:
This workflow catches those failures early by making acceptance depend on direct evidence in the target workspace.
A delegated file-edit task is complete only when:
If any of these fail, rerun with absolute paths.
c5a9c4b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.