
Ljg relationship
Guides a dialogue to map the structure of a relationship problem and its patterns
Ljg relationship is an open-source agent skill for knowledge and memory. 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 relationship
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.
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 1 file (10 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-skillsOr copy only this skill to ~/.claude/skills/ljg-relationship:
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.
Copy the skill folder to ~/.agents/skills/ljg-relationship 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-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.
Copy the skill folder to ~/.cursor/skills/ljg-relationship 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-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.
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-relationshipOr copy the folder to ~/.gemini/skills/ljg-relationship yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/ljg-relationship:
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.
Get the folder:
git clone --depth 1 https://github.com/lijigang/ljg-skills.gitThen 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.
What it does
- 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
Ljg relationship 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.
More from lijigang/ljg-skills

Finds a vivid analogy that maps a relationship from a familiar scene onto your topic
- Open source
- 7.8K GitHub stars
- Productivity

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

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

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

Turns text into PNG cards, long reads, full-text layouts, comics or whiteboards
- Open source
- 7.8K GitHub stars
- Design and media

Builds annotated classical Chinese chapter sheets with word notes and a chapter reading
- Open source
- 7.8K GitHub stars
- Files and documents



