Yao crux skill

From yaojingang/yao-open-skills · View interactive version

Yao crux skill is an AI agent skill from the GitHub repository 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/HT

How to use this skill

Skill file

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

Do Not Route Here

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.

Output Contract

Reference Map

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.