oh-my-customcodex 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +6 -6
  2. package/dist/cli/index.js +168 -13
  3. package/dist/index.js +150 -8
  4. package/package.json +1 -1
  5. package/templates/.claude/agents/qa-engineer.md +7 -0
  6. package/templates/.claude/hooks/hooks.json +28 -0
  7. package/templates/.claude/hooks/scripts/agent-capability-precheck.sh +99 -0
  8. package/templates/.claude/hooks/scripts/agent-mode-guard.sh +14 -3
  9. package/templates/.claude/hooks/scripts/git-delegation-guard.sh +14 -5
  10. package/templates/.claude/hooks/scripts/plugin-cache-check.sh +42 -0
  11. package/templates/.claude/hooks/scripts/session-reflection.sh +106 -0
  12. package/templates/.claude/output-styles/korean-engineer.md +4 -0
  13. package/templates/.claude/rules/MUST-agent-identification.md +50 -22
  14. package/templates/.claude/rules/MUST-agent-teams.md +6 -2
  15. package/templates/.claude/rules/MUST-completion-verification.md +11 -0
  16. package/templates/.claude/rules/MUST-continuous-improvement.md +15 -1
  17. package/templates/.claude/rules/MUST-intent-transparency.md +29 -0
  18. package/templates/.claude/rules/MUST-language-policy.md +7 -0
  19. package/templates/.claude/rules/MUST-orchestrator-coordination.md +62 -0
  20. package/templates/.claude/rules/MUST-tool-identification.md +19 -0
  21. package/templates/.claude/rules/SHOULD-memory-integration.md +27 -12
  22. package/templates/.claude/skills/adversarial-review/SKILL.md +10 -0
  23. package/templates/.claude/skills/dev-review/SKILL.md +15 -5
  24. package/templates/.claude/skills/harness-export/SKILL.md +46 -0
  25. package/templates/.claude/skills/instinct-extractor/SKILL.md +54 -0
  26. package/templates/.claude/skills/manifest-install/SKILL.md +53 -0
  27. package/templates/.claude/skills/memory-management/SKILL.md +71 -12
  28. package/templates/.claude/skills/memory-recall/SKILL.md +6 -4
  29. package/templates/.claude/skills/memory-save/SKILL.md +8 -5
  30. package/templates/.claude/skills/pipeline/labels.md +55 -0
  31. package/templates/.claude/skills/sec-agentshield-wrapper/SKILL.md +49 -0
  32. package/templates/.claude/skills/systematic-debugging/SKILL.md +44 -0
  33. package/templates/.claude/skills/systematic-debugging/phases/amplification-detection.md +25 -0
  34. package/templates/.claude/skills/systematic-debugging/phases/fault-injection.md +31 -0
  35. package/templates/.claude/skills/systematic-debugging/phases/retry-cache-timeout-audit.md +27 -0
  36. package/templates/.claude/skills/systematic-debugging/phases/timeline-correlation.md +26 -0
  37. package/templates/.claude/statusline.sh +40 -9
  38. package/templates/AGENTS.md.en +6 -2
  39. package/templates/AGENTS.md.ko +6 -2
  40. package/templates/CLAUDE.md +6 -2
  41. package/templates/CLAUDE.md.en +6 -2
  42. package/templates/CLAUDE.md.ko +6 -2
  43. package/templates/README.md +110 -0
  44. package/templates/guides/agent-teams/troubleshooting.md +53 -0
  45. package/templates/guides/autonomous-challenge-lessons/README.md +43 -0
  46. package/templates/guides/claude-code/14-token-efficiency.md +6 -1
  47. package/templates/guides/claude-code/15-version-compatibility.md +86 -0
  48. package/templates/guides/claude-code-tracking.md +51 -0
  49. package/templates/guides/index.yaml +12 -0
  50. package/templates/manifest.json +4 -4
  51. package/templates/tests/tsconfig.json +7 -0
  52. package/templates/workflows/auto-dev.yaml +80 -5
@@ -13,6 +13,25 @@ Every tool call MUST be prefixed with agent and model identification:
13
13
 
14
14
  For parallel calls: list ALL identifications BEFORE the tool calls.
15
15
 
16
+ ## Short Response Discipline
17
+
18
+ Brief diagnostics and quick checks are not exempt. If a visible response will be followed by a tool call, include the tool prefix first even when the natural-language update is one sentence.
19
+
20
+ Anti-pattern:
21
+
22
+ ```text
23
+ 확인하겠습니다.
24
+ <tool call>
25
+ ```
26
+
27
+ Correct:
28
+
29
+ ```text
30
+ [Codex][gpt-5.5] → Tool: Bash
31
+ [Codex][gpt-5.5] → Target: git status --short
32
+ <tool call>
33
+ ```
34
+
16
35
  ### Common Violations to Avoid
