---
name: wiki
description: Persistent markdown project wiki stored under repository omagy_wiki with keyword search and lifecycle capture
triggers: ["/omagy:wiki", "wiki add", "wiki query", "wiki read", "wiki delete", "wiki lint"]
---

# Wiki

Use Omagy wiki for project knowledge that should compound across sessions and can be committed with the repo.

## Operations

```bash
omagy wiki wiki_ingest --input '{"title":"Auth Architecture","content":"...","tags":["auth","architecture"],"category":"architecture"}' --json
omagy wiki wiki_query --input '{"query":"authentication","tags":["auth"],"category":"architecture"}' --json
omagy wiki wiki_lint --json
omagy wiki wiki_add --input '{"title":"Page Title","content":"...","tags":["tag1"],"category":"decision"}' --json
omagy wiki wiki_list --json
omagy wiki wiki_read --input '{"page":"auth-architecture"}' --json
omagy wiki wiki_delete --input '{"page":"outdated-page"}' --json
omagy wiki wiki_refresh --json
```

## Categories

`architecture`, `decision`, `pattern`, `debugging`, `environment`, `session-log`, `reference`, `convention`

## Storage

- Pages: `omagy_wiki/*.md`
- Index: `omagy_wiki/index.md`
- Log: `omagy_wiki/log.md`
- Legacy read-only fallback: `.omagy/wiki/` when `omagy_wiki/` does not exist

## Constraints

- No vector embeddings; search is keyword and tag based.
- Use `[[page-name]]` wiki links for cross-references.
- Prefer `wiki_ingest` when merging new knowledge into an existing topic.
