Project wrap-up
The goal: someone who has never seen this project (a successor, another group, or the user in two years) can understand what it found, trust the record, rerun it and point it at new data.
A wrap-up is a process, not a report. Check one stage at a time, show the user what's wrong, fix what they approve, re-check, and move on. The final document is written only at the end, once the checks pass. It contains what a successor needs, not the audit. The audit happens in the conversation.
Scripts are in scripts/ next to this file. $WU below means that folder; set it once per shell with WU="${CLAUDE_SKILL_DIR}/scripts". If that variable is empty, use the folder this SKILL.md was read from.
Ground rules
-
Report first, fix only after the user approves. Never edit, commit, delete, move, push or tag anything before the user says yes to that specific fix. A wrap-up that quietly changes things can't be trusted, and the user may have reasons you can't see: a co-author's branch, a pending decision, a supervisor who already has the numbers.
-
Some fixes are the user's decision, not yours:
- which license to use
- whether to rewrite git history
- rotating a leaked key
- where to deposit data
- what to tell a supervisor about a wrong number
Ask, give your recommendation, and don't pick for them.
-
Follow the project's own rules (its CLAUDE.md) on commits, authorship and pushing. If they don't say, ask before the first commit.
-
Grade on evidence you looked at, not on what the notes claim. Notes written with AI assistants are often optimistic. If PROGRESS.md says "results in results/sweep.csv", open that file.
-
Fix what blocks the hand-off; suggest the rest. Propose fixes for things that stop a successor from running, trusting or finding the work:
- broken commands
- missing dependencies
- hard-coded paths
- missing seeds
- wrong notes
Refactors, new options and new features (moving constants into a config, adding a CLI flag) change the code that produced the results. They go to §5 as suggestions, not into the wrap-up.
-
Nothing gets dropped silently. If the user decides to leave a problem as it is, it goes into §5 "Loose ends" of the final document with the reason.
Workflow
0. Orient
python3 $WU/scan_repo.py <repo>
The scan is read-only and uses the standard library only. It prints JSON:
- git state: uncommitted and unpushed work, remotes, branches, tags, large or secret-looking files
- key files: README, LICENSE, CITATION, environment files
- every doc, with its last-commit date
- hard-coded absolute paths and possible secrets
- data and output folders
- open project-log loops
Then read the README, the plan, the progress notes (PROGRESS.md, project-log/), CLAUDE.md, and the code's entry points.
Work out who will inherit the project. If the user said (a new student, another group, the user's future self), write for them. If not, ask once, and meanwhile assume a researcher in the same field who has never seen the repo.
Show the user the stage checklist and start:
Wrap-up: <project>
☐ 1 Plan vs. done ☐ 2 Notes & log ☐ 3 Git ☐ 4 README & docs ☐ 5 Reproducibility ☐ 6 Archive
☐ Final document ☐ Commit, tag, push
1–6. The check stages, in order
The order matters. Plan and notes establish what's true. Git makes the work safe before anything else is changed. The README comes before reproducibility because reproducibility tests the README's instructions. Archive comes last because it depends on what the other stages kept.
For each stage, read its section in references/checks.md, run the checks, then hold a checkpoint:
Stage 2/6: Notes & log
Found
1. ❌ PROGRESS.md says the sweep results are in results/sweep.csv. That file doesn't exist; sweep.py was never run.
2. ⚠️ The last note is from 20 Sep, but there are commits up to 15 Oct (log target, a4f1c2e). Not recorded.
Proposed fixes
a. Add a note for the 15 Oct change. (I can do this.)
b. Sweep: rerun it (~10 min), or mark the claim unverified? (Your call.)
Approve all, pick some (e.g. "a, and b: rerun"), or leave as is?
- Keep it short. A checkpoint should fit on one screen. List the findings that matter (usually 3–6), one or two lines each, with the evidence. Leave out what's fine, and offer details if the user asks. The user has to read and decide at six of these.
- Be specific. Give file paths, line numbers, commit hashes and numbers. "README incomplete" doesn't help. "README has no run instructions;
train.pyneeds--config" does. - Apply only what was approved, then re-check and say what now passes. If a fix shows a new problem, it's part of the same stage.
- When the stage passes, tick it in the checklist, show the checklist, and offer to commit that stage's changes as one commit (following the project's rules). Then move to the next stage.
- A clean stage gets one line ("✅ 3 Git: clean, nothing to fix") and you move on without waiting.
- If the user wants to go faster, combine several stages in one checkpoint. Still don't change anything without approval.
Run things for real: tests, --help, cheap entry points.
- Use a scratch environment, so the repo doesn't fill with build files.
- Don't overwrite committed results with a rerun. Write rerun outputs to a scratch folder or
results/rerun-<date>/and compare. Replacing the original results is a separate decision for the user. Until then, the numbers someone already reported must stay readable in the repo, not only in git history. - For anything long, give the command and expected runtime, and ask before running it.
7. Write the final document
When all six stages have passed or been explicitly settled:
-
Get the project tree:
python3 $WU/tree.py <repo>It lists folders and files, collapses long lists, and marks folders that are not in git. Add a short
# commentto the lines a newcomer needs (entry points, config, where results go). Delete lines that add nothing. -
Write
WRAP-UP.mdat the repo root, following assets/WRAP-UP.template.md:- Header line: date, branch, and the tag that step 8 will create. Don't put a commit hash in it: the final commit doesn't exist yet when you write the header.
- §1 Summary: brief. About 150 words plus the results table, no more. It's the first thing a reader sees.
- §2 Project structure: the annotated tree, in a
```treeblock. - §3 Reproduce and reuse: the main part. Use only commands you actually ran in stage 5, with the outputs a reader should expect. The new-dataset part comes from the code: input format with an example, where to plug it in, parameters tuned to the original data, and what fails silently.
- §4 Lessons learned: from detours, reverted work, dropped plans, and what this wrap-up found.
- §5 Loose ends and open ideas: follow-ups, ideas with a reason behind them, and everything the user chose to leave open. Say where to start.
- The footer line records that the checks passed and on what date.
Write in plain language for the reader identified in step 0, and explain each piece of jargon once. No check tables, no ✅/❌: the audit lives in the conversation, not the document.
-
Render the HTML:
uv run --no-project --with markdown python $WU/render_html.py <repo>/WRAP-UP.md--no-projectstops uv from creating.venv/uv.lockin the user's repo.- Without
uv:pip install markdown, thenpython3 $WU/render_html.py …. - It writes
WRAP-UP.htmlwith a colour per section, a sticky table of contents, the styled tree, and copy buttons on commands. The page loads nothing from the network, so it still opens from an archive years later. - To change the page, edit the markdown and re-render; never edit the HTML.
- If the project has a project-log page, that page is the project's timeline. This one is the hand-off. Keep them separate.
-
Show the user the summary and the paths to both files, and ask for changes.
8. Commit, tag, push
Each step needs the user's yes:
- Commit
WRAP-UP.mdandWRAP-UP.html, plus any approved fixes not yet committed. - Tag the final commit, e.g.
v1.0-final(orv0.x-pausedif the goal wasn't met). - Push the branch and the tag, to a remote the successor can reach.
Then tick the last boxes and show the finished checklist.
Re-running a wrap-up
If WRAP-UP.md already exists, read it first. Run the stages again, since things may have changed. Then update the document in place and add "Updated ; previous wrap-up " under the title.