← 返回 Skills 市场
dongnan

Article Workflow

作者 dongnan · GitHub ↗ · v1.2.1 · MIT-0
cross-platform ⚠ suspicious
340
总下载
0
收藏
1
当前安装
10
版本数
在 OpenClaw 中安装
/install article-workflow
功能描述
自动抓取并分析文章URL,生成摘要、标签和质量评分,支持去重、归档至飞书及定时监控。
使用说明 (SKILL.md)

Article Workflow Skill

描述

文章分析工作流自动化 Skill。提供从文章抓取、分析、归档到质量评分的完整流程,支持 URL 去重、Heartbeat 自动触发、监控日志等功能。

注意: 本 Skill 已合并原 article-analyzer 功能,推荐使用本 Skill。

🔒 安全说明

数据边界:

  • ✅ 所有数据文件在 skills/article-workflow/data/
  • ✅ 所有日志文件在 skills/article-workflow/logs/
  • ✅ 不访问工作区外文件
  • ✅ 路径验证确保所有操作在 Skill 目录内

凭证要求:

  • ✅ 需要 BITABLE_APP_TOKENBITABLE_TABLE_ID
  • ✅ 凭证通过 config.json 或环境变量提供
  • ✅ 敏感信息不会被提交到版本控制(.gitignore)

运行模式:

  • 独立模式 - 仅 CLI 功能(去重检查、状态查看)
  • 集成模式 - 需要 OpenClaw 环境(完整功能)

使用场景

当用户需要:

  • 分析文章 URL(微信、知乎、GitHub 等)
  • 自动生成摘要、标签、分析报告
  • 将分析结果归档到飞书多维表格和文档
  • 对文章进行质量评分(S/A/B/C/D)
  • 自动检查重复 URL
  • 定时自动处理群聊中的文章链接
  • 批量分析多篇文章(并发执行)

🚀 智能路由模式

单篇模式(默认)

触发: 单篇文章 URL

分析这篇文章:https://example.com/article

执行方式: 主 Agent 一次性执行(1 次流式请求)

主 Agent(机器人)
  ├─ 流式请求开始 ─────┐
  │  1. web_fetch 抓取   │
  │  2. 自己分析内容     │  ← 同一次流式请求
  │  3. 生成完整报告     │
  │  4. feishu_create_doc│
  │  5. feishu_bitable   │
  └─ 流式请求结束 ─────┘
  
模型请求次数:1 次 ✅

批量模式(自动)

触发: 多篇文章 URL

批量分析这些文章:
- https://example.com/article1
- https://example.com/article2
- https://example.com/article3

执行方式: SubAgent 并发执行(N 次但并行)

主 Agent(机器人)
  ├─ 创建 3 个 SubAgent(并发)
  │   ├─ SubAgent-1: 分析 url1  →  1 次流式请求
  │   ├─ SubAgent-2: 分析 url2  →  1 次流式请求
  │   └─ SubAgent-3: 分析 url3  →  1 次流式请求
  └─ 汇总结果
  
模型请求次数:3 次(但并发执行,总时间 ≈ 1 次)✅

并发控制

  • 最大并发数: 5 个 SubAgent
  • 超过限制: 自动分批处理
  • 流式优化: 工具调用不中断流式,算 1 次请求

工作流程

单篇模式

输入:文章 URL
  ↓
主 Agent 智能路由(单篇模式)
  ├─ web_fetch 抓取内容
  ├─ 分析内容 + 质量评分
  ├─ 生成详细报告
  ├─ feishu_create_doc 创建文档
  └─ feishu_bitable 归档到多维表格
  ↓
输出:摘要 + 报告链接 + 评分

批量模式

输入:多篇文章 URL
  ↓
主 Agent 智能路由(批量模式)
  ├─ 创建 SubAgent #1 ─→ 分析文章 1
  ├─ 创建 SubAgent #2 ─→ 分析文章 2
  ├─ 创建 SubAgent #3 ─→ 分析文章 3
  └─ 等待所有 SubAgent 完成
      ↓
    汇总所有结果
  ↓
