Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

Almanac Creator

v3.0.3

Daily Chinese Almanac Image Generator - Create traditional Huangli calendar images with zodiac fortune, fengshui tips, auspicious timing, and dressing advice...

0· 237·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for zhangj85/almanac-creator.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Almanac Creator" (zhangj85/almanac-creator) from ClawHub.
Skill page: https://clawhub.ai/zhangj85/almanac-creator
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install almanac-creator

ClawHub CLI

Package manager switcher

npx clawhub@latest install almanac-creator
Security Scan
VirusTotalVirusTotal
Suspicious
View report →
OpenClawOpenClaw
Suspicious
medium confidence
!
Purpose & Capability
The name/description match the code: scripts generate 3-page Huangli images and optional videos. However the registry metadata claims no required binaries/env yet the code invokes external binaries (ffmpeg) and libraries (Pillow, lunar-python, requests) that are not declared. There are many Windows-specific absolute paths (C:\Users\liuyan\.openclaw\...) embedded in scripts which is inconsistent with the cross-platform claims and the 'no required binaries' metadata.
Instruction Scope
SKILL.md instructs running local Python scripts and optionally calling public almanac APIs (qingyunke, sojson, lwl12) — expected for this purpose. The repository also includes utility scripts (apply_fixes_*.py, clean_v3.0.3.py, final_fix_v3.0.5.py) that programmatically edit generate_almanac.py (self-modifying/patching behavior). That is unusual: these scripts change code on disk rather than providing controlled patches; inspect them before running.
Install Mechanism
There is no install spec (instruction-only), and all code is shipped with the skill (no remote downloads). That's lower risk than arbitrary remote installs, but because dependencies are not declared, users may unwittingly run scripts missing required libraries or binaries. The code calls ffmpeg via subprocess and expects local font files and icon PNGs in user paths; these are not installed by the skill.
Credentials
The skill does not request secrets or cloud credentials and SKILL.md lists public API endpoints as optional data sources. It does read and write local files (reports/, zodiac_icons, user workspace) and can be configured via OPENCLAW_OUTPUT per logs — reasonable for a generator. No environment variables with secrets are required, but the skill will access files under user paths if present.
Persistence & Privilege
The skill does not request 'always: true' and will not be force-installed. It does include scripts that modify its own code (apply_fixes/apply_v3.0.4_fix.py) but does not modify other skills or global agent settings. Self-patching is permitted but should be reviewed before use.
What to consider before installing
Key things to consider before installing or running this skill: - Missing/declarative dependencies: the package metadata lists no required binaries but the code expects ffmpeg (called via subprocess) and Python packages such as Pillow, lunar-python, and requests. Ensure you install and audit those first. - Hard-coded paths and platform assumptions: many scripts use absolute Windows paths (C:\Users\liuyan\...), and reference system fonts and local icon/audio files. Run in a controlled environment or adapt paths to your system. - Self-modifying scripts: several utility scripts will rewrite generate_almanac.py. Inspect those (apply_fixes_*.py, apply_v3.0.4_fix.py, clean_v3.0.3.py, final_fix_v3.0.5.py) and avoid running them unless you accept code changes to files on disk. - External APIs & network: SKILL.md suggests calling public almanac APIs (qingyunke, sojson, lwl12). These are public endpoints but you should verify responses and rate limits. No secrets are requested, but network calls may leak usage patterns. - Media assets & licenses: video scripts reference local audio (佛门清净.mp3) and PNG icons — verify licensing before publishing generated videos. Practical steps: 1) Review generate_almanac.py and the 'apply/fix' scripts in a text editor before execution. 2) Run the skill in an isolated environment (container or VM) with required packages installed (pip install Pillow; install lunar-python if used; ensure ffmpeg is on PATH). 3) Replace or remove hardcoded absolute paths to point to safe directories you control. 4) Do not run the automatic patch/apply scripts until you understand what they change. 5) If you are not comfortable inspecting/adjusting code, decline or ask the publisher for a manifest of runtime requirements and a non-destructive release (no self-modifying utilities). If you want, I can list the exact places/files where ffmpeg, lunar-python, requests, or absolute paths are referenced, or produce a minimal safe checklist / commands to prepare a sandbox for testing.

Like a lobster shell, security has layers — review code before you run it.

