Occam's Razor Analysis
/install occams-razer-skill
skill_name: OccamsRazorAnalyzer\r version: 1.0.0\r description: A logical analysis tool that applies the principle of parsimony (Occam's Razor) to evaluate competing hypotheses. Capable of operating in Forensic (probabilistic) and Academic (theoretical) modes.\r tags:\r
- logic\r
- reasoning\r
- analysis\r
- forensics\r
- philosophy\r
- problem-solving\r inputs:\r scenario_description:\r type: string\r description: The problem, event, or phenomenon requiring explanation.\r required: true\r hypotheses:\r type: array\r items: string\r description: A list of competing explanations or theories to be evaluated.\r required: true\r mode:\r type: string\r enum: [FORENSIC, ACADEMIC, COMBINED]\r default: COMBINED\r description: Sets the operational environment. FORENSIC prioritizes evidence probability. ACADEMIC prioritizes ontological economy. COMBINED utilizes both channels.\r constraints:\r type: array\r items: string\r description: Optional list of known facts or axioms that must be adhered to.\r required: false\r outputs:\r preferred_hypothesis: string\r complexity_analysis: object\r logic_rationale: string\r confidence_score: percentage\r ---\r \r
Occam's Razor Analyzer\r
\r
Overview\r
\r This skill implements the Principle of Parsimony (Occam's Razor: Entities should not be multiplied without necessity). It serves as a rational engine to evaluate competing explanations for a phenomenon. It does not claim to discern absolute truth, but rather to identify the explanation with the highest probability of accuracy based on the economy of assumptions.\r \r
Operational Modes\r
\r
The agent must adapt its reasoning strategy based on the mode specified in the input.\r
\r
1. FORENSIC Mode (Investigative)\r
Context: Crime scenes, system outages, medical diagnoses, debugging, historical analysis.\r Logic Style: Probabilistic and Evidentiary.\r \r
- Objective: Identify the most likely sequence of events.\r
- Heuristic: Avoid the "Conspiracy Trap." Complex coordinated actions are statistically rare compared to simple incompetence or single-actor events.\r
- Rule: If Theory A requires three independent failures to occur simultaneously, and Theory B requires only one failure, prefer Theory B unless direct evidence explicitly contradicts Theory B.\r \r
2. ACADEMIC Mode (Theoretical)\r
Context: Philosophy, theoretical physics, mathematics, conceptual debate.\r Logic Style: Ontological and Structural.\r \r
- Objective: Identify the most elegant theoretical framework.\r
- Heuristic: Avoid "Ad Hoc Rescue" (adding assumptions to save a favored theory).\r
- Rule: Do not postulate the existence of new entities, forces, or dimensions if existing ones suffice to explain the phenomenon. Prefer the theory that integrates most smoothly with established axioms.\r \r
Execution Workflow\r
\r When this skill is invoked, follow this internal process:\r \r
- Deconstruction: Break down each provided hypothesis into a chain of logical dependencies.\r
- Assumption Counting: Identify "Assumptions"—statements not supported by provided evidence (Constraints) or established axioms.\r
- Complexity Scoring: Assign a score to each hypothesis based on the number of unproven assumptions.\r
- Comparative Analysis:\r
- Select the hypothesis with the lowest Complexity Score that still fully explains the
scenario_description.\r - If scores are equal, analyze the "Bayesian Likelihood" of the assumptions (Forensic) or "Theoretical Elegance" (Academic).\r
- Select the hypothesis with the lowest Complexity Score that still fully explains the
- Fallacy Check:\r
- Simplistic Fallacy: Does the simpler theory ignore critical evidence? If so, penalize it.\r
- Ad Hoc Rescue: Does the complex theory add convenient exceptions to fit the data? If so, penalize it.\r
- Synthesis: Generate the output JSON explaining which hypothesis was "shaved" and why.\r \r
Usage Examples\r
\r
Example 1: Forensic Investigation\r
Input:\r
- Scenario: "Database server crashed at 3:00 AM. No human logs detected."\r
- Hypotheses:\r
- A cosmic ray flipped a bit in the RAM, causing a cascade failure.\r
- The automated maintenance script has a memory leak that only triggers under high load.\r
- Mode:
FORENSIC\r \r Agent Logic:\r - Hypothesis 1 Assumptions: Cosmic ray occurrence (rare), specific bit location (specific), lack of ECC correction (specific).\r
- Hypothesis 2 Assumptions: Memory leak exists in code (common), high load occurred (common).\r
- Rationale: Hypothesis 2 is statistically more probable and requires fewer rare physical events.\r \r
Example 2: Academic Logic\r
Input:\r
- Scenario: "Why do objects fall?"\r
- Hypotheses:\r
- Invisible intangible angels push them down.\r
- Curvature of spacetime caused by mass (General Relativity).\r
- Mode:
ACADEMIC\r \r Agent Logic:\r - Hypothesis 1 Assumptions: Existence of angels, intangibility property, intent to push.\r
- Hypothesis 2 Assumptions: Spacetime is a fabric, mass affects geometry.\r
- Rationale: Hypothesis 1 multiplies entities (angels) without necessity. Hypothesis 2 uses existing frameworks (mass, space) to explain the phenomenon, satisfying ontological economy.\r
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install occams-razer-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/occams-razer-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Occam's Razor Analysis 是什么?
Evaluates competing hypotheses to select the simplest explanation fitting the scenario using Forensic, Academic, or combined logic modes. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 69 次。
如何安装 Occam's Razor Analysis?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install occams-razer-skill」即可一键安装,无需额外配置。
Occam's Razor Analysis 是免费的吗?
是的,Occam's Razor Analysis 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Occam's Razor Analysis 支持哪些平台?
Occam's Razor Analysis 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Occam's Razor Analysis?
由 Frater.nul(@aleph23)开发并维护,当前版本 v1.0.1。