Take uncommitted work another project session left in this repo and land it as a reviewed, CI-green PR, without disturbing that session's live job or other sessions' stray edits.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Land Another Sessions Work?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/williamblair333-land-another-sessions-work)
---
name: land-another-sessions-work
description: Take uncommitted work another project session left in this repo and land it as a reviewed, CI-green PR, without disturbing that session's live job or other sessions' stray edits.
---
# Land another session's work via PR
## When to use
- Another session (for example a project session such as write-well) changed files in a repo this session owns, and the work needs to reach `main`.
- The other session may still have a long job running that depends on those files, such as a multi-hour render that reads `comfy_job.py`.
- The checkout also holds unrelated uncommitted edits from other sessions that must stay untouched.
## Steps
1. **Branch first.** Create a feature branch (e.g. `feat/<topic>`) from current `main`. Note the base commit hash; step 9 needs it.
2. **Pre-mortem before each guarded step.** The edit hook needs a pre-mortem before touching scripts. Run one again before `git push`. Record the findings (e.g. "2 LOW, cleared") and handle each one.
3. **Audit the handed-over work against its own notes.** Check what the code really does against what the session said it does. Fix any gap. Example: the note said the HF token came from `~/.cache/huggingface/token`, but the script only read `HF_TOKEN`. The fix was to check the env var first, then the file. The secret goes to the tool through stdin, never argv. The access-denied error names the file.
4. **Add tests for every behaviour you touched.** Cover the new feature paths, flags (e.g. `--no-upsample`), lookup order, and the secret never appearing on the command line. Run the file's tests, then the full suite with `just test`.
- If a run exits nonzero but names no failure, rerun it. Report the anomaly and the clean reruns; don't hide either.
5. **Fix the docs and examples.** Check usage examples against the real recipe signature (e.g. `just image "<prompt>" --model flux3`, prompt first). Update `docs/STACK.md` with the measured timings, plus CHANGELOG and HANDOFF. Tell the originating session about any correction to their examples.
6. **Delegate the diff review, with a check written first.**
- Hand the diff to `ask_agy` (`referee` / `verifiable-task`).
- Set the check before the call. Each finding must name a `file:line` you can open and confirm. Verify every finding yourself. An empty "no findings" counts as no evidence, not a pass.
- If quota is spent (zero-token ERROR on all review models), review the diff yourself. Say so in the report.
7. **Commit only the scoped files.** Stage the other session's files plus your additions. Leave unrelated uncommitted and untracked files alone. Confirm that no secret is in the commit.
8. **Push and open the PR on Gitea, then watch CI.** Merge only once every check is green.
9. **Protect the live job across the merge.**
- Confirm the merge won't touch running containers or services.
- Don't switch the checkout to `main` before the merge lands. Old `main` lacks the new files, so switching early would swap them out mid-run.
- Check that `main` is still at the branch's base commit. If it is, merged `main` will have exactly the branch's files, so switching afterwards changes nothing on disk.
- Tell the other session what you're doing and when it's merged.
10. **Merge safely.** Merge on Gitea **without** `--delete-branch`. Delete the branch locally and remotely only after the PR reads MERGED. Return to `main` and confirm it matches the remote (`git ls-remote`).
11. **Report.**
- The PR number, merge commit and CI result.
- Test counts and any anomaly.
- What you added beyond the original work.
- What you deliberately left untouched.
- Follow-ups for the user, such as `chmod 600` on a world-readable token file, setup still needed on other hosts, and features not yet built.
## Follow-on work from the same session
When the other session asks to extend the feature, prefer that they build it themselves if they hold the assets, credentials and GPU. Set these conditions:
- They work in a **git worktree**, so the shared checkout stays on `main`.
- The new mode follows the existing mode's rules (e.g. references scaled to about 1 MP, output at the first reference's size unless `--width`/`--height` are given, existing flags still work).
- New tests and `just test` pass, with measured timings in the PR description.
- Docs, CHANGELOG and HANDOFF are updated.
- They send you the PR number. You review and merge; they don't.