English | 简体中文
A general-purpose analytical and strategic thinking framework for AI agents, distilled from Volumes 1–5 of the Selected Works of Mao Zedong. Available as a Claude Code plugin and a modular 10-skill suite.
Instead of treating methodology as abstract slogans, this toolkit translates classical dialectical analysis, primary-source investigation, phased strategy, and self-auditing into structured agent workflows: investigate before speaking, locate the primary contradiction, map stakeholder interests, build a pilot foothold, design concrete execution bridges, and verify every conclusion in practice.
Each skill lives under skills/ and maps to a distinct phase of reasoning, planning, execution, or review:
| Skill | English Name | Core Principle | Primary Source |
|---|---|---|---|
skills/shishi-qiushi/ |
Seek Truth from Facts (Master Dispatcher) | Start from objective facts, uncover internal laws, and select at most 1–2 downstream skills when needed | Reform Our Study, On Practice, Rectify the Party's Style of Work |
skills/shijian-lun/ |
On Practice | Iterate in a practice -> cognition -> practice spiral; filter raw data with the 16-character processing method | On Practice |
skills/diacha-yanjiu/ |
Investigation and Research | "No investigation, no right to speak"—inspect primary code, logs, and data before forming conclusions | Report on an Investigation of the Peasant Movement in Hunan, Reform Our Study |
skills/maodun-lun/ |
On Contradiction | List [A] vs [B] tensions, isolate the primary contradiction and principal aspect, and monitor shifts |
On Contradiction |
skills/jieji-fenxi/ |
Class Analysis | Map stakeholders by objective interest position rather than self-declared labels; anticipate middle-ground splits | Analysis of the Classes in Chinese Society |
skills/chijiu-zhan/ |
On Protracted War | Reject both recklessness and defeatism; pace long efforts across Defense, Stalemate, and Counter-Offensive | On Protracted War |
skills/xinghuo-liaoyuan/ |
A Single Spark | Build a self-sustaining base/MVP foothold first, then expand in consolidated waves | A Single Spark Can Start a Prairie Fire |
skills/guohe-jiaqiao/ |
Building Bridges to Cross the River | Goals without concrete methods are empty talk—pilot at one point, adapt locally, keep one focus per phase | Be Concerned with the Well-Being of the Masses, Pay Attention to Methods of Work |
skills/qunzhong-luxian/ |
The Mass Line | Gather dispersed feedback, synthesize into a coherent plan, deploy, and test against real-world action | Some Questions Concerning Methods of Leadership |
skills/zhengdun-zuofeng/ |
Rectifying Work Style | Audit completed work against Combat Liberalism anti-patterns; expose root causes to fix systems | Combat Liberalism, Rectify the Party's Style of Work |
Defined in .claude-plugin/marketplace.json and .claude-plugin/plugin.json:
claude plugin marketplace add xdlkc/maoxuan
claude plugin install maoxuan@maoxuanclaude plugin install https://github.com/xdlkc/maoxuan.gitgit clone https://github.com/xdlkc/maoxuan.git
claude plugin install ./maoxuanAny agent harness that loads SKILL.md directories can copy skills/ into its local skills folder:
git clone https://github.com/xdlkc/maoxuan.git
mkdir -p ~/.claude/skills # or ~/.codex/skills, ~/.hermes/skills, ~/.config/opencode/skills, .agents/skills
cp -r maoxuan/skills/* ~/.claude/skills/Note: Currently, four skills (
shishi-qiushi,shijian-lun,diacha-yanjiu, andmaodun-lun) include YAML frontmatter (nameanddescription), while the remaining six skills (jieji-fenxi,chijiu-zhan,xinghuo-liaoyuan,guohe-jiaqiao,qunzhong-luxian, andzhengdun-zuofeng) are plain Markdown files. All tenSKILL.mdfiles are written in Chinese (with bilingual trigger descriptions onshishi-qiushi,shijian-lun,diacha-yanjiu, andmaodun-lun). Harnesses that strictly require YAML frontmatter for auto-indexing will index the first four automatically; the others can be referenced directly or viashishi-qiushi.
Evaluated in maoxuan-workspace/iteration-1/benchmark.json using claude-opus-4.6 across 3 complex decision-making prompts defined in maoxuan-workspace/evals/evals.json (architecture-decision, legacy-migration, stakeholder-conflict; 5 assertions per prompt, 15 total):
| Metric | With maoxuan |
Without Skill | Delta |
|---|---|---|---|
| Assertion Pass Rate | 100% (15/15) | 93.3% (14/15) | +6.7% |
| Mean Latency | 75.0 s | 35.0 s | +40.0 s (~2.1x) |
| Mean Token Usage | 25,000 | 12,000 | +13,000 (~2.1x) |
Key observations from the evaluation logs:
- Where the skill helped: In
architecture-decision,without_skillmissedacknowledges-tradeoffs, whereaswith_skillexplicitly surfaced incremental-build risks, shared-library rebuild blast radius, and a post-fix contradiction-shift monitoring table. - Cost tradeoff: Loading the methodology roughly doubles response latency and token usage, so it should be reserved for complex, ambiguous, or high-stakes tasks rather than routine edits.
- Primary-text fidelity: Grounded in direct quotes and analytical structures from the original texts rather than flattened summaries.
- Anti-dogmatism guardrails:
skills/shishi-qiushi/SKILL.mdexplicitly instructs agents not to over-invoke skills on simple tasks (e.g., typo fixes), to cap downstream invocations at 1–2 skills, and to rank direct user instructions and host platform constraints above methodology rules. - Domain-agnostic: Designed for software architecture, legacy migrations, stakeholder alignment, product strategy, and post-mortems.
maoxuan/
├── README.md
├── README.zh-CN.md
├── .claude-plugin/
│ ├── marketplace.json # Claude Code marketplace definition
│ └── plugin.json # Plugin manifest
├── skills/ # 10 methodology skills
│ ├── chijiu-zhan/SKILL.md
│ ├── diacha-yanjiu/SKILL.md
│ ├── guohe-jiaqiao/SKILL.md
│ ├── jieji-fenxi/SKILL.md
│ ├── maodun-lun/SKILL.md
│ ├── qunzhong-luxian/SKILL.md
│ ├── shijian-lun/SKILL.md
│ ├── shishi-qiushi/SKILL.md
│ ├── xinghuo-liaoyuan/SKILL.md
│ └── zhengdun-zuofeng/SKILL.md
└── maoxuan-workspace/
├── evals/evals.json # 3 complex decision prompts & assertions
└── iteration-1/
├── benchmark.json # with-skill vs without-skill results
├── feedback.json
└── eval-*/ # Raw outputs, grading, and timing logs