基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jmagly/aiwg --skill ralph-memory命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
WCAG accessibility analysis for color palettes including contrast ratios, compliance checking, and remediation suggestions. Use when user needs to verify colors meet accessibility standards.
Generate, analyze, compare, export, and suggest color palettes using color theory. Use when user asks about colors, palettes, color schemes, or needs help choosing colors for a project.
Research current color trends from Pantone, architecture, film, and design. Use when user asks about trending colors, popular palettes, or wants research-backed color inspiration.
| namespace | aiwg |
| name | ralph-memory |
| platforms | ["all"] |
| description | Manage Al semantic memory entries — list, query, and clear lessons learned across loop iterations |
| commandHint | {"argumentHint":"<list|query|clear> [--loop-id <id>] [--query <text>] [--since <date>]","allowedTools":"Read, Write","model":"haiku","category":"automation","platforms":["claude-code","hermes","openclaw"],"modelRole":"efficiency","modelTier":"economy"} |
Skill access pattern (post-kernel-pivot, 2026.5+)
Skill names referenced in this document are AIWG skills, not slash commands. Most are not kernel-listed and cannot be invoked as
/skill-nameby the platform. Reach them via:aiwg discover "<capability>" aiwg show skill <name>Only kernel-listed skills (
aiwg-doctor,aiwg-refresh,aiwg-status,aiwg-help,use,steward) are directly invokable as slash commands. See skill-discovery rule.
Inspect 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.
Users may say:
One of list, query, or clear.
Scope the operation to a specific loop's memory. If omitted, operates on the global memory store (.aiwg/ralph/memory.json).
/ralph-memory list --loop-id abc123
query subcommand)Text to search for in memory entries. Matches against lesson, pattern, context, and tags fields.
/ralph-memory query --query "auth mocks"
Filter entries created on or after this date. Accepts ISO 8601 date (2026-04-01) or relative expressions (7d, 2w).
/ralph-memory list --since 7d
Each entry in .aiwg/ralph/memory.json follows this structure:
{
"id": "mem_a1b2c3",
"loopId": "abc123",
"iteration": 2,
"createdAt": "2026-04-01T10:42:00Z",
"type": "failure_pattern",
"lesson": "Auth mocks must be initialized inside beforeEach, not at module scope",
"context": "src/auth/auth.test.ts iteration 2 failure",
"tags": ["auth", "mocks", "jest"],
"confidence": 0.9
}
Entry types:
lesson_learned — General insight extracted from an iterationfailure_pattern — Recurring error pattern to avoidsuccess_pattern — Approach that worked and should be repeatedlist Subcommand--loop-id if provided, otherwise global)--since filter if providedcreatedAt descendingOutput:
Al Memory — 8 entries
| ID | Type | Loop | Iter | Lesson | Date |
|----------|-----------------|--------|------|-----------------------------------------------------|------------|
| mem_a1b2 | failure_pattern | abc123 | 2 | Auth mocks must be in beforeEach, not module scope | 2026-04-01 |
| mem_c3d4 | lesson_learned | abc123 | 3 | Use jest.resetAllMocks() in afterEach | 2026-04-01 |
| mem_e5f6 | success_pattern | def456 | 5 | ESM imports require .js extension in TypeScript | 2026-03-28 |
| mem_g7h8 | failure_pattern | def456 | 2 | ts-node does not support isolatedModules by default | 2026-03-28 |
...
Use /ralph-memory query --query "<text>" to search.
If no entries exist:
No memory entries found.
Al accumulates memory as it runs loops. Start a loop:
/ralph "your task" --completion "criteria"
query Subcommand--loop-id and --since if provided)--query text using substring and tag matchingOutput:
Al Memory — query: "auth mocks"
3 matching entries (ranked by relevance):
1. [mem_a1b2] failure_pattern — confidence 0.90
Lesson: Auth mocks must be initialized inside beforeEach, not at module scope
Context: src/auth/auth.test.ts iteration 2
Tags: auth, mocks, jest
Loop: abc123, Iter: 2, Date: 2026-04-01
2. [mem_c3d4] lesson_learned — confidence 0.80
Lesson: Use jest.resetAllMocks() in afterEach to prevent mock state leakage
Context: src/auth/auth.test.ts iteration 3
Tags: auth, jest, cleanup
Loop: abc123, Iter: 3, Date: 2026-04-01
3. [mem_x9y0] failure_pattern — confidence 0.60
Lesson: Passport mock must stub req.user before middleware chain
Context: src/auth/middleware.test.ts
Tags: auth, passport, mocks
Loop: ghi789, Iter: 1, Date: 2026-03-25
No matches:
No memory entries match "auth mocks".
Try broader terms or list all entries:
/ralph-memory list
clear Subcommand--loop-id is provided, delete only entries belonging to that loopConfirmation prompt:
This will permanently delete 8 memory entries.
Entries by loop:
abc123 — 3 entries (Fix auth tests, 2026-04-01)
def456 — 4 entries (ESM migration, 2026-03-28)
ghi789 — 1 entry (Middleware fix, 2026-03-25)
Type 'yes' to confirm:
After clearing:
Al memory cleared. 8 entries deleted.
Memory file reset: .aiwg/ralph/memory.json
Loop-scoped clear:
Cleared 3 memory entries for loop abc123.
Remaining entries: 5 (in other loops)
| Scope | Path |
|---|---|
| Global (all loops) | .aiwg/ralph/memory.json |
| External loop global | .aiwg/ralph-external/memory.json |
| Per-loop (external) | .aiwg/ralph-external/loops/<id>.json (embedded learnings field) |
Memory file missing:
No Al memory found at .aiwg/ralph/memory.json.
Al has not accumulated any memory yet. Run a loop first:
/ralph "your task" --completion "criteria"
Corrupted memory file:
Memory file is not valid JSON: .aiwg/ralph/memory.json
Options:
1. Delete and start fresh: rm .aiwg/ralph/memory.json
2. Inspect manually to repair
Missing --query for query subcommand:
Error: --query is required for the 'query' subcommand.
Usage:
/ralph-memory query --query "auth mocks"
/ralph-memory query --query "typescript" --since 7d
/ralph-memory list
Response: Table of all accumulated Al memory entries, newest first.
/ralph-memory list --since 7d
Response: Only entries created in the last 7 days.
/ralph-memory query --query "typescript esm"
Response: Top matching entries about TypeScript ESM, ranked by relevance.
/ralph-memory list --loop-id abc123
Response: Only entries generated during loop abc123.
/ralph-memory clear --loop-id abc123
Response: Prompts confirmation, then deletes the 3 entries for loop abc123.
/ralph-memory clear
Response: Prompts confirmation listing all entries by loop, then deletes everything.
ralph — Loop that generates memory entriesralph-external — External loop with its own memory layerralph-status — Check loop status and iteration historyralph-reflect — Deeper reflection and memory promotionThis skill's persistence flows through resolveStorage('memory'). On the default fs backend the agent-loop memory lives at .aiwg/ralph/memory.json (and .aiwg/ralph-external/memory.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/storage.config (#934).
When this skill needs to read/write loop memory from a Bash step, prefer the storage-routed CLI:
aiwg memory get ralph/memory.json # read global ralph memory
echo '{"loop_id":"x","learnings":[]}' | aiwg memory put ralph/memory.json
echo '{"event":"learned","ts":"..."}' | aiwg memory append-log ralph/learning.jsonl
The legacy direct-fs paths (.aiwg/ralph/memory.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.