17
36
 
18
37
  ```
@@ -5,9 +5,9 @@
5
5
  ## Architecture
6
6
 
7
7
  **Primary**: Native auto memory (`memory` field in agent frontmatter). No external dependencies.
8
- **Supplementary**: claude-mem MCP (optional, for cross-session search and temporal queries).
8
+ **Supplementary**: AgentMemory-compatible MCP or `omx-memory` for cross-session searchable recall; legacy `claude-mem` is fallback only.
9
9
 
10
- Rule: If native auto memory can handle it, do NOT use claude-mem.
10
+ Rule: If native auto memory can handle it, do NOT use a searchable MCP backend.
11
11
 
12
12
  ## Native Auto Memory
13
13
 
@@ -22,15 +22,23 @@ Agent frontmatter `memory: project|user|local` enables persistent memory:
22
22
  | `project` | `.codex/agent-memory/<name>/` | Yes |
23
23
  | `local` | `.codex/agent-memory-local/<name>/` | No |
24
24
 
25
- ## When to Use claude-mem
25
+ ## When to Use Searchable MCP Memory
26
26
 
27
- | Scenario | Native | claude-mem |
27
+ | Scenario | Native | AgentMemory-compatible / omx-memory |
28
28
  |----------|--------|------------|
29
29
  | Agent learns project patterns | Yes | |
30
30
  | Search across sessions | | Yes |
31
31
  | Temporal queries | | Yes |
32
32
  | Cross-agent sharing | | Yes |
33
33
 
34
+ <!-- DETAIL: Backend Selection and Split-Brain Guard
35
+
36
+ Prefer MCP tools named `memory_search`, `memory_add`, `observation_add`, and `memory_read`. Treat `chroma_query_documents`, `chroma_add_documents`, and `chroma_get_documents` as legacy `claude-mem` fallbacks.
37
+
38
+ If both backend families are available, warn before writing. Dual-write is acceptable only during an explicit migration window; outside that window, choose one canonical searchable backend and record which one was used in the session summary.
39
+
40
+ -->
41
+
34
42
  ## Best Practices
35
43
 
36
44
  - Consult memory before starting work
@@ -324,20 +332,21 @@ User signals session end
324
332
  2. Update native auto-memory (MEMORY.md)
325
333
  3. Return formatted summary to orchestrator
326
334
  → Orchestrator performs MCP saves directly:
327
- 1. claude-mem save (if available via ToolSearch)
335
+ 1. searchable memory save (AgentMemory-compatible or omx-memory, if available via ToolSearch)
336
+ 2. legacy claude-mem save only when it is the configured fallback
328
337
  (episodic-memory auto-indexes after session — no action needed)
329
338
  → Orchestrator confirms to user
330
339
  ```
331
340
 
332
341
  ### Responsibility Split
333
342
 
334
- MCP tools (claude-mem, episodic-memory) are **orchestrator-scoped** and not inherited by subagents. Therefore:
343
+ MCP tools (searchable memory backends, episodic-memory) are **orchestrator-scoped** and not inherited by subagents. Therefore:
335
344
 
336
345
  | Responsibility | Owner | Reason |
337
346
  |----------------|-------|--------|
338
347
  | Session summary collection | sys-memory-keeper | Domain expertise in memory formatting |
339
348
  | Native auto-memory (MEMORY.md) | sys-memory-keeper | Has Write access to memory directory |
340
- | claude-mem MCP save | Orchestrator | MCP tools only available at orchestrator level |
349
+ | Searchable memory MCP save | Orchestrator | MCP tools only available at orchestrator level |
341
350
  | episodic-memory | Automatic | Conversations are auto-indexed after session ends — no manual action needed |
342
351
 
343
352
  ### Dual-System Save
@@ -345,13 +354,14 @@ MCP tools (claude-mem, episodic-memory) are **orchestrator-scoped** and not inhe
345
354
  | System | Owner | Tool | Action | Required |
346
355
  |--------|-------|------|--------|----------|
347
356
  | Native auto-memory | sys-memory-keeper | Write | Update MEMORY.md with session learnings | Yes |
