Live survey304 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

Agent skill · Audited from source

oh-story-claudecode

skill · zenstory-ai/oh-story-claudecodeMIT licenceAudited 7 Oct 2026 · source 2ad3dba961bd

★ 7,324pushed 3 days agoversion 1.0.0
!CAUTIONGrade C · 77/100 · 24 findings · 2ad3dba
7,324repo stars · whole zenstory-ai/oh-story-claudecode

Is it safe? With care — CAUTION, grade C (77/100). We read this skill's source at commit 2ad3dba961bd and observed filesystem, network and shell access and no hard-coded secrets. The audit raised 24 findings, 0 critical or high. What it does: Use this skill when you need to control a Chrome browser via CDP (Chrome DevTools Protocol) to reuse existing login sessions. Covers: launching Chrome in debug mode, opening URLs, waiting for page load, evaluating…

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “oh-story-claudecode (zenstory-ai/oh-story-claudecode)”. Retrieved 7 Oct 2026. https://modelsatlas.com/skills/zenstory-ai/oh-story-claudecode

Copy of skills/worldwonderer/browser-cdp: identical text. The original is the page to read and cite.

Trust audit

Audit 0.4.1 · source read 7 Oct 2026

Trust score77/100!CAUTION C
0 critical0 high11 medium8 low5 info

CAUTION means the audit found things worth knowing before you trust this skill. Grade C is shared by 105 of 18,389 audited skills.

What the source does

  • FilesystemDeclared10 observations
  • NetworkDeclared11 observations
  • ShellDeclared6 observations
  • DependenciesNot pinnedSome versions float
  • SecretsNone foundNo keys in source

Five audit layers

LayerWhat we checkResultFindings
L0 ProvenanceRepo owner, licence, archive status, activityWARN3
L1 Static sourceSecrets, path traversal, supply chain, hidden codeWARN17
L2 InstructionsPrompt injection, authority framing, hidden directivesPASS4
L3 InventoryThe files and declarations match the sourcePASS0
L4 SandboxRun in isolation and watch behaviourSKIPPED why0

Gates applied: no behavioural pass.

Findings (24)

