Memorb Query Skill
Orb Resolution (Two-Step Lookup)
Before reading any named orb, resolve its physical path:
- Check
{base}/{name}.md — if found, use it (plain orb).
- If not found, check
{base}/{name}/{name}.md — if found, use it (bundle orb; attachments are sibling files in {base}/{name}/).
- 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
- 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.
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
- 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: [], recall_count: 1, last_recalled: YYYY-MM-DD).
- Note: Do NOT append circulation updates to
log.md to prevent event-log noise.
- Cite source pages in the response. A journal entry may help locate them, but cite the linked source orb/page rather than treating
log.md as factual authority.
- Backfill Rule: If an answer generates enduring insights, write them to the right layer — person/project/org traits or decisions →
memorbs/Long-Term/{People,Projects,Orgs}/; durable principles/beliefs → memorbs/HQ/Belief/; new terms → memorbs/glossary.md; cross-page links → whichever existing page they connect. Never leave enduring insights only in log.md: it is a concise journal index, not the knowledge base, and it gets rotated out.
- Never create Core orbs here.
memorbs/HQ/Core/ is written only by dream-studio, after explicit user confirmation. If a query surfaces something that looks formative, note it and suggest running dream-studio — do not file it yourself.
- If insight belongs to no existing page → create the new page, and link it from at least one existing page so it is reachable. An unlinked page is an orphan and
memorb-lint will flag it.
- Journal only key queries or decisions:
- Append a
query entry only when the question, recommendation, or conclusion is consequential enough to revisit; append a decision entry for a decision that changes memory or future action.
- Use the Memory Commit Journal shape, linking the pages read or changed and stating only a short operational outcome. Do not log routine recall.
Three-Layer Responsibility
memorbs/log.md (+ archived memorbs/log/{YYYY-MM}.md): Memory Commit Journal — a timestamped index of meaningful operations and links to their source pages; never a substitute for those pages.
memorbs/Long-Term/ (people/projects/orgs) + memorbs/HQ/ (Core/Belief/glossary): "How this changed our understanding" — living entity pages, no per-event dates.
memorbs/HQ/OrbTrack/: "Not yet filed" — transient; emptied by triage.
Red Flags
| Rationalization |
Reality |
| "I know the answer, no need to query memory" |
Answering from memory uses stale data. Always read index first. |
| "Leaving the insight in the log entry is enough" |
log.md is a journal index, not the knowledge base — and it gets rotated out by dream-studio. Enduring insights MUST be backfilled to memorbs/Long-Term/ (entities) or memorbs/HQ/ (principles/terms). |
1---2name: memorb-query3description: Wiki Query workflow: read memory before answering questions about people, projects, or decisions, and backfill insights. Triggers: 使用者提問, 要求比較, 要求整理, 要求決策建議, 幫我分析.4---56# Memorb Query Skill78## Orb Resolution (Two-Step Lookup)910Before reading any named orb, resolve its physical path:111. Check `{base}/{name}.md` — if found, use it (plain orb).122. If not found, check `{base}/{name}/{name}.md` — if found, use it (bundle orb; attachments are sibling files in `{base}/{name}/`).133. If neither exists, the orb is missing — do not hallucinate content.1415Apply 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/`.1617## Execution Sequence18191. **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.20 ```bash21 ls "$VAULT/memorbs/Long-Term/People" "$VAULT/memorbs/Long-Term/Projects" "$VAULT/memorbs/Long-Term/Orgs"22 grep -ril "{term}" "$VAULT/memorbs/Long-Term" "$VAULT/memorbs/HQ" # also matches aliases in frontmatter23 ```242. **Circulation Record & On-the-fly Migration**:25 - Upon successfully reading and using a target page, immediately update its frontmatter:26 - `last_recalled: YYYY-MM-DD`27 - `recall_count: <current + 1>`28 - **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: []`, `recall_count: 1`, `last_recalled: YYYY-MM-DD`).29 - *Note*: Do NOT append circulation updates to `log.md` to prevent event-log noise.303. **Cite source pages** in the response. A journal entry may help locate them, but cite the linked source orb/page rather than treating `log.md` as factual authority.314. **Backfill Rule**: If an answer generates **enduring insights**, write them to the right layer — person/project/org traits or decisions → `memorbs/Long-Term/{People,Projects,Orgs}/`; durable principles/beliefs → `memorbs/HQ/Belief/`; new terms → `memorbs/glossary.md`; cross-page links → whichever existing page they connect. Never leave enduring insights only in `log.md`: it is a concise journal index, not the knowledge base, and it gets rotated out.32 - **Never create Core orbs here.** `memorbs/HQ/Core/` is written only by `dream-studio`, after explicit user confirmation. If a query surfaces something that looks formative, note it and suggest running `dream-studio` — do not file it yourself.335. If insight belongs to no existing page → create the new page, and link it from at least one existing page so it is reachable. An unlinked page is an orphan and `memorb-lint` will flag it.346. **Journal only key queries or decisions**:35 - Append a `query` entry only when the question, recommendation, or conclusion is consequential enough to revisit; append a `decision` entry for a decision that changes memory or future action.36 - Use the Memory Commit Journal shape, linking the pages read or changed and stating only a short operational outcome. Do not log routine recall.3738## Three-Layer Responsibility3940- `memorbs/log.md` (+ archived `memorbs/log/{YYYY-MM}.md`): **Memory Commit Journal** — a timestamped index of meaningful operations and links to their source pages; never a substitute for those pages.41- `memorbs/Long-Term/` (people/projects/orgs) + `memorbs/HQ/` (Core/Belief/glossary): "How this changed our understanding" — living entity pages, no per-event dates.42- `memorbs/HQ/OrbTrack/`: "Not yet filed" — transient; emptied by triage.4344## Red Flags4546| Rationalization | Reality |47| :--- | :--- |48| *"I know the answer, no need to query memory"* | Answering from memory uses stale data. Always read index first. |49| *"Leaving the insight in the log entry is enough"* | `log.md` is a journal index, not the knowledge base — and it gets rotated out by `dream-studio`. Enduring insights MUST be backfilled to `memorbs/Long-Term/` (entities) or `memorbs/HQ/` (principles/terms). |