← 返回 Skills 市场
spootmu

NewsPaper

作者 spootmu · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
148
总下载
3
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install newspaper
功能描述
Render structured news content into a styled HTML newspaper page with optional AI-generated images using ComfyUI integration.
安全使用建议
This skill appears to do what it says: render HTML and optionally call a ComfyUI image service. Before installing, consider: 1) By default it calls local ComfyUI (127.0.0.1:8000); if you set COMFY_BASE_URL/COMFY_VIEW_URL to a remote service, your image prompt text (and any sensitive content included in it or in article bodies) will be sent to that external endpoint. 2) comfy-client.js logs the full image prompt to console — do not include sensitive data in imagePrompt or article body if you expect logs to be retained or forwarded. 3) The service writes HTML files to ./output and serves them on localhost:3000; ensure appropriate filesystem permissions and that hosting this on a network-exposed machine is intended. If you need stronger privacy, run ComfyUI locally, avoid sensitive prompt content, and review/disable or redirect logging in comfy-client.js.
功能分析
Type: OpenClaw Skill Name: newspaper Version: 1.0.1 The skill bundle provides a legitimate service for rendering structured news content into newspaper-style HTML pages, including integration with ComfyUI for image generation. The code in `server.js` and `comfy-client.js` follows standard Express and Axios patterns for API handling and template rendering (using Handlebars with default escaping), and the instructions in `SKILL.md` and `AGENT.md` are strictly aligned with the tool's stated purpose without any signs of prompt injection or malicious intent.
能力评估
Purpose & Capability
Name/description (HTML newspaper rendering + optional ComfyUI images) match the included files (server, comfy-client, Handlebars template). No unrelated environment variables, binaries, or config paths are required; package.json deps (express, axios, handlebars) are appropriate for the task.
Instruction Scope
SKILL.md and AGENT.md instruct the agent to POST to a local service (http://localhost:3000/render) and to contact a ComfyUI service at a local default (http://127.0.0.1:8000). The code only reads templates, writes HTML to ./output, and calls the ComfyUI endpoints /prompt, /history/{id}, and /queue. Potential privacy/information-leak note: comfy-client.js logs the full prompt to console (console.log('[ComfyUI] 开始生成图片,prompt:', prompt,...)), which contradicts the SKILL.md claim that logs only contain title and article count — image prompts (and thus any sensitive content included in prompts) can appear in logs and in requests to COMFY_BASE_URL. Also the rendered HTML embeds image URLs returned by ComfyUI (COMFY_VIEW_URL), so those URLs may point to external resources if COMFY_VIEW_URL is configured externally.
Install Mechanism
Instruction-only install (no install spec) and included source files — no external archives or unusual installers. Dependencies are standard npm packages trackable from package.json. This is a low-risk install mechanism.
Credentials
The skill declares no required environment variables; it documents optional COMFY_BASE_URL and COMFY_VIEW_URL to override local ComfyUI address. These are proportional to the advertised ComfyUI integration. No unrelated secrets/credentials are requested.
Persistence & Privilege
always:false; the skill runs as a normal service and writes output files to its own ./output directory. It does not modify other skills, system-wide agent settings, or request permanent platform-wide privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install newspaper
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /newspaper 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Added support for custom ComfyUI service endpoints via COMFY_BASE_URL and COMFY_VIEW_URL environment variables. - Updated ComfyUI integration documentation: endpoints are now configurable and distinguished as base and view URLs. - Clarified error handling for ComfyUI timeouts: solution now references comfyOptions.timeout. - Added a security note clarifying logging behavior and data privacy recommendations. - Minor improvements to ComfyUI section wording for clarity; no functional changes in API or core rendering logic.
v1.0.0
# AI Newspaper Rendering Service v1.0 ## 中文版 ### 这是什么? AI 报纸渲染服务是一个将新闻内容自动排版成**仿实体报纸风格**的工具。 想象一下:你提供新闻标题和内容,它返回一个精心排版的 HTML 页面——就像传统报纸那样,有大标题、多栏文字、配图,充满纸媒的质感。 ### 它能做什么? **1. 报纸风格排版** - 自动生成报头(大标题 + 副标题 + 日期) - 4 栏布局,栏与栏之间有分隔线 - 头条新闻跨栏显示,突出重要内容 - 使用宋体、楷体等传统报纸字体 **2. AI 配图生成** - 为新闻自动生成配图 - 只需提供英文描述(如:"A futuristic AI robot scientist") - 图片自动嵌入到合适位置 - 生成失败时自动使用占位图 **3. 响应式适配** - 大屏幕显示 4 栏 - 平板显示 3 栏 - 小屏手机显示 1 栏 - 无需额外配置 ### 使用场景 - 📰 **新闻汇总** - 将每日资讯排版成报纸 - 📋 **周报/月报** - 工作汇报的精美呈现 - 🎁 **创意礼物** - 把故事变成报纸纪念版 - 📢 **公告发布** - 正式公告的创意展示 --- ## English Version ### What is this? AI Newspaper Rendering Service is a tool that automatically formats news content into a **traditional newspaper-style** layout. Think of it this way: you provide headlines and content, and it returns a beautifully typeset HTML page—just like a real newspaper, with large headlines, multi-column text, images, and that classic print media feel. ### What does it do? **1. Newspaper-style Layout** - Auto-generates masthead (title + subtitle + date) - 4-column layout with separator lines - Lead articles span across all columns - Uses traditional Chinese serif fonts **2. AI Image Generation** - Automatically generates images for news articles - Just provide an English description (e.g., "A futuristic AI robot scientist") - Images are embedded in appropriate positions - Falls back to placeholders if generation fails **3. Responsive Design** - 4 columns on large screens - 3 columns on tablets - 1 column on mobile phones - No extra configuration needed ### Use Cases - 📰 **News Digest** - Format daily news into newspaper style - 📋 **Weekly/Monthly Reports** - Beautiful presentation for work reports - 🎁 **Creative Gifts** - Turn stories into commemorative newspapers - 📢 **Announcements** - Creative display for formal notices ---
元数据
Slug newspaper
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

NewsPaper 是什么?

Render structured news content into a styled HTML newspaper page with optional AI-generated images using ComfyUI integration. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 148 次。

如何安装 NewsPaper?

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

NewsPaper 是免费的吗?

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

NewsPaper 支持哪些平台?

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

谁开发了 NewsPaper?

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

💬 留言讨论