pickuplisted
Install: claude install-skill fmschulz/omics-skills
# /pickup
Read and resume from the latest session handoff. **Queries memd first** (structured task/artifact state is authoritative), then scans `docs/handoffs/` for narrative context.
## Usage
```
/pickup [--keep] [--no-memd]
```
## Flags
| Flag | Description |
|------|-------------|
| `--keep` | Don't archive the filesystem handoff after reading (useful to reference it again) |
| `--no-memd` | Skip the memd query, use only `docs/handoffs/` |
## Quick Reference
| Task | Action |
|------|--------|
| Resume work | Read memd project state when configured, then scan active handoff files. |
| Filesystem-only resume | Use `--no-memd` or continue automatically when memd is unavailable. |
| Preserve handoff | Use `--keep` when the handoff should remain active. |
| Archive handoff | Move only current-repo handoffs to `docs/handoffs/_archive/` after reading. |
## Instructions
### Step 0: Resolve memd tenant / project
Resolve the repo / worktree root first with `git rev-parse --show-toplevel`, then look for `.memd/config.json` at or above that root. Git treats a worktree's `.git` as a plain file (not a directory), so presence-based checks like `[ -d "$dir/.git" ]` would miss worktree roots; `rev-parse` handles both.
```bash
# Find the repo or worktree root — works for both plain repos and worktrees.
repo_root="$(git rev-parse --show-toplevel)"
# Nearest-ancestor lookup for .memd/config.json. Start at CWD, stop at the
# repo root (or at filesystem root, when not in a repo).
d