memorb-querylisted
Install: claude install-skill iamjosuho/memOrb
# Memorb Query Skill
## Orb Resolution (Two-Step Lookup)
Before reading any named orb, resolve its physical path:
1. Check `{base}/{name}.md` — if found, use it (plain orb).
2. If not found, check `{base}/{name}/{name}.md` — if found, use it (bundle orb; attachments are sibling files in `{base}/{name}/`).
3. If neither exists, the orb is missing — do not hallucinate content.
Apply this lookup to every target in `memorbs/Long-Term/People/`, `memorbs/Long-Term/Projects/`, `memorbs/Long-Term/Orgs/`, `memorbs/HQ/Core/`, and `memorbs/HQ/Belief/`.
## Execution Sequence
1. **List the relevant directories first** to locate target pages, then resolve each target path using the two-step lookup above — **do not answer from memory**. The filesystem is the index; there is no separate index file to consult, and none to keep in sync.
```bash
ls "$VAULT/memorbs/Long-Term/People" "$VAULT/memorbs/Long-Term/Projects" "$VAULT/memorbs/Long-Term/Orgs"
grep -ril "{term}" "$VAULT/memorbs/Long-Term" "$VAULT/memorbs/HQ" # also matches aliases in frontmatter
```
2. **Circulation Record & On-the-fly Migration**:
- Upon successfully reading and using a target page, immediately update its frontmatter:
- `last_recalled: YYYY-MM-DD`
- `recall_count: <current + 1>`
- **On-the-fly Migration**: If target page frontmatter lacks `aliases`, `orb_emotions`, `recall_count`, or `last_recalled`, automatically backfill missing keys with default values (`aliases: []`, `orb_emotions: [