Skip to content
Skill

Ljg analogy

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

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

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

Similar skills

About Ljg analogy

This skill helps an agent explain an idea or compare two things by finding a concrete everyday scene whose internal relationships mirror the ones in the target topic. The approach follows structure-mapping ideas: it keeps the key roles, causes, constraints and proportions, rather than just listing surface similarities.

The workflow asks the agent to check that a candidate analogy is task-relevant, that its relational skeleton holds on both sides, and that it reveals something the original description did not make obvious. When comparing two objects, it prefers one shared domain with the same roles so differences stand out, and it tests whether the analogy still gives different answers when a new condition is introduced. It also states where the analogy breaks down and avoids presenting it as proof.

The skill is written in Chinese and is meant for requests where the user supplies a scene or two items to contrast. It works from the user's own context and does not need external tools for ordinary analogies, though it suggests checking uncertain scientific or historical facts with a search tool. The repository includes reference and evaluation files, which are optional for normal use.

When your agent uses it

基于结构映射理论,为场景或两个对象的差异寻找精妙类比与关系隐喻,保留关键关系、解释增量与迁移边界。USE WHEN 用户说「找个类比」「打个比方」「有什么精妙的隐喻」「用类比讲清两者区别」「换个场景理解」或调用 ljg-analogy。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 4 files (20 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-analogy:

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

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

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/ljg-analogy 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-analogy &&
cp -R "$tmp/skills/ljg-analogy" ~/.agents/skills/ljg-analogy &&
rm -rf "$tmp"

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

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/ljg-analogy 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-analogy &&
cp -R "$tmp/skills/ljg-analogy" ~/.cursor/skills/ljg-analogy &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/ljg-analogy 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-analogy

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

Gemini CLI docs on skills

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

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

For one project only, put the folder in .github/skills/ljg-analogy 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-analogy into your agent's skills folder as ljg-analogy. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Core analogy construction
Builds one main analogy that carries the essential relationship from a familiar scene back to the target situation.
Two-object comparison
Contrasts two products, tools or mechanisms through a shared set of roles so their key differences are visible.
Relationship-level checks
Tests whether roles, cause and effect, dependencies and feedback line up on both sides before the analogy is delivered.
Boundary statement
Names the specific feature of the familiar scene that does not transfer, or the condition under which the mapping stops holding.
Format control
Adapts length and structure to the request, from a single sentence to a short explanatory passage.
Uncertainty handling
Asks a clarifying question when the scene is unclear and labels invented scenarios as hypotheticals.

Good for

  • Explain a complicated technical concept using an everyday scene
  • Describe the difference between two tools in terms of how they work together
  • Find a memorable metaphor for a team process or workflow
  • Clarify why a system behaves a certain way using a familiar real-world example
  • Produce a single-sentence metaphor for a presentation or article

Ljg analogy FAQ

When does the skill trigger?

It is meant for requests such as asking for an analogy, a metaphor, a comparison that clarifies differences, or a fresh scenario to understand something. It is not meant for simply explaining an existing metaphor, polishing wording, giving theoretical definitions, or using an analogy as factual proof.

Does Ljg analogy need any tools or scripts?

The skill has no scripts and no allowed-tools list. Ordinary analogies are built without network access. For uncertain scientific, historical or industry facts, the instructions suggest checking primary sources with an available search tool.

Which languages does Ljg analogy work in?

The SKILL.md instructions and trigger phrases are written in Chinese, so requests in that language are the intended use.

Is Ljg analogy open source?

Yes, the repository is published under the MIT license.

How do I install Ljg analogy in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ljg-analogy to use it in all your projects, or to .claude/skills/ljg-analogy 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 analogy run scripts?

No. It is instructions only, with no 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 analogy?

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 analogy?

The closest alternatives to Ljg analogy are Ljg structure, Ljg explain, Compare, Ljg rank and Ljg writes.

Where this comes from

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

More from lijigang/ljg-skills

  1. Scans yesterday's AI chats for a thinking blind spot and pairs it with a WeRead chapter

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

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

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

    • Open source
    • 7.8K GitHub stars
    • Design and media
  5. Builds annotated classical Chinese chapter sheets with word notes and a chapter reading

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

    • Open source
    • 7.8K GitHub stars
    • Productivity