Agent skill

Contradiction Analysis

by HughYau in HughYau/qiushi-skill

矛盾分析法:把复杂问题拆成若干对立面,找出规定其他矛盾的主要矛盾及其主要方面,判定对抗性 / 非对抗性,并据此选择处理方式。当问题头绪多、多个因素互相牵制、优先级不清、根因不明、反复修不好、trade-off 说不清时触发;直接执行类任务或用户已定方案时不触发。

MITAuto-check passedDevelopment

Install Contradiction Analysis

skills CLI
$ npx skills add HughYau/qiushi-skill --skill contradiction-analysis -a claude-code

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

GitHub CLI
$ gh skill install HughYau/qiushi-skill contradiction-analysis --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/HughYau/qiushi-skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/contradiction-analysis .claude/skills/contradiction-analysis && 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
contradiction-analysis
GitHub stars
3.8k
Token cost
~485 tokens
SKILL.md length
64 words
Files
3
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

矛盾分析法:把复杂问题拆成若干对立面,找出规定其他矛盾的主要矛盾及其主要方面,判定对抗性 / 非对抗性,并据此选择处理方式。当问题头绪多、多个因素互相牵制、优先级不清、根因不明、反复修不好、trade-off 说不清时触发;直接执行类任务或用户已定方案时不触发。

  • Works in 6 steps: 列矛盾清单:[A] vs [B]… → 判定主要矛盾:标 ⭐ 并给理由。三个检验 → 找主要方面:主要矛盾内部,哪一方当前占支配地位?这决定问题现在的性质。 → …
  • Unclear priorities
  • SKILL.md covers 用 / 不用, 操作规程, 输出模板 and 纪律, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Contradiction Analysis is an agent skill from HughYau/qiushi-skill. 矛盾分析法:把复杂问题拆成若干对立面,找出规定其他矛盾的主要矛盾及其主要方面,判定对抗性 / 非对抗性,并据此选择处理方式。当问题头绪多、多个因素互相牵制、优先级不清、根因不明、反复修不好、trade-off 说不清时触发;直接执行类任务或用户已定方案时不触发。 English: Contradiction analysis. Decompose a tangled problem into opposing forces, isolate the principal contradiction and its dominant side, classify it as antagonistic or non-antagonistic, and choose the response accordingly. Trigger on unclear priorities, unknown root causes, recurring failures, or trade-offs that resist explanation; skip for direct execution or when the user has…

Its SKILL.md is about 490 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `contradiction-types-reference.md` and `original-texts.md`).

It sits in Development, covering Root cause analysis. The repository describes itself as: Qiushi-Skill: Build agents that investigate first, focus on the main contradiction, validate in practice, and keep pushing until the work is actually done… The licence is MIT.

When your agent uses it

  • Unclear priorities
  • Unknown root causes
  • Recurring failures
  • Trade-offs that resist explanation

Example prompts

  • “/contradiction-analysis”

Workflow steps

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

  1. 列矛盾清单:[A] vs [B] 格式,写清两个对立面各自要什么。透过现象看内在张力,不只列表面症状。
  2. 判定主要矛盾:标 ⭐ 并给理由。三个检验
  3. 找主要方面:主要矛盾内部,哪一方当前占支配地位?这决定问题现在的性质。
  4. 定性质
  5. 选处理方向,写出「接下来我将……」
  6. 设监控提示:哪个次要矛盾可能上升为主要矛盾?哪个非对抗性矛盾可能因处理不当激化?

What it can do on your machine

Read from SKILL.md and the folder at commit 5ace717. 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

    No scripts in the folder and no shell commands in SKILL.md.

    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

Contradiction Analysis loads about 485 tokens when it runs. Until then it costs about 142 tokens; SKILL.md has 64 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~142
When it runs · the whole SKILL.md, loaded when a task matches
~485

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from HughYau/qiushi-skill at commit 5ace717, republished under its MIT licence (© HughYau). 64 words, ~485 tokens.

