archive-weibo-userlisted
Install: claude install-skill GongziTANG/persona-vault
# Archive a Weibo user's posts
Build an evidence-backed archive of the target user's accessible posts. Treat the stable UID, `.state/archive.json`, `manifest.json`, and `verification.json` as the source of truth. Never infer completeness from a successful command alone.
## Preflight
1. Resolve the profile UID from the supplied URL or Weibo user search. Verify both the requested nickname and profile identity; a nickname alone is not proof.
2. Use an absolute output directory. If none is supplied, use `~/Downloads/微博归档/<昵称>`.
3. Read [references/browser-workflow.md](references/browser-workflow.md) before collecting posts. Read [references/recovery.md](references/recovery.md) when login, pagination, long text, rate limits, or verification fails.
4. Use the Browser skill for Weibo UI access. Prefer the stable paginated `weibo.cn/u/<uid>?filter=0&page=N` timeline after login. Never inspect, copy, log, or save browser cookies, tokens, local storage, passwords, or verification codes.
## Choose the run mode
- When `.state/archive.json` does not exist, run a **full sync** from the newest post to the platform's terminal end state.
- When it exists and its UID matches, run an **incremental sync**. Scan from the newest post until five consecutive known, non-pinned posts are observed after all newer posts have been captured. Do not stop on the first known post because it may be pinned.
- Refuse to reuse a state directory whose UID differs from the requested target.
## Checkpoint eve