MEDIUMNetwork egressnet.raw_ip · playwright.config.mjs:14
F-04 Network egressCWE-200 · CWE-319Layer L1
baseURL: `http://127.0.0.1:${port}`,
Why
No further detail recorded for this rule.
Fix
—
MEDIUMNetwork egressnet.raw_ip · playwright.config.mjs:21
F-04 Network egressCWE-200 · CWE-319Layer L1
url: `http://127.0.0.1:${port}/health`,
Why
No further detail recorded for this rule.
Fix
—
MEDIUMNetwork egressnet.raw_ip · scripts/test-agent-permissions.py:363
F-04 Network egressCWE-200 · CWE-319Layer L1
"settings": {"baseURL": f"http://127.0.0.1:{port}/v1", "apiKey": "fixture"},
Why
No further detail recorded for this rule.
Fix
—
MEDIUMNetwork egressnet.raw_ip · scripts/test-opencode-cli-e2e.sh:215
F-04 Network egressCWE-200 · CWE-319Layer L1
"settings": { "baseURL": "http://127.0.0.1:$MOCK_PORT/v1", "apiKey": "fixture" },
Why
No further detail recorded for this rule.
Fix
—
MEDIUMNetwork egressnet.raw_ip · skills/browser-cdp/SKILL.md:32
F-04 Network egressCWE-200 · CWE-319Layer L1
CDP_URL=http://127.0.0.1:9222/json/version
Why
No further detail recorded for this rule.
Fix
—
MEDIUMObfuscation / stealthobf.zero_width · scripts/check-agent-notes.py:41
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
first = text.lstrip("").splitlines()[0] if text.strip() else ""
Why
No further detail recorded for this rule.
Fix
—
MEDIUMObfuscation / stealthobf.zero_width · skills/story-import/scripts/build_outline_brief.py:193
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
"  " + line for line in summary_lines(summary.read_text(encoding="utf-8").lstrip(""))]
Why
No further detail recorded for this rule.
Fix
—
MEDIUMObfuscation / stealthobf.zero_width · skills/story-import/scripts/build_outline_brief.py:196
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
text = brief.read_text(encoding="utf-8").lstrip("").strip()
Why
No further detail recorded for this rule.
Fix
—
MEDIUMObfuscation / stealthobf.zero_width · skills/story-import/scripts/build_outline_brief.py:269
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
"\n---\n\n<!-- 资料:outline-reverse-rules.md -->\n\n" + RULES.read_text(encoding="utf-8").lstrip("").strip()]
Why
No further detail recorded for this rule.
Fix
—
MEDIUMObfuscation / stealthobf.zero_width · skills/story-import/scripts/check-outline-contract.js:107
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
const text = fs.readFileSync(file, 'utf8').replace(/^/, '')
Why
No further detail recorded for this rule.
Fix
—
LOWInventory / provenanceinv.hidden_file · demo/长篇/让你管账号,你高燃混剪炸全网/.deslop-whitelist
F-13 Inventory / provenanceCWE-1104Layer L0
.deslop-whitelist
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInsecure cryptocrypto.weak_hash · scripts/check-reference-similarity.py:87
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
inverted[hashlib.sha1(line.encode("utf-8")).digest()[:8]].append(index)
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · scripts/test-codex-hooks.sh:240
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
node_discovered="$(node - "$HOOKS_SRC/../../templates/hooks/story_hook_core.js" "$DISCOVERY_ROOT" <<'JS'
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · scripts/test-codex-hooks.sh:250
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
bash_discovered="$(CLAUDE_PROJECT_DIR="$DISCOVERY_ROOT" bash -s -- "$HOOKS_SRC/../../templates/hooks/lib/common.sh" "$DISCOVERY_ROOT" <<'SH'
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · scripts/test-codex-hooks.sh:274
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
node_active="$(node - "$HOOKS_SRC/../../templates/hooks/story_hook_core.js" "$DISCOVERY_ROOT" <<'JS'
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · scripts/test-codex-hooks.sh:278
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
bash_active="$(CLAUDE_PROJECT_DIR="$DISCOVERY_ROOT" bash -s -- "$HOOKS_SRC/../../templates/hooks/lib/common.sh" <<'SH'
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · scripts/test-codex-hooks.sh:304
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
node_books="$(node - "$HOOKS_SRC/../../templates/hooks/story_hook_core.js" "$DISCOVERY_ROOT" <<'JS'
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@playwright/test
Why
1 dependency range(s) float
Fix
pin exact versions or ship a lockfile
INFOInventory / provenanceinv.oversize · demo/封面-剑道独尊.png
F-13 Inventory / provenanceCWE-1104Layer L0
demo/封面-剑道独尊.png
Why
3108895 bytes not read
Fix
—
INFOSupply chainprompt.pipe_to_shell · docs/hosts.md:43
F-08 Supply chainCWE-829 · CWE-1357Layer L2
需要 **OpenCode 2.x**(`curl -fsSL https://opencode.ai/v2/install | bash` 或 `npm i -g @opencode/cli`);1.x 加载不了写正文守卫插件,story-setup 会拦下并提示升级,已按 1.x 部署过的项目升级后重跑 story-setup。全局安装后 opencode 自动从 `~/.claude/ski
Why
No further detail recorded for this rule.
Fix
—
INFOSupply chainprompt.pipe_to_shell · docs/hosts_EN.md:41
F-08 Supply chainCWE-829 · CWE-1357Layer L2
Requires **OpenCode 2.x** (`curl -fsSL https://opencode.ai/v2/install | bash` or `npm i -g @opencode/cli`). 1.x cannot load the prose-guard plugin, so story-setup stops and asks you to upgrade; projec
Why
No further detail recorded for this rule.
Fix
—
INFOSupply chainprompt.pipe_to_shell · skills/story-setup/UPGRADING.md:69
F-08 Supply chainCWE-829 · CWE-1357Layer L2
1. 升级 OpenCode:先卸载旧包 `npm rm -g opencode-ai`,再 `npm i -g @opencode/cli`(或 `curl -fsSL https://opencode.ai/v2/install | bash`),确认 `opencode --version` 为 2.x。两个包都提供 `opencode` 命令,不先卸载旧包时 PATH 上可能仍是 1.x。
Why
No further detail recorded for this rule.
Fix
—
INFOSupply chainprompt.pipe_to_shell · skills/story-setup/references/deploy-opencode.md:11
F-08 Supply chainCWE-829 · CWE-1357Layer L2
- 主版本 < 2 → 停止 OpenCode 部署(其它 target 照常),告诉用户先升级到 2.x(先 `npm rm -g opencode-ai`,再 `npm i -g @opencode/cli` 或 `curl -fsSL https://opencode.ai/v2/install | bash`),装好后重跑 story-setup
Why
No further detail recorded for this rule.
Fix
—

