← Back to Skills Marketplace
maothinking
by
amitabhama
· GitHub ↗
· v1.0.0
· MIT-0
185
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install mao-thinking
Description
基于毛泽东思想核心方法论,提供矛盾分析、形势评估、群众路线决策及核心原则查询工具。
README (SKILL.md)
毛泽东思想实践工具 Skill
基于毛泽东选集核心思想的方法论工具包,可直接调用进行问题分析和决策
概述
这个 skill 封装了毛泽东思想的核心方法论,提供以下功能:
- 矛盾分析器 - 用矛盾论分析问题主要矛盾
- 形势分析器 - 用战略思想分析竞争形势
- 决策助手 - 用群众路线做民主决策
- 原则汇总 - 快速查阅核心方法论
安装
# 方式一:直接使用(推荐)
cd skills/mao_thinking
pip install -e .
# 方式二:无需安装,直接运行
python mao_thinking/main.py \x3Ccommand>
使用方法
1. 矛盾分析(命令行)
python mao_thinking/main.py analyze "毕业生就业难" "缺经验" "竞争大" "期望高"
输出示例:
🔍 矛盾分析:毕业生就业难
==================================================
1. 缺经验 (权重: 9)
2. 竞争大 (权重: 7)
3. 期望高 (权重: 5)
💡 主要矛盾:缺经验
📌 行动建议:先解决最重要的事
⚔️ 方法论:抓住主要矛盾,集中力量解决关键问题
2. 形势分析(命令行)
python mao_thinking/main.py situation "面临创业挑战" 5 9
输出示例:
🗺️ 形势分析:面临创业挑战
==================================================
⚔️ 双方实力: 我方 5 vs 对方 9
📊 实力比: 0.56
📈 战略判断: 战略相持
🎯 战术建议: 保存实力,等待时机
🧘 指导思想: 敌进我退,敌退我追
3. 决策助手(交互模式)
python mao_thinking/main.py decide "选择哪份工作"
会进入交互式问答,帮你分析多个方案的优劣。
4. 原则汇总
python mao_thinking/main.py summary
5. 场景推荐
python mao_thinking/main.py --scenario "团队意见不统一"
Python 模块调用
from mao_thinking import (
analyze_contradiction,
situation_analysis,
mass_line_decide,
show_summary
)
# 1. 矛盾分析
result = analyze_contradiction(
problem="找不到工作",
factors=["缺经验", "竞争大", "期望高"]
)
print(result["主要矛盾"])
# 2. 形势分析
result = situation_analysis(
situation="面临竞争",
our_strength=6,
enemy_strength=8
)
print(result["战略判断"])
# 3. 决策助手
result = mass_line_decide(
decision="选择哪份工作",
options=[
{"name": "大厂", "pros": ["工资高", "平台大"], "cons": ["加班多"]},
{"name": "创业", "pros": ["成长快", "灵活"], "cons": ["风险高"]}
]
)
print(result["推荐方案"])
# 4. 原则汇总
principles = show_summary()
核心方法论说明
| 方法论 | 功能 | 关键方法 | 适用场景 |
|---|---|---|---|
| 矛盾论 | 分析主要矛盾 | 抓住主要矛盾 | 问题分析、优先级排序 |
| 实践论 | 验证决策 | 调查出真知 | 决策前测试、试点验证 |
| 群众路线 | 民主决策 | 从群众中来 | 团队意见统一 |
| 独立自主 | 自力更生 | 主要靠自己也要求 | 资源争取 |
| 统一战线 | 扩大联盟 | 团结多数 | 合作谈判 |
| 实事求是 | 具体分析 | 具体问题具体分析 | 任何场景 |
| 战略战术 | 形势评估 | 战略藐视,战术重视 | 竞争分析 |
文件结构
mao_thinking/
├── __init__.py # 包入口,导出主要函数
├── main.py # 主程序入口
├── analyzer.py # 矛盾分析器模块
├── situator.py # 形势分析器模块
├── decider.py # 决策助手模块
├── summary.py # 原则汇总模块
├── setup.py # pip 安装配置
├── requirements.txt # 依赖列表
├── README.md # 英文使用说明
└── manifest.json # Skill 元信息
快速口诀
矛盾论:抓主要矛盾
实践论:调查出真知
群众路线:从群众中来,到群众中去
独立自主:自力更生
统一战线:团结多数
实事求是:具体问题具体分析
战略战术:战略藐视,战术重视
示例:毕业生找工作分析
from mao_thinking import analyze_contradiction, situation_analysis
# 矛盾分析
result = analyze_contradiction(
problem="毕业生找不到工作",
factors=["经济形势不好", "缺乏工作经验", "专业不对口", "竞争激烈", "期望太高"]
)
# 主要矛盾:经济形势不好
# 形势分析
result = situation_analysis(
situation="就业市场竞争激烈",
our_strength=5,
enemy_strength=9
)
# 战略判断:战略相持
# 战术建议:保存实力,等待时机
# 行动建议:农村包围城市,先就业再择业
上传到 ClawHub
- 打包发布:
python setup.py sdist bdist_wheel
- 或直接上传整个目录:
# 整个 mao_thinking 目录即可使用
整理自毛泽东选集核心思想,编号:MAO-2024-001
Usage Guidance
This skill appears internally consistent and low-risk: it’s a local Python toolkit that takes CLI/interactive input and returns analysis based on that input. Before installing, confirm the package source (the code references a placeholder GitHub URL and the skill metadata has no homepage). If you do not trust the origin, run it in an isolated environment (virtualenv, container, or sandbox) rather than installing system-wide. Also remember the tool encodes ideological/heuristic recommendations — treat its output as advisory, not authoritative, for high-stakes decisions.
Capability Analysis
Type: OpenClaw Skill
Name: mao-thinking
Version: 1.0.0
The skill bundle is a methodology toolkit based on philosophical and strategic principles. Analysis of the Python source code across all files (including main.py, analyzer.py, and decider.py) reveals no malicious behavior, data exfiltration, or unauthorized system access. The code uses only the Python standard library for basic mathematical scoring and string formatting. The instructions in skill.md are entirely consistent with the stated purpose of the tools and do not contain any prompt injection or hidden malicious commands.
Capability Assessment
Purpose & Capability
The name/description match the code and SKILL.md: modules implement contradiction analysis, situation analysis, decision helper, and principle summaries. The skill does not request unrelated credentials or binaries. Minor note: README/setup point to a placeholder GitHub repo (https://github.com/your-repo/mao-thinking) and there is no published homepage, so the origin is unclear but this is a provenance issue, not a functional mismatch.
Instruction Scope
SKILL.md instructs running local Python modules or importing functions from the package. The runtime instructions only reference CLI arguments, interactive input, and JSON option payloads. The code does not read unrelated system files, environment variables, or send data to external endpoints. It does parse JSON provided on the command line (json.loads) — this is expected behavior for CLI tools and not an arbitrary code execution vector.
Install Mechanism
No install spec in the registry; the repository includes a normal setup.py and recommends pip install -e . or running scripts directly. There are no download URLs, no extract steps, and no third-party packages required at runtime (requirements.txt is dev/test oriented). Install mechanism is low-risk, but verify source before pip installing from an untrusted location.
Credentials
The skill declares no required environment variables, no primary credential, and no config paths. The code does not attempt to access credentials or network services. Environment/credential requests are proportional and minimal.
Persistence & Privilege
always:false and default agent invocation settings are used. The package does not attempt to modify other skills, global agent configuration, or persist elevated privileges. It only exposes ordinary CLI/module functionality.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install mao-thinking - After installation, invoke the skill by name or use
/mao-thinking - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
# 毛泽东思想实践工具 Skill
> 基于毛泽东选集核心思想的方法论工具包,可直接调用进行问题分析和决策
## 概述
这个 skill 封装了毛泽东思想的核心方法论,提供以下功能:
- **矛盾分析器** - 用矛盾论分析问题主要矛盾
- **形势分析器** - 用战略思想分析竞争形势
- **决策助手** - 用群众路线做民主决策
- **原则汇总** - 快速查阅核心方法论
## 安装
```bash
# 方式一:直接使用(推荐)
cd skills/mao_thinking
pip install -e .
# 方式二:无需安装,直接运行
python mao_thinking/main.py <command>
```
## 使用方法
### 1. 矛盾分析(命令行)
```bash
python mao_thinking/main.py analyze "毕业生就业难" "缺经验" "竞争大" "期望高"
```
**输出示例**:
```
🔍 矛盾分析:毕业生就业难
==================================================
1. 缺经验 (权重: 9)
2. 竞争大 (权重: 7)
3. 期望高 (权重: 5)
💡 主要矛盾:缺经验
📌 行动建议:先解决最重要的事
⚔️ 方法论:抓住主要矛盾,集中力量解决关键问题
```
### 2. 形势分析(命令行)
```bash
python mao_thinking/main.py situation "面临创业挑战" 5 9
```
**输出示例**:
```
🗺️ 形势分析:面临创业挑战
==================================================
⚔️ 双方实力: 我方 5 vs 对方 9
📊 实力比: 0.56
📈 战略判断: 战略相持
🎯 战术建议: 保存实力,等待时机
🧘 指导思想: 敌进我退,敌退我追
```
### 3. 决策助手(交互模式)
```bash
python mao_thinking/main.py decide "选择哪份工作"
```
会进入交互式问答,帮你分析多个方案的优劣。
### 4. 原则汇总
```bash
python mao_thinking/main.py summary
```
### 5. 场景推荐
```bash
python mao_thinking/main.py --scenario "团队意见不统一"
```
---
## Python 模块调用
```python
from mao_thinking import (
analyze_contradiction,
situation_analysis,
mass_line_decide,
show_summary
)
# 1. 矛盾分析
result = analyze_contradiction(
problem="找不到工作",
factors=["缺经验", "竞争大", "期望高"]
)
print(result["主要矛盾"])
# 2. 形势分析
result = situation_analysis(
situation="面临竞争",
our_strength=6,
enemy_strength=8
)
print(result["战略判断"])
# 3. 决策助手
result = mass_line_decide(
decision="选择哪份工作",
options=[
{"name": "大厂", "pros": ["工资高", "平台大"], "cons": ["加班多"]},
{"name": "创业", "pros": ["成长快", "灵活"], "cons": ["风险高"]}
]
)
print(result["推荐方案"])
# 4. 原则汇总
principles = show_summary()
```
---
## 核心方法论说明
| 方法论 | 功能 | 关键方法 | 适用场景 |
|--------|------|----------|----------|
| **矛盾论** | 分析主要矛盾 | 抓住主要矛盾 | 问题分析、优先级排序 |
| **实践论** | 验证决策 | 调查出真知 | 决策前测试、试点验证 |
| **群众路线** | 民主决策 | 从群众中来 | 团队意见统一 |
| **独立自主** | 自力更生 | 主要靠自己也要求 | 资源争取 |
| **统一战线** | 扩大联盟 | 团结多数 | 合作谈判 |
| **实事求是** | 具体分析 | 具体问题具体分析 | 任何场景 |
| **战略战术** | 形势评估 | 战略藐视,战术重视 | 竞争分析 |
---
## 文件结构
```
mao_thinking/
├── __init__.py # 包入口,导出主要函数
├── main.py # 主程序入口
├── analyzer.py # 矛盾分析器模块
├── situator.py # 形势分析器模块
├── decider.py # 决策助手模块
├── summary.py # 原则汇总模块
├── setup.py # pip 安装配置
├── requirements.txt # 依赖列表
├── README.md # 英文使用说明
└── manifest.json # Skill 元信息
```
---
## 快速口诀
```
矛盾论:抓主要矛盾
实践论:调查出真知
群众路线:从群众中来,到群众中去
独立自主:自力更生
统一战线:团结多数
实事求是:具体问题具体分析
战略战术:战略藐视,战术重视
```
---
## 示例:毕业生找工作分析
```python
from mao_thinking import analyze_contradiction, situation_analysis
# 矛盾分析
result = analyze_contradiction(
problem="毕业生找不到工作",
factors=["经济形势不好", "缺乏工作经验", "专业不对口", "竞争激烈", "期望太高"]
)
# 主要矛盾:经济形势不好
# 形势分析
result = situation_analysis(
situation="就业市场竞争激烈",
our_strength=5,
enemy_strength=9
)
# 战略判断:战略相持
# 战术建议:保存实力,等待时机
# 行动建议:农村包围城市,先就业再择业
```
---
## 上传到 ClawHub
1. 打包发布:
```bash
python setup.py sdist bdist_wheel
```
2. 或直接上传整个目录:
```bash
# 整个 mao_thinking 目录即可使用
```
---
*整理自毛泽东选集核心思想
Metadata
Frequently Asked Questions
What is maothinking?
基于毛泽东思想核心方法论,提供矛盾分析、形势评估、群众路线决策及核心原则查询工具。 It is an AI Agent Skill for Claude Code / OpenClaw, with 185 downloads so far.
How do I install maothinking?
Run "/install mao-thinking" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is maothinking free?
Yes, maothinking is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does maothinking support?
maothinking is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created maothinking?
It is built and maintained by amitabhama (@amitabhama); the current version is v1.0.0.
More Skills