Auth Sniffer Skill
Source of truth:
- FlowMind:
plugins/auth-sniffer/skills/auth-sniffer.flow.yaml - Runtime:
plugins/auth-sniffer/src/cli.ts
Deterministic Flow
- Preflight browser and agentping status.
- Select active CDP-capable browser (
--browseroverrides auto-select). - Kill active browser process set and wait until terminated.
- Relaunch browser with CDP on explicit/free port.
- Extract required
cookies,localStorage, andsessionStoragekeys. - Stop CDP browser, wait for shutdown, reopen normal browser.
- Return structured result or structured error.
Quick Commands
# Browser inventory (machine-readable)
auth-sniff --list-browsers --json
# Robot mode for a known service
auth-sniff --service twitter --robot --browser brave --json
# Custom extraction (cookie + storage keys)
auth-sniff \
--domains .x.com \
--cookie auth_token,ct0 \
--localStorageKeys=twid \
--sessionStorageKeys=auth_state \
--robot \
--browser brave \
--json
Output Contract
- Success:
{ "ok": true, "data": { ... } } - Error:
{ "ok": false, "error": { "code", "message", "suggestions" } } - Exit codes:
0success1not found2invalid args3runtime error4dependency missing5timeout
Build + Emit
# Compile FlowMind -> SmartDown artifact
pnpm -C plugins/auth-sniffer run skills:compile
# Compile and emit skill to ~/.agents/skills/auth-sniffer/
pnpm -C plugins/auth-sniffer run skills:emit
Scan to join WeChat group