Audit 0.4.1 · source sha 2ad3dba961bd · 7 Oct 2026Report an issue or request a re-scan

Provenance

Who published it, and what the verdict is pinned to

  • Publisherzenstory-ai GitHub organizationOwner of the repository this skill is read from
  • Source folderzenstory-ai/oh-story-claudecodeThe exact folder we audited
  • LicenceMITAs the repository states it
  • Commit pinned for this verdict2ad3dba961bdA new audit runs when the source changes
  • Repository statusNot archivedLast push 3 days ago
  • Sandboxed runNot runSkills are read, not executed; layer L4 is skipped

What it tells the agent

Full source on GitHub ↗

Its description: Use this skill when you need to control a Chrome browser via CDP (Chrome DevTools Protocol) to reuse existing login sessions. Covers: launching Chrome in debug mode, opening URLs, waiting for page load, evaluating…

---
name: browser-cdp
description: "Use this skill when you need to control a Chrome browser via CDP (Chrome DevTools Protocol) to reuse existing login sessions. Covers: launching Chrome in debug mode, opening URLs, waiting for page load, evaluating JavaScript, taking snapshots, and extracting auth tokens. Trigger phrases: browser automation, CDP, agent-browser, 浏览器操作, 操作浏览器, Chrome CDP, 复用登录态, extract token from browser."
metadata: {"openclaw":{"requires":{"bins":["agent-browser"]},"source":"https://github.com/zenstory-ai/oh-story-claudecode"}}
---
# Browser CDP 操作工具

通过 CDP 协议控制 Chrome,复用已有登录态,执行浏览器自动化操作。

## 前置条件

- macOS / Linux / Windows(实验性),已安装 Google Chrome
- Node.js 20+
- `agent-browser` 已安装:`npm install -g agent-browser`

> ⚠️ **首次启动会 kill 用户的常规 Chrome。** 在启动前必须征求用户同意(见下方"启动流程"),否则用户可能丢失未保存的标签页/草稿。

---

## 启动流程(skill-mode 强制步骤)

**第一步:探测当前状态(无副作用)**

```bash
node {SKILL_DIR}/scripts/setup-cdp-chrome.js 9222 --detect-only
```

输出形如:

```
CDP_STATUS=ready                        # 已就绪,可直接复用
CDP_URL=http://127.0.0.1:9222/json/version
BROWSER=Chrome/148.0.7778.168
```

或:

```
CDP_STATUS=needs-setup
CHROME_RUNNING=yes                      # 用户有 Chrome 在跑,启动会杀掉
CHROME_PID_COUNT=3
```

**第二步:根据探测结果分支**

- `CDP_STATUS=ready` → 直接使用 `agent-browser --cdp 9222 ...`,**不要运行 setup**。
- `CDP_STATUS=needs-setup` 且 `CHROME_RUNNING=no` → 安全启动:
  ```bash
  node {SKILL_DIR}/scripts/setup-cdp-chrome.js 9222 --yes
  ```
- `CDP_STATUS=needs-setup` 且 `CHROME_RUNNING=yes` → **先用 AskUserQuestion 工具向用户确认**:告知会杀掉 N 个 Chrome 进程、可能丢失未保存工作;用户同意后再带 `--yes` 启动;用户拒绝则放弃这次自动化。

**为什么不能直接 `--yes`:** 脚本在非 TTY(即 skill 模式 / Bash 工具)下,如果检测到 Chrome 在跑而没有 `--yes`,会以退出码 3 报 `NEEDS_CONSENT: ...` 并中止,**不会**静默杀进程。这是有意的兜底——但 skill 流程仍应先问用户,而不是看到 3 就盲传 `--yes`。

---

## 启动脚本选项

| 选项 | 说明 |
|------|------|
| `--detect-only` | 只探测,不修改任何状态(skill 用) |
| `--yes` | 已征得同意,跳过交互提示 |
| `--reset` | 启动前清空 `~/chrome-debug-profile`(登录失效时用) |
| `--profile <name>` | 使用非 Default 的 Chrome profile(如 `"Profile 1"`) |
| `--dry-run` | 打印将执行的步骤,不执行 |

退出码:`0` 成功 / `1` 通用错误 / `2` 用户拒绝(TTY)/ `3` 需同意但缺 `--yes`。

---

## 常用操作

### 打开页面并等待加载

```bash
agent-browser --cdp 9222 open "<URL>"
agent-browser --cdp 9222 wait 3000
```