输出:汇总报告 + 各文章链接

🔧 配置管理

配置保护机制

重要: config.json 包含敏感信息,已加入 .gitignore,不会被 Git 提交。

在修改/升级 Skill 前:

cd skills/article-workflow

# 1. 备份配置(修改前必做)
python3 scripts/config_manager.py backup

# 或使用脚本
./scripts/backup-config.sh

修改/升级后:

# 恢复配置
python3 scripts/config_manager.py restore

# 或使用脚本
./scripts/restore-config.sh

首次使用配置

方式 1:配置向导(推荐)

python3 scripts/config_manager.py guide

方式 2:手动创建

# 复制示例配置
cp config.example.json config.json

# 编辑配置
vim config.json

方式 3:环境变量

export BITABLE_APP_TOKEN=your_token
export BITABLE_TABLE_ID=your_table_id

配置参数

config.json 中配置:

{
  "bitable": {
    "app_token": "YOUR_BITABLE_TOKEN",
    "table_id": "YOUR_TABLE_ID"
  },
  "workflow": {
    "check_interval_hours": 6,
    "batch_limit": 10,
    "enable_quality_score": true,
    "enable_url_dedup": true
  },
  "paths": {
    "data": "./data",
    "logs": "./logs"
  }
}

命令

分析单篇文章

飞书单聊(推荐):

分析这篇文章:https://example.com/article

飞书群聊:

分析这篇文章:https://example.com/article

单聊时无需@机器人,直接发送即可。

查看状态

cd skills/article-workflow
./scripts/monitor.sh status

生成周报

./scripts/monitor.sh report

清理数据

./scripts/monitor.sh cleanup

输出格式

群聊消息

✅ 文章分析完成

📌 [文章标题]
🔗 [URL]

📝 简短摘要
[3-5 句摘要]

🏷️ 标签:[标签 1] [标签 2] [标签 3]
⭐ 重要程度:[高/中/低]
📊 质量评分:[85/100] (A 级)

📄 详细报告:[飞书文档链接]
📊 已录入:[Bitable 链接]

Bitable 字段映射

必填字段:

字段名 说明 来源
文章标题(主) 主字段(显示用) 文章标题
标题 副标题(兼容用) 文章标题(与主字段相同)
简短摘要 3-5 句摘要 LLM 生成
阅读日期 分析日期 当前时间戳
来源 文章来源 微信/GitHub/知乎等
关键词标签 多选标签 LLM 提取 + 匹配现有选项
重要程度 高/中 根据质量评分
状态 已完成 固定值
创建方式 手动触发/自动分析 根据触发方式
URL 链接 原文链接 用户提供的 URL
详细报告链接 飞书文档链接 feishu_create_doc 返回

注意: "文章标题(主)"和"标题"都需要填写,确保数据完整性。

质量评分

总分 等级 重要程度 处理策略
85-100 S 级 极高 立即处理 + 团队分享
70-84 A 级 优先处理 + 详细分析
55-69 B 级 正常处理 + 标准报告
40-54 C 级 简略处理 + 基础摘要
0-39 D 级 极低 跳过或仅存档

依赖

  • Python 3.7+
  • 飞书开放平台 API
  • OpenClaw 框架

安装

cd ~/.openclaw/workspace/skills
git clone \x3Crepo_url> article-workflow
cd article-workflow
./install.sh

文件结构

article-workflow/
├── SKILL.md                    # 本文件
├── README.md                   # 详细文档
├── install.sh                  # 安装脚本
├── config.example.json         # 配置模板
├── scripts/                    # 可执行脚本
│   ├── check_url_dup.py        # URL 去重
│   ├── monitor.sh              # 监控
│   └── workflow.py             # 主流程
├── docs/                       # 文档
│   ├── config.md               # 配置说明
│   ├── quality-score.md        # 评分标准
│   └── automation.md           # 自动化
├── data/                       # 运行时数据
│   └── url_cache.json
└── logs/                       # 日志
    ├── workflow.log
    └── error.log

