Fedwiki Reindex Skill
The fedwiki-reindex skill rebuilds the sitemap and search index for a local federated wiki domain. It is needed because the wiki server caches these indexes in each domain's status/ folder and does not detect when Claude Code writes page JSON files directly to disk.
Why It's Needed
When a page is created or edited through the wiki browser UI, the server updates its index automatically. When Claude writes a page file directly to ~/Music/Guides/Private/{domain}/pages/, the server doesn't know — two cached files in the status/ folder go stale:
sitemap.json— the page list used for navigation and federation neighbourhoodsite-index.json— the full-text search index
How It Works
Delete the stale index files from status/, then curl the sitemap endpoint to trigger the server to rebuild them immediately.
FARM="$HOME/Music/Guides/Private"
DOMAIN="localhost"
rm -f "$FARM/$DOMAIN/status/sitemap.json"
rm -f "$FARM/$DOMAIN/status/site-index.json"
curl -s "http://$DOMAIN/system/sitemap.json" > /dev/null
echo "Reindexed $DOMAIN"
When to Use
- After Claude creates or edits page JSON files directly on disk
- After bulk import of pages
- When the wiki's page list or search results appear incomplete or stale
Public Wikis — nextcloud-reindex
For public wikis in ~/Nextcloud/fedwiki/, the remote server needs its index rebuilt separately using nextcloud-reindex. This deletes the index files via WebDAV and triggers a rebuild on the remote server:
nextcloud-reindex skill.fedwiki.club
This is needed after bulk page changes — e.g. after running the merge skill's move/trash steps.
Related Skills
agentprivacy-wiki-page— always reindex after writing pages to a private wikiagentprivacy-wiki-new-domain— create a new wiki domainagentprivacy-wiki-nextcloud-push— push public wiki pages when sync is stuckagentprivacy-wiki-merge— uses nextcloud-reindex after bulk page moves
Verify: agentprivacy.ai · kept by the Librarian 🗃️ in the Tower's Wikis (the git-less onboarding layer) Upstream: skill.fedwiki.club/fedwiki-reindex-skill (+ reindex-fedwiki-skill, merged) — vendored + re-framed; not original agentprivacy authorship