### 提取页面文本

```bash
agent-browser --cdp 9222 eval 'document.body.innerText.substring(0, 8000)'
```

### 提取 Auth Token

```bash
agent-browser --cdp 9222 eval 'localStorage.getItem("token") || document.cookie'
```

### 复杂 JS(含引号 / `$` / 反引号)

shell 转义容易出错,用以下两种方式之一:

```bash
# 1) base64 包裹
agent-browser --cdp 9222 eval -b "$(echo -n "document.querySelectorAll('a').length" | base64)"

# 2) heredoc + --stdin
cat <<'EOF' | agent-browser --cdp 9222 eval --stdin
const links = document.querySelectorAll('a');
links.length;
EOF
```

### 页面交互(snapshot 拿元素引用)

```bash
agent-browser --cdp 9222 snapshot -i        # 仅交互元素
agent-browser --cdp 9222 click "<CSS or @e1>"
agent-browser --cdp 9222 type "<sel>" "<text>"
```

---

## 停止 / 清理

- 关掉 debug Chrome 窗口即可。若窗口无响应,先按 `--user-data-dir` 核验出 debug 实例的 PID 再只结束它:
  - macOS / Linux:`pgrep -af chrome-debug-profile`
  - Windows:`wmic process where "name='chrome.exe'" get ProcessId,CommandLine | findstr chrome-debug-profile`
  拿到 PID 后 `kill -9 {PID}` / `taskkill /F /PID {PID}`。核验不出归属时停止,**手工清理不得按 Chrome 可执行文件名批量结束进程**——那会连带杀掉用户的日常 Chrome。
  例外:`setup-cdp-chrome.js --reset` 内部确实会做一次按可执行名的清理,它属于本 skill 自带的、需 `--yes` 显式同意的启动流程;手工排障不要复制该做法。
- 登录态失效:`node {SKILL_DIR}/scripts/setup-cdp-chrome.js 9222 --reset --yes`(注意 `--yes` 同样需要先问用户)。

---

## OpenCode 环境注意事项

opencode 没有后台执行命令行的工具,长时间的 CDP 操作(如等待页面加载、大批量数据抓取)会阻塞整个会话,导致 CLI 无响应。

### 超时包装

Windows 上对 CDP 命令使用 PowerShell Job 包装超时:

```powershell
$job = Start-Job { agent-browser --cdp 9222 eval "window.location.replace('https://www.qidian.com/rank/')" }
Wait-Job $job -Timeout 30 | Out-Null
if ($job.State -eq 'Running') { Stop-Job $job; Write-Output "⏱ CDP 操作超时(30s),请重试或手动打断" }
else { Receive-Job $job }
Remove-Job $job -Force
```

macOS / Linux 上使用 `timeout` 命令:

```bash
timeout 30 agent-browser --cdp 9222 eval "window.location.replace('https://www.qidian.com/rank/')" || echo "⏱ CDP 操作超时(30s),请重试或手动打断"
```

### 已知限制

即使加了超时包装,以下场景仍可能出现问题:

| 场景 | 风险 | 缓解 |
|------|------|------|
| 页面加载超时 | eval 命令等待永不返回 | 设置 30s 超时,超时后重试 |
| 大批量数据抓取 | 多页翻页时累计等待过长 | 每页独立超时,失败后从断点继续 |
| Chrome 进程僵死 | CDP 连接断开但进程未退出 | 先核验 debug profile 对应 PID,只结束该 debug 实例后重连;不得连带普通 Chrome |
| 网络波动 | 请求挂起无超时 | 超时后自动重试一次 |

如遇到持续卡死的操作,在 opencode 中按 `ESC` 手动打断。

---

## 常见问题

| 问题 | 解决方案 |
|------|----------|
| `NEEDS_CONSENT` + 退出码 3 | 用 AskUserQuestion 询问用户是否允许杀掉 Chrome,同意后加 `--yes` 重跑 |
| CDP 端口未监听 | `--detect-only` 再确认;端口被占用则换端口 |
| 页面跳转到登录页 | `snapshot -i` 找登录按钮并操作 |
| `eval` 返回 `null` | 检查 localStorage key 名;含引号的 JS 用 `eval -b` 或 `--stdin` |
| 登录态过期 | `setup-cdp-chrome.js 9222 --reset --yes` 重新拷贝 |
| 有多个 Chrome profile | `--profile "Profile 1"` 指定 |
| Chrome 不会启动(30s 超时) | 试 `--reset`;检查端口冲突;查看 `~/chrome-debug-profile/` 是否损坏 |

