[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C2HW2R5V49K5FP5YJ9HDBD":3,"skill-same:01M6C2HW2R5V49K5FP5YJ9HDBD":90},{"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":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":66,"commitSha":67,"skillDirectory":68,"forksCount":69,"repositoryHtmlUrl":70,"repositoryHomepageUrl":71,"ownerHtmlUrl":72,"ownerBlogUrl":73,"ownerDescription":74,"updatedAt":75,"install":76,"resources":89},"01M6C2HW2R5V49K5FP5YJ9HDBD","ralph-memory","AI 语义记忆管理","Manage Al semantic memory entries — list, query, and clear lessons learned across loop iterations","管理 AI 语义记忆条目——列出、查询和清除跨循环迭代积累的经验教训","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\u002Fagent-loop\u002Fskills\u002Fralph-memory\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],"memory","ralph","ralph memory","lessons","openclaw","semantic memory","learned","entries","efficiency","across","query","manage","list","write","read","haiku","hermes","text","loop","code","automation","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: ralph-memory\nplatforms: [all]\ndescription: Manage Al semantic memory entries — list, query, and clear lessons learned across loop iterations\ncommandHint:\n  argumentHint: \"\u003Clist|query|clear> [--loop-id \u003Cid>] [--query \u003Ctext>] [--since \u003Cdate>]\"\n  allowedTools: Read, Write\n  model: haiku\n  category: automation\n  platforms: [claude-code, hermes, openclaw]\n  modelRole: efficiency\n  modelTier: economy\n---\n\n\u003C!-- AIWG-SKILL-CALLOUT -->\n> **Skill access pattern (post-kernel-pivot, 2026.5+)**\n>\n> Skill names referenced in this document are AIWG skills, **not slash commands**. Most are not kernel-listed and cannot be invoked as `\u002Fskill-name` by the platform. Reach them via:\n>\n> ```bash\n> aiwg discover \"\u003Ccapability>\"\n> aiwg show skill \u003Cname> --body\n> ```\n>\n> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `steward`) are directly invokable as slash commands. See [skill-discovery rule](https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Frules\u002Fskill-discovery.md).\n\n\n# Al Memory\n\nInspect and manage the semantic memory that Al accumulates across loop iterations. Memory entries record lessons learned, failure patterns, and success patterns so that later iterations — and future loops on similar tasks — benefit from what earlier attempts discovered.\n\n## HITL authorization checkpoints\n\nBefore a removal confirmation below, apply\n[agent-loop authorization checkpoints](..\u002F..\u002Fdocs\u002Fhitl-authorization.md) and call\n`aiwg config authorization check --action-file \"$ACTION_FILE\" --target \"$TARGET_REPO\"`.\nOnly `auto-authorized` with a signed receipt skips a workflow prompt. Keep\nexisting prompts\u002Frefusals otherwise; platform prompts are never bypassed.\nMemory deletion without a complete rollback remains irreversible and requires review.\n\n## Natural Language Triggers\n\nUsers may say:\n- \"ralph memory\"\n- \"ralph memories\"\n- \"list ralph memory\"\n- \"query ralph memory\"\n- \"what has ralph learned\"\n- \"show ralph lessons\"\n- \"clear ralph memory\"\n\n## Parameters\n\n### Subcommand (required)\nOne of `list`, `query`, or `clear`.\n\n### --loop-id (optional)\nScope the operation to a specific loop's memory. If omitted, operates on the global memory store (`.aiwg\u002Fralph\u002Fmemory.json`).\n\n```\n\u002Fralph-memory list --loop-id abc123\n```\n\n### --query (optional, used with `query` subcommand)\nText to search for in memory entries. Matches against `lesson`, `pattern`, `context`, and `tags` fields.\n\n```\n\u002Fralph-memory query --query \"auth mocks\"\n```\n\n### --since (optional)\nFilter entries created on or after this date. Accepts ISO 8601 date (`2026-04-01`) or relative expressions (`7d`, `2w`).\n\n```\n\u002Fralph-memory list --since 7d\n```\n\n## Memory Entry Schema\n\nEach entry in `.aiwg\u002Fralph\u002Fmemory.json` follows this structure:\n\n```json\n{\n  \"id\": \"mem_a1b2c3\",\n  \"loopId\": \"abc123\",\n  \"iteration\": 2,\n  \"createdAt\": \"2026-04-01T10:42:00Z\",\n  \"type\": \"failure_pattern\",\n  \"lesson\": \"Auth mocks must be initialized inside beforeEach, not at module scope\",\n  \"context\": \"src\u002Fauth\u002Fauth.test.ts iteration 2 failure\",\n  \"tags\": [\"auth\", \"mocks\", \"jest\"],\n  \"confidence\": 0.9\n}\n```\n\n**Entry types**:\n- `lesson_learned` — General insight extracted from an iteration\n- `failure_pattern` — Recurring error pattern to avoid\n- `success_pattern` — Approach that worked and should be repeated\n\n## Behavior\n\n### `list` Subcommand\n\n1. Read the memory store (scoped to `--loop-id` if provided, otherwise global)\n2. Apply `--since` filter if provided\n3. Display a formatted table of all entries, sorted by `createdAt` descending\n\n**Output**:\n```\nAl Memory — 8 entries\n\n| ID       | Type            | Loop   | Iter | Lesson                                              | Date       |\n|----------|-----------------|--------|------|-----------------------------------------------------|------------|\n| mem_a1b2 | failure_pattern | abc123 | 2    | Auth mocks must be in beforeEach, not module scope  | 2026-04-01 |\n| mem_c3d4 | lesson_learned  | abc123 | 3    | Use jest.resetAllMocks() in afterEach               | 2026-04-01 |\n| mem_e5f6 | success_pattern | def456 | 5    | ESM imports require .js extension in TypeScript     | 2026-03-28 |\n| mem_g7h8 | failure_pattern | def456 | 2    | ts-node does not support isolatedModules by default | 2026-03-28 |\n...\n\nUse \u002Fralph-memory query --query \"\u003Ctext>\" to search.\n```\n\n**If no entries exist**:\n```\nNo memory entries found.\n\nAl accumulates memory as it runs loops. Start a loop:\n  \u002Fralph \"your task\" --completion \"criteria\"\n```\n\n### `query` Subcommand\n\n1. Read all memory entries (filtered by `--loop-id` and `--since` if provided)\n2. Score each entry against the `--query` text using substring and tag matching\n3. Return the top matches, ranked by relevance score descending\n\n**Output**:\n```\nAl Memory — query: \"auth mocks\"\n\n3 matching entries (ranked by relevance):\n\n1. [mem_a1b2] failure_pattern — confidence 0.90\n   Lesson: Auth mocks must be initialized inside beforeEach, not at module scope\n   Context: src\u002Fauth\u002Fauth.test.ts iteration 2\n   Tags: auth, mocks, jest\n   Loop: abc123, Iter: 2, Date: 2026-04-01\n\n2. [mem_c3d4] lesson_learned — confidence 0.80\n   Lesson: Use jest.resetAllMocks() in afterEach to prevent mock state leakage\n   Context: src\u002Fauth\u002Fauth.test.ts iteration 3\n   Tags: auth, jest, cleanup\n   Loop: abc123, Iter: 3, Date: 2026-04-01\n\n3. [mem_x9y0] failure_pattern — confidence 0.60\n   Lesson: Passport mock must stub req.user before middleware chain\n   Context: src\u002Fauth\u002Fmiddleware.test.ts\n   Tags: auth, passport, mocks\n   Loop: ghi789, Iter: 1, Date: 2026-03-25\n```\n\n**No matches**:\n```\nNo memory entries match \"auth mocks\".\n\nTry broader terms or list all entries:\n  \u002Fralph-memory list\n```\n\n### `clear` Subcommand\n\n1. If `--loop-id` is provided, delete only entries belonging to that loop\n2. Otherwise, prepare to clear the entire memory store\n3. Show a confirmation prompt before deleting\n\n**Confirmation prompt**:\n```\nThis will permanently delete 8 memory entries.\n\nEntries by loop:\n  abc123 — 3 entries (Fix auth tests, 2026-04-01)\n  def456 — 4 entries (ESM migration, 2026-03-28)\n  ghi789 — 1 entry  (Middleware fix, 2026-03-25)\n\nType 'yes' to confirm:\n```\n\n**After clearing**:\n```\nAl memory cleared. 8 entries deleted.\n\nMemory file reset: .aiwg\u002Fralph\u002Fmemory.json\n```\n\n**Loop-scoped clear**:\n```\nCleared 3 memory entries for loop abc123.\n\nRemaining entries: 5 (in other loops)\n```\n\n## Memory File Locations\n\n| Scope | Path |\n|-------|------|\n| Global (all loops) | `.aiwg\u002Fralph\u002Fmemory.json` |\n| External loop global | `.aiwg\u002Fralph-external\u002Fmemory.json` |\n| Per-loop (external) | `.aiwg\u002Fralph-external\u002Floops\u002F\u003Cid>.json` (embedded `learnings` field) |\n\n## Error Handling\n\n**Memory file missing**:\n```\nNo Al memory found at .aiwg\u002Fralph\u002Fmemory.json.\n\nAl has not accumulated any memory yet. Run a loop first:\n  \u002Fralph \"your task\" --completion \"criteria\"\n```\n\n**Corrupted memory file**:\n```\nMemory file is not valid JSON: .aiwg\u002Fralph\u002Fmemory.json\n\nOptions:\n1. Delete and start fresh: rm .aiwg\u002Fralph\u002Fmemory.json\n2. Inspect manually to repair\n```\n\n**Missing --query for query subcommand**:\n```\nError: --query is required for the 'query' subcommand.\n\nUsage:\n  \u002Fralph-memory query --query \"auth mocks\"\n  \u002Fralph-memory query --query \"typescript\" --since 7d\n```\n\n## Examples\n\n### Example 1: List all memory entries\n```\n\u002Fralph-memory list\n```\n**Response**: Table of all accumulated Al memory entries, newest first.\n\n### Example 2: List entries from the last week\n```\n\u002Fralph-memory list --since 7d\n```\n**Response**: Only entries created in the last 7 days.\n\n### Example 3: Query for relevant memories before starting a task\n```\n\u002Fralph-memory query --query \"typescript esm\"\n```\n**Response**: Top matching entries about TypeScript ESM, ranked by relevance.\n\n### Example 4: List memories from a specific loop\n```\n\u002Fralph-memory list --loop-id abc123\n```\n**Response**: Only entries generated during loop `abc123`.\n\n### Example 5: Clear memories from a completed loop\n```\n\u002Fralph-memory clear --loop-id abc123\n```\n**Response**: Prompts confirmation, then deletes the 3 entries for loop abc123.\n\n### Example 6: Full reset\n```\n\u002Fralph-memory clear\n```\n**Response**: Prompts confirmation listing all entries by loop, then deletes everything.\n\n## Related\n\n- `ralph` — Loop that generates memory entries\n- `ralph-external` — External loop with its own memory layer\n- `ralph-status` — Check loop status and iteration history\n- `ralph-reflect` — Deeper reflection and memory promotion\n\n## References\n\n- @$AIWG_ROOT\u002Fsrc\u002Fcli\u002Fhandlers\u002Fralph.ts — Al CLI handler\n- @$AIWG_ROOT\u002Ftools\u002Fralph-external\u002Fmemory-manager.mjs — Memory storage and retrieval\n- @$AIWG_ROOT\u002Ftools\u002Fralph-external\u002Flib\u002Fsemantic-memory.mjs — Semantic memory layer\n- @$AIWG_ROOT\u002Ftools\u002Fralph-external\u002Flib\u002Fmemory-retrieval.mjs — Memory query logic\n- @$AIWG_ROOT\u002Ftools\u002Fralph-external\u002Flib\u002Fmemory-promotion.mjs — Cross-task memory promotion\n- @$AIWG_ROOT\u002F${CLAUDE_PLUGIN_ROOT}\u002FREADME.md — Al documentation\n\n## Storage Routing (#934, #967)\n\nThis skill's persistence flows through `resolveStorage('memory')`. On the default `fs` backend the agent-loop memory lives at `.aiwg\u002Fralph\u002Fmemory.json` (and `.aiwg\u002Fralph-external\u002Fmemory.json` for external loops). To redirect into Obsidian, Logseq, Fortemi, or another backend without changing this skill, configure `roots.memory` or `backends.memory` in `.aiwg\u002Fstorage.config` (#934).\n\nWhen this skill needs to read\u002Fwrite loop memory from a Bash step, prefer the storage-routed CLI:\n\n```bash\naiwg memory get ralph\u002Fmemory.json                # read global ralph memory\necho '{\"loop_id\":\"x\",\"learnings\":[]}' | aiwg memory put ralph\u002Fmemory.json\necho '{\"event\":\"learned\",\"ts\":\"...\"}' | aiwg memory append-log ralph\u002Flearning.jsonl\n```\n\nThe legacy direct-fs paths (`.aiwg\u002Fralph\u002Fmemory.json`) continue to work on the default `fs` backend — they're byte-identical to what the adapter writes — but only the adapter route honors `storage.config` redirection.\n","\u003C!-- AIWG-SKILL-CALLOUT -->\n> **Skill access pattern (post-kernel-pivot, 2026.5+)**\n>\n> Skill names referenced in this document are AIWG skills, **not slash commands**. Most are not kernel-listed and cannot be invoked as `\u002Fskill-name` by the platform. Reach them via:\n>\n> ```bash\n> aiwg discover \"\u003Ccapability>\"\n> aiwg show skill \u003Cname> --body\n> ```\n>\n> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `steward`) are directly invokable as slash commands. See [skill-discovery rule](https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Frules\u002Fskill-discovery.md).\n\n\n# Al Memory\n\nInspect and manage the semantic memory that Al accumulates across loop iterations. Memory entries record lessons learned, failure patterns, and success patterns so that later iterations — and future loops on similar tasks — benefit from what earlier attempts discovered.\n\n## HITL authorization checkpoints\n\nBefore a removal confirmation below, apply\n[agent-loop authorization checkpoints](..\u002F..\u002Fdocs\u002Fhitl-authorization.md) and call\n`aiwg config authorization check --action-file \"$ACTION_FILE\" --target \"$TARGET_REPO\"`.\nOnly `auto-authorized` with a signed receipt skips a workflow prompt. Keep\nexisting prompts\u002Frefusals otherwise; platform prompts are never bypassed.\nMemory deletion without a complete rollback remains irreversible and requires review.\n\n## Natural Language Triggers\n\nUsers may say:\n- \"ralph memory\"\n- \"ralph memories\"\n- \"list ralph memory\"\n- \"query ralph memory\"\n- \"what has ralph learned\"\n- \"show ralph lessons\"\n- \"clear ralph memory\"\n\n## Parameters\n\n### Subcommand (required)\nOne of `list`, `query`, or `clear`.\n\n### --loop-id (optional)\nScope the operation to a specific loop's memory. If omitted, operates on the global memory store (`.aiwg\u002Fralph\u002Fmemory.json`).\n\n```\n\u002Fralph-memory list --loop-id abc123\n```\n\n### --query (optional, used with `query` subcommand)\nText to search for in memory entries. Matches against `lesson`, `pattern`, `context`, and `tags` fields.\n\n```\n\u002Fralph-memory query --query \"auth mocks\"\n```\n\n### --since (optional)\nFilter entries created on or after this date. Accepts ISO 8601 date (`2026-04-01`) or relative expressions (`7d`, `2w`).\n\n```\n\u002Fralph-memory list --since 7d\n```\n\n## Memory Entry Schema\n\nEach entry in `.aiwg\u002Fralph\u002Fmemory.json` follows this structure:\n\n```json\n{\n  \"id\": \"mem_a1b2c3\",\n  \"loopId\": \"abc123\",\n  \"iteration\": 2,\n  \"createdAt\": \"2026-04-01T10:42:00Z\",\n  \"type\": \"failure_pattern\",\n  \"lesson\": \"Auth mocks must be initialized inside beforeEach, not at module scope\",\n  \"context\": \"src\u002Fauth\u002Fauth.test.ts iteration 2 failure\",\n  \"tags\": [\"auth\", \"mocks\", \"jest\"],\n  \"confidence\": 0.9\n}\n```\n\n**Entry types**:\n- `lesson_learned` — General insight extracted from an iteration\n- `failure_pattern` — Recurring error pattern to avoid\n- `success_pattern` — Approach that worked and should be repeated\n\n## Behavior\n\n### `list` Subcommand\n\n1. Read the memory store (scoped to `--loop-id` if provided, otherwise global)\n2. Apply `--since` filter if provided\n3. Display a formatted table of all entries, sorted by `createdAt` descending\n\n**Output**:\n```\nAl Memory — 8 entries\n\n| ID       | Type            | Loop   | Iter | Lesson                                              | Date       |\n|----------|-----------------|--------|------|-----------------------------------------------------|------------|\n| mem_a1b2 | failure_pattern | abc123 | 2    | Auth mocks must be in beforeEach, not module scope  | 2026-04-01 |\n| mem_c3d4 | lesson_learned  | abc123 | 3    | Use jest.resetAllMocks() in afterEach               | 2026-04-01 |\n| mem_e5f6 | success_pattern | def456 | 5    | ESM imports require .js extension in TypeScript     | 2026-03-28 |\n| mem_g7h8 | failure_pattern | def456 | 2    | ts-node does not support isolatedModules by default | 2026-03-28 |\n...\n\nUse \u002Fralph-memory query --query \"\u003Ctext>\" to search.\n```\n\n**If no entries exist**:\n```\nNo memory entries found.\n\nAl accumulates memory as it runs loops. Start a loop:\n  \u002Fralph \"your task\" --completion \"criteria\"\n```\n\n### `query` Subcommand\n\n1. Read all memory entries (filtered by `--loop-id` and `--since` if provided)\n2. Score each entry against the `--query` text using substring and tag matching\n3. Return the top matches, ranked by relevance score descending\n\n**Output**:\n```\nAl Memory — query: \"auth mocks\"\n\n3 matching entries (ranked by relevance):\n\n1. [mem_a1b2] failure_pattern — confidence 0.90\n   Lesson: Auth mocks must be initialized inside beforeEach, not at module scope\n   Context: src\u002Fauth\u002Fauth.test.ts iteration 2\n   Tags: auth, mocks, jest\n   Loop: abc123, Iter: 2, Date: 2026-04-01\n\n2. [mem_c3d4] lesson_learned — confidence 0.80\n   Lesson: Use jest.resetAllMocks() in afterEach to prevent mock state leakage\n   Context: src\u002Fauth\u002Fauth.test.ts iteration 3\n   Tags: auth, jest, cleanup\n   Loop: abc123, Iter: 3, Date: 2026-04-01\n\n3. [mem_x9y0] failure_pattern — confidence 0.60\n   Lesson: Passport mock must stub req.user before middleware chain\n   Context: src\u002Fauth\u002Fmiddleware.test.ts\n   Tags: auth, passport, mocks\n   Loop: ghi789, Iter: 1, Date: 2026-03-25\n```\n\n**No matches**:\n```\nNo memory entries match \"auth mocks\".\n\nTry broader terms or list all entries:\n  \u002Fralph-memory list\n```\n\n### `clear` Subcommand\n\n1. If `--loop-id` is provided, delete only entries belonging to that loop\n2. Otherwise, prepare to clear the entire memory store\n3. Show a confirmation prompt before deleting\n\n**Confirmation prompt**:\n```\nThis will permanently delete 8 memory entries.\n\nEntries by loop:\n  abc123 — 3 entries (Fix auth tests, 2026-04-01)\n  def456 — 4 entries (ESM migration, 2026-03-28)\n  ghi789 — 1 entry  (Middleware fix, 2026-03-25)\n\nType 'yes' to confirm:\n```\n\n**After clearing**:\n```\nAl memory cleared. 8 entries deleted.\n\nMemory file reset: .aiwg\u002Fralph\u002Fmemory.json\n```\n\n**Loop-scoped clear**:\n```\nCleared 3 memory entries for loop abc123.\n\nRemaining entries: 5 (in other loops)\n```\n\n## Memory File Locations\n\n| Scope | Path |\n|-------|------|\n| Global (all loops) | `.aiwg\u002Fralph\u002Fmemory.json` |\n| External loop global | `.aiwg\u002Fralph-external\u002Fmemory.json` |\n| Per-loop (external) | `.aiwg\u002Fralph-external\u002Floops\u002F\u003Cid>.json` (embedded `learnings` field) |\n\n## Error Handling\n\n**Memory file missing**:\n```\nNo Al memory found at .aiwg\u002Fralph\u002Fmemory.json.\n\nAl has not accumulated any memory yet. Run a loop first:\n  \u002Fralph \"your task\" --completion \"criteria\"\n```\n\n**Corrupted memory file**:\n```\nMemory file is not valid JSON: .aiwg\u002Fralph\u002Fmemory.json\n\nOptions:\n1. Delete and start fresh: rm .aiwg\u002Fralph\u002Fmemory.json\n2. Inspect manually to repair\n```\n\n**Missing --query for query subcommand**:\n```\nError: --query is required for the 'query' subcommand.\n\nUsage:\n  \u002Fralph-memory query --query \"auth mocks\"\n  \u002Fralph-memory query --query \"typescript\" --since 7d\n```\n\n## Examples\n\n### Example 1: List all memory entries\n```\n\u002Fralph-memory list\n```\n**Response**: Table of all accumulated Al memory entries, newest first.\n\n### Example 2: List entries from the last week\n```\n\u002Fralph-memory list --since 7d\n```\n**Response**: Only entries created in the last 7 days.\n\n### Example 3: Query for relevant memories before starting a task\n```\n\u002Fralph-memory query --query \"typescript esm\"\n```\n**Response**: Top matching entries about TypeScript ESM, ranked by relevance.\n\n### Example 4: List memories from a specific loop\n```\n\u002Fralph-memory list --loop-id abc123\n```\n**Response**: Only entries generated during loop `abc123`.\n\n### Example 5: Clear memories from a completed loop\n```\n\u002Fralph-memory clear --loop-id abc123\n```\n**Response**: Prompts confirmation, then deletes the 3 entries for loop abc123.\n\n### Example 6: Full reset\n```\n\u002Fralph-memory clear\n```\n**Response**: Prompts confirmation listing all entries by loop, then deletes everything.\n\n## Related\n\n- `ralph` — Loop that generates memory entries\n- `ralph-external` — External loop with its own memory layer\n- `ralph-status` — Check loop status and iteration history\n- `ralph-reflect` — Deeper reflection and memory promotion\n\n## References\n\n- @$AIWG_ROOT\u002Fsrc\u002Fcli\u002Fhandlers\u002Fralph.ts — Al CLI handler\n- @$AIWG_ROOT\u002Ftools\u002Fralph-external\u002Fmemory-manager.mjs — Memory storage and retrieval\n- @$AIWG_ROOT\u002Ftools\u002Fralph-external\u002Flib\u002Fsemantic-memory.mjs — Semantic memory layer\n- @$AIWG_ROOT\u002Ftools\u002Fralph-external\u002Flib\u002Fmemory-retrieval.mjs — Memory query logic\n- @$AIWG_ROOT\u002Ftools\u002Fralph-external\u002Flib\u002Fmemory-promotion.mjs — Cross-task memory promotion\n- @$AIWG_ROOT\u002F${CLAUDE_PLUGIN_ROOT}\u002FREADME.md — Al documentation\n\n## Storage Routing (#934, #967)\n\nThis skill's persistence flows through `resolveStorage('memory')`. On the default `fs` backend the agent-loop memory lives at `.aiwg\u002Fralph\u002Fmemory.json` (and `.aiwg\u002Fralph-external\u002Fmemory.json` for external loops). To redirect into Obsidian, Logseq, Fortemi, or another backend without changing this skill, configure `roots.memory` or `backends.memory` in `.aiwg\u002Fstorage.config` (#934).\n\nWhen this skill needs to read\u002Fwrite loop memory from a Bash step, prefer the storage-routed CLI:\n\n```bash\naiwg memory get ralph\u002Fmemory.json                # read global ralph memory\necho '{\"loop_id\":\"x\",\"learnings\":[]}' | aiwg memory put ralph\u002Fmemory.json\necho '{\"event\":\"learned\",\"ts\":\"...\"}' | aiwg memory append-log ralph\u002Flearning.jsonl\n```\n\nThe legacy direct-fs paths (`.aiwg\u002Fralph\u002Fmemory.json`) continue to work on the default `fs` backend — they're byte-identical to what the adapter writes — but only the adapter route honors `storage.config` redirection.\n",{"name":5,"namespace":57,"platforms":58,"commandHint":60,"description":7},"aiwg",[59],"all",{"model":46,"category":51,"modelRole":39,"modelTier":61,"platforms":62,"allowedTools":64,"argumentHint":65},"economy",[63,47,35],"claude-code","Read, Write","\u003Clist|query|clear> [--loop-id \u003Cid>] [--query \u003Ctext>] [--since \u003Cdate>]","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fplugins\u002Fagent-loop\u002Fskills\u002Fralph-memory",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":77,"prompt":87,"zipAvailable":88},[78,81,84],{"tool":79,"command":80},"npx","npx skills add jmagly\u002Faiwg --skill ralph-memory",{"tool":82,"command":83},"bunx","bunx skills add jmagly\u002Faiwg --skill ralph-memory",{"tool":85,"command":86},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill ralph-memory","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fagent-loop\u002Fskills\u002Fralph-memory\u002FSKILL.md",true,[],[91,99,104,130,149,154],{"skillNo":92,"name":93,"nameZh":17,"description":94,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":98},"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":100,"name":93,"nameZh":17,"description":94,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":98},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":17,"description":107,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":52},"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",[],[111,112,113,114,115,45,116,117,118,119,120,121,122,123,124,125,126,127,128,129],"hardening","host","host hardening","verification","secrets","request","remediation","recommendations","audit","plan","port","bind","Bash","access","only","retention","re","never","firewall",{"skillNo":131,"name":132,"nameZh":17,"description":133,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":52},"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",[],[137,138,139,140,141,44,45,142,121,128,123,143,112,144,125,145,146,129,147,148],"analysis","exposure analysis","collection","reconstruction","operator","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":150,"name":106,"nameZh":17,"description":107,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":52},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[111,112,113,127,128,129,122,126,118,115,45,116,117,119,120,121,114,123,124,125],{"skillNo":155,"name":132,"nameZh":17,"description":133,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":52},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[137,138,148,147,141,146,145,125,140,44,45,142,121,139,123,143,112,129,128,144]]