# Ljg analogy

> Ljg analogy is an open-source agent skill for productivity. Finds a vivid analogy that maps a relationship from a familiar scene onto your topic. 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-analogy
- **Repository:** https://github.com/lijigang/ljg-skills
- **GitHub stars:** 7,834
- **License:** MIT
- **Skill name:** ljg-analogy
- **Collection:** https://github.com/lijigang/ljg-skills
- **Categories:** [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-12-01

## About

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 只解释现成比喻、纯修辞润色、理论定义或把类比当作事实证明。

## What it can access

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

- [Instructions only, no scripts](https://github.com/lijigang/ljg-skills/tree/HEAD/skills/ljg-analogy)
- [License: MIT](https://github.com/lijigang/ljg-skills/tree/HEAD/skills/ljg-analogy)

## Features

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

## 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-analogy`:

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

### Codex

Copy the skill folder to `~/.agents/skills/ljg-analogy` 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-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.

### Cursor

Copy the skill folder to `~/.cursor/skills/ljg-analogy` 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-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.

### 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-analogy
```

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

### VS Code

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

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

### Other agents

Get the folder:

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

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

## Alternatives

- [Ljg structure](https://ai-powered.com/skills/ljg-structure): Ljg structure is an open-source agent skill for productivity.
- [Ljg explain](https://ai-powered.com/skills/ljg-explain): Ljg explain is an open-source agent skill for productivity.
- [Compare](https://ai-powered.com/skills/compare): Compare is an open-source agent skill for productivity.
- [Ljg rank](https://ai-powered.com/skills/ljg-rank): Ljg rank is an open-source agent skill for productivity.
- [Ljg writes](https://ai-powered.com/skills/ljg-writes): Ljg writes is an open-source agent skill for productivity.
- [Ljg teach](https://ai-powered.com/skills/ljg-teach): Ljg teach is an open-source agent skill for productivity.
- [Ljg constraint](https://ai-powered.com/skills/ljg-constraint): Ljg constraint is an open-source agent skill for productivity.
- [Ljg roundtable](https://ai-powered.com/skills/ljg-roundtable-lijigang): Ljg roundtable is an open-source agent skill for productivity.

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