Excerpt, first 4,915 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.

Install

Pinned to the audited commit 2ad3dba

Download folder ↗
npx skills add zenstory-ai/oh-story-claudecode -y -g
claude plugin install oh-story@oh-story-skills

Commands as the repository documents them: shown, never run by us. Our verdict covers commit 2ad3dba961bd only.

Works in which agents?

What its own text says, not a test

AgentStatusMore
Claude CodeMentioned in its text, not testedSkills for Claude Code · About Claude Code
CodexMentioned in its text, not testedSkills for Codex · About Codex
OpenClawMentioned in its text, not testedSkills for OpenClaw · About OpenClaw
“Mentioned” means the skill’s text names the agent. We have not run it there.

Audit history

Every audit, every source change

  1. !CAUTION C 77 / 100

    source changed, verdict held · source 2ad3dba961bd

  2. !CAUTION C 77 / 100

    first audit · source 72c04af6bdf4

Browser Cdp!CAUTION

worldwonderer/oh-story-claudecode

Use this skill when you need to control a Chrome browser via CDP (Chrome DevTools Protocol) to reuse existing login sessions. Covers: launching Chrome in debug mode, opening URLs, waiting for page load, evaluating…

★ 7.4kGrade B
Story!CAUTION

worldwonderer/oh-story-claudecode

网络小说工具箱主入口。根据用户需求自动路由到对应 skill,并可管理作者习惯、启动本地 Dashboard。触发方式:/story、$story、/story dashboard、/网文、「我想写小说」「记住我的写作习惯」「打开工作台」「检查更新」。

★ 7.4kGrade B
Story Cover✓SAFE

worldwonderer/oh-story-claudecode

小说封面生成。根据书名、作者名自动分析题材风格,调用 GPT-Image-2 生成含标题和署名的专业级网文封面;Codex CLI 优先使用内置 ImageGen,无需单独 API Key。触发方式:/story-cover、/封面、「帮我做个封面」「生成封面图」「做个小说封面」「封面设计」。

★ 7.4kGrade B
Story Deslop✓SAFE

worldwonderer/oh-story-claudecode

网文去AI味。检测并清除文本中的AI写作痕迹,让文字回归自然、非模板化。触发方式:/story-deslop、/去AI味、「去AI味」「这篇太AI了」「网文去AI味」。

★ 7.4kGrade B
Story Import!CAUTION

worldwonderer/oh-story-claudecode

逆向导入已有小说。将已写好的小说(半成品或完本)反向解析为标准项目目录结构,兼容 story-long-write / story-short-write 后续写作流程;内部复用 story-long-analyze / story-short-analyze 的拆解管道,按篇幅自动分流。触发方式:/story-import、「导入小说」「反向解析」「导入」「把我的书导进来」。

★ 7.4kGrade B
Story Long Analyze!CAUTION

worldwonderer/oh-story-claudecode

长篇网文拆文。保留黄金三章、逐章摘要、剧情、情绪、节奏、角色、设定和文风接口,以连续章节块完成因果、双时间线、关系与三维节奏分析;兼容旧成果直接使用、按需增强和断点续跑。含可选三层灵感库管道(灵感库、跨书灵感聚合、更新灵感库)。触发方式:/story-long-analyze、/长篇拆文、「帮我拆这本书」「拆这本书」「分析黄金三章」「深度拆解」「完整拆解」或提供小说文本文件路径。

★ 7.4kGrade B

Questions about oh-story-claudecode

What does the oh-story-claudecode skill do?
Claude Code / Codex / OpenCode agent skills for writing Chinese web novels (网文): 扫榜、拆文、写作、去AI味、封面全流程,长篇短篇都支持 | 13 skills for novel writing and long-form fiction with file-based continuity tracking. MIT.
Is oh-story-claudecode safe to install?
With care. The audit graded it C (77/100) and found 24 things worth knowing before you trust this skill, listed below with the exact line each was found on.
What can oh-story-claudecode access on my machine?
The audit observed that it reaches the network, runs shell commands and reads or writes files. Each of those is consistent with what it says it does. Secrets in the source: none found.
Which assistants does oh-story-claudecode work with?
Its documentation mentions claude-code, codex and openclaw. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (2ad3dba961bd), read on 2026-10-07. The repository is watched, and a new audit runs when it changes — this is audit number 2.

Sources

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.