Skip to content
Skill

Ljg classic

Builds annotated classical Chinese chapter sheets with word notes and a chapter reading

Ljg classic is an open-source agent skill for files and documents. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
TypeScript
Platforms
Claude Code, Codex, Cursor
GitHub stars
7.8K
Last commit
License
MIT
Listing updated

Similar skills

About Ljg classic

This skill turns a passage of classical Chinese prose or poetry into a long, readable PNG. Every non-punctuation character gets a word-level gloss, sentence meaning is annotated separately, and variant readings are marked where the source text is uncertain. A whole-chapter interpretation is written in plain Chinese and closes the sheet.

The workflow runs in an isolated temporary workspace where it writes intermediate JSON and HTML, renders a candidate image, and checks its dimensions, coverage and page bottom before copying the final card to the Downloads folder. It also asks the built-in image tool for a text-free header illustration and falls back to a version without it if that fails.

The user needs to supply or identify the source text, its book title and chapter. The skill is written in Chinese and is meant for literary Chinese, classic poetry and scholarly texts rather than short single-sentence translations.

When your agent uses it

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

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 13 files (94 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the ljg-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add lijigang/ljg-skills
/plugin install ljg-skills@ljg-skills

Or copy only this skill to ~/.claude/skills/ljg-classic:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/lijigang/ljg-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ljg-classic &&
cp -R "$tmp/skills/ljg-classic" ~/.claude/skills/ljg-classic &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/ljg-classic inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/ljg-classic to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/lijigang/ljg-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ljg-classic &&
cp -R "$tmp/skills/ljg-classic" ~/.agents/skills/ljg-classic &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/ljg-classic inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/ljg-classic to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/lijigang/ljg-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ljg-classic &&
cp -R "$tmp/skills/ljg-classic" ~/.cursor/skills/ljg-classic &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/ljg-classic inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/lijigang/ljg-skills.git --path skills/ljg-classic

Or copy the folder to ~/.gemini/skills/ljg-classic yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/ljg-classic:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/lijigang/ljg-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ljg-classic &&
cp -R "$tmp/skills/ljg-classic" ~/.copilot/skills/ljg-classic &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/ljg-classic inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/lijigang/ljg-skills.git

Then copy ljg-skills/skills/ljg-classic into your agent's skills folder as ljg-classic. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Character-level glosses
Each non-punctuation fragment of the source receives its own annotation, with word-level and sentence-level notes kept separate.
Variant reading marks
Uncertain characters, loan usages and edition differences are flagged instead of silently replaced.
Chapter interpretation
A whole-chapter reading explains one main relationship and a transferable scenario with its limits.
Header illustration
A text-free mood image is generated for the top of the sheet, with a fallback to a version without it.
Verified PNG output
Candidate images are checked for size, title, coverage and layout before the final file is delivered.
Isolated workspace
Intermediate files live in a dedicated temporary directory so the output folder only receives the final card.

Good for

  • Annotate a chapter of the Daodejing word by word with a readable layout
  • Make a classical Chinese lecture sheet with colored inline notes
  • Explain the meaning of a Confucian passage in plain Chinese
  • Produce a study image for a classic poem with a chapter summary

Ljg classic FAQ

When does Ljg classic trigger?

It triggers when the user invokes ljg-classic or asks for word-by-word annotation, colored inline notes, chapter interpretation or a classical text study image. It is not meant for translating a single sentence.

What does the skill need from me?

It needs the source passage and enough information to identify the book and chapter. If the edition is unclear, it keeps variant boundaries visible rather than guessing.

Where is the output saved?

The final PNG is copied to the Downloads folder under your home directory, after checks pass in a temporary workspace. An explicit alternative path from the user takes precedence.

Does Ljg classic need an image generation tool?

It calls a built-in image generation tool for the header illustration. If that is unavailable, it produces the sheet without the illustration and says so.

How do I install Ljg classic in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ljg-classic to use it in all your projects, or to .claude/skills/ljg-classic in one project. Or install the ljg-skills plugin, which includes it: /plugin marketplace add lijigang/ljg-skills, then /plugin install ljg-skills@ljg-skills.

Does Ljg classic run scripts?

Yes. It runs TypeScript scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Ljg classic?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Ljg classic?

The closest alternatives to Ljg classic are DOCX, PPTX, Baidu document parser, PDF recipe and Markdown to word mermaid.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from lijigang/ljg-skills

  1. Finds a vivid analogy that maps a relationship from a familiar scene onto your topic

    • Open source
    • 7.8K GitHub stars
    • Productivity
  2. Scans yesterday's AI chats for a thinking blind spot and pairs it with a WeRead chapter

    • Open source
    • 7.8K GitHub stars
    • Productivity
  3. Explains a whole book's threads, turns and ending for readers who have not read it

    • Open source
    • 7.8K GitHub stars
    • Productivity
  4. Turns a business description into a nine-block Business Model Canvas card

    • Open source
    • 7.8K GitHub stars
    • Productivity
  5. Turns text into PNG cards, long reads, full-text layouts, comics or whiteboards

    • Open source
    • 7.8K GitHub stars
    • Design and media
  6. Maps the hard, soft and self-imposed constraints that shape a domain, role or debate

    • Open source
    • 7.8K GitHub stars
    • Productivity