[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CAPQ4NT8G0MRJR8E45ZC3Z":3,"skill-same:01M6CAPQ4NT8G0MRJR8E45ZC3Z":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M6CAPQ4NT8G0MRJR8E45ZC3Z","memory-query-capture","语义记忆页面沉淀","Capture query synthesis as durable pages in semantic memory","将查询综合结果捕获为语义记忆中的持久页面。","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsemantic-memory\u002Fskills\u002Fmemory-query-capture\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TRAEZFJ43R95HPEBJYG","知识工作者","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRFRAYBCBW9WKDY9TCSHY3","知识管理与沉淀","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40],"memory","capture","memory query capture","query","kernel","Synthesis","pages","as","semantic","semantic memory","2026-11-10 10:12:30",false,"---\nname: memory-query-capture\ndescription: Capture query synthesis as durable pages in semantic memory\nnamespace: aiwg\ncategory: kernel\nplatforms: [all]\n---\n\n# memory-query-capture\n\nCapture 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.\n\n## When to Use\n\nAny 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.\n\n## Parameters\n\n### --consumer (optional)\nConsumer ID to write against. Resolved via ADR-021 D4 precedence: explicit > wrapper > auto-detect.\n\n### --type (optional)\nPage type: `synthesis`, `comparison`, `analysis`, or `gap`. If omitted, determined by heuristic or user prompt.\n\n### --title (optional)\nPage title. If omitted, derived from content via headline extraction or summarization.\n\n## Invocation Modes\n\n### Ambient mode\nSuggested automatically when a query response exceeds a length\u002Fvalue threshold. The system presents a capture prompt; the user confirms or dismisses.\n\n### Explicit mode\nUser invokes directly: \"save this as a page\", \"capture that comparison\", or calls `memory-query-capture` with parameters.\n\n### Skill-chain mode\nAny skill can call `memory-query-capture` as a final step after producing analytical output. The calling skill passes `--type` and `--title` to skip heuristics.\n\n## Operation\n\n1. **Capture synthesis** — extract the last assistant synthesis from conversation state.\n2. **Determine page type** — from `--type` flag, content heuristic, or user prompt.\n3. **Resolve consumer** — determine target consumer via ADR-021 D4 precedence (explicit > wrapper > auto-detect).\n4. **Resolve destination** — read `memory.topology.derivedPages` from consumer's `manifest.json` and select the matching subdirectory (`derivedPages.synthesis`, `derivedPages.comparison`, etc.).\n5. **Title the page** — from `--title` flag or derived from content (first heading, key noun phrase, or summarized label).\n6. **Add cross-references** — identify source pages cited in the synthesis and insert cross-reference links per the consumer's `crossRefStyle` setting.\n7. **Write page** — create the Markdown file at the resolved destination path.\n8. **Update index and log** — call `memory-log-append` with `--op query-capture` and metadata about the captured page.\n9. **Mark provenance** (optional) — record query origin, model actor, and sources cited in a provenance block at the end of the page.\n\n## Page-Type Heuristics\n\nWhen `--type` is not provided, the skill inspects the synthesis content:\n\n| Content pattern | Assigned type |\n|-----------------|---------------|\n| Comparison table, side-by-side columns | `comparison` |\n| Narrative prose with connective reasoning | `synthesis` |\n| Gap analysis, missing coverage, \"what's absent\" | `gap` |\n| Bullet-point assessment, evaluation criteria | `analysis` |\n\nIf the heuristic is ambiguous, prompt the user to select.\n\n## Consumer Resolution\n\nFollows ADR-021 D4 precedence:\n\n1. **Explicit** — `--consumer` flag provided on invocation.\n2. **Wrapper** — a parent skill passes consumer context down the chain.\n3. **Auto-detect** — inspect `.aiwg\u002Fframeworks\u002Fregistry.json` for the active consumer with a `memory.topology` contract.\n\nIf no consumer can be resolved, abort with a clear error requesting `--consumer`.\n\n## Cross-Reference Style\n\nThe consumer's `manifest.json` declares a `crossRefStyle` — one of:\n\n- `wikilink` — `[[page-name]]`\n- `markdown` — `[page name](relative\u002Fpath.md)`\n- `at-mention` — `@consumer\u002Fpath\u002Fto\u002Fpage.md`\n\nThe skill reads this setting and formats all source-page links accordingly.\n\n## Error Handling\n\n- If no synthesis content is available in conversation state, report \"nothing to capture\" and exit.\n- If the destination directory does not exist, create it before writing.\n- Log write failures via `memory-log-append` are **non-blocking** — the page write is the primary operation.\n- If consumer topology lacks a `derivedPages` mapping for the resolved type, fall back to the consumer's base memory directory.\n\n## Schema Reference\n\n@semantic-memory\u002Fschemas\u002Fmemory-log-event.md\n\n## Examples\n\n```\n# Explicit capture after a deep comparison\nmemory-query-capture --consumer research-complete --type comparison --title \"Redis vs Valkey feature matrix\"\n\n# Ambient capture (system-suggested, user confirms)\n> Your comparison of caching strategies looks worth preserving. Capture as a page? [Y\u002Fn]\nmemory-query-capture --type synthesis\n\n# Skill-chain: architecture-evolution calls capture after producing assessment\nmemory-query-capture --consumer sdlc-complete --type analysis --title \"Microservices migration readiness\"\n```\n\n## Storage Routing (#934, #966)\n\nThis skill's persistence flows through `resolveStorage('memory')`. On the default `fs` backend the memory subsystem lives at `.aiwg\u002Fmemory\u002F` 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\u002Fstorage.config` (#934).\n\nFortemi storage routing here is only a persistence backend choice. It does not\nswitch semantic-memory query capture to the Fortemi Core index\u002Fsearch backend;\nmemory records join that preview through the artifact export\u002Fsync path and are\nqueried with explicit `--backend fortemi-core` graph commands.\n\nWhen this skill needs to read or write memory artifacts from a Bash step:\n\n```bash\naiwg memory path                        # resolved root (fs only)\naiwg memory list --prefix research-complete\u002F\naiwg memory get research-complete\u002Findex.md\necho \"# index\" | aiwg memory put research-complete\u002Findex.md\necho '{\"op\":\"ingest\",\"summary\":\"foo\"}' | aiwg memory append-log research-complete\u002F.log.jsonl\n```\n\nThe `aiwg memory append-log` subcommand uses atomic `O_APPEND` (#976) on the fs backend — concurrent appenders don't race.\n","# memory-query-capture\n\nCapture 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.\n\n## When to Use\n\nAny 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.\n\n## Parameters\n\n### --consumer (optional)\nConsumer ID to write against. Resolved via ADR-021 D4 precedence: explicit > wrapper > auto-detect.\n\n### --type (optional)\nPage type: `synthesis`, `comparison`, `analysis`, or `gap`. If omitted, determined by heuristic or user prompt.\n\n### --title (optional)\nPage title. If omitted, derived from content via headline extraction or summarization.\n\n## Invocation Modes\n\n### Ambient mode\nSuggested automatically when a query response exceeds a length\u002Fvalue threshold. The system presents a capture prompt; the user confirms or dismisses.\n\n### Explicit mode\nUser invokes directly: \"save this as a page\", \"capture that comparison\", or calls `memory-query-capture` with parameters.\n\n### Skill-chain mode\nAny skill can call `memory-query-capture` as a final step after producing analytical output. The calling skill passes `--type` and `--title` to skip heuristics.\n\n## Operation\n\n1. **Capture synthesis** — extract the last assistant synthesis from conversation state.\n2. **Determine page type** — from `--type` flag, content heuristic, or user prompt.\n3. **Resolve consumer** — determine target consumer via ADR-021 D4 precedence (explicit > wrapper > auto-detect).\n4. **Resolve destination** — read `memory.topology.derivedPages` from consumer's `manifest.json` and select the matching subdirectory (`derivedPages.synthesis`, `derivedPages.comparison`, etc.).\n5. **Title the page** — from `--title` flag or derived from content (first heading, key noun phrase, or summarized label).\n6. **Add cross-references** — identify source pages cited in the synthesis and insert cross-reference links per the consumer's `crossRefStyle` setting.\n7. **Write page** — create the Markdown file at the resolved destination path.\n8. **Update index and log** — call `memory-log-append` with `--op query-capture` and metadata about the captured page.\n9. **Mark provenance** (optional) — record query origin, model actor, and sources cited in a provenance block at the end of the page.\n\n## Page-Type Heuristics\n\nWhen `--type` is not provided, the skill inspects the synthesis content:\n\n| Content pattern | Assigned type |\n|-----------------|---------------|\n| Comparison table, side-by-side columns | `comparison` |\n| Narrative prose with connective reasoning | `synthesis` |\n| Gap analysis, missing coverage, \"what's absent\" | `gap` |\n| Bullet-point assessment, evaluation criteria | `analysis` |\n\nIf the heuristic is ambiguous, prompt the user to select.\n\n## Consumer Resolution\n\nFollows ADR-021 D4 precedence:\n\n1. **Explicit** — `--consumer` flag provided on invocation.\n2. **Wrapper** — a parent skill passes consumer context down the chain.\n3. **Auto-detect** — inspect `.aiwg\u002Fframeworks\u002Fregistry.json` for the active consumer with a `memory.topology` contract.\n\nIf no consumer can be resolved, abort with a clear error requesting `--consumer`.\n\n## Cross-Reference Style\n\nThe consumer's `manifest.json` declares a `crossRefStyle` — one of:\n\n- `wikilink` — `[[page-name]]`\n- `markdown` — `[page name](relative\u002Fpath.md)`\n- `at-mention` — `@consumer\u002Fpath\u002Fto\u002Fpage.md`\n\nThe skill reads this setting and formats all source-page links accordingly.\n\n## Error Handling\n\n- If no synthesis content is available in conversation state, report \"nothing to capture\" and exit.\n- If the destination directory does not exist, create it before writing.\n- Log write failures via `memory-log-append` are **non-blocking** — the page write is the primary operation.\n- If consumer topology lacks a `derivedPages` mapping for the resolved type, fall back to the consumer's base memory directory.\n\n## Schema Reference\n\n@semantic-memory\u002Fschemas\u002Fmemory-log-event.md\n\n## Examples\n\n```\n# Explicit capture after a deep comparison\nmemory-query-capture --consumer research-complete --type comparison --title \"Redis vs Valkey feature matrix\"\n\n# Ambient capture (system-suggested, user confirms)\n> Your comparison of caching strategies looks worth preserving. Capture as a page? [Y\u002Fn]\nmemory-query-capture --type synthesis\n\n# Skill-chain: architecture-evolution calls capture after producing assessment\nmemory-query-capture --consumer sdlc-complete --type analysis --title \"Microservices migration readiness\"\n```\n\n## Storage Routing (#934, #966)\n\nThis skill's persistence flows through `resolveStorage('memory')`. On the default `fs` backend the memory subsystem lives at `.aiwg\u002Fmemory\u002F` 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\u002Fstorage.config` (#934).\n\nFortemi storage routing here is only a persistence backend choice. It does not\nswitch semantic-memory query capture to the Fortemi Core index\u002Fsearch backend;\nmemory records join that preview through the artifact export\u002Fsync path and are\nqueried with explicit `--backend fortemi-core` graph commands.\n\nWhen this skill needs to read or write memory artifacts from a Bash step:\n\n```bash\naiwg memory path                        # resolved root (fs only)\naiwg memory list --prefix research-complete\u002F\naiwg memory get research-complete\u002Findex.md\necho \"# index\" | aiwg memory put research-complete\u002Findex.md\necho '{\"op\":\"ingest\",\"summary\":\"foo\"}' | aiwg memory append-log research-complete\u002F.log.jsonl\n```\n\nThe `aiwg memory append-log` subcommand uses atomic `O_APPEND` (#976) on the fs backend — concurrent appenders don't race.\n",{"name":5,"category":35,"namespace":46,"platforms":47,"description":7},"aiwg",[48],"all","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fplugins\u002Fsemantic-memory\u002Fskills\u002Fmemory-query-capture",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":9,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add jmagly\u002Faiwg --skill memory-query-capture",{"tool":65,"command":66},"bunx","bunx skills add jmagly\u002Faiwg --skill memory-query-capture",{"tool":68,"command":69},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill memory-query-capture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsemantic-memory\u002Fskills\u002Fmemory-query-capture\u002FSKILL.md",true,[],[74,82,87,114,134,139],{"skillNo":75,"name":76,"nameZh":17,"description":77,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":81},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":83,"name":76,"nameZh":17,"description":77,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":81},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":17,"description":90,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":41},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113],"hardening","host","host hardening","verification","secrets","read","request","remediation","recommendations","audit","plan","port","bind","Bash","access","only","retention","re","never","firewall",{"skillNo":115,"name":116,"nameZh":17,"description":117,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":41},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[121,122,123,124,125,126,99,127,105,112,107,128,95,129,109,130,131,113,132,133],"analysis","exposure analysis","collection","reconstruction","operator","write","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":135,"name":89,"nameZh":17,"description":90,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":41},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[94,95,96,111,112,113,106,110,102,98,99,100,101,103,104,105,97,107,108,109],{"skillNo":140,"name":116,"nameZh":17,"description":117,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":41},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[121,122,133,132,125,131,130,109,124,126,99,127,105,123,107,128,95,113,112,129]]