Skip to content
Skill

Ljg constraint

Maps the hard, soft and self-imposed constraints that shape a domain, role or debate

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

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)。

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 2 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-constraint:

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.

Claude Code docs on skills

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

Codex docs on skills

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

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

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

Gemini CLI docs on skills

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

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.

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-constraint into your agent's skills folder as ljg-constraint. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

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

Ljg constraint 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.

More from lijigang/ljg-skills

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

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

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

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

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

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

    • Open source
    • 7.8K GitHub stars
    • Files and documents