qiaomu-opencli-oneshot

Use when quickly generating a single OpenCLI command from a specific URL and goal description. 4-step process — open page, capture API, write TS adapter, test. For full site exploration, use opencli-explorer instead.

By joeseesun · 1,013 installs

npx skills add joeseesun/qiaomu-opencli-skills --skill qiaomu-opencli-oneshot

Source repository · Upstream listing

CLI ONESHOT — 单点快速 CLI 生成 给一个 URL + 一句话描述,4 步生成一个 CLI 命令。 完整探索式开发请看 [opencli explorer skill](../opencli explorer/SKILL.md)。 输入 项目 示例 URL https://x.com/jakevin7/lists Goal 获取我的 Twitter Lists 流程 Step 1: 打开页面 + 抓包 关键 :只关注返回 application/json 的请求,忽略静态资源。 如果没有自动触发 API,手动点击目标按钮/标签再抓一次。 Step 2: 锁定一个接口 从抓包结果中找到 那个 目标 API。看这几个字段: 字段 关注什么 URL API 路径 pattern(如 /i/api/graphql/xxx/ListsManagePinTimeline ) Method GET / POST Headers 有 Cookie? Bearer? CSRF? 自定义签名? Response 数据在哪个路径(如 data.list.lists ) Step 3: 验证接口能复现 在 browser evaluate 中用 fetch 复现请求: 如果 fetch 能拿到数据 → 用 TS adapter( cli() pipeline 或 func() )。 如果 fetch 拿不到(签名/风控)→ 用 intercept 策略(TS func() + installInterceptor )。 Step 4: 套模板,生成 adapter 根据 Step 3 判定的策略,选一个模板生成文件。 认证速查 模板 TS — Cookie/Public(最简, func() 模式) TS — Intercept(抓包模式) TS — Header(如 Twitter GraphQL) 测试(必做) 就这样,没了 写完文件 → build → run → 提交。有问题再看 [opencli explorer skill](../opencli explorer/SKILL.md)。