بنقرة واحدة
memory-query-capture
Capture query synthesis as durable pages in semantic memory
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Capture query synthesis as durable pages in semantic memory
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Generate a corpus snapshot report — computes dimensions, topology, degree distribution, delta from previous. Helps with cluster, chain, and gap analysis sections.
Detect requests for iterative autonomous agent loops and route to the appropriate loop executor
Orchestrate multi-loop background operations via the Mission Control dashboard — start sessions, dispatch missions, monitor, and stop
Launch an AIWG Mission — durable, audited dynamic agent orchestration toward a completion criterion. AIWG owns the conductor (activity-log, gates, best-output, checkpoint/resume, cost); native primitives drive worker mechanism. Surfaces as /aiwg-mission in Codex (AIWG-owned, no plugin dependency).
Config-driven release orchestration — reads .aiwg/release.config plus optional .aiwg/releases/<plan-id> sidecars and walks the selected release plan's gates
Update AIWG CLI and redeploy frameworks/tools to current project without leaving the session
| name | memory-query-capture |
| description | Capture query synthesis as durable pages in semantic memory |
| namespace | aiwg |
| category | kernel |
| platforms | ["claude","copilot","cursor","factory","windsurf","warp","codex","opencode","openclaw","hermes"] |
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.
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.
Consumer ID to write against. Resolved via ADR-021 D4 precedence: explicit > wrapper > auto-detect.
Page type: synthesis, comparison, analysis, or gap. If omitted, determined by heuristic or user prompt.
Page title. If omitted, derived from content via headline extraction or summarization.
Suggested automatically when a query response exceeds a length/value threshold. The system presents a capture prompt; the user confirms or dismisses.
User invokes directly: "save this as a page", "capture that comparison", or calls memory-query-capture with parameters.
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.
--type flag, content heuristic, or user prompt.memory.topology.derivedPages from consumer's manifest.json and select the matching subdirectory (derivedPages.synthesis, derivedPages.comparison, etc.).--title flag or derived from content (first heading, key noun phrase, or summarized label).crossRefStyle setting.memory-log-append with --op query-capture and metadata about the captured page.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.
Follows ADR-021 D4 precedence:
--consumer flag provided on invocation..aiwg/frameworks/registry.json for the active consumer with a memory.topology contract.If no consumer can be resolved, abort with a clear error requesting --consumer.
The consumer's manifest.json declares a crossRefStyle — one of:
wikilink — [[page-name]]markdown — [page name](relative/path.md)at-mention — @consumer/path/to/page.mdThe skill reads this setting and formats all source-page links accordingly.
memory-log-append are non-blocking — the page write is the primary operation.derivedPages mapping for the resolved type, fall back to the consumer's base memory directory.@semantic-memory/schemas/memory-log-event.md
# 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"
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, Fortemi, or another backend without changing this skill, configure .aiwg/storage.config (#934).
Fortemi storage routing here is only a persistence backend choice. It does not
switch semantic-memory query capture to the Fortemi Core index/search backend;
memory records join that preview through the artifact export/sync path and are
queried with explicit --backend fortemi-core graph commands.
When this skill needs to read or write memory artifacts from a Bash step:
aiwg memory path # resolved root (fs only)
aiwg memory list --prefix research-complete/
aiwg memory get research-complete/index.md
echo "# index" | aiwg memory put research-complete/index.md
echo '{"op":"ingest","summary":"foo"}' | aiwg memory append-log research-complete/.log.jsonl
The aiwg memory append-log subcommand uses atomic O_APPEND (#976) on the fs backend — concurrent appenders don't race.