src/main/resources/targets/claude/skills/core/ops/x-search-memory/SKILL.md
Queries ai/memory/ for decisions, patterns, and anti-patterns across past epics
npx skillsauth add edercnj/ia-dev-environment x-search-memoryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Searches ai/memory/_index.yaml and the indexed summary files for decisions, patterns,
anti-patterns, or epic context matching the given query.
Results are ranked by relevance (tag match → exact text match → full-text scan) and
filtered by indexable: true unless --include-archived is passed.
Determinism contract: Given the same ai/memory/ contents and the same flags,
output order is deterministic (alphabetical by epic-id within each relevance tier).
/x-search-memory "auth decisions"
/x-search-memory --by-pattern capability-aware-skill-via-frontmatter
/x-search-memory --by-tag governance
/x-search-memory --by-epic EPIC-0064
/x-search-memory "hexagonal" --include-archived
| Flag | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| QUERY | string | — | Positional. Free-text search against all summary sections |
| --by-tag TAG | string | — | Filter by frontmatter tags: value (exact match) |
| --by-pattern ID | string | — | Filter by patterns-introduced or antipatterns-rejected kebab-case ID |
| --by-epic EPIC-XXXX | string | — | Return only the summary for that epic |
| --by-rule RULE-NN | string | — | Filter by rules-affected (e.g. Rule 28) |
| --by-adr ADR-XXXX | string | — | Filter by adrs-referenced |
| --by-capability ID | string | — | Filter by capabilities-affected (exact or prefix match) |
| --include-archived | bool | false | Include entries with archived: true or indexable: false |
| --format | compact\|full | compact | compact = one-line per result; full = full summary body |
| --limit N | int | 10 | Maximum results to return |
| Exit | Code | Condition |
| :--- | :--- | :--- |
| 0 | OK | Results printed (may be empty) |
| 1 | INDEX_NOT_FOUND | ai/memory/_index.yaml absent |
| 2 | INVALID_ARGS | Mutually exclusive flags combined, or unknown flag |
cat ai/memory/_index.yaml
Exit 1 INDEX_NOT_FOUND when absent.
Apply filters in order (each narrows the candidate set):
--include-archived: keep only entries where indexable: true AND archived: false.--by-epic: keep only the matching epic-id.--by-tag: read each candidate summary; keep if tags: list contains the value.--by-pattern: keep if patterns-introduced or antipatterns-rejected contains the ID.--by-rule: keep if rules-affected contains the value.--by-adr: keep if adrs-referenced contains the value.--by-capability: keep if capabilities-affected contains the value (prefix match supported, e.g. governance.*).QUERY: grep full body of each candidate summary for the term.Sort candidates: exact frontmatter match first, then full-text hits, alphabetically by
epic-id within each tier. Apply --limit.
Compact (default):
EPIC-0064 [governance, capabilities, architecture] — Capability-Driven Composition Refactor
→ patterns: capability-aware-skill-via-frontmatter, requires-capabilities-universal-declaration
Full (--format full):
Print the complete ai/memory/epic-XXXX-summary.md body for each result.
x-plan-architecture to auto-inject relevant memory context into architecture plans
(conditional: governance.ai-memory active)._index.yaml or any summary file.# Find all governance decisions
/x-search-memory --by-tag governance
# Find who rejected inline-validation
/x-search-memory --by-pattern inline-validation-instead-of-hook
# Find all epics that reference Rule 28
/x-search-memory --by-rule "Rule 28"
# Full body for one epic
/x-search-memory --by-epic EPIC-0064 --format full
testing
Scaffolds a Helidon SE/MP service with routing, health, config, Dockerfile, and tests.
tools
Generates a Picocli @Command with subcommands, options, converters, and unit tests.
testing
Scaffolds a Micronaut service with @Controller, DI, health, Dockerfile, and tests.
testing
Scaffolds a Helidon SE/MP service with routing, health, config, Dockerfile, and tests.