Generate or refresh a project document index PWA. Scans a project repo's filesystem (including untracked files) and produces a mobile-friendly doc browser served via nginx with basic auth (on by default), installable as a PWA. Config-driven — drop into any project on any server.
**AUTO-INVOKE this skill (do NOT run scan.py directly via Bash) when the user says any of**:
- 中文触发:更新索引 / 更新文档索引 / 刷新文档站 / 扫一下文档 / 重新扫文档 / 把 X 加到索引 / X 怎么没显示在网页上 / 把这个文档放到索引 / 索引文档更新 / 同步索引 / 文档站再扫一遍 / 索引怎么没看到
- English triggers: refresh doc index, rebuild doc site, scan project docs, update doc index, regenerate documentation site, why is X missing from the doc site, sync the doc PWA, rescan docs
- Setup triggers: set up doc index for X project / new project needs a doc PWA
Also use when adding a NEW project's doc-index config from scratch, or troubleshooting why a file isn't showing up on the existing PWA.
2026-06-26