memory-query-capture
БесплатноБез исполняемых скриптовНе проверенCapture query synthesis as durable pages in semantic memory
от jmagly★ 233 звезды на GitHubОб этом скилле
memory-query-capture
Capture valuable assistant synthesis from conversation into durable semantic memory pages. This is the compounding primitive — explorations accumulate as reusable knowledge rather than evaporating into chat history.
When to Use
Any time an assistant response produces analytical output worth preserving: comparisons, gap analyses, architectural assessments, synthesis narratives. Invoked explicitly by the user, suggested ambiently by the system, or chained automatically by other skills.
Parameters
--consumer (optional)
Consumer ID to write against. Resolved via ADR-021 D4 precedence: explicit > wrapper > auto-detect.
--type (optional)
Page type: synthesis, comparison, analysis, or gap. If omitted, determined by heuristic or user prompt.
--title (optional)
Page title. If omitted, derived from content via headline extraction or summarization.
Invocation Modes
Ambient mode
Suggested automatically when a query response exceeds a length/value threshold. The system presents a capture prompt; the user confirms or dismisses.
Explicit mode
User invokes directly: "save this as a page", "capture that comparison", or calls memory-query-capture with parameters.
Skill-chain mode
Any skill can call memory-query-capture as a final step after producing analytical output. The calling skill passes --type and --title to skip heuristics.
Operation
- Capture synthesis — extract the last assistant synthesis from conversation state.
- Determine page type — from
--typeflag, content heuristic, or user prompt. - Resolve consumer — determine target consumer via ADR-021 D4 precedence (explicit > wrapper > auto-detect).
- Resolve destination — read
memory.topology.derivedPagesfrom consumer'smanifest.jsonand select the matching subdirectory (derivedPages.synthesis,derivedPages.comparison, etc.). - Title the page — from
--titleflag or derived from content (first heading, key noun phrase, or summarized label). - Add cross-references — identify source pages cited in the synthesis and insert cross-reference links per the consumer's
crossRefStylesetting. - Write page — create the Markdown file at the resolved destination path.
- Update index and log — call
memory-log-appendwith--op query-captureand metadata about the captured page. - Mark provenance (optional) — record query origin, model actor, and sources cited in a provenance block at the end of the page.
Page-Type Heuristics
When --type is not provided, the skill inspects the synthesis content:
| Content pattern | Assigned type |
|---|---|
| Comparison table, side-by-side columns | comparison |
| Narrative prose with connective reasoning | synthesis |
| Gap analysis, missing coverage, "what's absent" | gap |
| Bullet-point assessment, evaluation criteria | analysis |
If the heuristic is ambiguous, prompt the user to select.
Consumer Resolution
Follows ADR-021 D4 precedence:
- Explicit —
--consumerflag provided on invocation. - Wrapper — a parent skill passes consumer context down the chain.
- Auto-detect — inspect
.aiwg/frameworks/registry.jsonfor the active consumer with amemory.topologycontract.
If no consumer can be resolved, abort with a clear error requesting --consumer.
Cross-Reference Style
The consumer's manifest.json declares a crossRefStyle — one of:
wikilink—page-namemarkdown—[page name](relative/path.md)at-mention—@consumer/path/to/page.md
The skill reads this setting and formats all source-page links accordingly.
Error Handling
- If no synthesis content is available in conversation state, report "nothing to capture" and exit.
- If the destination directory does not exist, create it before writing.
- Log write failures via
memory-log-appendare non-blocking — the page write is the primary operation. - If consumer topology lacks a
derivedPagesmapping for the resolved type, fall back to the consumer's base memory directory.
Schema Reference
@semantic-memory/schemas/memory-log-event.md
Examples
# Explicit capture after a deep comparison
memory-query-capture --consumer research-complete --type comparison --title "Redis vs Valkey feature matrix"
# Ambient capture (system-suggested, user confirms)
> Your comparison of caching strategies looks worth preserving. Capture as a page? [Y/n]
memory-query-capture --type synthesis
# Skill-chain: architecture-evolution calls capture after producing assessment
memory-query-capture --consumer sdlc-complete --type analysis --title "Microservices migration readiness"
Storage Routing (#934, #966)
This skill's persistence flows through resolveStorage('memory'). On the default fs backend the memory subsystem lives at .aiwg/memory/ and behavior is byte-identical to direct file writes. To redirect memory artifacts into Obsidian, Logseq,
Установить memory-query-capture в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл memory-query-capture?
Capture query synthesis as durable pages in semantic memory
Как установить скилл memory-query-capture?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл memory-query-capture запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic