{"repo":"fancyboi999/goofish-cli","free":true,"listed":false,"github":"https://github.com/fancyboi999/goofish-cli","clone":"git clone https://github.com/fancyboi999/goofish-cli.git","description":"闲鱼 CLI · 原生支持 MCP · 为 AI Agent 而生 | Goofish (Xianyu) automation CLI · MCP-ready · Built for AI Agents","language":"Python","stars":122,"topics":["ai-agent","automation","claude","cli","goofish","mcp","mcp-server","python","typer","websocket"],"license":"Apache-2.0","category":"mcp-servers","readme_excerpt":"goofish-cli 闲鱼 CLI · 原生支持 MCP · 为 AI Agent 而生 Goofish (Xianyu) automation CLI · MCP-ready · Built for AI Agents ▶️ 点击查看带终端音效 + 配乐的高清 MP4（46s） goofish-cli 把闲鱼（Xianyu/Goofish）的核心运营能力抽成一套结构化命令， 同一份定义 同时输出给四种消费者： - 👨‍💻 人类 ： goofish item get 12345 --format table - 🤖 AI Agent（Claude Code / Cursor / Codex） ： uvx goofish-cli → 自动注册成 MCP tool - 🧩 Claude Skills （v0.3）：5 个内置 skill， goofish skills install 一行装到 /.claude/skills/ - OpenClaw ：ClawHub bundle 一次安装 MCP server + 5 个 skills 架构思想来自 opencli 的 single-registry 设计。 --- ✨ 核心特性 - 🔐 17 个命令覆盖核心链路 ：发布、下架、查询、图片上传、AI 类目识别、默认地址、IM 收发 + 会话列表、skills 安装 - 📡 真·实时 IM ：WebSocket 长连 + 自动重连 + 三类事件分类输出 - event=message （收到消息）· event=read （已读回执）· event=new msg （轻量通知） - 🛡 内置风控护栏 ：令牌桶限流（1 写/分钟）+ RGV587 自动熔断 - 🧠 AI-first I/O ： --format json/yaml/table/md/csv ，给 LLM 喂 JSON、给人看表格 - ⚡ 一次定义，三种入口 ：CLI / MCP / Skill 共享同一 registry - ✅ 真实端到端验证 ：每个命令都跑过真实账号 --- 🚀 60 秒上手 --- 🧩 Claude Skills（v0.3 新增） v0.3 起内置 5 个 Claude Skill，装完之后 Claude Code / Cursor 里的 Agent 在识别到 闲鱼任务就会自动加载对应 skill 的知识库， 不再靠 zero-shot 试错 。 5 个 skill 分工 Skill 什么时候激活 核心能力 --- --- --- goofish-overview 用户首次提闲鱼 / 问这工具能干啥 总入口，dispatch 到其他 4 个 skill goofish-publish-item 发商品 / 上架 / 挂闲置 类目识别 → 标题 5 段式 → 风控扫描 → 图片检查 → 确认发布 goofish-reply-buyer 回消息 / 看未读 / 议价 拉未读 → 意图 5 分类 → 议价三档（小刀/大刀/屠龙刀）→ 用户确认发送 goofish-risk-guard 发布前 / 发送前 / 被限流了 违禁词表、外联词正则、发布红线、x5sec 恢复指引（被其他 skill 频繁引用） goofish-shop-diagnosis 店铺没流量 / 曝光掉了 买家视角搜索 + 历史对比 → 归因清单 + 修复建议（纯读不写） skill 的源文件在仓库的 skills/ 目录下（每个 skill 一个子目录，含 SKILL.md + r","default_branch":null,"files":null,"tree":[],"storefront":"/r/fancyboi999","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fancyboi999/goofish-cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}