---
estimated_steps: 4
estimated_files: 1
skills_used: []
---

# T01: Create Forgejo repo and bootstrap wiki

1. Source .forgejo-token.env for FORGEJO_TOKEN
2. POST /api/v1/orgs/xpltdco/repos to create chrysopedia repo (auto_init: true, description, default_branch: main)
3. POST /repos/xpltdco/chrysopedia/wiki/new to create Home.md (initializes wiki git repo)
4. Verify repo at https://git.xpltd.co/xpltdco/chrysopedia and wiki at /wiki/

## Inputs

- `.forgejo-token.env`
- `S02-RESEARCH.md`

## Expected Output

- `xpltdco/chrysopedia repo on git.xpltd.co`
- `Home.md wiki page`

## Verification

curl -s -H "Authorization: token $FORGEJO_TOKEN" https://git.xpltd.co/api/v1/repos/xpltdco/chrysopedia | python3 -c "import sys,json; d=json.load(sys.stdin); print('repo:', d.get('name')); assert d.get('has_wiki')" && curl -s -H "Authorization: token $FORGEJO_TOKEN" https://git.xpltd.co/api/v1/repos/xpltdco/chrysopedia/wiki/pages | python3 -c "import sys,json; d=json.load(sys.stdin); print('pages:', len(d)); assert len(d) >= 1"