latestvk970qarff9nh52g0w1dabpxg0x856gjc
237downloads
0stars
14versions
Updated 1w ago
v3.0.3
MIT-0

Almanac Creator (黄历制作技能)

标准版本: almanac-image-standard.md V3
适用范围: 每日黄历图片生成
输出规格: 3 页 PNG 图片(1080x1400 像素)
最新版本: V3.0.3 抖音优化版(2026-04-18)


🎯 技能概述

本技能用于按照标准化流程制作每日黄历图片(V3 紧凑版),包含:

  • 第 1 页: 封面 + 宜忌 + 生肖 + 完整干支纪年
  • 第 2 页: 财神方位 + 吉时查询 + 养生建议
  • 第 3 页: 穿衣建议 + 黄历科普 + 传统故事

适用于今日头条(三图轮播)、抖音/小红书(单图发布)等平台。

V3.0.3 更新内容(2026-04-18 抖音优化版)⭐⭐⭐⭐⭐

抖音算法适配优化:

  • 互动引导: 第2、3页底部添加"👍 点赞接好运 💬 评论区留下你的生肖 ➕ 关注每日更新"
  • 生肖图标: 生肖运势添加emoji图标(🐭🐮🐯🐰🐲🐍🐴🐑🐵🐔🐶🐷)
  • 用户体验: 提升视觉吸引力和互动率

V3.0.2 更新内容(2026-04-12 干支修复版)⭐⭐⭐⭐⭐

紧急修复: 干支计算错误(月柱/日柱)

更新项说明
🔧 月柱修复根据节气计算月柱(修复 lunar-python 农历月问题)
🔧 日柱修复使用 Solar.fromYmd 转换(修复 Lunar.fromYmd 农历日期问题)
向后兼容完全兼容 V3.0.1,建议所有用户升级

问题说明:

  • V3.0.1 使用 Lunar.fromYmd() 导致日期转换错误
  • lunar-python 的 getMonthInGanZhi() 返回农历月干支,不是节气月干支
  • 修复后:2026-04-13 = 丙午年 壬辰月 丁巳日 ✅

V3.0.1 更新内容(2026-04-12 通用化版)⭐⭐⭐⭐⭐⭐

使用示例:

# 单日生成
python generate_almanac.py --date 2026-04-12

# 批量生成 7 天
python generate_almanac.py --batch 7 --start-date 2026-04-12

# 指定配置文件
python generate_almanac.py --date 2026-04-12 --config my_config.yaml

V2.3.1 更新内容(2026-04-11 季节故事修复版)⭐⭐⭐⭐⭐

V2.3 更新内容(2026-04-11 大字体优化版)⭐⭐⭐⭐⭐

更新项说明
字体全面加大栏目题 55→60px,正文 45→48px,故事/养生正文 40→44px
行间距优化1.3→1.4,提升阅读舒适度
间距调整栏目/内容/分隔线间距加大 2-3px
可读性提升整体可读性提升约 15%,中老年用户友好
无需分页保持 3 页完整布局,内容不裁剪

V2.2 更新内容(2026-04-10 多模板版)⭐⭐⭐

更新项说明
集成 lunar-python使用 lunar-python(lunar-java 的 Python 版本)
干支计算升级使用 lunar-python 准确计算(替代 100+ 行映射表)
宜忌准确性提升使用 lunar-python 传统算法(替代本地池)
5 套模板轮换传统/现代/喜庆/典雅/清新,每日自动轮换
24 节气故事故事池从 4 个扩展到 24 个(按季节分类)
输出目录修复支持多用户、跨平台,智能路径检测
生肖黑榜修复智能检测重复,确保红黑榜无冲突
传统元素支持彭祖百忌、纳音、星宿、建除十二值星、九星
代码优化减少 150+ 行硬编码,更易维护

V2.1 更新内容(2026-04-10 修复版)⭐

更新项说明
✅ 生肖运势基于六合三合相冲相害计算,吉凶正确
✅ 吉时查询使用十二神值时(青龙明堂等)
✅ 财神方位根据日干准确计算方位

V3 更新内容(2026-04-09)

更新项说明
✅ 紧凑布局全局段间距离缩小 10-15px
✅ 完整干支第 1 页增加年柱 + 月柱 + 日柱
✅ 吉时查询第 2 页增加时辰吉凶(仅地支名称)
✅ 穿衣建议第 3 页增加五行颜色搭配

