# Ljg constraint

> Ljg constraint is an open-source agent skill for productivity. Maps the hard, soft and self-imposed constraints that shape a domain, role or debate. 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-constraint
- **Repository:** https://github.com/lijigang/ljg-skills
- **GitHub stars:** 7,834
- **License:** MIT
- **Skill name:** ljg-constraint
- **Collection:** https://github.com/lijigang/ljg-skills
- **Categories:** [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-12-01

## About

This skill takes a field, profession, role, product or argument and works out which few constraints actually bound it. Each one is sorted into a layer: hard limits of the world, soft limits set by rules and costs, or self-imposed limits that only live in how people interpret the situation. The skill then checks whether a supposedly hard limit has been crossed elsewhere, which separates real walls from old habits.

The workflow lays out a list of candidate constraints such as incentive asymmetry, information gaps and time horizons, then tests each for its real firmness and identity role. Where people disagree, it lists the default constraints each side assumes, since different constraints can mean the two sides are solving different problems. The output is written as a prose analysis and saved to a Markdown or org file, with an ASCII diagram of how the constraints push behavior.

It is written for Chinese-language use and expects a domain or debate described in plain text. It does not call external services or ship scripts; it works from the agent's own reasoning and saves the result to a notes folder.

## When your agent uses it

> 给一个领域、专业、角色、产品或争论找出真正框住它的几条约束，判明它们属于世界/规则/解释（硬/软/自设），看这组约束如何定义身份、补全问题、框出解空间并解释实际行为；尤其用于区分目标相同但约束不同导致的方案分歧，识别被误当硬事实的旧解释。USE WHEN 用户说 '约束', '找约束', '这个领域的约束是什么', '本质约束', '什么框住了它', '硬约束还是自设约束', '边界在哪', '这行为什么这么做', 'constraint', '/ljg-constraint', or gives any domain/profession/role/product/debate and wants its defining constraints and solution space mapped. NOT FOR 往下挖生成器（用 ljg-rank，找的是生成力不是边界）、纵向深钻一个观点到底（用 ljg-think）、拆一本书（用 ljg-book）、一个概念解剖（用 ljg-learn）。

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

## Features

- **Constraint layer sorting:** Classifies each limit as a hard world constraint, a soft rule-based one, or a self-imposed interpretation.
- **Identity constraint finding:** Identifies the single constraint whose removal would stop the subject being what it is.
- **Assumption mismatch check:** Compares the default constraints behind opposing positions to show whether they are really the same problem.
- **Solution space mapping:** Shows how a set of constraints narrows the feasible actions and explains observed behavior.
- **Hardness verification:** Tests whether a supposed hard limit has been overcome elsewhere, downgrading it when it has.
- **ASCII structure diagrams:** Adds a plain-text diagram linking constraints to the behaviors they produce.

## Good for

- Map the defining constraints of an investment manager's job
- Explain why a product team and a growth team keep disagreeing
- Check whether an industry rule is a real limit or just habit
- Describe what shapes a doctor's or restaurant owner's everyday choices
- Identify the identity-defining constraint of a business model

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

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

## FAQ

### What does the skill need to run?

It works from a domain, role, product or debate given in text. It writes its result to a notes folder as a Markdown or org file and does not depend on scripts or outside tools.

### What does Ljg constraint produce?

A continuous prose analysis in Chinese that lists constraints, their hardness, the solution space they create and how that explains behavior, plus an ASCII diagram.

### Does Ljg constraint suggest how to break a constraint?

Only briefly, at the end. The main focus is describing the current constraints and their effects, and it avoids offering escape plans early.

### How does Ljg constraint differ from ljg-rank or ljg-think?

According to its description, ljg-rank digs for generative forces rather than boundaries, and ljg-think drills deeply into one viewpoint. This skill maps the edges that shape a subject.

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

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

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

The closest alternatives to Ljg constraint are Ljg structure, Ljg rank, Ljg analogy, Ljg writes and Ljg think.

## 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 rank](https://ai-powered.com/skills/ljg-rank): Ljg rank is an open-source agent skill for productivity.
- [Ljg analogy](https://ai-powered.com/skills/ljg-analogy): Ljg analogy 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 think](https://ai-powered.com/skills/ljg-think): Ljg think 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.
- [Strategic reasoning](https://ai-powered.com/skills/strategic-reasoning): Strategic reasoning is an open-source agent skill for productivity.
- [Decision analysis](https://ai-powered.com/skills/decision-analysis): Decision analysis is an open-source agent skill for productivity.

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