Code Design Rationale Investigator
cursor/plugins
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.
矛盾分析法:把复杂问题拆成若干对立面,找出规定其他矛盾的主要矛盾及其主要方面,判定对抗性 / 非对抗性,并据此选择处理方式。当问题头绪多、多个因素互相牵制、优先级不清、根因不明、反复修不好、trade-off 说不清时触发;直接执行类任务或用户已定方案时不触发。
$ npx skills add HughYau/qiushi-skill --skill contradiction-analysis -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install HughYau/qiushi-skill contradiction-analysis --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ 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-srcUse ~/.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/
Install the "contradiction-analysis" agent skill from https://github.com/HughYau/qiushi-skill/tree/main/skills/contradiction-analysis into .claude/skills/contradiction-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contradiction-analysis", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/HughYau/qiushi-skill/tree/main/skills/contradiction-analysisType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add HughYau/qiushi-skill --skill contradiction-analysis -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install HughYau/qiushi-skill contradiction-analysis --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HughYau/qiushi-skill.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/contradiction-analysis .agents/skills/contradiction-analysis && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "contradiction-analysis" agent skill from https://github.com/HughYau/qiushi-skill/tree/main/skills/contradiction-analysis into .agents/skills/contradiction-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contradiction-analysis", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add HughYau/qiushi-skill --skill contradiction-analysis -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install HughYau/qiushi-skill contradiction-analysis --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HughYau/qiushi-skill.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/contradiction-analysis .cursor/skills/contradiction-analysis && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "contradiction-analysis" agent skill from https://github.com/HughYau/qiushi-skill/tree/main/skills/contradiction-analysis into .cursor/skills/contradiction-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contradiction-analysis", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/HughYau/qiushi-skill.git --path skills/contradiction-analysis--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add HughYau/qiushi-skill --skill contradiction-analysis -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install HughYau/qiushi-skill contradiction-analysis --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HughYau/qiushi-skill.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/contradiction-analysis .gemini/skills/contradiction-analysis && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "contradiction-analysis" agent skill from https://github.com/HughYau/qiushi-skill/tree/main/skills/contradiction-analysis into .gemini/skills/contradiction-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contradiction-analysis", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install HughYau/qiushi-skill contradiction-analysisInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add HughYau/qiushi-skill --skill contradiction-analysis -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/HughYau/qiushi-skill.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/contradiction-analysis .github/skills/contradiction-analysis && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "contradiction-analysis" agent skill from https://github.com/HughYau/qiushi-skill/tree/main/skills/contradiction-analysis into .github/skills/contradiction-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contradiction-analysis", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add HughYau/qiushi-skill --skill contradiction-analysis -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install HughYau/qiushi-skill contradiction-analysis --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HughYau/qiushi-skill.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/contradiction-analysis .opencode/skills/contradiction-analysis && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "contradiction-analysis" agent skill from https://github.com/HughYau/qiushi-skill/tree/main/skills/contradiction-analysis into .opencode/skills/contradiction-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contradiction-analysis", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
contradiction-analysis矛盾分析法:把复杂问题拆成若干对立面,找出规定其他矛盾的主要矛盾及其主要方面,判定对抗性 / 非对抗性,并据此选择处理方式。当问题头绪多、多个因素互相牵制、优先级不清、根因不明、反复修不好、trade-off 说不清时触发;直接执行类任务或用户已定方案时不触发。
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.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 5ace717. It shows what the files ask for, not the result of running them.
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.
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.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
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.
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.
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.
The full file from HughYau/qiushi-skill at commit 5ace717, republished under its MIT licence (© HughYau). 64 words, ~485 tokens.
.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."研究任何过程,如果是存在着两个以上矛盾的复杂过程的话,就要用全力找出它的主要矛盾。捉住了这个主要矛盾,一切问题就迎刃而解了。" —— 《矛盾论》
用:
不用:
先保证事实基础:矛盾清单里的每一项都要能指向调查得到的现象,不能凭印象。事实不够先做 investigation-first。
[A] vs [B] 格式,写清两个对立面各自要什么。透过现象看内在张力,不只列表面症状。practice-cognition 验证concentrate-forces 集中解决主要矛盾overall-planning矛盾清单:
- [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
SKILL.md and 2 other files in skills/contradiction-analysis of HughYau/qiushi-skill.
Open the folder on GitHubat commit 5ace717
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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Contradiction Analysis this skillHughYau/qiushi-skill | 3.8k | — | ~485 | Automated safety check: Pass | MIT | |
| Code Design Rationale Investigatorcursor/plugins | 11k | 9 repos | ~2.6k | Automated safety check: Pass | None | |
| OpenLogi macOS Permissions TriageAprilNEA/OpenLogi | 23k | — | ~2.5k | Automated safety check: Notes | Apache-2.0 | |
| Bug Finder for daisyUIsaadeghi/daisyui | 43k | — | ~2.3k | Automated safety check: Pass | MIT | |
| Root Cause Debugginggarrytan/gstack | 136k | — | ~1.4k | Automated safety check: Pass | MIT | |
| Review PRapache/shardingsphere | 21k | — | ~6.4k | Automated safety check: Pass | Apache-2.0 |
cursor/plugins
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.
AprilNEA/OpenLogi
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.
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.
garrytan/gstack
Investigates bugs, errors and stack traces in phases and requires a root-cause hypothesis to be confirmed before any fix is written.
apache/shardingsphere
Review Apache ShardingSphere or user-authorized downstream pull requests and PR discussions from public or authorized repository evidence.
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.
HughYau/qiushi-skill
集中兵力:多件事同时争抢时间、注意力或预算时,列出全部待办,选定唯一主攻目标并公开锁定,彻底解决、验证后再转向下一个。当待办过多、推进分散、"每件都做了一点但都没做完"、需要决定先做什么时触发;只有一个任务、任务彼此独立可并行、用户明确要求同时推进时不触发。
HughYau/qiushi-skill
批评与自我批评:在工作完成、阶段验收、收到批评或同类错误反复出现时,对成果和过程做诚实、具体、基于事实的审视,输出可执行的改进项,并处理外来批评而不辩解。触发信号包括 review、复盘、审查、"帮我看看有没有问题"、"你确定吗";任务刚开始或只是单步查询时不触发。
HughYau/qiushi-skill
调查研究:在下判断、做决策、给建议之前,先用第一手材料弄清现状,产出「事实 / 推断 / 未知」三栏调查结论。当上下文不完整、证据薄弱、领域陌生、用户说"先别动手"、或你发现自己在凭印象作答时触发;已充分调查后的执行阶段不要重复触发。
HughYau/qiushi-skill
群众路线:从持有真实情况的多方(用户、使用者、代码库、日志、运行结果)收集分散意见,系统化为方案,再带回去对齐与检验,循环改进。当多方意见分歧、需要汇总零散反馈、方案要拿回给真实使用者确认、或你发觉自己在闭门造车时触发;信息源单一且完整、处于执行阶段时不触发。
HughYau/qiushi-skill
统筹兼顾:当多个目标、指标或利益方相互制约、优化一项会伤害另一项时,识别全部辩证关系对,检查片面性,为每对关系定出当前阶段的侧重与底线,评估系统性影响,并设失衡预警。触发信号包括 trade-off、目标冲突、速度 vs 质量、短期 vs 长期、"顾此失彼";只有单一目标、用户已定取舍、或属硬性二选一时不触发。
HughYau/qiushi-skill
实践认识论:把方案、假说或判断放回实践中检验,按「实践 → 认识 → 再实践」螺旋迭代,并在开始前写明循环终止条件。当你提出了假说要验证、一次尝试失败要复盘再来、发现自己只想不做或只做不想时触发;一次性输出、答案可直接查阅、还没形成假说(先调查)时不触发。
Categories
矛盾分析法:把复杂问题拆成若干对立面,找出规定其他矛盾的主要矛盾及其主要方面,判定对抗性 / 非对抗性,并据此选择处理方式。当问题头绪多、多个因素互相牵制、优先级不清、根因不明、反复修不好、trade-off 说不清时触发;直接执行类任务或用户已定方案时不触发。. Contradiction Analysis is an agent skill from HughYau/qiushi-skill. 矛盾分析法:把复杂问题拆成若干对立面,找出规定其他矛盾的主要矛盾及其主要方面,判定对抗性 / 非对抗性,并据此选择处理方式。当问题头绪多、多个因素互相牵制、优先级不清、根因不明、反复修不好、trade-off 说不清时触发;直接执行类任务或用户已定方案时不触发。 English: Contradiction analysis.
Contradiction Analysis fits situations like: unclear priorities; unknown root causes; recurring failures; trade-offs that resist explanation.
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.
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.
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.
SKILL.md names no scripts, command-line tools or credentials: Contradiction Analysis is instructions for the agent only.
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.
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.
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.
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.
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.
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.