Download SKILL.mdSave it as .claude/skills/contradiction-analysis/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
contradiction-analysis
description
矛盾分析法:把复杂问题拆成若干对立面,找出规定其他矛盾的主要矛盾及其主要方面,判定对抗性 / 非对抗性,并据此选择处理方式。当问题头绪多、多个因素互相牵制、优先级不清、根因不明、反复修不好、trade-off 说不清时触发;直接执行类任务或用户已定方案时不触发。 English: Contradiction analysis. Decompose a tangled problem into opposing forces, isolate the principal contradiction and its dominant side, classify it as antagonistic or non-antagonistic, and choose the response accordingly. Trigger on unclear priorities, unknown root causes, recurring failures, or trade-offs that resist explanation; skip for direct execution or when the user has already chosen the solution.

矛盾分析法

"研究任何过程,如果是存在着两个以上矛盾的复杂过程的话,就要用全力找出它的主要矛盾。捉住了这个主要矛盾,一切问题就迎刃而解了。" —— 《矛盾论》

用 / 不用

用:

  • 问题复杂,不知从哪下手
  • 多个问题互相牵制,解决一个牵动另一个
  • 反复出现的故障、反复失败的尝试,怀疑没打中根源
  • 需要在多个"都重要"的事里判断哪个最重要

不用:

  • 任务是单维度的直接执行
  • 用户已经指定方案,只需实现
  • 问题属于已知模式,直接套用已验证方案更快

操作规程

先保证事实基础:矛盾清单里的每一项都要能指向调查得到的现象,不能凭印象。事实不够先做 investigation-first。

  1. 列矛盾清单:[A] vs [B] 格式,写清两个对立面各自要什么。透过现象看内在张力,不只列表面症状。
  2. 判定主要矛盾:标 ⭐ 并给理由。三个检验:
    • 因果:解决了它,别的矛盾是否随之缓解?
    • 根源:它是不是别的矛盾的来源?
    • 阶段:它是否处于当前阶段的中心?
  3. 找主要方面:主要矛盾内部,哪一方当前占支配地位?这决定问题现在的性质。
  4. 定性质:
    • 对抗性(根本利益冲突,不能兼得)→ 明确取舍,果断二选一
    • 非对抗性(共同目标下的分歧)→ 团结—批评—团结:先找共同点,再通过讨论解决分歧
  5. 选处理方向,写出「接下来我将……」:
    • 技术性矛盾 → 形成假说,交 practice-cognition 验证
    • 资源性矛盾 → concentrate-forces 集中解决主要矛盾
    • 多目标平衡 → overall-planning
  6. 设监控提示:哪个次要矛盾可能上升为主要矛盾?哪个非对抗性矛盾可能因处理不当激化?

输出模板

矛盾清单:
- [A] vs [B]:……
- ⭐ [C] vs [D]:主要矛盾。理由:解决了它,[X]、[Y] 随之缓解
  - 主要方面:当前 [C / D] 占支配地位,因为 ……
  - 性质:对抗性 / 非对抗性
接下来我将:……
⚠️ 需监控:[次要矛盾] 是否上升为主要矛盾;[矛盾] 是否激化

纪律

  • 禁止只输出分析文字不给结论;六项缺一不可。
  • 禁止一刀切:对具体的事物作具体的分析,不套模板。
  • 主要矛盾只能有一个。列出两个"都是主要"的,说明分析还没做完。
  • 矛盾会转化:解决过程中主次可能对调,随时更新。

交接

  • 主要矛盾确定 → concentrate-forces 集中解决,或 practice-cognition 验证假说
  • 处理对抗性矛盾前需要更多事实 → investigation-first

原著依据:original-texts.md;场景速查:contradiction-types-reference.md

© HughYau, 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 2 other files in skills/contradiction-analysis of HughYau/qiushi-skill.

  • SKILL.md
  • contradiction-types-reference.md
  • original-texts.md

Open the folder on GitHubat commit 5ace717

Compare with similar skills

Contradiction Analysis 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.

