/ork:memory [remember|search|dream] [text, query or flags]from ork
Stores decisions/patterns (remember), searches the knowledge graph (search), and consolidates stale memory files (dream). Use when persisting or retrieving session context.
Ships in ork. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Three verbs: remember (store, "Verb: remember" below), search (read, the subcommands below), dream (consolidate, Read("references/verb-dream.md")). Formerly the skills remember and dream: /ork:remember is now /ork:memory remember.
Cross-session read strategy (Opus 5.5 / CC 2.1.111+): Opus 5.5 reads filesystem memory reliably across sessions. When loading context at session start, prefer the layered read order:
~/.claude/projects/<slug>/memory/MEMORY.md(durable index — load first, always).claude/chain/state.json+ most recentNN-*.jsonhandoff (session continuation)- MCP
mcp__memory__search_nodesfor anything the filesystem index doesn't answer (typed graph traversal)Layer 1 is cheap (small index file), Layer 2 is scoped (session-specific), Layer 3 is selective (only when needed). Avoid dumping the full knowledge graph into context — use the index to narrow the search first.
SUBCOMMAND = "$ARGUMENTS[0]" # First token: remember, dream, or search, load, history, viz, status
QUERY = "$ARGUMENTS[1]" # Second token onward: search query, text to remember, or flags
# $ARGUMENTS is the full string (CC 2.1.59 indexed access)
remember: follow "Verb: remember" below. dream: Read("references/verb-dream.md") (flag --dry-run). Anything else is a search subcommand.
memory remember <text> # Store a decision or pattern (flags below)
memory dream # Consolidate memory files (--dry-run)
memory search <query> # Search knowledge graph
memory load # Load context at session start
memory history # View decision timeline
memory viz # Visualize knowledge graph
memory status # Show memory system health
With no verb, ask which one (remember, search, dream). For search, ask which subcommand:
AskUserQuestion(
questions=[{
"question": "What memory operation do you need?",
"header": "Operation",
"options": [
{"label": "search", "description": "Search decisions and patterns in knowledge graph"},
{"label": "load", "description": "Load relevant context for this session"},
{"label": "history", "description": "Decision timeline + knowledge-graph viz (--mermaid)"},
{"label": "status", "description": "Check memory system health"}
],
"multiSelect": false
}]
)
Load details: Read("references/memory-commands.md") for full usage, flags, output formats, and context-aware result limits for each subcommand.
| Subcommand | Purpose |
|---|---|
search | Search past decisions, patterns, entities. Supports --category (maps to metadata.category), --limit, --agent (scopes by agent_id), --global filter flags |
load | Auto-load relevant memories at session start. Supports --project, --global |
history | Decision timeline with table, Mermaid, or JSON output. Supports --since, --mermaid |
viz | Render knowledge graph as Mermaid diagram. See also Read("references/mermaid-patterns.md") |
status | Memory system health check |
Cron job in .github/workflows/memory-staleness.yml runs nightly at 04:00 UTC. Calls scripts/staleness_cron.py to scan ALL memory MCP entities, flag those whose latest observation timestamp is older than 30 days, and write a Markdown report to docs/reports/memory-staleness-YYYY-MM-DD.md.
python3 ${CLAUDE_SKILL_DIR}/scripts/staleness_cron.py docs/reports/ \
--threshold-days 30 --limit 50
Auto-skip conditions (exit 0 and WARN-logged on a local run; with --require-read, which the nightly workflow passes, exit 3 and status unknown). An unreadable search_nodes answer exits 2 in both modes:
| Skip reason | Trigger |
|---|---|
yg-mcp-core not importable | yg-mcp-core>=0.3.0 not installed (orchestkit is public; yg-mcp-core lives on private pypi.yonyon.ai — HQ-only) |
memory MCP unreachable | memory MCP server down OR .mcp.json doesn't define memory |
Report contents:
Treats entities with no parsable timestamp as stale — operator intervention is the right outcome (backfill last_read observation OR prune).
Pure helpers (parse_iso_timestamp, latest_observation_timestamp, is_stale, build_report_payload, render_markdown) live in sibling staleness_lib.py for unit-testability.
Mirrors Yonatan-HQ/hq-ext-plugin#194 (audio_podcast) and orchestkit#1886 (post-synth podcast) + #1887 (memory writeback) pattern. Unblocked by Yonatan-HQ/core#993 (yg-mcp-core 0.3.0).
Extract first argument as subcommand
If no subcommand -> AskUserQuestion
Validate subcommand is one of: remember, dream, search, load, history, viz, status
Parse remaining flags
Check for --agent <agent-id> flag → agent_id: "ork:{agent-id}"
Route to appropriate handler based on subcommand.
Format output appropriate to the operation.
| Rule | Impact | What It Covers |
|---|---|---|
entity-extraction-patterns (load rules/entity-extraction-patterns.md) | HIGH | Entity types, relation types, graph query semantics |
deduplication-strategy (load rules/deduplication-strategy.md) | HIGH | Edit-over-Write pattern, anchor-based insertion, verification |
remember rules (load rules/duplicate-entity-detection.md, entity-relationship-validation.md, observation-quality-gate.md) | HIGH | Search before create, allowed entity and relation types, observations need a metric or condition |
Load details: Read("references/session-resume-patterns.md") for CC 2.1.31 resume hints, context capture before ending, and resume workflows for PRs, issues, and implementations.
Filesystem vs MCP memory (Opus 5.5 guidance, CC 2.1.111+): Opus 5.5 reads filesystem memory reliably across multi-session work. Use that to your advantage:
- Short-lived handoff state (current phase, task in-progress, pending approvals) →
.claude/chain/*.jsonfiles. Small, structured, session-scoped.- Durable auto-memory (user facts, feedback, project conventions) →
~/.claude/projects/<slug>/memory/*.mdfiles with a one-line index inMEMORY.md. Read on every session start.- Cross-session knowledge graph (typed entities + relations for query traversal) → MCP memory server (this skill's default path). Best when future sessions will search for patterns.
The three are complementary, not alternatives. Prefer fs for anything you'd want to grep; prefer MCP for anything you'd want to traverse.
Store important decisions, patterns, or context in the knowledge graph for future sessions. Supports tracking success/failure outcomes for building a Best Practice Library.
TEXT = "$ARGUMENTS" # Full argument string; drop the leading `remember` token, e.g., "We use cursor pagination"
FLAG = "$ARGUMENTS[1]" # Token after `remember` — check for --success, --failed, --category, --agent
# $ARGUMENTS[0] is the verb; flags start at $ARGUMENTS[1] (CC 2.1.59 indexed access)
# Remaining tokens after flags = the text to remember
The remember verb uses knowledge graph as storage:
mcp__memory__create_entities and mcp__memory__create_relations. These tools come from a memory MCP server that OrchestKit does not bundle: configure one in the user or project scope first (for example @modelcontextprotocol/server-memory) and confirm it with claude mcp list. Without it, every graph step here does nothing.Benefits:
Automatic Entity Extraction:
remember <text>
remember --category <category> <text>
remember --success <text> # Mark as successful pattern
remember --failed <text> # Mark as anti-pattern
remember --success --category <category> <text>
# Agent-scoped memory
remember --agent <agent-id> <text> # Store in agent-specific scope
remember --global <text> # Store as cross-project best practice
| Flag | Behavior |
|---|---|
| (default) | Write to graph |
--success | Mark as successful pattern |
--failed | Mark as anti-pattern |
--category <cat> | Set category |
--agent <agent-id> | Scope memory to a specific agent |
--global | Store as cross-project best practice |
decision - Why we chose X over Y (default)architecture - System design and patternspattern - Code conventions and standardsblocker - Known issues and workaroundsconstraint - Limitations and requirementspreference - User/team preferencespagination - Pagination strategiesdatabase - Database patternsauthentication - Auth approachesapi - API design patternsfrontend - Frontend patternsperformance - Performance optimizations--success - Pattern that worked well (positive outcome)--failed - Pattern that caused problems (anti-pattern)If neither flag is provided, the memory is stored as neutral (informational).
Check for --success flag → outcome: success
Check for --failed flag → outcome: failed
Check for --category <category> flag
Check for --agent <agent-id> flag → agent_id: "ork:{agent-id}"
Check for --global flag → use global user_id
Extract the text to remember
If no category specified, auto-detect from content
| Keywords | Category |
|---|---|
| chose, decided, selected | decision |
| architecture, design, system | architecture |
| pattern, convention, style | pattern |
| blocked, issue, bug, workaround | blocker |
| must, cannot, required, constraint | constraint |
| pagination, cursor, offset, page | pagination |
| database, sql, postgres, query | database |
| auth, jwt, oauth, token, session | authentication |
| api, endpoint, rest, graphql | api |
| react, component, frontend, ui | frontend |
| performance, slow, fast, cache | performance |
If outcome is "failed", look for:
Extract entities (Technology, Agent, Pattern, Project, AntiPattern) from the text, detect relationship patterns ("X uses Y", "chose X over Y", etc.), then create entities and relations in the knowledge graph.
Auto-classification is best-effort. Before writing, ask the user to confirm both the memory type and the persistence scope. Pre-select the auto-detected type as the default option when the classifier is confident (≥0.9):
# Skip when the invocation already specifies type and scope:
# remember --type=preference --global → skip, use those values
# remember --session → skip, no persistence
#
# Otherwise, ask both:
AskUserQuestion(questions=[
{"question": "What type of memory?",
"header": "Type",
"options": [
{"label": "Preference", "description": "How I like to work (style, format, tooling)"},
{"label": "Project fact", "description": "State of THIS codebase (decisions, constraints)"},
{"label": "Reference", "description": "External system pointer (URL, doc, dashboard)"},
{"label": "Feedback", "description": "Correction to future behavior — applied as a rule"}
]},
{"question": "Apply to?",
"header": "Scope",
"options": [
{"label": "This project (default)", "description": "Scoped to .claude/projects/<this-project>/memory/"},
{"label": "All projects (global)", "description": "User-level memory at ~/.claude/memory/"},
{"label": "This session only", "description": "Print to context but don't persist"}
]}
])
Default selection rules:
Global memory writes route to ~/.claude/memory/<filename>.md instead of the project-local memory directory. The MEMORY.md index is updated in whichever scope was selected (project- or user-level).
Load entity extraction rules, type assignment, relationship patterns, and graph creation examples: Read("references/graph-operations.md")
Display confirmation using the appropriate template (success, anti-pattern, or neutral) showing created entities, relations, and graph stats.
Load output templates and examples: Read("references/confirmation-templates.md")
When updating .claude/memory/MEMORY.md or project memory files:
## Recent Decisions, ## Patterns, ## Preferencesrules/deduplication-strategy.md (Edit over Write) for the full Edit patternLoad on demand with Read("references/<file>"):
| File | Content |
|---|---|
verb-dream.md, housekeeping.md, index-budget.md, safe-deletes.md | Dream: the full verb, housekeeping, MEMORY.md budget, safe deletes |
category-detection.md, graph-operations.md, confirmation-templates.md, entity-extraction-workflow.md, examples.md | Remember: category rules, graph operations, output templates, extraction, examples |
memory-commands.md, mermaid-patterns.md, session-resume-patterns.md | Search: subcommands, Mermaid, resume |
references/category-detection.md (opens in a new tab)references/confirmation-templates.md (opens in a new tab)references/entity-extraction-workflow.md (opens in a new tab)references/examples.md (opens in a new tab)references/graph-operations.md (opens in a new tab)references/housekeeping.md (opens in a new tab)references/index-budget.md (opens in a new tab)references/memory-commands.md (opens in a new tab)references/mermaid-patterns.md (opens in a new tab)references/safe-deletes.md (opens in a new tab)references/session-resume-patterns.md (opens in a new tab)references/verb-dream.md (opens in a new tab)rules/_sections.md (opens in a new tab)rules/deduplication-strategy.md (opens in a new tab)rules/duplicate-entity-detection.md (opens in a new tab)rules/entity-extraction-patterns.md (opens in a new tab)rules/entity-relationship-validation.md (opens in a new tab)rules/observation-quality-gate.md (opens in a new tab)scripts/graph-utils.mjs (opens in a new tab)scripts/index-budget.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
sonnetlowThree short reads, in order
npx claudepluginhub yonatangross/orchestkit --plugin ork-alpha2 plugins ship this exact skill · first indexed Nov 29, 2026
82 skills in this plugin
/analyticsLocal OrchestKit usage analytics: agent and skill frequency, hook timing, session replay, cost estimates, model delegation trends. Use when reviewing usage, performance or costs./api-designAPI wire contracts for REST and GraphQL: resource shape, versioning and deprecation, RFC 9457 errors, OpenAPI. Use when designing an endpoint contract. Not for runtime code (use python-backend)./architecture-decision-recordNygard-format ADRs: context, decision, consequences, alternatives. Use when writing an ADR or recording an architectural decision.Other plugins' skills for the same job