Agent skill

Yao Crux Skill

by yaojingang in yaojingang/yao-open-skills

A skill your agent uses when a user is stuck in a complex real-world situation with many conflicts, limited resources, unclear priorities, or asks to identify the principal contradiction, secondary…

MITAuto-check passedDocuments & Office

Install Yao Crux Skill

skills CLI
$ npx skills add yaojingang/yao-open-skills --skill yao-crux-skill -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install yaojingang/yao-open-skills yao-crux-skill --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/yaojingang/yao-open-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/yao-crux-skill .claude/skills/yao-crux-skill && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
yao-crux-skill
GitHub stars
1.3k
Token cost
~2.5k tokens
SKILL.md length
1,170 words
Files
63 (incl. scripts, references, assets)
Skills in repo
16
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when a user is stuck in a complex real-world situation with many conflicts, limited resources, unclear priorities, or asks to identify the principal contradiction, secondary…

  • Works in 12 steps: Read… → Run the current-state gate from… → If clarity is insufficient, do not name… → …
  • A user is stuck in a complex real-world situation with many conflicts
  • SKILL.md covers Use This Skill For, Do Not Route Here, Default Workflow and Output Contract, plus 1 more section
  • Runs Python scripts from its folder

What it does

Yao Crux Skill is an agent skill from yaojingang/yao-open-skills. Use when a user is stuck in a complex real-world situation with many conflicts, limited resources, unclear priorities, or asks to identify the principal contradiction, secondary contradictions, dominant aspect, breakthrough actions, monitoring thresholds, probability projection, and Markdown/Word/HTML/PDF reports. Triggers on 矛盾论, 主要矛盾, 次要矛盾, 主次矛盾, 卡住了, 优先级混乱, 找关键问题, 资源有限, 冲突很多. Do not use for philosophy-only summaries, Mao text commentary with no live case, generic brainstorming with no diagnosis, or final…

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 65 other files, including scripts, reference files and assets (for example `README.en.md`, `README.md` and `agents/interface.yaml`).

It sits in Documents & Office, covering Brainstorming. The repository describes itself as: OpenYao public skills collection: reusable AI assets for decision-making, business analysis, tutorials, research evidence gathering, and document generation. The licence is MIT.

When your agent uses it

  • A user is stuck in a complex real-world situation with many conflicts
  • Limited resources
  • Unclear priorities
  • Asks to identify the principal contradiction

Example prompts

  • “/yao-crux-skill”

Requirements

  • Python 3

Workflow steps

12 steps, taken from the first numbered list in SKILL.md.

  1. Read references/intake-and-questioning.md; extract the user's target, stage, constraints, resources, facts, stakeholders, and previous…
  2. Run the current-state gate from references/intake-and-questioning.md or scripts/current_state_clarity.py; score clarity before diagnosis.
  3. If clarity is insufficient, do not name a principal contradiction. Ask no more than 3 decisive questions and stop.
  4. If clarity is workable, produce a provisional current-state snapshot, ask the missing questions, and label any contradiction read as…
  5. If clarity is clear, restate the current-state snapshot and ask the user to confirm or correct it before deep diagnosis.
  6. Run references/safety-and-boundaries.md; hard constraints remain guardrails even when they are not the principal contradiction.
  7. Read references/theory-anchors.md; use 决定性, 牵引性, and 阶段性 as the plain-language front gate before detailed scoring.
  8. Use the first-principles gate in references/contradiction-model.md: separate visible symptoms from the hidden root variable that can…
  9. Separate 内部可改变结构, 外部硬条件, and 外因通过内因起作用; do not mistake an external condition for the principal contradiction when an internal response…
  10. Build 3-7 candidate contradictions, including at least one upstream candidate if the visible symptoms share a common cause.
  11. Score candidates with the weighted model; use Bayesian-style updates to ask which explanation fits the evidence best.
  12. Apply Ockham razor only as a supporting tie-breaker: prefer the explanation that covers more symptoms with fewer extra assumptions.

What it can do on your machine

Read from SKILL.md and the folder at commit 093996e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python, from the files we listed), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Yao Crux Skill loads about 2.5k tokens when it runs, and up to ~13k if it reads all its reference files. Until then it costs about 149 tokens; SKILL.md has 1,170 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~149
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~13k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from yaojingang/yao-open-skills at commit 093996e, republished under its MIT licence (© yaojingang). 1,170 words, ~2,529 tokens.

