FB redbook
Search, read, analyze, and automate Xiaohongshu (小红书) content via CLI
As a process B 78/100 · Nearly there — weak spots: when it triggers, execution cost
The same skill appears in 1 more place: ClawHub
What is at stake
The skill contains fragments that, in the wrong hands, cost money or data. Below: what the installer risks and what the author should do.
The instructions or scripts send data out: environment variables, keys, file contents, chat history. You may never notice, because the agent performs the upload as "part of the task".
If the upload is not needed for the task, remove it: catalogs flag such skills and delist them. If it is needed, name the destination explicitly, say what leaves the machine, and give the user a switch.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The skill asks for more than the task needs: broad tool access, credential environment variables, binaries. Every extra permission widens the damage from a mistake or a compromise.
Narrow allowed-tools and the variable list to the minimum; replace binaries with readable sources or scripts.
How to improve
- Address the high-severity findings: each costs 18 safety points. If one is a false positive, add the rule id to guard.allow in spec.yaml.
- Say in the description WHEN to use the skill ("use when…", example requests): that is the agent's main cue.
- The SKILL.md body is over 5,000 tokens: move reference detail into references/ and load it when needed.
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 31
-
high Exfiltration
intent-browser-credential-storeCLAUDE.md:43Accesses a browser credential / cookie store- Auto-discovers Chrome profiles via `~/Library/Application Support/Google/Chrome/Local State`
-
high Exfiltration
intent-browser-credential-storeREADME.md:343Accesses a browser credential / cookie storeconst cookies = await loadCookies("chrome"); -
high Exfiltration
intent-browser-credential-storeREADME.md:394Accesses a browser credential / cookie storeRequires Node.js >= 22. Supports **macOS, Windows, and Linux**. Uses cookies from your Chrome browser session — you must be logged into xiaohongshu.com in Chrome.
-
high Exfiltration
intent-browser-credential-storeREADME.md:399Accesses a browser credential / cookie store- **Windows** — Chrome 127+ uses App-Bound Encryption. The CLI auto-launches Chrome headless to read cookies (close Chrome first). If auto-extraction fails, use `--cookie-string` as fallback
-
high Exfiltration
intent-browser-credential-storeSKILL.md:1240Accesses a browser credential / cookie storeconst cookies = await loadCookies("chrome"); -
high Exfiltration
intent-browser-credential-storesrc/cli.ts:315Accesses a browser credential / cookie storeconst cookies = await extractCookies(cookieSource as CookieSource, chromeProfile, cfg.cookieUrl);
-
high Exfiltration
intent-browser-credential-storesrc/cli.ts:323Accesses a browser credential / cookie store?? await extractCookies(cookieSource as CookieSource, chromeProfile, det.platform.cookieUrl);
-
high Exfiltration
intent-browser-credential-storesrc/lib/detect.ts:120Accesses a browser credential / cookie storeconst c = await probeCookies(source, chromeProfile, cfg.cookieUrl);
-
high Exfiltration
intent-browser-credential-storesrc/lib/detect.ts:133Accesses a browser credential / cookie storecookies: await probeCookies(source, chromeProfile, PLATFORMS[id].cookieUrl),
Medium and low: 22
-
medium Exfiltration
intent-browser-credential-storeCLAUDE.md:22Accesses a browser credential / cookie store (quoted — discussed, not commanded)- `src/lib/cookies.ts` — Cookie extraction with Chrome profile auto-discovery
quoted -
medium Exfiltration
intent-browser-credential-storeREADME.md:153Accesses a browser credential / cookie store (documentation table row)| `--cookie-string <cookies>` | 手动传入 Cookie 字符串:`"a1=值; web_session=值"`(从 Chrome DevTools 复制) | 无 |
table -
medium Exfiltration
intent-browser-credential-storeREADME.md:517Accesses a browser credential / cookie store (detector / deny-list definition)| `--cookie-source <browser>` | Browser to read cookies from (chrome, safari, firefox) | `chrome` |
detector -
medium Broad scope
meta-broad-allowed-toolsSKILL.md:1Broad tool permissions pre-approved: Bashallowed-tools: Bash Read Write Glob Grep
-
medium Exfiltration
intent-browser-credential-storeSKILL.md:690Accesses a browser credential / cookie store (detector / deny-list definition)These are calibrated to XHS's documented read-side safe band, not guesswork. Community crawlers ([MediaCrawler](https://github.com/NanmiCoder/MediaCrawler)) default to **~2 s/request, single-threaded*
detector -
medium Exfiltration
intent-browser-credential-storesrc/cli.ts:81Accesses a browser credential / cookie store (detector / deny-list definition)"Browser to read cookies from (chrome, safari, firefox)",
detector -
medium Exfiltration
intent-browser-credential-storesrc/cli.ts:423Accesses a browser credential / cookie store (detector / deny-list definition)"Browser to read cookies from (chrome, safari, firefox)",
detector -
medium Exfiltration
intent-browser-credential-storesrc/lib/cdp-cookies.ts:6Accesses a browser credential / cookie store (code comment)* Chrome via its DevTools Protocol to read cookies directly — Chrome
comment -
medium Exfiltration
intent-browser-credential-storesrc/lib/cdp-cookies.ts:252Accesses a browser credential / cookie store (code comment)// Copy Cookies database + journal/WAL files (older Chrome path)
comment -
medium Exfiltration
intent-browser-credential-storesrc/lib/cdp-cookies.ts:257Accesses a browser credential / cookie store (code comment)// Copy Network/Cookies (newer Chrome versions store cookies here)
comment -
medium Exfiltration
intent-browser-credential-storesrc/lib/cdp-cookies.ts:287Accesses a browser credential / cookie store (code comment)* Attempt to extract XHS cookies via Chrome DevTools Protocol.
comment -
medium Exfiltration
intent-browser-credential-storesrc/lib/cookies.ts:44Accesses a browser credential / cookie store (code comment)* Resolve the Chrome "Local State" file path for the current platform.
comment -
medium Exfiltration
intent-browser-credential-storesrc/lib/cookies.ts:60Accesses a browser credential / cookie store (quoted — discussed, not commanded)return join(localAppData, "Google", "Chrome", "User Data", "Local State");
quoted -
medium Exfiltration
intent-browser-credential-storesrc/lib/cookies.ts:63Accesses a browser credential / cookie store (quoted — discussed, not commanded)return join(homedir(), ".config", "google-chrome", "Local State");
quoted -
medium Exfiltration
intent-browser-credential-storesrc/lib/cookies.ts:69Accesses a browser credential / cookie store (code comment)* Discover Chrome profiles from Local State file.
comment -
medium Exfiltration
intent-browser-credential-storesrc/lib/cookies.ts:221Accesses a browser credential / cookie store (detector / deny-list definition)log(`Reading cookies from ${source}${chromeProfile ? ` (profile: ${chromeProfile})` : ""}...`);detector -
low Secrets in code
secret-high-entropy-tokenpackage-lock.json:83High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)"integrity": "sha5…asG+Fkr6…2vM+P9eO…k5W+1WL8w==",
detector -
low Secrets in code
secret-high-entropy-tokenpackage-lock.json:93High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)"integrity": "sha5…bKX+KS9G…yMA/NhKJ…RGz/Q==",
detector -
low Secrets in code
secret-high-entropy-tokenpackage-lock.json:153High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)"integrity": "sha5…Wwy+ghLE…vfU/YnxW…fdg==",
detector -
low Secrets in code
secret-high-entropy-tokenpackage-lock.json:208High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)"integrity": "sha5…g8l+lMts…kjn+hp+Yv3g==",
detector -
low Secrets in code
secret-high-entropy-tokenpackage-lock.json:261High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)"integrity": "sha5…2BV+FY5ZFezP/ypmwayk68+NzzA…NFD/uUmBJuGoXw==",
detector -
low Dangerous commands
cmd-privilegesrc/lib/render.ts:598Privilege escalation / world-writable permissions (detector / deny-list definition; string literal in code, not executed)args: ["--no-sandbox", "--disable-setuid-sandbox", "--disable-gpu"],
detectorcode literal
Files scanned: 28. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- warning
description-no-whendescription does not say WHEN to use the skill (no "use when") - warning
body-longSKILL.md body ≈ 14776 tokens (recommended < 5000); move details to references/
Process rating: all ten parameters 78/100
- 20When it triggers. No condition that starts the skill
- 40Execution cost. Instruction body is 14776 tokens: crowds the task out of the window
- 60Result and completion. Output format stated, no completion criterion
- 70Inputs and preconditions. Inputs and preconditions are listed
- 100Tools and files. Tools declared in frontmatter
- 100Steps. 199 steps
- 100Failures and branches. 4 branches, has a failure section
- 100Consistency. Name and required fields are in place
- 100Running it twice. Mutating operations check current state
- 100Progress reporting. Reports progress
- medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
- low 14 top-level sections: this looks like several domains in one skill
- low The response is described with custom markup (53 tags): a typed call is more reliable
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +5Description has no quoted example phrases that should trigger the skill
- +4Description does not say when NOT to use the skill (false activations)
- +3Description length 69: 120–800 characters recommended
- -212 emoji in the instructions: noise for the model
- -42 reference files, but SKILL.md never points to them: the model will not open them
- -32 of 2 scripts are never mentioned in SKILL.md
- +2Single-language instructions
- +4Structure: 82 headings
- +3Step-by-step instructions: 199 items
- +3Output format is stated explicitly
- +4Has examples (41 code blocks)
- +1License stated
Quality base 70; lint remarks subtract, signals add up to 100. Result: 54.