# Ljg relationship

> Ljg relationship is an open-source agent skill for knowledge and memory. Guides a dialogue to map the structure of a relationship problem and its patterns. 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-relationship
- **Repository:** https://github.com/lijigang/ljg-skills
- **GitHub stars:** 7,834
- **License:** MIT
- **Skill name:** ljg-relationship
- **Collection:** https://github.com/lijigang/ljg-skills
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-12-01

## About

This skill turns the agent into a relationship analyst that works through questions rather than advice. It sorts a problem into either a structural issue or a recurring pattern, then either walks through five layers (exchange, power, boundaries, life stage and personal narrative) or moves into a psychoanalytic lens that looks at transference, unconscious repetition and resistance. After each step the agent draws an ASCII diagram of the relationship structure it has identified, so the user can see the dynamics laid out.

The session ends with a synthesis diagram, a one-sentence core insight, a question to take away, and a note recommending professional help when signs such as trauma responses or self-harm appear. The agent then writes the analysis as a dated markdown note into a notes folder in the user's Documents directory, using a shell command to get the timestamp.

The workflow is written in Chinese and expects the user to describe a concrete situation in a story-like way. It needs no scripts or external services beyond the shell and file writing the agent already has.

## When your agent uses it

> Relationship analyst combining structural diagnostics (5-layer framework) with psychoanalytic depth (transference, unconscious patterns, resistance). Guides users through dialogue to "see" the real structure of their relationship issues. Use when user says "关系分析", "分析关系", "relationship", "人际关系", or describes a specific relationship problem they want to understand.

## 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-relationship)
- [License: MIT](https://github.com/lijigang/ljg-skills/tree/HEAD/skills/ljg-relationship)

## Features

- **Structural diagnosis:** Walks through exchange, power, boundary, life stage and narrative layers to locate where a relationship breaks down.
- **Pattern exploration:** Probes recurring roles and unconscious repetitions across relationships using transference-style questions.
- **Resistance flagging:** Notices topic shifts or defensiveness during the conversation and gently points them out to the user.
- **ASCII structure diagrams:** Produces visual diagrams of the current diagnosis after each round so the dynamics are easier to see.
- **Markdown session notes:** Saves the full analysis as a dated markdown file with background, layer findings and a closing question.

## Good for

- Understand why a conflict with a boss keeps escalating
- Work out why an argument with a business partner keeps repeating
- Look at a family relationship that feels stuck and find the underlying pattern
- Reflect on a friendship where one person always gives more
- Save a structured summary of a relationship analysis session as a note

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

```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-relationship &&
cp -R "$tmp/skills/ljg-relationship" ~/.claude/skills/ljg-relationship &&
rm -rf "$tmp"
```

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

```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-relationship &&
cp -R "$tmp/skills/ljg-relationship" ~/.copilot/skills/ljg-relationship &&
rm -rf "$tmp"
```

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

## FAQ

### When does Ljg relationship trigger?

It is meant to load when the user says phrases such as 关系分析, 分析关系, relationship or 人际关系, or describes a specific relationship problem they want to understand.

### Does Ljg relationship give advice on what to do?

No. The instructions say the agent should ask questions and reflect the user's words back, and should not tell the user what they should do.

### Where does Ljg relationship save output?

It writes a markdown file to a notes folder under ~/Documents/notes, with a timestamp in the filename, and reports the file path to the user.

### Does Ljg relationship need any scripts or extra tools?

No scripts are included. The workflow relies on the agent running a date command for the timestamp and writing a file.

### How do I install Ljg relationship in Claude Code?

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

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

The closest alternatives to Ljg relationship are Ljg learn, Ljg map, Ljg read, Ljg is and Ljg mechanism.

## Where this comes from

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

## Alternatives

- [Ljg learn](https://ai-powered.com/skills/ljg-learn): Ljg learn is an open-source agent skill for knowledge and memory.
- [Ljg map](https://ai-powered.com/skills/ljg-map): Ljg map is an open-source agent skill for knowledge and memory.
- [Ljg read](https://ai-powered.com/skills/ljg-read): Ljg read is an open-source agent skill for knowledge and memory.
- [Ljg is](https://ai-powered.com/skills/ljg-is): Ljg is is an open-source agent skill for knowledge and memory.
- [Ljg mechanism](https://ai-powered.com/skills/ljg-mechanism): Ljg mechanism is an open-source agent skill for knowledge and memory.
- [Analyze](https://ai-powered.com/skills/analyze-arjunrajlaboratory): Analyze is an open-source agent skill for knowledge and memory.

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