All skills
lijigang avatar

/ljg-classic

@5c014a6
by lijiganglijigang/ljg-skills7.4k stars
845

古文逐字注解、组合排版、章节意旨图与全章解读生成器。把原文、字词注、句义注、无字顶部配图和章节解读排成一张可读的长 PNG。USE WHEN 用户调用 ljg-classic OR 要求给文言文、古诗文、经史子集做逐字注解、彩色夹注、章节解读、古文讲义图、章节配图。NOT FOR 只翻译一句古文、只写现代文章或通用内容卡片。

Use this Skill: https://skilld.dev/gh/lijigang/ljg-skills/ljg-classic

This session only. Nothing lands on disk.

ToolsRenderClassic.help.md

≈225 tokens on demand. Your agent reads this file only when SKILL.md points to it.

RenderClassic

把 classic JSON 渲染为完整 HTML、单张 PNG、manifest,并可生成重叠视觉验收切片。

bun Tools/RenderClassic.ts \
  --input <classic.json> \
  --output <classic.png> \
  --html <classic.html> \
  --width 1080 \
  --slices-dir <qa-slices>

--input 与 --output 必填。--width 接受 720–1600;默认 1080。省略 --html 时写到 PNG 同目录同名 HTML。运行 bun Tools/RenderClassic.ts --help 查看当前参数。

输入 JSON 可选填成对的 heroImage 与 heroAlt。heroImage 只接受相对 JSON 或绝对路径的本地 PNG/JPEG/WebP;渲染器会把它编码进 HTML,不保留文件热链。

渲染前会校验原文逐字回读、非标点注解覆盖、tone 枚举、顶部配图和章节解读禁词;渲染后会检查页面溢出、裁切、空文本、配图可见性、必需标题与真实 PNG 尺寸。

Source: SKILL.md on GitHub

1 warning1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    This skill provides a robust pipeline for annotating and rendering ancient Chinese texts into high-quality PNG long-form images. It utilizes Playwright for rendering and Bun for script execution. The analysis found standard developmental workflows, including dependency installation and local file management, with no evidence of malicious intent or safety bypasses.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 5c014a6. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 20 hours ago.

Activeupdated last month
user_invocable
true
version
1.1.1

README badge

README badge for lijigang/ljg-skills/ljg-classic