📐 图片规格标准

基础参数

参数说明
宽度1080 像素适配手机竖屏
高度1400 像素内容舒展不拥挤
比例9:12.96接近 9:13 竖版
格式PNG高质量无损压缩
质量95平衡文件大小与质量
文件大小150-250 KB/页适合网络传播

背景与边框

# 背景色
BACKGROUND_COLOR = '#F8F0E6'  # 温暖的米黄色(宣纸质感)

# 双层边框
外层边框:8px 中国红 (#8B0000)
内层边框:2px 金色 (#D4AF37)
边距:外层 10px,内层 22px

📝 字体与颜色标准

字体层级

用途字号颜色示例
主标题90px#8B0000每日黄历
副标题65px#2C2C2C2026 年 4 月 8 日 星期三
栏目题55px#8B0000今日宜/生肖运势
正文45px#2C2C2C宜忌内容
小字38px#999999底部信息

字体选择

# 优先使用 Windows 黑体
font = ImageFont.truetype('C:/Windows/Fonts/simhei.ttf', size)

# Mac/Linux 备选
font = ImageFont.truetype('/System/Library/Fonts/PingFang.ttc', size)
font = ImageFont.truetype('/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc', size)

颜色标准

颜色色值用途
中国红#8B0000标题、边框、重点信息
亮红色#C41E3A宜/红榜/强调内容
墨黑色#2C2C2C正文、日期、常规信息
金色#D4AF37边框、分隔线、装饰
米黄色#F8F0E6背景色
浅灰色#999999底部信息、辅助说明

🛠️ 制作流程

步骤 1:准备黄历数据

获取当日黄历信息:

  • 公历日期 + 星期
  • 农历日期(年 + 月 + 日)
  • 节气信息
  • 今日宜忌
  • 生肖运势(红榜 3 个 + 黑榜 3 个)
  • 财神方位(喜神/福神/财神/胎神)

数据来源:

  • 黄历 API(推荐):https://api.qingyunke.com/api.php?key=free&appid=01&msg=今日黄历
  • 手动查询万年历
  • 参考昨日黄历格式

步骤 2:生成图片

使用脚本生成 3 页图片:

# 方法 1:使用整合脚本(推荐)
python scripts/generate_almanac.py --date 2026-04-08

# 方法 2:分页面生成
python scripts/generate_almanac_page1.py --date 2026-04-08
python scripts/generate_almanac_page2.py --date 2026-04-08
python scripts/generate_almanac_page3.py --date 2026-04-08

步骤 3:质量检查

视觉检查清单:

  • ✅ 双层边框完整(外红内金)
  • ✅ 所有文字居中对齐
  • ✅ 字体大小符合标准
  • ✅ 颜色使用正确
  • ✅ 行间距舒适(不拥挤)
  • ✅ 分隔线位置合理
  • ✅ 底部信息完整
  • ✅ 文件大小 150-250KB

内容检查清单:

  • ✅ 日期信息准确(公历 + 农历)
  • ✅ 宜忌内容完整
  • ✅ 生肖运势正确(红榜/黑榜各 3 个)
  • ✅ 财神方位准确
  • ✅ 养生建议合理
  • ✅ 科普内容准确
  • ✅ 故事内容完整
  • ✅ 底部免责声明存在

步骤 4:生成发布文案

今日头条文案:

标题:【{日期}】{农历} 每日黄历

正文:
今日黄历已更新!

📅 公历:{日期}
🌙 农历:{农历}

✅ 宜:{宜内容}
❌ 忌:{忌内容}

🏆 红榜:{红榜生肖}
⚠️ 黑榜:{黑榜生肖}

更多详情见图👆

#每日黄历 #传统文化 #生肖运势

抖音/小红书文案:

【{日期}黄历】{节气信息}✨

今日红榜生肖:{红榜}
黑榜生肖:{黑榜}

财神在{财神方位},记得朝这个方向求财哦💰

#黄历 #每日运势 #传统文化

步骤 5:发布

平台发布时间使用图片文案
今日头条12:00-14:003 页轮播完整版
抖音18:00-21:00第 1 页精简版
小红书20:00-22:00第 1 页精简版

📁 文件命名标准

{日期}_黄历 [_页面].png

示例:
- 2026-04-08_黄历.png              (第 1 页)
- 2026-04-08_黄历_养生.png          (第 2 页)
- 2026-04-08_黄历_故事.png          (第 3 页)

📋 内容布局标准

详见 references/almanac-image-standard.md

第 1 页:封面 + 宜忌 + 生肖

  • 每日黄历标题
  • 公历 + 农历日期
  • 完整干支纪年(年柱 + 月柱 + 日柱)⭐ V3 新增
  • 节气信息
  • 今日宜(分 2 行)
  • 今日忌
  • 红榜生肖(3 个,带🥇🥈🥉)
  • 黑榜生肖(3 个)

第 2 页:财神 + 吉时 + 养生

  • 财神方位(喜神/福神/财神/胎神)
  • 吉时查询(12 时辰吉凶,仅地支名称)⭐ V3 新增
  • 季节养生(饮食/运动/作息)

第 3 页:穿衣 + 科普 + 故事

  • 今日穿衣建议(幸运色/忌讳色)⭐ V3 新增
  • 黄历科普(天干地支/冲煞/吉神凶神)
  • 传统故事(与节气或日期相关)
  • 启示总结

⚠️ 注意事项

  1. 字体版权: 使用系统自带字体(如黑体),避免版权风险
  2. 内容准确性: 黄历数据需核对权威来源
  3. 免责声明: 必须包含"传统文化 仅供参考"
  4. 文件大小: 控制在 250KB 以内,便于网络传播
  5. 备份脚本: 保存生成脚本以便复用

🔧 脚本说明

generate_almanac.py(整合脚本)

# 使用方法
python scripts/generate_almanac.py --date 2026-04-08

# 参数说明
--date: 日期(YYYY-MM-DD 格式)
--pages: 生成页数(1/2/3,默认 3)
--output: 输出目录(默认 reports/)

核心函数

def draw_centered_text(draw, text, y, font, color):
    """居中绘制文字"""
    bbox = draw.textbbox((0, 0), text, font=font)
    text_width = bbox[2] - bbox[0]
    x = (WIDTH - text_width) // 2
    draw.text((x, y), text, fill=color, font=font)
    return y + (bbox[3] - bbox[1])

def draw_double_border(draw, width, height):
    """绘制双层边框"""
    draw.rectangle([10, 10, width-10, height-10], 
                   outline='#8B0000', width=8)
    draw.rectangle([22, 22, width-22, height-22], 
                   outline='#D4AF37', width=2)

📊 质量标准

视觉标准

  • 双层边框完整(外红内金)
  • 所有文字居中对齐
  • 字体大小符合标准
  • 颜色使用正确
  • 行间距舒适(不拥挤)
  • 分隔线位置合理
  • 底部信息完整
  • 无错别字
  • 文件大小 150-250KB
  • 图片清晰无锯齿

内容标准

  • 日期信息准确(公历 + 农历 + 干支)
  • 宜忌内容完整
  • 生肖运势正确(红榜/黑榜各 3 个)
  • 财神方位准确
  • 吉时查询准确(12 时辰吉凶)⭐ V3 新增
  • 穿衣建议准确(五行颜色)⭐ V3 新增
  • 养生建议合理
  • 科普内容准确
  • 故事内容完整
  • 底部免责声明存在

📚 参考文档


📝 版本历史

版本日期改进内容
V12026-04-07 18:27初始版本(单页 1080x1920)
V1-Full2026-04-07 18:33完整版(3 页 1080x1920)
V1-Opt2026-04-07 18:39优化版(3 页 1080x1280)
V22026-04-07 18:42最终版(3 页 1080x1400)
Skill2026-04-08 11:23技能化封装
V2.0.02026-04-09 15:25紧凑版 + 干支 + 吉时 + 穿衣
V2.2.02026-04-10 23:505 套模板 + lunar-python + 24 节气 ⭐⭐⭐
V2.3.02026-04-11 18:53大字体优化(可读性 +15%) ⭐⭐⭐⭐⭐
V2.3.12026-04-11 19:30季节故事修复(不再春季贴秋膘) ⭐⭐⭐⭐⭐

技能创建时间:2026-04-08 11:23
适用范围:每日黄历图片生成
最新版本:V2.3.1 季节故事修复版 (2026-04-11 更新)
下次审查:2026-05-11

Comments

Loading comments...