← 返回 Skills 市场
321704933

摸鱼日报和百度热搜等图片生成,持续升级中

作者 青衣大魔王 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
394
总下载
1
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install daily-poster
功能描述
Generate "摸鱼日报" or "百度热搜" posters from minimal JSON input, output SVG by default with optional PNG/JPG/WEBP export formats.
使用说明 (SKILL.md)

\r

Daily Poster\r

\r

Poster Type Map\r

\r

  • daily = 摸鱼日报\r
  • baidu_hot = 百度热点 / 百度热搜\r
  • 用户提到“摸鱼日报”“日报”“节假日倒计时”“下班倒计时”时,优先选择 daily\r
  • 用户提到“百度热点”“百度热搜”“热搜榜”“热榜”时,优先选择 baidu_hot\r \r

Use

\r

{\r
  "poster_type": "daily",\r
  "personal_info": {\r
    "name": "智普虾🦐",\r
    "bio_lines": [\r
      "OpenClaw 驱动的 AI 助手,搭载GLM5 模型,机智温暖有点俏皮"\r
    ]\r
  }\r
}\r
```\r
\r
- 默认入口:`python scripts/render_poster.py --spec \x3Cspec.json> --output out/poster`\r
- `poster_type` 只支持 `daily` 和 `baidu_hot`
- `poster_type: "daily"` 表示“摸鱼日报”版式
- `poster_type: "baidu_hot"` 表示“百度热点 / 百度热搜”版式
- 用户未明确要求时,只收集 `personal_info.name` 和最多 `2` 行 `bio_lines`

## Output Format Map

当用户提到“生成图片”“导出 PNG”“发 JPG”“给我 WEBP”这类需求时,不要只停留在 SVG,要在 JSON 里补 `output`。

- 用户说“生成 png”“导出图片”“发一张海报图”时,优先使用 `output.formats: ["png"]`
- 用户说“既要源文件又要图片”“同时保留 svg 和 png”时,使用 `output.formats: ["svg", "png"]`
- 用户说“导出 jpg / jpeg”时,使用 `output.formats: ["jpg"]`,并补 `quality`
- 用户说“导出 webp”时,使用 `output.formats: ["webp"]`,并补 `quality`
- 用户没有指定清晰度时,`png` / `jpg` / `jpeg` / `webp` 默认推荐 `scale: 2`
- 用户没有指定压缩质量时,`jpg` / `jpeg` / `webp` 默认推荐 `quality: 92`
- 用户要求 `jpg` / `jpeg` 这类不透明格式时,默认补 `background: "#ffffff"`,除非用户明确要求别的底色
- AI 生成 JSON 时,优先显式写 `output.formats`,不要依赖 `--output out/poster.png` 这种后缀推断

推荐模板:

```json
{
  "output": {
    "formats": ["png"],
    "scale": 2
  }
}

常用输出示例:

{
  "output": {
    "formats": ["svg", "png"],
    "scale": 2
  }
}
{
  "output": {
    "formats": ["jpg"],
    "scale": 2,
    "quality": 92,
    "background": "#ffffff"
  }
}

Minimal Inputs

\r

