---
estimated_steps: 15
estimated_files: 8
skills_used: []
---

# T02: Populate wiki with architecture documentation

1. Source .forgejo-token.env
2. Git clone wiki repo: https://{token}@git.xpltd.co/xpltdco/chrysopedia.wiki.git
3. Generate wiki pages from content sources:
   - Home.md — project overview from PROJECT.md
   - Architecture.md — system arch, Docker services, network (from Site Audit Report)
   - Data-Model.md — 13+ SQLAlchemy models and relationships (from audit + models.py)
   - API-Surface.md — all 41 endpoints grouped by domain (from audit)
   - Frontend.md — routes, components, hooks, CSS architecture (from audit)
   - Pipeline.md — 6-stage LLM pipeline, prompt system, debug mode (from PROJECT.md + KNOWLEDGE.md)
   - Deployment.md — Docker Compose setup, bind mounts, rebuild commands (from audit + CLAUDE.md)
   - Development-Guide.md — local dev, common gotchas, testing patterns (from KNOWLEDGE.md + CLAUDE.md)
   - Decisions.md — architectural decisions D001-D035 (from DECISIONS.md)
   - _Sidebar.md — navigation links to all pages
4. Git add, commit, push
5. Verify all pages render at https://git.xpltd.co/xpltdco/chrysopedia/wiki/

## Inputs

- `.forgejo-token.env`
- `SITE-AUDIT-REPORT.md`
- `PROJECT.md`
- `DECISIONS.md`
- `KNOWLEDGE.md`
- `backend/models.py`
- `docker-compose.yml`
- `CLAUDE.md`

## Expected Output

- `9+ wiki pages at git.xpltd.co/xpltdco/chrysopedia/wiki/`
- `_Sidebar.md navigation`

## Verification

source .forgejo-token.env && curl -s -H "Authorization: token $FORGEJO_TOKEN" https://git.xpltd.co/api/v1/repos/xpltdco/chrysopedia/wiki/pages | python3 -c "import sys,json; pages=json.load(sys.stdin); names=[p['title'] for p in pages]; print(f'{len(pages)} pages:', names); assert len(pages) >= 9"
