Ensure codebase deliverables are properly packaged as ZIP exports in a dedicated final step
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-zip-deliverable-finalization-aab8f1992c62 ,按照其中的说明把「zip-deliverable-finalization」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
When a task requires delivering a codebase or project directory, do not assume that creating the project structure equals completion. A dedicated final iteration must explicitly package the deliverable as a ZIP archive.
Apply this skill when:
Before starting work, identify if the task requires a ZIP export. Look for phrases like:
Finish creating all project files, directories, and content. Ensure:
Do NOT combine ZIP creation with file creation. Allocate a separate, explicit iteration for packaging:
Iteration N: [File creation and project setup]
Iteration N+1: [ZIP packaging and finalization] <-- Dedicated step
Run the ZIP command explicitly in the final iteration:
zip -r project.zip ./project
Or for a custom project directory name:
zip -r {project-name}.zip ./{project-name}
Confirm successful creation:
ls -la project.zip
unzip -l project.zip # List contents without extracting
Explicitly state that the deliverable has been packaged and is ready. Include:
| Mistake | Correct Approach |
|---|---|
| Assuming file creation = deliverable complete | Explicitly create ZIP in separate step |
| Combining ZIP with file edits | Dedicate final iteration to packaging only |
| Forgetting to verify ZIP was created | List and confirm archive contents |
| Not mentioning ZIP in final report | Explicitly confirm deliverable is packaged |
Task: Create a smart contract project and deliver as ZIP
Correct Execution:
Iteration 1: Create contract files, tests, and configs
Iteration 2: Create frontend components
Iteration 3: Run 'zip -r smart-contract-project.zip ./smart-contract-project'
Iteration 4: Verify and report: 'Deliverable packaged successfully'
Incorrect Execution:
Iteration 1: Create all files and mention "project is complete"
[No ZIP step - deliverable incomplete]