ljg-classic

ljg-classic is a skill for Claude Code from lijigang/ljg-skills. It costs 129 tokens per session (1,332 once invoked), scanned A, original, MIT.

A tool for adding word-level and sentence-level notes to Classical Chinese, including old poems and historical texts, then arranging the result as a long PNG image. It also explains the meaning of each chapter in plain Chinese.

In plain words
What is it for?
Use it to create annotated lessons for Classical Chinese texts, with color-coded notes, chapter explanations, and a simple image representing the chapter's main idea. It requires enough information to identify the original text, book, and chapter.
Why use it?
It keeps the original text visible while placing explanations beside it, including uncertain readings and variant versions. This makes a full annotated study sheet instead of a partial translation or a collection of selected notes.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the ljg-skills plugin — 22 skills shipped together

Good fit Use it to create annotated lessons for Classical Chinese texts, with color-coded notes, chapter explanations, and a simple image representing the chapter's main idea. It requires enough information to identify the original text, book, and chapter.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lijigang/ljg-skills/ljg-classic
About the project

ljg-skills is a collection of custom Codex skills for tasks such as learning, writing, reading, relationship analysis, image creation, and investment analysis. Codex users install selected skills or the whole collection through a skills command-line interface. The catalogue entries are the collection's individual skills, plugin, and instruction.

lijigang/ljg-skills · 7,340 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lijigang/ljg-skills --skill ljg-classic
Clone the repo
git clone --depth 1 https://github.com/lijigang/ljg-skills

Made for: Claude Code.

Or install ljg-skills, the plugin that ships this one along with the rest of its 22 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ljg-classic

README.md
[![agentmods](https://agentmods.dev/badge/skills/lijigang/ljg-skills/ljg-classic/github.svg)](https://agentmods.dev/skills/lijigang/ljg-skills/ljg-classic)
Your own site
<a href="https://agentmods.dev/skills/lijigang/ljg-skills/ljg-classic"><img src="https://agentmods.dev/badge/skills/lijigang/ljg-skills/ljg-classic/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ljg-classic

Your own site · 80×15
<a href="https://agentmods.dev/skills/lijigang/ljg-skills/ljg-classic"><img src="https://agentmods.dev/badge/skills/lijigang/ljg-skills/ljg-classic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 129 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,332 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00129 $0.01332
Opus 5 $0.00064 $0.00666
Sonnet 5 $0.00026 $0.00266
Haiku 4.5 $0.00013 $0.00133

Measured 12d ago against content hash fcb651acba26, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

ljg-classic scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (Tools/RenderClassic.test.ts, Tools/RenderClassic.ts, Tools/ValidateClassic.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ljg-classic/SKILL.md · 78 lines

What it actually says

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-plain 的直白中文和 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-plain
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 78 lines · 129 tokens per session scan A fcb651acba26

Subscribe to this mod's changes

ljg-classic is a skill published in the GitHub repository lijigang/ljg-skills (7,340 stars, last pushed 3d ago), licensed MIT. It adds 129 tokens to every session and 1,332 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

baoyu-comic

A creator for educational comics, including biographies and tutorials, that turns supplied content or topics into illustrated comic pages.

NousResearch/hermes-agent · 17 tokens

html-ppt-zhangzara-cartesian

An economics senior thesis on the employment effects of local minimum-wage increases — identification strategy, evidence, and limitations. Built as a decision-grade coursework defense deck for thesis committee.

nexu-io/open-design · 46 tokens

html-ppt-zhangzara-daisy-days

A customer-success workshop onboarding users to a project-management app — the first-value path and the habits that retain. Built as a decision-grade professional training deck for new customers, CS team.

nexu-io/open-design · 49 tokens

html-ppt-zhangzara-playful

A retail sales-floor training on consultative selling — the flow, the role-plays, and the daily habit that lifts conversion. Built as a decision-grade professional training deck for store associates, floor managers.

nexu-io/open-design · 52 tokens

html-ppt-zhangzara-retro-windows

An IT security-awareness training on spotting phishing — the tells, the drill, and what to do in the first 60 seconds. Built as a decision-grade professional training deck for all employees.

nexu-io/open-design · 51 tokens

sprite-animation

A pixel / sprite-style animated explainer slide — full-bleed cream stage, bold display year, animated pixel-art mascot (e.g. Hanafuda card, mushroom, or 8-bit console), kinetic Japanese display type, ticking timeline ribbon. Reads like a single frame of an educational motion video — looping CSS keyframes, no JS, ready…

nexu-io/open-design · 141 tokens