Ensure all required output files are created and verified before marking a task complete
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-verify-all-deliverables-e1d7880724b7 ,按照其中的说明把「verify-all-deliverables」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
This skill prevents premature task completion in multi-deliverable workflows by ensuring every required output file is created, verified to exist with non-zero size, and confirmed before declaring <COMPLETE>.
Use this skill when a task requires creating multiple output files (e.g., spreadsheet + document, report + summary, data file + visualization).
CRITICAL CHECKPOINT: Do not proceed to Step 2 until this step produces visible output.
Before starting any file creation, you MUST output a complete deliverable list in this exact format:
REQUIRED DELIVERABLES CHECKLIST:
☐ [filename1.extension] - [brief description]
☐ [filename2.extension] - [brief description]
☐ [filename3.extension] - [brief description]
This checklist must appear as visible text in your output before executing any file creation commands. Track completion by updating checkboxes (☐ → ☑) as each file is created.
Execute the creation of each file one at a time. Do not proceed to the next step until the current file creation command has completed.
After creating each file, immediately verify it exists and has non-zero size:
ls -la [filename.extension]
Expected output should show file size > 0 bytes. If size is 0 or file is missing, troubleshoot before proceeding.
Before declaring <COMPLETE>, run a final verification of ALL deliverables:
ls -la file1.ext file2.ext file3.ext
Or use a loop for many files:
for file in file1.ext file2.ext file3.ext; do
if [ -s "$file" ]; then
echo "✓ $file exists ($(stat -c%s "$file") bytes)"
else
echo "✗ $file missing or empty"
exit 1
fi
done
Only output <COMPLETE> after all files have been verified with non-zero size.
| Pitfall | Prevention |
|---|---|
| Creating only some deliverables | List all deliverables upfront and track completion |
| Not verifying file sizes | Always run ls -la after each file creation |
| Declaring complete too early | Final verification step is mandatory |
| Assuming success without checking | Explicitly check each file before proceeding |
Task: Create tracking spreadsheet and email template document
1. Identify deliverables:
- June_2025_Declined_Payments_Outreach.xlsx
- Email_Template.docx
2. Create spreadsheet → verify with ls -la → confirm size > 0
3. Create Word document → verify with ls -la → confirm size > 0
4. Final check: ls -la *.xlsx *.docx → confirm both files present
5. Only then: <COMPLETE>