注意事项

  1. 首次使用需要配置 config.json
  2. 飞书授权需要完成 OAuth 流程
  3. Heartbeat 自动触发需要在 HEARTBEAT.md 中配置
  4. 日志文件建议定期清理(>30 天)
  5. URL 缓存保留最近 1000 条记录

故障排查

URL 去重不生效

  • 检查 data/url_cache.json 是否存在
  • 验证 Python 脚本权限:chmod +x scripts/check_url_dup.py

监控脚本报错

  • 检查 Bash 版本:需要 4.0+
  • 验证路径配置

质量评分偏差

  • 调整 docs/quality-score.md 中的权重
  • 优化 LLM 提示词

版本

  • 当前版本: 1.0.0
  • 最后更新: 2026-03-14
  • 作者: Nox(DongNan 的 AI 助理)

License

MIT License

安全使用建议
Before installing or enabling this skill: 1) Inspect install.sh, pre-git-operation.sh and scripts/config_manager.py to see what files they modify and whether they add Git hooks or run remote commands. Do not run install scripts without review. 2) Expect to provide Feishu/Bitable credentials (BITABLE_APP_TOKEN and BITABLE_TABLE_ID); the registry metadata omits these — the skill will not function without them. 3) Check for any hard-coded or example tokens in docs/files (there are sample tokens shown); replace with your own secure tokens and do not commit real secrets. 4) Note the skill may create files outside the skill directory (e.g., /tmp paths, ~/.openclaw references) and suggests adding Git hooks — run it in a sandbox or isolated environment first. 5) Verify network endpoints used by the actual Feishu integration (not present in TODO stubs) so you know where data is sent. 6) If you plan to use it in production, audit code paths that read/write config.json/.config.backup.json and the backup/restore logic to ensure credentials are not accidentally published. If you want, I can list the specific files to review first (install.sh, pre-git-operation.sh, scripts/config_manager.py, any files containing 'token' strings).
功能分析
Type: OpenClaw Skill Name: article-workflow Version: 1.2.1 The Article Workflow skill bundle is a comprehensive toolset for automating article analysis and archiving to Feishu (Lark) Bitable. It implements legitimate features such as URL deduplication, quality scoring, and batch processing using SubAgents. Security-wise, the code demonstrates good practices by including path validation checks in `core/dedup.py` and `scripts/monitor.sh` to prevent directory traversal, and it provides dedicated scripts (`scripts/config_manager.py`) to handle sensitive credentials securely via `.gitignore`. No malicious patterns, such as data exfiltration, unauthorized remote execution, or harmful prompt injections, were detected.
能力评估
Purpose & Capability
The SKILL.md and code clearly implement article fetching, deduplication, LLM analysis, and Feishu (Bitable/doc) archival — so BITABLE_APP_TOKEN and BITABLE_TABLE_ID are reasonable requirements. However the registry metadata lists no required environment variables or primary credential, which is inconsistent with the stated need for Feishu credentials and OAuth. The presence of many scripts (install.sh, config_manager.py, pre-git-operation.sh) indicates install-time actions are expected even though no install spec was declared.
Instruction Scope
SKILL.md asserts a security boundary (data and logs stay under skills/article-workflow) and 'not access workspace files outside.' Several code paths contradict or expand that scope: CoverImageExtractor uses /tmp/openclaw/covers (outside the skill dir); docs/scripts work with ~/.openclaw/workspace and suggest Git hooks (pre-git-operation.sh) and backing up/restoring config files. The runtime instructions and scripts can modify filesystem state and Git hooks — more privilege than a purely 'analysis-only' instruction set. No unexplained external endpoints are obvious in the provided files, but many Feishu API calls are left as TODOs so network interactions will occur when integrated.
Install Mechanism
Registry reports 'No install spec — instruction-only', yet the package includes install.sh and many executable scripts and a recommended ./install.sh install flow. The absence of an explicit install specification in the registry combined with present install scripts is an inconsistency: the skill will likely perform filesystem changes during installation but this is not declared. Because install.sh content was not fully provided, the exact actions are unknown — review the script before running.
Credentials
Requested credentials (BITABLE_APP_TOKEN, BITABLE_TABLE_ID) described in SKILL.md are appropriate for a Feishu/Bitable integration. However the registry metadata does not declare these required env vars (mismatch). The repository/docs include concrete-looking sample tokens in examples and config snippets (e.g. CONFIG_PROTECTION.md), which is poor hygiene and could lead to accidental token leakage if replaced with real tokens or checked into VCS. No unrelated secrets (AWS, GCP, etc.) were requested in the provided files.
Persistence & Privilege
The skill does not request always:true and does not declare autonomous escalation; it writes backups and config files within its skill directory and suggests adding Git hooks and aliases for convenience. Modifying repo Git hooks or automatically managing config backups is a persistent behavior that requires attention but is not inherently malicious. Confirm pre-git-operation.sh and install.sh do not modify unrelated system-wide configuration or other skills.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install article-workflow
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /article-workflow 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.1
No user-facing changes detected in this release (no file changes).
v1.2.0
article-workflow v1.2.0 - 文档内容大量优化,增加 Bitable 字段映射表及字段规范说明 - 智能路由部分描述调整,主 Agent 由“Nox”明确为机器人,表述更直观 - docs/字段映射优化.md 新增,补充字段映射最佳实践 - docs/CONFIG_PROTECTION.md、docs/MIGRATION.md、docs/PUBLISH_GUIDE.md 等文档同步更新 - 作者信息、部分表述、用词风格调整以统一风格与可读性 - 修订部分依赖说明和注意事项,排查指引更为清晰
v1.1.1
- 移除 dist 目录及其中的 34 个构建产物和脚本文件,精简项目结构 - 新增 docs/PUBLISH_GUIDE.md,补充发布流程文档 - 更新 package.json 依赖和配置 - 无破坏性变更,核心功能和使用方式保持不变
v1.1.0
### v1.1.0 - Major upgrade with batch analysis, smart routing, and config protection - 新增“批量模式”:支持多篇文章并发分析,自动智能路由分配 SubAgent,提高处理效率。 - 引入单篇/批量智能路由,自动根据输入内容选择执行模式。 - 最大并发数限制与自动分批处理,提升批量场景下的稳定性。 - 增加配置保护机制:配置文件修改/升级前后支持一键备份和恢复,防止数据丢失。 - 新增配置管理脚本及示例配置文件,配置更加安全易用。 - 文档(SKILL.md, README.md)大幅丰富,补充批量能力、并发策略和配置方法。
v1.0.5
- Bumped version to 1.0.5 in package.json. - No other functionality or documentation changes in this update.
v1.0.4
- Updated package.json configuration. - No changes to core workflow, features, or documentation content. - Internal metadata/version bump only.
v1.0.3
v1.0.3 安全加固版 - 彻底清理敏感信息、移除硬编码 token、添加路径验证、声明凭证要求、创建安全规范
v1.0.2
v1.0.2 安全修复版 - 移除硬编码 token、添加路径验证、声明凭证要求、创建安全规范文档
v1.0.1
v1.0.1 安全优化版 - 移除硬编码 Token、修复路径问题、完善文档
v1.0.0
初始发布 - 文章分析工作流完整功能,包含混合去重、质量评分、单元测试
元数据
Slug article-workflow
版本 1.2.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 10
常见问题

Article Workflow 是什么?

自动抓取并分析文章URL,生成摘要、标签和质量评分,支持去重、归档至飞书及定时监控。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 340 次。

如何安装 Article Workflow?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install article-workflow」即可一键安装,无需额外配置。

Article Workflow 是免费的吗?

是的,Article Workflow 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Article Workflow 支持哪些平台?

Article Workflow 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Article Workflow?

由 dongnan(@dongnan)开发并维护,当前版本 v1.2.1。

💬 留言讨论