
ljg-classic
古文逐字注解、组合排版、章节意旨图与全章解读生成器。把原文、字词注、句义注、无字顶部配图和章节解读排成一张可读的长 PNG。USE WHEN 用户调用 ljg-classic OR 要求给文言文、古诗文、经史子集做逐字注解、彩色夹注、章节解读、古文讲义图、章节配图。NOT FOR 只翻译一句古文、只写现代文章或通用内容卡片。
- Installs
- 447
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/lijigang/ljg-skills --skill ljg-classic- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads ljg-classic automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
ljg-classic:古文笺
原文是主干,注解贴着字词生长,章节解读把整章重新接成一个能运行的判断。最终交付一张标明书名与章节的 PNG 长图到 $HOME/Downloads/;生成与复验过程留在独占 /tmp 工作区。
Workflow Notification
执行工作流时,只输出文字通知:
Running the **AnnotateAndRender** workflow in the **ljg-classic** skill to annotate and render the chapter...
不发送开始、阶段或进度语音;完成语音由系统统一处理。
Workflow Routing
| Workflow | Trigger | File |
|---|---|---|
| AnnotateAndRender | 逐字注解、彩色夹注、章节解读、生成古文 PNG | Workflows/AnnotateAndRender.md |
快速合同
- 输入必须能确定原文、书名、章节;版本不明时保留异文边界。
- 所有非标点原文片段都有对应注解,不能只挑“重点词”。
- 青色解释字词与语法,朱色解释整句动作,赭色只标异文与不确定处;章节解读使用暖纸深墨,不用蓝色长正文。
- 解读借用
ljg-explain的直白中文与理解标准和ljg-writes的「条件—机制—结果、迁移、边界」,产物仍遵守本工作流,不额外附加自测或写作脚手架。 - 默认调用内置
image_gen生成一幅无字、低干扰的章节意旨图,放在章节标题与原文之间;图像不可用时继续生成无图版本并说明。 - 每次运行先建立独占
/tmp/ljg-classic-*工作区;JSON、HTML、manifest、意旨图、候选 PNG 与重叠 QA 切片都只放在该工作区。 - 候选 PNG 完成硬验收后,才复制到
$HOME/Downloads/作为最终卡片;用户显式指定另一最终路径时以本次指令为准。未经明确要求不覆盖同名文件。
Gotchas
- “逐字”指原文覆盖率 100%,不等于把固定词拆成失去意义的单字;成词、虚词功能和通假关系按最小有意义单位注。
- 注解不能改写原文。底本疑似错字、通假或版本差异用
variant标出,不能静默替换。 - 字词注与句义注若都写成长句,原文会被淹没。字词注只解决局部读法,句义注只补当前动作或因果。
- 章节解读不是逐句译文的重复,也不是金句合集。它只运行一个主关系,并说明一个可迁移场景或失效边界。
- 边界要自然写进文章,不另起「解读边界」「应用边界」「迁移测试」之类的方法标题;这些词会让读者从内容中跳回写作后台。
- 顶部配图负责压缩母题,不负责复述情节。禁止图中文字、书法、印章、水印与高饱和宗教奇观;画面细节太满会抢走原文的第一阅读权。
- PNG 文件存在不算完成。必须核对真实尺寸、标题章节、注解覆盖、页面底部、整图与长图切片。
- 不直接渲染到 Downloads。先在
/tmp验收候选 PNG,再复制最终卡片,并读回候选与交付文件的 SHA-256 一致性。 - 图像宽度固定不代表字号固定。文字量增加时先增高页面和调整断行,不能把正文字号压到难读。
- 标点不能作为可独立换行的单元。句末标点与闭引号跟住前一原文 token;段首引号跟住后一 token,避免孤行。
Examples
Example 1:整章古文排版
User: 「/ljg-classic 《道德经》第十六章,逐字注解并讲透」
→ 锁定书名、章节与底本
→ 逐段生成字词注、句义注和全章解读
→ 在独占 `/tmp` 工作区完成验收,只把带书名章节的 1080px 长 PNG 交付到 `$HOME/Downloads/`
Example 2:用户提供原文
User: 「把这段《论语·学而》做成文言文夹注图,最后写完整解读」
→ 原文逐片段覆盖,通假与语法另行标色
→ 解读用直白中文跑通条件、机制和结果
→ JSON、HTML、manifest、配图和 QA 切片保留在 `/tmp`;最终 PNG 交付到 `$HOME/Downloads/`
Example 3:只翻译一句
User: 「这句古文是什么意思?」
→ 不触发 ljg-classic
→ 直接做简短翻译;需要讲透章内概念或原理时使用 ljg-explain
FAQ
What does the ljg-classic skill do?
古文逐字注解、组合排版、章节意旨图与全章解读生成器。把原文、字词注、句义注、无字顶部配图和章节解读排成一张可读的长 PNG。USE WHEN 用户调用 ljg-classic OR 要求给文言文、古诗文、经史子集做逐字注解、彩色夹注、章节解读、古文讲义图、章节配图。NOT FOR 只翻译一句古文、只写现代文章或通用内容卡片。
How do I install ljg-classic?
Run npx skills add https://github.com/lijigang/ljg-skills --skill ljg-classic in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/ljg-classic/ (personal) or .claude/skills/ljg-classic/ (project).
Which AI agents can use ljg-classic?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is ljg-classic safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains ljg-classic?
It is published by lijigang in lijigang/ljg-skills. It has 447 recorded installs.
More from lijigang/ljg-skills
ljg-card
lijigang/ljg-skills
Content caster (铸). Transforms text into PNG through precise HTML typography and, when the mold needs it, generated raster imagery. Four molds: -l (default) long reading card, -f source-faithful full text, -c comic, -w whiteboard. USE WHEN user says '铸', 'cast', '做成图', '做成卡片', '做成海报', '原文排版', '全文卡片', '漫画', or '白板'.
ljg-paper
lijigang/ljg-skills
Explain research papers to readers without a specialist background: what the paper studies, what the authors contribute, how the findings follow, and what the evidence does not establish. USE WHEN the user shares an arXiv link, paper URL, PDF, local paper, or paper title, or asks to read, explain, analyze, or understand a paper. Defaults to a saved Markdown note. NOT FOR reproduction, formal peer review, benchmark tables, or literature surveys.
ljg-roundtable
lijigang/ljg-skills
一个议题,一场圆桌:主持人请来 3-5 位真实人物,定义开场,逐轮交锋, 每轮收一张 ASCII 结构图,用户用指令控节奏(可/止/深入此节/引入新人物), 散场后全文存入 Markdown 笔记。Use when user says "圆桌讨论", "圆桌", "roundtable", "辩论", or wants to explore a topic through multi-perspective structured debate.
ljg-writes
lijigang/ljg-skills
写作引擎。把一个观点写成可理解、可迁移、经得住反例的 1000-1500 字中文文章。USE WHEN 写文章 OR 优化思想内容 OR 展开观点 OR 改写成逻辑递进的中文。NOT FOR 普通摘要、事实查询或结构风洞(用 ljg-structure)。
ljg-learn
lijigang/ljg-skills
Deep concept anatomist that deconstructs any concept through 8 exploration dimensions (history, dialectics, phenomenology, linguistics, formalization, existentialism, aesthetics, meta-philosophy) and compresses insights into an epiphany. Use when user asks to explain, dissect, or deeply understand a concept, term, or idea. Triggers on '解剖概念', '概念解剖', 'explain concept', 'learn concept', '/ljg-learn'. Produces markdown output.
ljg-plain
lijigang/ljg-skills
Cognitive atom: Plain (白). Rewrites any content so a smart 12-year-old groks it. Structure-free — form follows content. Use when user says '白话说', '说人话', '解释一下', 'plain', 'grok'.
Popular other skills
hyperframes-cli
heygen-com/hyperframes
The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.
triage
mattpocock/skills
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
ask-matt
mattpocock/skills
Ask which skill or flow fits your situation. A router over the skills in this repo.
to-questionnaire
mattpocock/skills
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
loop-me
mattpocock/skills
Grill me about specs for the workflows I want to build, within this workspace.