348
- | claude-mem | Orchestrator | `mcp__plugin_claude-mem_mcp-search__save_memory` | Save session summary with project, tasks, decisions | No (best-effort) |
357
+ | AgentMemory-compatible / omx-memory | Orchestrator | `memory_add` or `observation_add` | Save session summary with project, tasks, decisions | No (best-effort) |
358
+ | legacy claude-mem | Orchestrator | `chroma_add_documents` or compatible save wrapper | Fallback searchable save when no preferred backend exists | No (best-effort) |
349
359
  | episodic-memory | Automatic | (auto-indexed) | No action needed — conversations are indexed automatically after session ends | N/A |
350
360
  -->
351
361
 
352
362
  ### Session-End Self-Check (MANDATORY)
353
363
 
354
- (1) sys-memory-keeper updated MEMORY.md? (2) claude-mem save attempted? Both are required before confirming session-end to the user. See full self-check via Read tool.
364
+ (1) sys-memory-keeper updated MEMORY.md? (2) searchable memory save attempted when a backend is available? (3) If `omcustomcodex-feedback` skill is active, prompt user to trigger it? All three are required before confirming session-end to the user. See full self-check via Read tool.
355
365
 
356
366
  <!-- DETAIL: Session-End Self-Check (MANDATORY)
357
367
  ```
@@ -362,14 +372,19 @@ MCP tools (claude-mem, episodic-memory) are **orchestrator-scoped** and not inhe
362
372
  ║ YES → Continue ║
363
373
  ║ NO → Delegate to sys-memory-keeper first ║
364
374
  ║ ║
365
- ║ 2. Did I attempt claude-mem save?
375
+ ║ 2. Did I attempt searchable memory save when available?
366
376
  ║ YES → Continue (even if it failed) ║
367
377
  ║ NO → ToolSearch + save now ║
368
378
  ║ ║
379
+ ║ 3. Is omcustomcodex-feedback skill available in this project? ║
380
+ ║ YES → Ask user: "이번 세션 피드백을 omcustomcodex-feedback로 ║
381
+ ║ 기록하시겠습니까?" — accept skip ║
382
+ ║ NO → Skip ║
383
+ ║ ║
369
384
  ║ Note: episodic-memory auto-indexes conversations after session ║
370
385
  ║ ends. No manual action needed — do NOT search as "verification" ║
371
386
  ║ ║
372
- BOTH steps must be completed before confirming to user. ║
387
+ ALL applicable steps must be completed before confirming to user.║
373
388
  ║ "Attempted" means called the tool — failure is OK, skipping ║
374
389
  ║ is NOT. ║
375
390
  ╚══════════════════════════════════════════════════════════════════╝
@@ -379,5 +394,5 @@ MCP tools (claude-mem, episodic-memory) are **orchestrator-scoped** and not inhe
379
394
  ### Failure Policy
380
395
 
381
396
  - MCP saves are **non-blocking**: memory failure MUST NOT prevent session from ending
382
- - If claude-mem unavailable: skip, log warning
397
+ - If no searchable memory backend is available: skip, log warning
383
398
  - episodic-memory: no action needed (auto-indexed after session)
@@ -12,6 +12,16 @@ Review code from an attacker's perspective using STRIDE + OWASP frameworks.
12
12
 
13
13
  ## 4-Phase Review Process
14
14
 
15
+ ### Pre-flight: CRG Attack-Surface Probe
16
+ If a code-review graph or CRG MCP server is available, use it before manual inspection:
17
+
18
+ ```text
19
+ Preferred: query_graph({ target, focus: "trust-boundaries attack-surface data-flow" })
20
+ Fallback: get_impact_radius({ target })
21
+ ```
22
+
23
+ Use the result to seed trust-boundary, data-flow, and dependency-risk analysis. If CRG tools are unavailable, continue with local `rg`, route inspection, and dependency/file reads; CRG is advisory and must not block adversarial review.
24
+
15
25
  ### Phase 1: Trust Boundary Analysis
16
26
  Identify where trust transitions occur:
17
27
  - External input reaching internal logic without validation → **Tampering**
@@ -85,6 +85,15 @@ If any GATE: block and suggest alternative.
85
85
  If any WARN: show warning, ask user to confirm.
86
86
  If only PASS/INFO: proceed automatically.
87
87
 
88
+ ### Guard 5: Review Graph Context Probe
89
+ **Level**: INFO
90
+ **Check**: If a code-review graph or CRG MCP server is available, query impact radius before selecting the expert:
91
+ ```text
92
+ Preferred: get_impact_radius({ target })
93
+ Fallback: get_minimal_context({ target, purpose: "dev-review" })
94
+ ```
95
+ **Action**: Attach the returned affected files, owners, and dependency edges to the review prompt. If the CRG tools are unavailable or time out, continue with `rg`, `git diff`, and local file reads; CRG is advisory and must not block review.
96
+
88
97
  ## Parameters
89
98
 
90
99
  | Name | Type | Required | Description |
@@ -105,12 +114,13 @@ If only PASS/INFO: proceed automatically.
105
114
  ```