Contradiction Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Contradiction Analysis this skillHughYau/qiushi-skill3.8k—~485Automated safety check: PassMIT
Code Design Rationale Investigatorcursor/plugins11k9 repos~2.6kAutomated safety check: PassNone
OpenLogi macOS Permissions TriageAprilNEA/OpenLogi23k—~2.5kAutomated safety check: NotesApache-2.0
Bug Finder for daisyUIsaadeghi/daisyui43k—~2.3kAutomated safety check: PassMIT
Root Cause Debugginggarrytan/gstack136k—~1.4kAutomated safety check: PassMIT
Review PRapache/shardingsphere21k—~6.4kAutomated safety check: PassApache-2.0

Similar skills

  • Official

    Digs into why code is shaped the way it is by checking git history, pull requests and connected tools in parallel, then reporting a cited read on the tradeoffs.

    11k GitHub starsUsed in 9 repos~2.6k tokens
    DevelopmentAuto-check passed
  • Decides whether an OpenLogi device problem on macOS is a privacy-permission (TCC) problem, using agent log lines, and says which identity needs which grant.

    23k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check: notes
  • Bug Finder for daisyUI

    saadeghi/daisyui

    Investigates suspected bugs in the daisyUI monorepo through read-only analysis, then writes a decision-ready fix plan in tmp/bugs without changing any product code.

    43k GitHub stars~2.3k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Root Cause Debugging

    garrytan/gstack

    Investigates bugs, errors and stack traces in phases and requires a root-cause hypothesis to be confirmed before any fix is written.

    136k GitHub stars~1.4k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Review PR

    apache/shardingsphere

    Review Apache ShardingSphere or user-authorized downstream pull requests and PR discussions from public or authorized repository evidence.

    21k GitHub stars~6.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Graph-Based Bug Tracing

    tirth8205/code-review-graph

    Traces a bug through a code knowledge graph, following callers, callees and execution flow before opening source files, within a small token budget.

    32k GitHub starsUsed in 1 repo~287 tokens
    DevelopmentAuto-check passed

More from HughYau/qiushi-skill

All 11 skills in this repo
  • Concentrate Forces

    HughYau/qiushi-skill

    集中兵力:多件事同时争抢时间、注意力或预算时,列出全部待办,选定唯一主攻目标并公开锁定,彻底解决、验证后再转向下一个。当待办过多、推进分散、"每件都做了一点但都没做完"、需要决定先做什么时触发;只有一个任务、任务彼此独立可并行、用户明确要求同时推进时不触发。

    3.8k GitHub stars~379 tokensUpdated 9 days ago
    Auto-check passed
  • Criticism Self Criticism

    HughYau/qiushi-skill

    批评与自我批评:在工作完成、阶段验收、收到批评或同类错误反复出现时,对成果和过程做诚实、具体、基于事实的审视,输出可执行的改进项,并处理外来批评而不辩解。触发信号包括 review、复盘、审查、"帮我看看有没有问题"、"你确定吗";任务刚开始或只是单步查询时不触发。

    3.8k GitHub stars~423 tokensUpdated 9 days ago
    Auto-check passed
  • Investigation First

    HughYau/qiushi-skill

    调查研究:在下判断、做决策、给建议之前,先用第一手材料弄清现状,产出「事实 / 推断 / 未知」三栏调查结论。当上下文不完整、证据薄弱、领域陌生、用户说"先别动手"、或你发现自己在凭印象作答时触发;已充分调查后的执行阶段不要重复触发。

    3.8k GitHub stars~425 tokensUpdated 9 days ago
    Auto-check passed
  • Mass Line

    HughYau/qiushi-skill

    群众路线:从持有真实情况的多方(用户、使用者、代码库、日志、运行结果)收集分散意见,系统化为方案,再带回去对齐与检验,循环改进。当多方意见分歧、需要汇总零散反馈、方案要拿回给真实使用者确认、或你发觉自己在闭门造车时触发;信息源单一且完整、处于执行阶段时不触发。

    3.8k GitHub stars~467 tokensUpdated 9 days ago
    Auto-check passed
  • Overall Planning

    HughYau/qiushi-skill

    统筹兼顾:当多个目标、指标或利益方相互制约、优化一项会伤害另一项时,识别全部辩证关系对,检查片面性,为每对关系定出当前阶段的侧重与底线,评估系统性影响,并设失衡预警。触发信号包括 trade-off、目标冲突、速度 vs 质量、短期 vs 长期、"顾此失彼";只有单一目标、用户已定取舍、或属硬性二选一时不触发。

    3.8k GitHub stars~416 tokensUpdated 9 days ago
    Auto-check passed
  • Practice Cognition

    HughYau/qiushi-skill

    实践认识论:把方案、假说或判断放回实践中检验,按「实践 → 认识 → 再实践」螺旋迭代,并在开始前写明循环终止条件。当你提出了假说要验证、一次尝试失败要复盘再来、发现自己只想不做或只做不想时触发;一次性输出、答案可直接查阅、还没形成假说(先调查)时不触发。

    3.8k GitHub stars~416 tokensUpdated 9 days ago
    Auto-check passed

