# Ljg classic

> Ljg classic is an open-source agent skill for files and documents. Builds annotated classical Chinese chapter sheets with word notes and a chapter reading. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/lijigang/ljg-skills/tree/master/skills/ljg-classic
- **Repository:** https://github.com/lijigang/ljg-skills
- **GitHub stars:** 7,834
- **License:** MIT
- **Skill name:** ljg-classic
- **Collection:** https://github.com/lijigang/ljg-skills
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-12-01

## About

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 只翻译一句古文、只写现代文章或通用内容卡片。

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs TypeScript scripts](https://github.com/lijigang/ljg-skills/tree/HEAD/skills/ljg-classic)
- [No network calls found in its scripts](https://github.com/lijigang/ljg-skills/tree/HEAD/skills/ljg-classic)
- [License: MIT](https://github.com/lijigang/ljg-skills/tree/HEAD/skills/ljg-classic)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

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

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [DOCX](https://ai-powered.com/skills/docx-anthropics): DOCX is a free agent skill for files and documents.
- [PPTX](https://ai-powered.com/skills/pptx): PPTX is a free agent skill for files and documents.
- [Baidu document parser](https://ai-powered.com/skills/baidu-document-parser): Baidu document parser is an open-source agent skill for files and documents.
- [PDF recipe](https://ai-powered.com/skills/pdf-recipe): PDF recipe is an open-source agent skill for files and documents.
- [Markdown to word mermaid](https://ai-powered.com/skills/markdown-to-word-mermaid): Markdown to word mermaid is an open-source agent skill for files and documents.
- [Md to DOCX](https://ai-powered.com/skills/md-to-docx): Md to DOCX is an open-source agent skill for files and documents.
- [Convert PDF to md](https://ai-powered.com/skills/convert-pdf-to-md): Convert PDF to md is an open-source agent skill for files and documents.

---
Source: https://ai-powered.com/skills/ljg-classic