106
115
  0. Run pre-flight guards (see ## Pre-flight Guards)
107
116
  1. Detect language (or use --lang)
108
- 2. Select appropriate expert agent
109
- 3. Load language-specific skill
110
- 4. Analyze code against best practices
111
- 5. Generate review report
117
+ 2. Include CRG impact context when available
118
+ 3. Select appropriate expert agent
119
+ 4. Load language-specific skill
120
+ 5. Analyze code against best practices
121
+ 6. Generate review report
112
122
  ```
113
- 6. **Artifact persistence** (optional): Review agent saves findings to:
123
+ 7. **Artifact persistence** (optional): Review agent saves findings to:
114
124
  ```
115
125
  .codex/outputs/sessions/{YYYY-MM-DD}/dev-review-{HHmmss}.md
116
126
 
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: harness-export
3
+ description: Export-plan generator for translating oh-my-customcodex assets to other agent harness formats
4
+ scope: harness
5
+ version: 0.1.0
6
+ user-invocable: true
7
+ argument-hint: "--target cursor|codex|opencode|zed|gemini|copilot [--dry-run]"
8
+ ---
9
+
10
+ # Harness Export
11
+
12
+ Generate a dry-run export plan from oh-my-customcodex assets into another agent harness format. This is intentionally conservative: the skill documents mapping and risks before writing any external harness files.
13
+
14
+ ## Boundary Decision
15
+
16
+ Cross-harness export is an adapter layer, not a new core metaphor. Skills remain source, agents remain build artifacts, rules remain compiler specs, and export output is a derived compatibility artifact.
17
+
18
+ Default mode is `--dry-run`. Writing export files requires a separate explicit task because target formats change independently and can create maintenance debt.
19
+
20
+ ## Targets
21
+
22
+ | Target | Output Shape |
23
+ |--------|--------------|
24
+ | `cursor` | rules and agent instructions mapped to Cursor project conventions |
25
+ | `codex` | `.codex/**` runtime assets |
26
+ | `opencode` | command/agent guidance bundle |
27
+ | `zed` | assistant instruction bundle |
28
+ | `gemini` | prompt and context bundle |
29
+ | `copilot` | repository instructions and chat modes |
30
+
31
+ ## Workflow
32
+
33
+ 1. Read `templates/manifest.json` and current asset counts.
34
+ 2. Select source assets by target capability.
35
+ 3. Produce a mapping table: source path, target path, transform, lossiness.
36
+ 4. Flag unsupported concepts such as memory scope, hooks, MCP tools, or permission mode.
37
+ 5. Emit a dry-run report and stop unless the user explicitly requested writes.
38
+
39
+ ## Output
40
+
41
+ ```text
42
+ harness-export target=cursor mode=dry-run
43
+ mapped: skills=18 rules=7 agents=6
44
+ lossy: hooks, memory scope, MCP server config
45
+ decision: export plan only
46
+ ```
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: instinct-extractor
3
+ description: Extract reusable workflow instincts from git history, sessions, and task outcomes with confidence scoring
4
+ scope: harness
5
+ version: 1.0.0
6
+ user-invocable: true
7
+ argument-hint: "[--since <date>] [--source git|sessions|outcomes|all] [--min-confidence low|medium|high]"
8
+ ---
9
+
10
+ # Instinct Extractor
11
+
12
+ Find repeated operator or agent behavior that should become a rule, skill, guide, memory entry, or evaluation case.
13
+
14
+ ## Inputs
15
+
16
+ | Source | Evidence |
17
+ |--------|----------|
18
+ | `git` | Commit messages, changed paths, reverted fixes, recurring file clusters |
19
+ | `sessions` | `.codex/outputs/sessions/**`, pipeline artifacts, review reports |
20
+ | `outcomes` | Task outcome JSONL, hook telemetry, verification failures |
21
+ | `all` | Combined evidence with deduplication |
22
+
23
+ ## Confidence
24
+
25
+ | Confidence | Requirement |
26
+ |------------|-------------|
27
+ | `low` | One clear event with plausible reuse |
28
+ | `medium` | Two or more independent events or one tested release finding |
29
+ | `high` | Repeated events plus passing verification or explicit user confirmation |
30
+
31
+ ## Workflow
32
+
33
+ 1. Collect bounded evidence for the requested source.
34
+ 2. Cluster repeated failures, decisions, and successful recovery patterns.
35
+ 3. Classify each candidate:
36
+ - `memory` for project/user behavior
37
+ - `rule` for durable safety constraints
38
+ - `skill` for repeatable workflows
39
+ - `guide` for reference knowledge
40
+ - `eval` for regression checks
41
+ 4. Assign confidence and cite concrete files, commits, or artifacts.
42
+ 5. Emit proposals only; do not create new rules or skills without an explicit follow-up task.
43
+
44
+ ## Output
45
+
46
+ ```text
47
+ candidate: release-version-sync-preflight
48
+ type: skill
49
+ confidence: high
50
+ evidence:
51
+ - .github/scripts/verify-version-sync.sh
52
+ - workflows/auto-dev.yaml
53
+ recommendation: keep as release pipeline gate
54
+ ```
@@ -0,0 +1,53 @@
1
+ ---
2
+ name: manifest-install
3
+ description: Selective manifest-driven installation profiles for oh-my-customcodex assets
4
+ scope: harness
5
+ version: 1.0.0
6
+ user-invocable: true
7
+ argument-hint: "--profile minimal|standard|full|codex|claude [--target <dir>] [--dry-run]"
8
+ ---
9
+
10
+ # Manifest Install
11
+
12
+ Install only the agent-stack assets a project profile needs, while keeping the package manifest, template tree, and Codex runtime layout consistent.
13
+
14
+ ## Use When
15
+
16
+ - A user wants a smaller install than the full template bundle.
17
+ - Release work changes `templates/manifest.json` or component counts.
18
+ - A project needs Codex-native assets without optional Claude compatibility mirrors.
19
+
20
+ ## Profiles
21
+
22
+ | Profile | Includes | Excludes |
23
+ |---------|----------|----------|
24
+ | `minimal` | AGENTS, core rules, routing skills, status/help, git safety | specialist language packs, optional guides |
25
+ | `standard` | minimal + common dev/review/test skills and agents | niche provider guides |
26
+ | `full` | every packaged template asset | nothing |
27
+ | `codex` | `.codex/**`, AGENTS, guides, workflows | `.claude/**` compatibility mirrors |
28
+ | `claude` | Claude compatibility mirrors and CLAUDE entry files | Codex-only runtime state |
29
+
30
+ ## Workflow
31
+
32
+ 1. Read `templates/manifest.json`.
33
+ 2. Resolve profile include/exclude rules.
34
+ 3. Produce an install plan with paths, counts, and skipped components.
35
+ 4. Dry-run by default for destructive replacements.
36
+ 5. Apply by copying only planned paths and preserving user-owned files.
37
+ 6. Recount components and report drift.
38
+
39
+ ## Safety
40
+
41
+ - Never delete user files that are outside the generated asset set.
42
+ - Preserve `.codex/agent-memory*/`, local settings, and outputs.
43
+ - Treat count mismatch as a halt condition unless `--dry-run` was requested.
44
+ - Use `omcustomcodex` in operator guidance.
45
+
46
+ ## Output
47
+
48
+ ```text
49
+ manifest-install profile=standard target=.
50
+ planned: rules=22 agents=49 skills=123 guides=48
51
+ skipped: compatibility mirrors, optional provider guides
52
+ status: dry-run
53
+ ```
@@ -1,13 +1,21 @@
1
1
  ---
2
2
  name: memory-management
3
- description: Memory persistence operations using claude-mem
3
+ description: Memory persistence operations using native memory plus omx-memory or AgentMemory-compatible MCP backends
4
4
  scope: core
5
5
  user-invocable: false
6
6
  ---
7
7
 
8
8
  ## Purpose
9
9
 
10
- Provide memory persistence operations using claude-mem for session context survival across compactions.
10
+ Provide memory persistence operations using native `MEMORY.md` first, then a searchable MCP backend for cross-session retrieval. Prefer an AgentMemory-compatible or `omx-memory` backend exposing `memory_search`, `memory_add`, and `observation_add`; use legacy `claude-mem` only as a fallback when that is the configured backend.
11
+
12
+ ## Backend Order
13
+
14
+ 1. Native auto-memory: compact durable facts in `MEMORY.md`.
15
+ 2. AgentMemory-compatible MCP or `omx-memory`: cross-session search, shared observations, and temporal recall.
16
+ 3. Legacy `claude-mem`: fallback only when the project still exposes Chroma tools.
17
+
18
+ When both legacy `claude-mem` and an AgentMemory-compatible backend are active, warn about split-brain storage. Dual-write is allowed only during an explicit migration window.
11
19
 
12
20
  ## Operations
13
21
 
@@ -15,7 +23,7 @@ Provide memory persistence operations using claude-mem for session context survi
15
23
 
16
24
  ```yaml
17
25
  operation: save
18
- description: Store session context in claude-mem
26
+ description: Store session context in the configured searchable memory backend
19
27
  steps:
20
28
  1. Collect session data:
21
29
  - Tasks completed
@@ -26,8 +34,10 @@ steps:
26
34
  - Add project tag: "my-project"
27
35
  - Add session ID: {date}-{uuid}
28
36
  - Add relevant tags
29
- 3. Store in claude-mem:
30
- - Use chroma_add_documents
37
+ 3. Store in configured backend:
38
+ - Prefer memory_add for session summaries
39
+ - Use observation_add for atomic behavioral or project observations
40
+ - Legacy fallback: chroma_add_documents
31
41
  - Include metadata
32
42
  ```
33
43
 
@@ -41,8 +51,9 @@ steps:
41
51
  - Always prefix with "my-project"
42
52
  - Add user-provided search terms
43
53
  - Include date for temporal searches
44
- 2. Search claude-mem:
45
- - Use chroma_query_documents
54
+ 2. Search configured backend:
55
+ - Prefer memory_search
56
+ - Legacy fallback: chroma_query_documents
46
57
  - Request top N results
47
58
  3. Format results:
48
59
  - Sort by relevance
@@ -56,8 +67,9 @@ steps:
56
67
  operation: get
57
68
  description: Retrieve specific memory by ID
58
69
  steps:
59
- 1. Use chroma_get_documents with ID
60
- 2. Return full document content
70
+ 1. Prefer memory_read or memory_search by ID
71
+ 2. Legacy fallback: chroma_get_documents with ID
72
+ 3. Return full document content
61
73
  ```
62
74
 
63
75
  ## Query Patterns
@@ -66,17 +78,20 @@ steps:
66
78
 
67
79
  ```python
68
80
  # Always include project name
81
+ memory_search({ query: "my-project {search_terms}", limit: 8 })
82
+
83
+ # Legacy fallback
69
84
  chroma_query_documents(["my-project {search_terms}"])
70
85
 
71
86
  # Examples:
72
- chroma_query_documents(["my-project authentication flow"])
73
- chroma_query_documents(["my-project 2025-01-24 memory system"])
87
+ memory_search({ query: "my-project authentication flow", limit: 5 })
88
+ memory_search({ query: "my-project 2025-01-24 memory system", limit: 5 })
74
89
  ```
75
90
 
76
91
  ### Get by ID
77
92
 
78
93
  ```python
79
- # When you have a specific document ID
94
+ # When you have a specific document ID and only legacy tools are available
80
95
  chroma_get_documents(ids=["document_id"])
81
96
  ```
82
97
 
@@ -194,3 +209,47 @@ recall_errors:
194
209
  - Connection failure: Return empty with warning
195
210
  - Invalid query: Help user reformulate
196
211
  ```
212
+
213
+ ## MemKraft Bridge (Optional)
214
+
215
+ > External integration: [MemKraft](https://github.com/seojoonkim/memkraft) — zero-dependency compound memory for AI agents.
216
+ > Install: `pipx install memkraft`
217
+
218
+ ### When to Use
219
+
220
+ | Capability | Searchable MCP | MemKraft |
221
+ |-----------|-----------|----------|
222
+ | Session persistence | ✅ (Chroma) | ✅ (Markdown) |
223
+ | Entity tracking | ❌ | ✅ (person/org/concept) |
224
+ | Source attribution | ❌ | ✅ (`[Source: who, when, how]`) |
225
+ | Auto-maintenance | ❌ | ✅ (Dream Cycle) |
226
+ | CJK entity extraction | ❌ | ✅ (Korean/Chinese/Japanese) |
227
+ | Offline search | ❌ | ✅ (stdlib difflib) |
228
+
229
+ Use MemKraft when entity tracking or source attribution is needed. Use the configured AgentMemory-compatible or `omx-memory` backend for searchable session persistence.
230
+
231
+ ### Commands
232
+
233
+ ```bash
234
+ # Extract entities from a document
235
+ memkraft extract <file>
236
+
237
+ # Get a brief on a topic
238
+ memkraft brief <topic>
239
+
240
+ # Run maintenance cycle (dedup, prune orphans)
241
+ memkraft dream
242
+ ```
243
+
244
+ ### Integration with sys-memory-keeper
245
+
246
+ At session end, sys-memory-keeper can optionally run MemKraft operations:
247
+
248
+ 1. `memkraft extract` on session summary → builds entity graph
249
+ 2. `memkraft dream` → prunes stale entries (run weekly, not every session)
250
+
251
+ ### Prerequisites
252
+
253
+ - Python 3.9+
254
+ - `pipx install memkraft`
255
+ - No API keys required (offline-only)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: memory-recall
3
- description: Search and recall memories from claude-mem
3
+ description: Search and recall memories from native memory plus omx-memory or AgentMemory-compatible backends
4
4
  scope: core
5
5
  argument-hint: "<query> [--recent] [--limit <n>]"
6
6
  user-invocable: true
@@ -8,7 +8,7 @@ user-invocable: true
8
8
 
9
9
  # Memory Recall Skill
10
10
 
11
- Search and recall relevant memories from claude-mem using semantic search.
11
+ Search and recall relevant memories from native `MEMORY.md` plus the configured searchable MCP backend. Prefer AgentMemory-compatible or `omx-memory` tools (`memory_search`, `memory_read`); fall back to legacy `claude-mem` Chroma tools only when those are the configured backend.
12
12
 
13
13
  ## Parameters
14
14
 
@@ -33,8 +33,9 @@ Search and recall relevant memories from claude-mem using semantic search.
33
33
  ├── Add user query terms
34
34
  └── Include date if specified
35
35
 
36
- 2. Search claude-mem
37
- └── chroma_query_documents
36
+ 2. Search configured backend
37
+ ├── Prefer memory_search
38
+ └── Legacy fallback: chroma_query_documents
38
39
 
39
40
  3. Format results
40
41
  ├── Sort by relevance score
@@ -170,3 +171,4 @@ Suggestions:
170
171
  ## Related
171
172
 
172
173
  - memory-save - Save current context
174
+ - memory-management - Backend selection and split-brain safeguards
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: memory-save
3
- description: Save current session context to claude-mem
3
+ description: Save current session context to native memory plus omx-memory or AgentMemory-compatible backends
4
4
  scope: core
5
5
  argument-hint: "[--tags <tags>] [--include-code]"
6
6
  disable-model-invocation: true
@@ -9,7 +9,7 @@ user-invocable: true
9
9
 
10
10
  # Memory Save Skill
11
11
 
12
- Save current session context to claude-mem for persistence across context compaction.
12
+ Save current session context to native memory and the configured searchable MCP backend for persistence across context compaction. Prefer AgentMemory-compatible or `omx-memory` tools (`memory_add`, `observation_add`); fall back to legacy `claude-mem` only when that is the configured backend.
13
13
 
14
14
  ## Options
15
15
 
@@ -35,8 +35,10 @@ Save current session context to claude-mem for persistence across context compac
35
35
  ├── tags: [session, ...user_tags]
36
36
  └── created_at: {timestamp}
37
37
 
38
- 3. Store in claude-mem
39
- └── chroma_add_documents
38
+ 3. Store in configured backend
39
+ ├── Prefer memory_add for summaries
40
+ ├── Prefer observation_add for atomic learnings
41
+ └── Legacy fallback: chroma_add_documents
40
42
 
41
43
  4. Report result
42
44
  ```
@@ -112,7 +114,7 @@ Open Items:
112
114
  1. Refresh token implementation
113
115
  Status: In progress
114
116
 
115
- Saving to claude-mem...
117
+ Saving to configured memory backend...
116
118
 
117
119
  Document content:
118
120
  ## Session Summary
@@ -126,3 +128,4 @@ Memory ID: mem_abc123
126
128
  ## Related
127
129
 
128
130
  - memory-recall - Search and recall memories
131
+ - memory-management - Backend selection and migration safeguards
@@ -0,0 +1,55 @@
1
+ # Pipeline Label Standards
2
+
3
+ Canonical reference for GitHub issue label semantics in the auto-dev pipeline.
4
+ Used by `scope-selection` to include or exclude issues and by `implement` for lifecycle management.
5
+
6
+ ## Label Definitions
7
+
8
+ | Label | Meaning | scope-selection handling |
9
+ |-------|---------|--------------------------|
10
+ | `verify-ready` | Triage complete, ready for verification or automation | INCLUDE (preferred) |
11
+ | `verify-done` | Triage complete but deferred, already handled, or excluded from this cycle | EXCLUDE |
12
+ | `in-progress` | Work is claimed by another session | EXCLUDE |
13
+ | `needs-review` | Human review is required before automation | EXCLUDE |
14
+ | `decision-needed` | Security, policy, or product decision required | EXCLUDE |
15
+ | `automated` | Auto-generated issue from release-monitor tooling | INCLUDE if other criteria match |
16
+ | `codex-release` | Codex release monitor trigger | INCLUDE (preferred) |
17
+ | `oh-my-codex-release` | oh-my-codex release monitor trigger | INCLUDE (preferred) |
18
+ | `claude-code-release` | Claude compatibility release trigger | INCLUDE (preferred) |
19
+ | `documentation` | Documentation-only scope | INCLUDE (preferred for docs-only release) |
20
+ | `enhancement-yaml-only` | YAML/config-only scope change | INCLUDE (eligible for docs-only compression) |
21
+
22
+ ## Selection Rule
23
+
24
+ ```text
25
+ EXCLUDE if:
26
+ - blocked_by_decision == true
27
+ - labels intersect {decision-needed, needs-review, verify-done, manual-action, in-progress}
28
+
29
+ INCLUDE (preferred tier):
30
+ - labels intersect {verify-ready, codex-release, oh-my-codex-release, claude-code-release, documentation}
31
+
32
+ INCLUDE (standard tier):
33
+ - P1/P2/P3 issues not in excluded set
34
+
35
+ Tie-break priority: P1 > P2 > P3 > unclassified
36
+ ```
37
+
38
+ ## Compression Eligibility
39
+
40
+ An issue is eligible for `docs-only` compression mode if its labels include at least one of:
41
+ `documentation`, `automated`, `codex-release`, `oh-my-codex-release`, `claude-code-release`, `enhancement-yaml-only`.
42
+
43
+ If all scoped issues are compression-eligible and scope size is 3 or fewer, the pipeline may use
44
+ `compression_mode=docs-only` and replace heavyweight triage, planning, and verification spawns with
45
+ direct manifest summaries plus a local self-review checklist.
46
+
47
+ ## Lifecycle Labels
48
+
49
+ | Transition | Action |
50
+ |------------|--------|
51
+ | Work started | Add `in-progress`, assign the current operator |
52
+ | Work succeeded | Remove `in-progress`, add `verify-ready` |
53
+ | Work failed | Remove `in-progress`, add `needs-review` |
54
+ | Released | Remove `verify-ready`, close with `Fixed in v{version}` |
55
+ | Deferred | Add `verify-done`, label `Deferred from v{version}` |
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: sec-agentshield-wrapper
3
+ description: Pre-flight AgentShield-style security suite wrapper for agent harness changes
4
+ scope: harness
5
+ version: 1.0.0
6
+ user-invocable: true
7
+ argument-hint: "<path> [--strict] [--report <file>]"
8
+ ---
9
+
10
+ # AgentShield Wrapper
11
+
12
+ Run an AgentShield-style pre-flight review before risky agent, skill, hook, or MCP changes. This skill is a wrapper contract: use a connected AgentShield tool when available, otherwise run the local static checks that approximate the same boundary.
13
+
14
+ ## Checks
15
+
16
+ | Area | What to Inspect |
17
+ |------|-----------------|
18
+ | Tool authority | Agent frontmatter tools, disallowed tools, and permission mode |
19
+ | Prompt injection | Untrusted text flowing into tool instructions or shell commands |
20
+ | Secret exposure | Tokens, private keys, bearer headers, and credential-like literals |
21
+ | Path boundaries | Writes to `.git`, runtime state, templates, and compatibility mirrors |
22
+ | MCP risk | New servers, remote URLs, timeout behavior, and tool naming collisions |
23
+
24
+ ## Workflow
25
+
26
+ 1. Identify changed files with `git diff --name-only` unless a path is supplied.
27
+ 2. Prefer an installed AgentShield scanner if one is configured.
28
+ 3. Fall back to existing repo checks:
29
+ - `secret-filter`
30
+ - schema validator guidance
31
+ - `adversarial-review`
32
+ - `cve-triage` for dependency advisories
33
+ 4. Report findings as `blocker`, `warn`, or `info`.
34
+ 5. In `--strict` mode, halt on any blocker or unreviewed MCP/tool expansion.
35
+
36
+ ## Output
37
+
38
+ ```text
39
+ sec-agentshield-wrapper target=.codex/skills/new-skill
40
+ blocker: 0
41
+ warn: 1
42
+ info: 2
43
+ decision: proceed-with-review
44
+ ```
45
+
46
+ ## Notes
47
+
48
+ - This wrapper complements `sec-codeql-expert`; it does not replace CodeQL or dependency audit.
49
+ - Missing AgentShield tooling is not a failure if local fallback checks run and are reported.