Compile unstructured tarot source material from `knowledge/raw/` into governed Markdown pages under `knowledge/wiki/` that conform to `knowledge/AGENTS.md`. Use when Codex needs to ingest raw books or notes, create or revise card/concept/spread pages, register new source IDs, merge multi-source interpretations, or synchronize `knowledge/index.md` and `knowledge/log.md` after wiki ingest or lint work.
Turn loose source material in knowledge/raw/ into structured, source-attributed wiki pages for AetherTarot's knowledge layer. Keep raw/ immutable, treat wiki/ as compiled living knowledge, and keep the governance files in sync after every structural write.
Read these files before editing knowledge/:
knowledge/AGENTS.mdknowledge/index.mdknowledge/log.mddocs/20-domain/interpretation-framework.mdLoad references/system-prompt.md when you want a reusable system prompt for a delegated agent or an external LLM.
Route each target into exactly one wiki type:
| Target | Directory | File naming rule |
|---|
| Major arcana card | knowledge/wiki/major-arcana/ | <card-id>.md such as the-fool.md |
| Minor arcana card | knowledge/wiki/minor-arcana/<suit>/ | <card-id>.md such as two-of-wands.md |
| Tarot concept | knowledge/wiki/concepts/ | kebab-case concept slug such as four-elements.md |
| Spread knowledge | knowledge/wiki/spreads/ | kebab-case spread slug such as celtic-cross.md |
If one source chapter covers multiple entities, split it into multiple wiki pages instead of dumping the whole chapter into one file.
knowledge/raw/ source files and the entities to compile.knowledge/AGENTS.md.[来源: XXX] markers.docs/20-domain/interpretation-framework.md only as a synthesis aid for useful reflective framing, not as a license to move product behavior rules into knowledge/wiki/.knowledge/AGENTS.md.中文名 (English Name) in the title or first explicit mention.last_updated in YYYY-MM-DD.knowledge/index.md when a new physical wiki page is created or coverage status changes.knowledge/log.md for every structural write with the correct operation type.knowledge/AGENTS.md and page frontmatter sources arrays aligned.knowledge/raw/ read-only.knowledge/wiki/ objective and domain-focused.docs/.Before finishing, verify:
sources only contains registered IDs.knowledge/index.md reflects the created pages.knowledge/log.md contains a new top entry for the operation.knowledge/ boundary and does not smuggle in product or safety policy.Stop and explain the blocker when:
docs/ rather than knowledge/wiki/.Use $ingest-wiki to ingest knowledge/raw/78度的智慧(英豪译).md 中关于愚者的内容,生成或更新对应 wiki 页面,并同步 index/log。Use $ingest-wiki to compile the four-elements concept page from knowledge/raw/塔罗全书修订版.md.Use $ingest-wiki to lint knowledge/wiki, check missing source IDs, and reconcile knowledge/index.md coverage.