← 返回 Skills 市场
只需要发律动文章链接,帮你抓取并保存到 ChainThink 后台
作者
ShinChan_Crayon
· GitHub ↗
· v1.0.1
341
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install blockbeats-to-chainthink
功能描述
自动抓取律动 BlockBeats文章内容并保存为ChainThink后台草稿,支持标题、摘要、正文和图片提取与上传。
使用说明 (SKILL.md)
BlockBeats to ChainThink Skill
从律动 BlockBeats 抓取文章并自动保存到 ChainThink 后台草稿。
使用场景
当用户提供律动 BlockBeats 文章链接(如 https://www.theblockbeats.info/news/xxxxx),自动:
- 提取文章标题、摘要、正文和图片
- 保存到 ChainThink 后台草稿
- 返回文章 ID
工作流程
- 打开浏览器访问 BlockBeats 文章页面
- 从
window.__NUXT__.data[0].info提取文章数据 - 调用 ChainThink API 保存草稿
ChainThink API 配置
- API 地址:
https://api-v2.chainthink.cn/ccs/v1/admin/content/publish - 认证方式:
x-token+x-user-idheaders - User ID: 51
- Token: 从 TOOLS.md 读取(需要用户提供)
使用方法
用户发送律动文章链接即可,例如:
- "抓取这篇文章:https://www.theblockbeats.info/news/61465"
- "把这个保存到 ChainThink:https://www.theblockbeats.info/news/61461"
实现步骤
1. 提取文章内容
使用浏览器工具访问 BlockBeats 页面并执行:
const data = window.__NUXT__.data[0];
return {
title: data.info.title,
abstract: data.info.abstract,
content: data.info.content
};
2. 保存到 ChainThink
调用 API:
curl 'https://api-v2.chainthink.cn/ccs/v1/admin/content/publish' \
-H 'Content-Type: application/json' \
-H 'X-App-Id: 101' \
-H 'x-token: \x3C从TOOLS.md读取>' \
-H 'x-user-id: 51' \
--data-raw '{
"id": "0",
"is_translate": true,
"translation": {
"zh-CN": {
"title": "\x3C文章标题>",
"text": "\x3CHTML正文>",
"abstract": "\x3C摘要>"
}
},
"type": 5,
"is_public": false,
"user_id": "3",
"as_user_id": "3"
}'
3. 返回结果
返回保存成功的文章 ID 和状态。
注意事项
- 图片链接保留原始 CDN 地址(
https://image.blockbeats.cn/...) - 内容格式为 HTML,保留所有标签
- 文章默认保存为草稿(
is_public: false) - Token 有效期约 7 天,过期需要重新获取
Token 配置
在 TOOLS.md 中添加:
### ChainThink API Token
x-token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
x-user-id: 51
安全使用建议
This skill mostly does what its name says, but there are red flags you should address before using it. The implementer embedded a JWT-like token inside fetch.sh and told users to paste a token into TOOLS.md, yet the registry declares no required credentials—this is inconsistent and insecure. Ask the author to: (1) remove any hard-coded token from the code, (2) declare required credentials in the manifest and accept tokens via environment variables or a secrets store (not a plaintext TOOLS.md), (3) document runtime binary requirements (openclaw CLI, jq, curl) so you can run it safely, and (4) confirm the token's owner, scope, and expiry and ideally rotate/revoke the example token shown. Until these issues are fixed, avoid running the script with real secrets or on privileged machines, and consider running it in an isolated environment. Also verify you have the right to repost BlockBeats content to ChainThink (copyright/terms of use).
功能分析
Type: OpenClaw Skill
Name: blockbeats-to-chainthink
Version: 1.0.1
The skill automates article migration from BlockBeats to ChainThink using browser scraping and API calls. It is classified as suspicious because fetch.sh contains a hardcoded JWT (JSON Web Token), which is a significant security vulnerability (credential leak) and contradicts the instructions in SKILL.md that claim the token should be read from a local configuration file. While the script uses jq for safe JSON construction, the hardcoded credential and the use of high-privilege browser evaluation tools warrant caution.
能力评估
Purpose & Capability
The high-level purpose (fetch article content and post to ChainThink) matches the code and instructions. However, the implementation hardcodes a JWT-like token in fetch.sh and asks users to add a token in TOOLS.md in SKILL.md, while the manifest declares no required credentials—this mismatch is inconsistent and unexplained. Also the script calls an 'openclaw browser' CLI and uses jq/curl but the skill declares no required binaries.
Instruction Scope
SKILL.md instructs the agent to evaluate JavaScript in the page (window.__NUXT__.data[0]) and then POST to the ChainThink API — which is consistent with the goal. But SKILL.md asks the user to put tokens into TOOLS.md (a place for secrets) and the script contains a hard-coded token; this is scope creep for secret handling. The instructions are specific but they implicitly assume access to a secrets file and to an OpenClaw browser tool that are not declared.
Install Mechanism
No install spec (instruction-only) which is low-risk. However the fetch.sh runtime depends on external tools not declared in the manifest: 'openclaw' CLI (openclaw browser action), jq, and curl. The absence of declared required binaries is an implementation inconsistency to be aware of.
Credentials
The skill requests no environment variables or credentials in the registry metadata, yet both SKILL.md and fetch.sh require an API token/x-user-id to authenticate to ChainThink. The script embeds a long JWT-like token directly in fetch.sh, and SKILL.md tells users to place a token in TOOLS.md. This is insecure and inconsistent: secrets should be declared and handled via secure env vars or secret storage, not embedded in files or code.
Persistence & Privilege
The skill is not always-enabled and does not request system-wide persistence. It does not modify other skills or system settings. Autonomous invocation is allowed (default) which is normal; no additional privilege flags are present.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install blockbeats-to-chainthink - 安装完成后,直接呼叫该 Skill 的名称或使用
/blockbeats-to-chainthink触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Initial release: fetch BlockBeats articles and save as drafts in ChainThink.
- Automatically extracts title, summary, body, and images from BlockBeats article links.
- Saves content to ChainThink backend via API, returning article ID.
- Uses token and user ID for authentication (provided in TOOLS.md).
- Supports simple user input with just a BlockBeats link.
元数据
常见问题
只需要发律动文章链接,帮你抓取并保存到 ChainThink 后台 是什么?
自动抓取律动 BlockBeats文章内容并保存为ChainThink后台草稿,支持标题、摘要、正文和图片提取与上传。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 341 次。
如何安装 只需要发律动文章链接,帮你抓取并保存到 ChainThink 后台?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install blockbeats-to-chainthink」即可一键安装,无需额外配置。
只需要发律动文章链接,帮你抓取并保存到 ChainThink 后台 是免费的吗?
是的,只需要发律动文章链接,帮你抓取并保存到 ChainThink 后台 完全免费(开源免费),可自由下载、安装和使用。
只需要发律动文章链接,帮你抓取并保存到 ChainThink 后台 支持哪些平台?
只需要发律动文章链接,帮你抓取并保存到 ChainThink 后台 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 只需要发律动文章链接,帮你抓取并保存到 ChainThink 后台?
由 ShinChan_Crayon(@dyc0616c-oss)开发并维护,当前版本 v1.0.1。
推荐 Skills