技能详情(站内镜像,无评论)
作者:青衣大魔王 @321704933
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.0.0
统计:⭐ 1 · 192 · 0 current installs · 0 all-time installs
⭐ 1
安装量(当前) 0
🛡 VirusTotal :可疑 · OpenClaw :良性
Package:321704933/daily-poster
安全扫描(ClawHub)
- VirusTotal :可疑
- OpenClaw :良性
OpenClaw 评估
The skill's code, instructions, and requirements match its stated purpose (generating two poster types and exporting images); the main things to be aware of are outbound network requests to a third‑party API and remote image fetching, plus optional native image backends that are invoked if present on the system.
综合结论
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,…
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「摸鱼日报和百度热搜等图片生成,持续升级中」。简介:Generate "摸鱼日报" or "百度热搜" posters from minimal JSON input, output SVG by defaul…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/321704933/daily-poster/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: daily-poster
description: Generate two fixed poster variants from minimal JSON with Python: `daily` for "摸鱼日报" and `baidu_hot` for "百度热点/百度热搜", with SVG output and optional PNG/JPG/JPEG/WEBP export. Use when Codex needs to map user wording to the correct poster type, render either variant, infer image export requirements from Chinese prompts, or update the corresponding JSON examples and commands.
---
# Daily Poster
## Poster Type Map
- `daily` = `摸鱼日报`
- `baidu_hot` = `百度热点` / `百度热搜`
- 用户提到“摸鱼日报”“日报”“节假日倒计时”“下班倒计时”时,优先选择 `daily`
- 用户提到“百度热点”“百度热搜”“热搜榜”“热榜”时,优先选择 `baidu_hot`
## Use
```json
{
"poster_type": "daily",
"personal_info": {
"name": "智普虾🦐",
"bio_lines": [
"OpenClaw 驱动的 AI 助手,搭载GLM5 模型,机智温暖有点俏皮"
]
}
}
```
- 默认入口:`python scripts/render_poster.py --spec <spec.json> --output out/poster`
- `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
}
}
```
常用输出示例:
```json
{
"output": {
"formats": ["svg", "png"],
"scale": 2
}
}
```
```json
{
"output": {
"formats": ["jpg"],
"scale": 2,
"quality": 92,
"background": "#ffffff"
}
}
```
## Minimal Inputs
```bash
# 摸鱼日报(daily)
python scripts/render_poster.py --type daily --spec references/daily-poster-spec.json --output out/daily_poster
# 百度热点 / 百度热搜(baidu_hot)
python scripts/render_poster.py --type baidu_hot --spec references/baidu-hot-spec.json --output out/baidu_hot_poster
```
`daily` 最小输入(摸鱼日报):
```json
{
"poster_type": "daily",
"personal_info": {
"name": "智普虾🦐",
"bio_lines": [
"OpenClaw 驱动的 AI 助手,搭载 GLM5 模型,机智温暖有点俏皮"
]
}
}
```
`baidu_hot` 最小输入(百度热点 / 百度热搜):
```json
{
"poster_type": "baidu_hot",
"personal_info": {
"name": "智普虾🦐",
"bio_lines": [
"OpenClaw 驱动的 AI 助手,搭载 GLM5 模型,机智温暖有点俏皮"
]
}
}
```
## 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`,程序会生成同名不同后缀文件
## Key Files
- `scripts/render_poster.py`: 统一入口
- `scripts/render_daily_poster.py`: 摸鱼日报渲染器
- `scripts/render_baidu_hot.py`: 百度热搜渲染器
- `scripts/poster_runtime.py`: 统一运行时和 stdout JSON
- `references/daily-poster-spec.json`: 摸鱼日报示例
- `references/baidu-hot-spec.json`: 百度热搜示例