# 摸鱼日报(daily)\r
python scripts/render_poster.py --type daily --spec references/daily-poster-spec.json --output out/daily_poster\r
\r
# 百度热点 / 百度热搜(baidu_hot)\r
python scripts/render_poster.py --type baidu_hot --spec references/baidu-hot-spec.json --output out/baidu_hot_poster\r
```\r
\r
`daily` 最小输入(摸鱼日报):\r
\r
```json\r
{\r
  "poster_type": "daily",\r
  "personal_info": {\r
    "name": "智普虾🦐",\r
    "bio_lines": [\r
      "OpenClaw 驱动的 AI 助手,搭载 GLM5 模型,机智温暖有点俏皮"\r
    ]\r
  }\r
}\r
```\r
\r
`baidu_hot` 最小输入(百度热点 / 百度热搜):\r
\r
```json\r
{\r
  "poster_type": "baidu_hot",\r
  "personal_info": {\r
    "name": "智普虾🦐",\r
    "bio_lines": [\r
      "OpenClaw 驱动的 AI 助手,搭载 GLM5 模型,机智温暖有点俏皮"\r
    ]\r
  }\r
}\r
```\r
\r
## Rules

- `bio_lines` / `text_lines` 最多保留前 `2` 行非空内容
- `baidu_hot` 的 `title`、`subtitle`、`api_url`、`limit` 全部内置,不接受外部 JSON 覆盖
- `baidu_hot` 顶部日期区同一行显示公历、星期、农历
- 所有入口脚本统一输出 JSON 结果
- 渲染器总是先生成 SVG,再按 `output.formats` 转换为 PNG/JPG/JPEG/WEBP
- 当用户只说“图片”但没有指定格式时,默认按 `png` 理解最稳妥
- 使用多个格式时,推荐命令写成 `--output out/poster`,程序会生成同名不同后缀文件
\r
## Key Files\r
\r
- `scripts/render_poster.py`: 统一入口\r
- `scripts/render_daily_poster.py`: 摸鱼日报渲染器\r
- `scripts/render_baidu_hot.py`: 百度热搜渲染器\r
- `scripts/poster_runtime.py`: 统一运行时和 stdout JSON\r
- `references/daily-poster-spec.json`: 摸鱼日报示例\r
- `references/baidu-hot-spec.json`: 百度热搜示例\r
安全使用建议
This package appears to be what it says: a JSON-driven poster generator that renders SVG and optionally converts to PNG/JPG/WEBP. Before installing or running it, consider the following: - Network activity: the 'baidu_hot' renderer uses a third‑party API (https://v2.xxapi.cn/api/baiduhot) to fetch hot‑search data, and the daily renderer may fetch remote image URLs (and cache them under references/cache). If you need to avoid outbound requests, inspect and modify render_baidu_hot.py and render_daily_poster.py to use local data or a different API. - Image backends: conversion to PNG/JPG/WEBP may call system binaries (ImageMagick, Inkscape, librsvg 'rsvg-convert', resvg) or use the Python resvg_py/Pillow packages. Installing those packages/binaries grants the renderer the ability to execute local subprocesses for conversion — this is expected but worth noting. - Files written: the tool writes outputs to the path you pass and may create a cache directory (references/cache). Review the repo's references/ and cache if you are concerned about write locations. - Third‑party trust: the skill relies on an external API (XXApi) for baidu hot data; confirm you trust that service for the data you plan to publish. If privacy matters, replace or stub the API with local data. If you want a stricter safety posture, run the renderer in a restricted environment (no network, limited file write permissions) or review/patch the network fetch code to remove or control external calls.
功能分析
Type: OpenClaw Skill Name: daily-poster Version: 1.0.0 The bundle provides poster rendering capabilities but contains risky behaviors, including network requests to third-party APIs (v2.xxapi.cn, 60s.viki.moe) to fetch dynamic content and the use of subprocess.run to execute external binaries (magick, inkscape, resvg) for image conversion in svg_image_converter.py. While these actions are consistent with the tool's stated purpose of generating and exporting posters, the reliance on external APIs and shell execution represents a potential attack surface. No evidence of intentional malice or data exfiltration was observed.
能力评估
Purpose & Capability
Name/description (generate 'daily' and 'baidu_hot' posters, output SVG and image exports) align with included files: rendering, lunar calendar, countdown, and SVG->image conversion. Declared requirements (none) are consistent with an instruction-first repo that includes Python scripts and a requirements.txt listing resvg_py and Pillow.
Instruction Scope
SKILL.md instructs the agent to run local Python renderer scripts and to produce SVG/PNG/JPG/WEBP outputs. The code legitimately reads JSON specs and writes output files. However, render_baidu_hot.py makes an outbound HTTP request to a third‑party endpoint (BAIDU_API_URL = "https://v2.xxapi.cn/api/baiduhot") to fetch hot‑search data, and render_daily_poster.py contains logic to fetch remote image assets (HTTP/HTTPS) and cache them under references/cache. SKILL.md does not explicitly call out network activity; if you need offline operation or want to avoid contacting external services, review or modify those places.
Install Mechanism
No automated install spec is provided (instruction-only), so nothing is downloaded or executed implicitly by an installer. The repository includes a requirements.txt (resvg_py, Pillow) which is proportional to SVG rendering and image conversion. Converters in svg_image_converter may invoke system binaries (ImageMagick 'magick', Inkscape, rsvg-convert, resvg) if present; this is expected behavior for image conversion but requires those binaries to be installed to enable some backends.
Credentials
The skill does not request environment variables, credentials, or configuration paths. There are no required secrets. Network calls are unauthenticated to a public API and to arbitrary image URLs supplied in spec; no credential exfiltration code is present.
Persistence & Privilege
The skill does not request permanent/enforced presence (always: false). It writes output files and may cache fetched images under references/cache, which is normal for this tool. It does not modify other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install daily-poster
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /daily-poster 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of daily-poster skill. - Generate "摸鱼日报" and "百度热点/热搜" posters from minimal JSON with Python, outputting SVG and optional PNG/JPG/JPEG/WEBP. - Automatically maps user words in Chinese to poster type and infers export requirements (e.g., image format) from prompts. - Provides clear JSON templates and output format recommendations for mainstream image types, with sensible defaults for scale, quality, and background. - All input/output and usage examples included for both poster variants, covering minimal and multi-format outputs. - Built-in rules ensure only intended fields are customizable, with consistent output via unified scripts.
元数据
Slug daily-poster
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

摸鱼日报和百度热搜等图片生成,持续升级中 是什么?

Generate "摸鱼日报" or "百度热搜" posters from minimal JSON input, output SVG by default with optional PNG/JPG/WEBP export formats. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 394 次。

如何安装 摸鱼日报和百度热搜等图片生成,持续升级中?

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

摸鱼日报和百度热搜等图片生成,持续升级中 是免费的吗?

是的,摸鱼日报和百度热搜等图片生成,持续升级中 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

摸鱼日报和百度热搜等图片生成,持续升级中 支持哪些平台?

摸鱼日报和百度热搜等图片生成,持续升级中 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 摸鱼日报和百度热搜等图片生成,持续升级中?

由 青衣大魔王(@321704933)开发并维护,当前版本 v1.0.0。

💬 留言讨论