Download SKILL.mdSave it as .claude/skills/yao-crux-skill/SKILL.md (or your agent's skills folder). This skill also uses 62 other files; get the full folder from GitHub.
name
yao-crux-skill
description
Use when a user is stuck in a complex real-world situation with many conflicts, limited resources, unclear priorities, or asks to identify the principal contradiction, secondary contradictions, dominant aspect, breakthrough actions, monitoring thresholds, probability projection, and Markdown/Word/HTML/PDF reports. Triggers on 矛盾论, 主要矛盾, 次要矛盾, 主次矛盾, 卡住了, 优先级混乱, 找关键问题, 资源有限, 冲突很多. Do not use for philosophy-only summaries, Mao text commentary with no live case, generic brainstorming with no diagnosis, or final licensed medical, legal, investment, or psychological-crisis advice.
metadata.author
Yao Team
metadata.maturity
production-scaffold
metadata.public_release
sanitized

Yao Crux Skill

Use this skill to first clarify the user's current situation, then turn it into a principal-contradiction diagnosis, a secondary-contradiction watchlist, a focused action plan, and a four-format report bundle.

Use This Skill For

  • ask concise follow-up questions before judging a user's current situation
  • assess whether the user's current situation is clear enough for diagnosis before naming the principal contradiction
  • produce a confirmable current-state snapshot with goal, facts, stage, resources, constraints, stakeholders, and repeated patterns
  • identify goals, stage, constraints, facts, stakeholders, resources, and repeated conflict patterns
  • rewrite messy symptoms as candidate contradictions in the form 力量A 与 力量B 的冲突
  • run a first-principles layer scan so the principal contradiction can be an upstream, not-yet-visible constraint rather than the loudest symptom
  • use the three plain principal-contradiction checks: 决定性, 牵引性, and 阶段性
  • separate internal changeable structures from external hard conditions, then judge how external conditions act through internal structure
  • use Bayesian-style evidence updates and Ockham-razor parsimony as supporting checks when candidate contradictions are close
  • score principal and secondary contradictions by goal impact, causal leverage, stage urgency, resource constraint, changeability, spillover risk, and evidence strength
  • identify the principal aspect inside the principal contradiction
  • recommend 1-3 breakthrough actions that explicitly weaken or reverse the principal aspect, monitoring thresholds, review conditions, and probability projections after action
  • make resource and attention allocation decisive when the principal contradiction is clear, typically concentrating 50%-70% of high-leverage resources on the main line
  • include visual reasoning modules: analysis flow, iceberg model, contradiction decision matrix, resource allocation, and stage transition map
  • write user-facing reports that explicitly use 主要矛盾 and 次要矛盾, while translating them with practical labels such as 最关键的卡点 and 先不主攻,但要盯住
  • export synchronized markdown, html, docx, and pdf reports using the Kami-style layout rules in this package

Do Not Route Here

  • generic explanation of 矛盾论 with no concrete user case
  • historical, ideological, or textual commentary where no diagnosis or action report is needed
  • broad brainstorming that does not require a principal/secondary contradiction conclusion
  • final professional medical, legal, investment, safety-critical, or psychological-crisis advice

Default Workflow

  1. Read references/intake-and-questioning.md; extract the user's target, stage, constraints, resources, facts, stakeholders, and previous attempts.
  2. Run the current-state gate from references/intake-and-questioning.md or scripts/current_state_clarity.py; score clarity before diagnosis.
  3. If clarity is insufficient, do not name a principal contradiction. Ask no more than 3 decisive questions and stop.
  4. If clarity is workable, produce a provisional current-state snapshot, ask the missing questions, and label any contradiction read as provisional.
  5. If clarity is clear, restate the current-state snapshot and ask the user to confirm or correct it before deep diagnosis.
  6. Run references/safety-and-boundaries.md; hard constraints remain guardrails even when they are not the principal contradiction.
  7. Read references/theory-anchors.md; use 决定性, 牵引性, and 阶段性 as the plain-language front gate before detailed scoring.
  8. Use the first-principles gate in references/contradiction-model.md: separate visible symptoms from the hidden root variable that can explain several symptoms together.
  9. Separate 内部可改变结构, 外部硬条件, and 外因通过内因起作用; do not mistake an external condition for the principal contradiction when an internal response path is available.
  10. Build 3-7 candidate contradictions, including at least one upstream candidate if the visible symptoms share a common cause.
  11. Score candidates with the weighted model; use Bayesian-style updates to ask which explanation fits the evidence best.
  12. Apply Ockham razor only as a supporting tie-breaker: prefer the explanation that covers more symptoms with fewer extra assumptions.
  13. If the top contradiction is below 3.5/5 or the evidence is too weak, return a provisional read and ask for the missing evidence instead of over-claiming.
  14. Identify the principal contradiction, its principal aspect, secondary contradictions, defer reasons, monitor triggers, and review conditions.
  15. Tie each breakthrough action to the principal aspect: say whether it weakens the currently dominant side, strengthens the weaker side, or changes their relationship.
  16. Reallocate resources aggressively when evidence is sufficient: protect the main line, cap secondary contradictions, and keep only minimal stop-loss capacity for monitored risks.
  17. Build a canonical report input JSON using templates/crux-report.schema.json, including visual and dynamic-stage fields when available.
  18. Run scripts/generate_report_bundle.py input_file.json output_dir for synchronized Markdown, HTML, Word, PDF, and .report.json artifacts.
  19. Check the bundle with scripts/verify_report_bundle.py output_dir before claiming completion.
  20. For HTML/PDF delivery, perform a visual pass on the conclusion, current-state tables, iceberg, decision matrix, and stage-transition sections. Reject the output if the content container width drifts away from the top navigation width, or if there is horizontal overflow, clipped legends, overlapping labels, empty chart space, or decorative imagery that does not explain the analysis.
Show full SKILL.md (425 more words)Show less

Output Contract

  • Lead with the conclusion: current principal contradiction, principal aspect, confidence, and first action.
  • Before the conclusion, make sure the current-state snapshot is explicit enough; if not, lead with follow-up questions instead of a diagnosis.
  • Default report headings must integrate the concepts and the practical translation: 主要矛盾(最关键的卡点), 次要矛盾(先不主攻,但要盯住), 主要矛盾判断过程.
  • The report must show the first-principles reasoning: 看得见的问题, 上升一层, 看不见的根部变量, and why the visible issue is not necessarily the principal contradiction.
  • The report must explain the principal contradiction through 决定性, 牵引性, and 阶段性 before falling back to scores.
  • The report must separate 内部可改变结构 from 外部硬条件, then explain how external conditions act through internal structure.
  • The report must include the visual reasoning sections 一张图看懂:从表象到主要矛盾, 时间、精力、资源应该怎么重新分配, and 主要矛盾什么时候会转移.
  • HTML/PDF reports should render four inline SVG charts plus a photo-based iceberg module. The iceberg must use a real above-water/below-water iceberg image, not a flat glacier, abstract triangle, or decorative ice background. When the image is wide enough, place it as a full-width visual anchor, put 水面上 and 水面下 explanation cards below it, and make 当前主要矛盾 a full-width long module. Markdown and DOCX can use readable text/table fallbacks.
  • Mark major facts and numbers as observed, estimated, or assumed.
  • Keep the analysis dynamic: every principal contradiction conclusion needs a reversal condition and a review point.
  • Treat secondary contradictions as monitored risks, not ignored problems.
  • Keep action advice narrow: 1-3 actions with owner, deadline, resource, metric, and expected effect.
  • Each action should name the principal aspect it changes.
  • When diagnosis confidence is sufficient, resource allocation should be deliberately tilted rather than balanced: usually 50%-70% to the principal contradiction, 10%-25% to secondary-risk containment, and 10%-20% to monitoring/evidence.
  • Include probability projection as a decision-support estimate, not a promise: baseline probability, expected action uplift, risk drag, scenario probabilities, and sensitivity notes.
  • Reports default to Simplified Chinese and must stay synchronized across Markdown, HTML, Word, and PDF.
  • The HTML/PDF layout should follow references/kami-layout-guide.md: warm paper background, ink-blue accent, restrained hierarchy, compact tables, readable chart labels, no text overlap, and print-safe A4 rules.

Reference Map

  • references/intake-and-questioning.md: follow-up strategy and input contract
  • references/theory-anchors.md: theory-to-rule anchors for principal contradiction, internal/external causes, principal aspect, and aggressive resource allocation
  • references/contradiction-model.md: scoring model, principal aspect, secondary contradiction, and probability projection rules
  • references/report-contract.md: report sections and language standard
  • references/report-export-pipeline.md: four-format generation workflow and verification
  • references/kami-layout-guide.md: Kami-derived layout rules for the report bundle
  • references/safety-and-boundaries.md: high-risk and professional-boundary gates
  • reference-materials/README.md: downloadable background research and design materials for readers
  • templates/crux-report.schema.json: canonical input/report shape
  • scripts/generate_report_bundle.py: JSON to Markdown, HTML, DOCX, PDF, and report JSON
  • scripts/current_state_clarity.py: current-state clarity gate and follow-up question selector
  • scripts/verify_report_bundle.py: generated artifact checks

© yaojingang, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 62 other files (scripts, references, assets) in skills/yao-crux-skill of yaojingang/yao-open-skills.

  • SKILL.md
  • README.en.md
  • README.md
  • agents/interface.yaml
  • assets/blue-iceberg-floating-1600.jpg
  • assets/iceberg-cc0-1600.jpg
  • assets/iceberg-mcmurdo-1600.jpg
  • assets/iceberg-photo-source.md
  • assets/iceberg-user-provided.png
  • assets/iceberg-usgs-noaa-belowwater.jpg
  • evals/semantic_config.json
  • evals/test_current_state_clarity.py
  • evals/test_first_principles_team_case.py
  • evals/test_plain_language_report.py
  • evals/test_theory_anchors_and_aggressive_allocation.py
  • evals/test_visual_deep_analysis_report.py
  • evals/trigger_cases.json
  • input
  • … and 45 more

Open the folder on GitHubat commit 093996e

Compare with similar skills

Yao Crux Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Yao Crux Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Yao Crux Skill this skillyaojingang/yao-open-skills1.3k—~2.5kAutomated safety check: PassMIT
Quant Paper ExtractorCamusGIT/EvoQuant151—~2.4kAutomated safety check: PassApache-2.0
Ebook Concept Developmentrobertguss/claude-code-toolkit124—~2.1kAutomated safety check: PassMIT
Trellis StartROYIANS/foliq-print-template-designer1366 repos~646Automated safety check: PassMIT
Story IdeatorThomasHoussin/Claude-Book121—~1.6kAutomated safety check: PassMIT
Viral Short Form Ideasvyralcontent/content-skills1341 repos~2.9kAutomated safety check: PassMIT

Similar skills

  • Quant Paper Extractor

    CamusGIT/EvoQuant

    Convert quantitative research report PDFs to markdown, then extract structured knowledge (paperId, title, year, source, keywords, tldr, abstract, strategy, method, experiment, result) into JSONL…

    151 GitHub stars~2.4k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Ebook Concept Development

    robertguss/claude-code-toolkit

    Develop ebook ideas into structured concepts ready for architecture.

    124 GitHub stars~2.1k tokensUpdated 24 days ago
    Documents & OfficeAuto-check passed
  • Trellis Start

    ROYIANS/foliq-print-template-designer

    Initializes an AI development session by reading workflow guides, developer identity, git status, active tasks, and project guidelines from .trellis/.

    136 GitHub starsUsed in 6 repos~646 tokens
    Agent WorkflowsAuto-check passed
  • Story Ideator

    ThomasHoussin/Claude-Book

    Generate original storylines from any universe bible without plagiarizing source material.

    121 GitHub stars~1.6k tokensUpdated 8 mo ago
    Agent WorkflowsAuto-check passed
  • Viral Short Form Ideas

    vyralcontent/content-skills

    Generate short-form video ideas at volume and stop the blank-page problem for good.

    134 GitHub starsUsed in 1 repo~2.9k tokens
    Media & CreativeAuto-check passed
  • Verbalized Sampling

    gnurio/nurijanian-skills

    Generate diverse outputs by prompting for a probability distribution instead of a single response.

    124 GitHub stars~2k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check: warnings

More from yaojingang/yao-open-skills

All 16 skills in this repo
  • Yao Copyright Skill

    yaojingang/yao-open-skills

    A skill your agent uses when adding or auditing Yao copyright comment headers for an agent skill package, especially SKILL.md, README.md, references, prompts, templates, examples, scripts, YAML, or…

    1.3k GitHub stars~551 tokensUpdated 1 mo ago
    Auto-check passed
  • Yao Interpreter Skill

    yaojingang/yao-open-skills

    Analyze local Agent Skill folders, SKILL.md files, or safe zip archives as untrusted input; explain purpose, trigger contract, structure, usage readiness, safety risks, evidence-backed 100-point…

    1.3k GitHub stars~545 tokensUpdated 1 mo ago
    Auto-check passed
  • Yao Positioning Skill

    yaojingang/yao-open-skills

    Generate evidence-aware positioning reports for personal IPs, courses, products, services, brands, or companies by combining positioning theory, course-marketing analysis, user intent, competitor…

    1.3k GitHub stars~805 tokensUpdated 1 mo ago
    Auto-check passed
  • Yao Bayesian Skill

    yaojingang/yao-open-skills

    Convert uncertain real-world choices into an auditable Bayesian evidence-to-action report with priors, evidence grading, posterior update, action thresholds, sensitivity checks, multi-turn decision…

    1.3k GitHub stars~956 tokensUpdated 1 mo ago
    Auto-check passed
  • Yao Business Skill

    yaojingang/yao-open-skills

    Design, diagnose, and study business models from ideas, product websites, or company names.

    1.3k GitHub stars~821 tokensUpdated 1 mo ago
    Auto-check passed
  • Yao Demand Skill

    yaojingang/yao-open-skills

    Evaluate product demand from product links, product descriptions, PRDs, websites, app-store pages, white papers, sales decks, screenshots, or funding materials using the demand triangle model: lack…

    1.3k GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Yao Crux Skill

What does Yao Crux Skill do?

A skill your agent uses when a user is stuck in a complex real-world situation with many conflicts, limited resources, unclear priorities, or asks to identify the principal contradiction, secondary…. Yao Crux Skill is an agent skill from yaojingang/yao-open-skills. Use when a user is stuck in a complex real-world situation with many conflicts, limited resources, unclear priorities, or asks to identify the principal contradiction, secondary contradictions, dominant aspect, breakthrough actions, monitoring thresholds, probability projection, and Markdown/Word/HTML/PDF reports.

When should I use Yao Crux Skill?

Yao Crux Skill fits situations like: A user is stuck in a complex real-world situation with many conflicts; limited resources; unclear priorities; asks to identify the principal contradiction.

How do I install Yao Crux Skill in Claude Code?

Run `npx skills add yaojingang/yao-open-skills --skill yao-crux-skill -a claude-code`. Or copy the skill folder (skills/yao-crux-skill in yaojingang/yao-open-skills) into .claude/skills/yao-crux-skill in your project. Claude Code loads it when a task matches its description.

How do I install Yao Crux Skill in Codex?

Run `npx skills add yaojingang/yao-open-skills --skill yao-crux-skill -a codex`. Or copy the skill folder (skills/yao-crux-skill in yaojingang/yao-open-skills) into .agents/skills/yao-crux-skill in your project. Codex loads it when a task matches its description.

Can I use Yao Crux Skill in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yaojingang/yao-open-skills --skill yao-crux-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/yao-crux-skill, .gemini/skills/yao-crux-skill, .github/skills/yao-crux-skill and .opencode/skills/yao-crux-skill in your project.

What does Yao Crux Skill need to run?

Going by SKILL.md and its folder, Yao Crux Skill needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Yao Crux Skill access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Yao Crux Skill safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Yao Crux Skill use?

Yao Crux Skill is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Yao Crux Skill use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 10k tokens, read only when the agent opens those files.

What are the alternatives to Yao Crux Skill?

Skills that share tags, products or a category with Yao Crux Skill: Quant Paper Extractor (CamusGIT/EvoQuant, 151 stars), Ebook Concept Development (robertguss/claude-code-toolkit, 124 stars), Trellis Start (ROYIANS/foliq-print-template-designer, 136 stars) and Story Ideator (ThomasHoussin/Claude-Book, 121 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Yao Crux Skill?

yaojingang (a GitHub user) maintains it in yaojingang/yao-open-skills, which has 1,323 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on August 28, 2026.

Source: yaojingang/yao-open-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.