agentleFS
jackjin1997jackjin1997/douban-mcp/skills/douban/SKILL.md

douban

Skill20 starsChanged 11 days agoMITView on GitHub

豆瓣电影、图书查询与个人书单/影单管理。当用户提到豆瓣、想看/在看/看过、书单、影单、电影评分、图书评分、Top250、豆列时使用。

  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. AceDataCloud/Skills★ 17same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

Files
SKILL.md

豆瓣 Skill (douban-mcp CLI)

触发场景

用户说该用
"豆瓣上 XX 评分多少?"search-movie 找 id → get-movie 看详情
"我想看的电影里有哪些科幻?"user-collections --status wish
"把 XX 标为看过 5 星"mark-movie --status collect --rating 5
"Top250 第一页"movie-chart --kind top250
"三体的评分多少"search-book → get-book

工作流

1. 搜索 → 详情

douban-mcp-cli --json search-movie --q "盗梦空间" --count 1 \
  | jq -r '.[0].id' \
  | xargs -I{} douban-mcp-cli get-movie --id {}

2. 我的待看清单

douban-mcp-cli --json user-collections --uid <your-uid> --category movie --status wish

如未配 cookie 或无 uid 报 AUTH_FAILED,提示用户:

  • 设置 DOUBAN_COOKIE 环境变量后 uid 可省略
  • 或显式传 --uid <id>

3. 批量标记(需写权限)

douban-mcp-cli --json user-collections --category movie --status wish \
  | jq -r '.[] | select(.subject.rating > 8) | .subject.id' \
  | xargs -I{} douban-mcp-cli mark-movie --id {} --status collect --rating 5

需 DOUBAN_COOKIE + DOUBAN_ENABLE_WRITE=true。

错误处理

Exit含义Agent 应该
0成功继续
1AUTH_FAILED / WRITE_DISABLED提示用户更新 cookie 或开启 enable_write
2NOT_FOUND报告 id 不存在
3RATE_LIMITED等 60s 重试
4PARSE_FAILED / NETWORK_ERROR / WRITE_REJECTED / UNKNOWN重试一次;仍失败则报告。WRITE_REJECTED 是豆瓣明确拒绝(message 带原因),不要重试

配置前置条件

  • 安装:npm i -g douban-mcp-cli 或 npx douban-mcp-cli
  • 写操作:export DOUBAN_COOKIE=...; export DOUBAN_ENABLE_WRITE=true

可用命令(自动生成,勿手改)

<!-- BEGIN AUTO-COMMANDS -->
命令说明
check验证 DOUBAN_COOKIE 是否仍然有效
search-movie按关键词搜索豆瓣电影。返回标题/年份/评分/链接的 markdown 列表。
get-movie获取一部电影的详细信息(导演、演员、评分、简介等)。id 是豆瓣电影 subject id(数字)。
list-movie-reviews获取一部电影的短评列表(不含长评)。
movie-chart获取电影榜单。kind: top250 (Top250)、weekly (一周口碑榜)、new (近期上映)。
search-book按关键词搜索豆瓣图书。
get-book获取图书详情(作者、出版、ISBN、简介等)。id 是豆瓣图书 subject id(数字)。
list-book-reviews获取图书的短评列表。
book-chart获取图书榜单。kind: fiction (小说)、non_fiction (随笔)、new (新书速递)。
user-collections获取某用户的"想看/在看/看过"列表。无 cookie 时必须传 uid。
user-doulist获取某用户的豆列清单。无 cookie 时必须传 uid。
user-profile获取某用户的基本信息。无 cookie 时必须传 uid。
mark-movie标记一部电影(想看/在看/看过),可选打分、备注、标签。需要 cookie + DOUBAN_ENABLE_WRITE。shareToFeed 默认 false(不广播)。
unmark-movie取消对一部电影的标记。
mark-book标记一本书(想看/在看/看过),可选打分、备注、标签。需要 cookie + DOUBAN_ENABLE_WRITE。shareToFeed 默认 false(不广播)。
unmark-book取消对一本书的标记。
<!-- END AUTO-COMMANDS -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.