Categories

Questions about Contradiction Analysis

What does Contradiction Analysis do?

矛盾分析法:把复杂问题拆成若干对立面,找出规定其他矛盾的主要矛盾及其主要方面,判定对抗性 / 非对抗性,并据此选择处理方式。当问题头绪多、多个因素互相牵制、优先级不清、根因不明、反复修不好、trade-off 说不清时触发;直接执行类任务或用户已定方案时不触发。. Contradiction Analysis is an agent skill from HughYau/qiushi-skill. 矛盾分析法:把复杂问题拆成若干对立面,找出规定其他矛盾的主要矛盾及其主要方面,判定对抗性 / 非对抗性,并据此选择处理方式。当问题头绪多、多个因素互相牵制、优先级不清、根因不明、反复修不好、trade-off 说不清时触发;直接执行类任务或用户已定方案时不触发。 English: Contradiction analysis.

When should I use Contradiction Analysis?

Contradiction Analysis fits situations like: unclear priorities; unknown root causes; recurring failures; trade-offs that resist explanation.

How do I install Contradiction Analysis in Claude Code?

Run `npx skills add HughYau/qiushi-skill --skill contradiction-analysis -a claude-code`. Or copy the skill folder (skills/contradiction-analysis in HughYau/qiushi-skill) into .claude/skills/contradiction-analysis in your project. Claude Code loads it when a task matches its description.

How do I install Contradiction Analysis in Codex?

Run `npx skills add HughYau/qiushi-skill --skill contradiction-analysis -a codex`. Or copy the skill folder (skills/contradiction-analysis in HughYau/qiushi-skill) into .agents/skills/contradiction-analysis in your project. Codex loads it when a task matches its description.

Can I use Contradiction Analysis 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 HughYau/qiushi-skill --skill contradiction-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/contradiction-analysis, .gemini/skills/contradiction-analysis, .github/skills/contradiction-analysis and .opencode/skills/contradiction-analysis in your project.

What does Contradiction Analysis need to run?

SKILL.md names no scripts, command-line tools or credentials: Contradiction Analysis is instructions for the agent only.

Does Contradiction Analysis 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 Contradiction Analysis 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. Review the folder before installing.

What licence does Contradiction Analysis use?

Contradiction Analysis 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 Contradiction Analysis use?

About 485 tokens (SKILL.md is roughly 1.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Contradiction Analysis?

Skills that share tags, products or a category with Contradiction Analysis: Code Design Rationale Investigator (cursor/plugins, 11k stars), OpenLogi macOS Permissions Triage (AprilNEA/OpenLogi, 23k stars), Bug Finder for daisyUI (saadeghi/daisyui, 43k stars) and Root Cause Debugging (garrytan/gstack, 136k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Contradiction Analysis?

HughYau (a GitHub user) maintains it in HughYau/qiushi-skill, which has 3,812 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 1, 2026.

Source: HughYau/qiushi-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.