技能图谱SKILLSGROVE
技能图谱/效率工具/imjszhang/js-eyes/js-wechat-ops-skill

js-wechat-ops-skill

安装

$npx skills add https://github.com/imjszhang/js-eyes --skill js-wechat-ops-skill
$git clone --depth 1 https://github.com/imjszhang/js-eyes.git /tmp/js-eyes && mkdir -p ~/.claude/skills && cp -r /tmp/js-eyes/skills/js-wechat-ops-skill ~/.claude/skills/js-wechat-ops-skill
请帮我安装这个 Agent Skill:https://github.com/imjszhang/js-eyes/tree/9b65ea07169177c8eca1ed204bde3794c3264550/skills/js-wechat-ops-skill ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MIT微信公众号内容读取 skill,基于 JS-Eyes 浏览器自动化获取文章标题、作者、正文、封面和图片列表。
以下 SKILL.md 内容转载自 imjszhang/js-eyes(提交 9b65ea0),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 imjszhang 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

js-wechat-ops-skill

面向微信公众号文章详情读取的 skill。首版聚焦单篇文章,不做搜索、历史文章列表和评论区。

前置条件

  1. Node.js 22+、JS Eyes 2.8.5+,且 JS-Eyes Server 已运行
  2. 浏览器已安装 JS-Eyes 扩展并连接到服务器
  3. 浏览器可正常访问微信公众号文章页面
  4. 宿主设置 security.allowRawEval: true;JS Eyes 2.5+ 会同步到扩展,扩展侧显式 false 仍可强制关闭
  5. Chrome 要求 135+;Chrome 138+ 还需开启浏览器控制的 Allow User Scripts

公开文章通常无需登录;受限或失效文章取决于浏览器已有会话,本 Skill 不执行登录自动化。

提供的 AI 工具

工具 说明
wechat_get_article 读取微信公众号文章详情,返回标题、作者、摘要、正文、封面图和图片列表

CLI

node skills/js-wechat-ops-skill/index.js article "https://mp.weixin.qq.com/s/xxxx" --pretty

编程 API

const { BrowserAutomation } = require('./lib/js-eyes-client');
const { getArticle } = require('./lib/api');

const browser = new BrowserAutomation('ws://localhost:18080');
const result = await getArticle(browser, 'https://mp.weixin.qq.com/s/xxxx');

Recording

js-wechat-ops-skill 现已接入统一的 skill recording 底座,支持调用历史、结果缓存和调试记录。

  • 默认记录模式跟随 js-eyes 全局配置中的 recording.mode
  • CLI 可覆盖:
    • --recording-mode off|history|standard|debug
    • --debug-recording
    • --no-cache
    • --recording-base-dir /absolute/path
    • --run-id custom-id

默认按技能分目录落盘到 ~/.js-eyes/skill-records/js-wechat-ops-skill/,其中包含:

  • history/:按月滚动的调用历史 jsonl
  • cache/article:文章结构化缓存
  • debug/:调试模式下的页面步骤、DOM 统计和结果快照
查看许可证全文(MIT)
MIT License

Copyright (c) 2026 imjszhang

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.