Token导航 LogoToken导航

Agent Skill · 研究检索

thinking-occams-razor(思考奥卡姆斯剃刀)

thinking-occams-razor 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

thinking-occams-razor 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 54,843。

总安装 494周安装 21GitHub Stars 46下载 173核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:thinking-occams-razor(思考奥卡姆斯剃刀)
来源仓库:https://github.com/tjboudreaux/cc-thinking-skills
仓库路径:skills/thinking-occams-razor
安装命令:
npx skills add https://github.com/tjboudreaux/cc-thinking-skills --skill thinking-occams-razor
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tjboudreaux/cc-thinking-skills --skill thinking-occams-razor

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

思考奥卡姆斯剃刀用于查找、检索和筛选相关信息,优先选择假设最少的解释。适合科学推理、故障诊断与简化系统设计等追求简洁性的场景。当多个方案并存时,自动比较复杂度并给出简约度评分。

安装命令:npx skills add https://github.com/tjboudreaux/cc-thinking-skills --skill thinking-occams-razor 避免机械套用,需在充分证据基础上结合领域知识综合判断。

来源仓库内路径:skills/thinking-occams-razor

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/tjboudreaux/cc-thinking-skills --skill thinkin…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

thinking-occams-razor 怎么安装?

在终端执行 npx skills add https://github.com/tjboudreaux/cc-thinking-skills --skill thinking-occams-r…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

thinking-occams-razor 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

thinking-occams-razor 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

thinking-occams-razor 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

thinking-occams-razor 用的人多吗?

公开数据是累计安装 494 次,近一周安装 21 次,下载 173 次,GitHub 46 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

thinking-occams-razor 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
thinking-occams-razor

思考奥卡姆斯剃刀 · 本页

49446接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Occam's Razor (Parsimony Principle)

Overview

Occam's Razor, attributed to 14th-century philosopher William of Ockham, states: "Entities should not be multiplied beyond necessity" (entia non sunt multiplicanda praeter necessitatem). When multiple explanations fit the evidence equally well, prefer the simplest one—the one with the fewest assumptions.

Core Principle: Among competing hypotheses that explain the data equally well, select the one with the fewest assumptions.

Einstein's Corollary: "Everything should be made as simple as possible, but no simpler."

When to Use

  • Debugging: Multiple hypotheses could explain a bug
  • Architecture: Choosing between design approaches
  • Root cause analysis: Several causes seem plausible
  • Code review: Evaluating implementation complexity
  • Technical decisions: Selecting between tools or patterns
  • Incident response: Narrowing down failure causes

Decision flow:

Multiple explanations exist? → yes → Do they explain the evidence equally? → yes → APPLY OCCAM'S RAZOR
                                                                          ↘ no → Prefer better explanation
                           ↘ no → Use available explanation

The Process

Step 1: Enumerate Competing Hypotheses

List all plausible explanations for the observed behavior:

Bug: Users intermittently can't log in

Hypotheses:
A. Session token expiration edge case
B. Race condition in auth service
C. Database connection pool exhaustion
D. Cosmic rays flipping bits in memory
E. Complex interaction between CDN cache, load balancer, and session service

Step 2: Count the Assumptions

For each hypothesis, list required assumptions:

HypothesisAssumptions Required
A. Token expiration1. Token validation has edge case
B. Race condition1. Concurrent requests possible, 2. Shared mutable state exists
C. DB pool exhaustion1. Pool is undersized, 2. Connections are leaking
D. Cosmic rays1. Hardware failure, 2. No ECC memory, 3. Perfect timing
E. Complex interaction1. CDN caches auth, 2. LB sticky sessions fail, 3. Session sync delayed

Step 3: Verify Explanatory Power

Ensure simpler hypotheses actually explain the evidence:

Evidence: Failures correlate with high traffic periods

Hypothesis A (token edge case):
  - Doesn't explain traffic correlation ❌

Hypothesis C (DB pool exhaustion):
  - Explains traffic correlation ✓
  - Fewer assumptions than E
  - PREFERRED by Occam's Razor ✓

Step 4: Test Simplest First

Investigate hypotheses in order of simplicity:

1. Check DB connection pool metrics (simplest)
2. Review token validation code (simple)
3. Analyze race condition potential (moderate)
4. Instrument complex service interactions (complex)
5. Check for hardware issues (last resort)

Step 5: Escalate Complexity Only When Needed

If simple explanations are ruled out, move to complex ones with new evidence.

Complexity Assessment Framework

Counting Complexity

FactorComplexity Cost
Each independent assumption+1
Each component involved+1
Each external dependency+2
Timing-dependent behavior+2
Requires rare conditions+3
"Perfect storm" scenarios+5

Example Comparison

Solution A: Add caching layer
- New component (Redis): +1
- Cache invalidation logic: +1
- New failure mode: +1
Total: 3

Solution B: Optimize existing query
- Query modification: +1
Total: 1

→ Prefer Solution B unless evidence shows it's insufficient

When Simplicity Yields to Complexity

Occam's Razor is a heuristic, not an absolute law. Prefer complexity when:

1. Evidence Demands It

Simple hypothesis: Single bug in auth service
Evidence: Failures only occur when Feature X AND Feature Y are both enabled

→ Complex interaction hypothesis now has supporting evidence
→ Accept complexity that explains the evidence

2. Domain Complexity Is Irreducible

Problem: Distributed consensus
Simple solution: Single leader (but single point of failure)
Reality: Distributed systems require complex solutions (Raft, Paxos)

→ Some domains have irreducible complexity
→ Don't oversimplify beyond what's correct

3. Future Requirements Are Known

Current need: Store user preferences
Simple: JSON file
Future need: Multi-device sync, conflict resolution

→ Database is more complex but necessary
→ Known future needs justify upfront complexity

4. Simplicity Introduces Technical Debt

Simple now: Copy-paste code in 5 places
Simpler long-term: Extract shared function

→ Local simplicity vs. systemic simplicity
→ Prefer systemic simplicity

Application Examples

Debugging Example

Bug: API returns 500 errors sporadically

Hypothesis A: Null pointer in rare code path
  Assumptions: 1

Hypothesis B: Memory pressure causes GC pauses that timeout requests
  Assumptions: 3 (memory issues + GC behavior + timeout settings)

Hypothesis C: Race condition between cache refresh and request handling
  Assumptions: 4 (concurrent access + shared state + timing + cache implementation)

Occam's Razor: Start with Hypothesis A
Action: Search logs for null pointer exceptions
Result: Found! NPE in user profile edge case

Architecture Example

Requirement: Service needs to call another service

Option A: Direct HTTP call
  Components: 1 (HTTP client)
  Assumptions: Target available, network reliable

Option B: Message queue with retry
  Components: 3 (queue, producer, consumer)
  Assumptions: Need async, need retry, need decoupling

Option C: Service mesh with circuit breaker, retry, timeout
  Components: 5+ (sidecar, control plane, observability)
  Assumptions: At scale, need observability, need traffic management

Occam's Razor: Start with Option A
Escalate to B/C only when evidence shows need for resilience

Code Implementation Example

# Complex (unnecessary assumptions)
def is_even(n):
    binary = bin(n)
    last_bit = binary[-1]
    return last_bit == '0'

# Simple (minimal assumptions)
def is_even(n):
    return n % 2 == 0

# Occam's Razor: Prefer the modulo approach
# Fewer concepts, fewer operations, same result

Root Cause Analysis Example

Symptom: Deployment failed

Complex hypothesis:
"The CI server's Docker daemon ran out of disk space because
a cron job that cleans old images was disabled when we upgraded
the server OS last month, and nobody noticed because the monitoring
alert was routed to a deprecated Slack channel."

Simple hypothesis:
"The build script has a typo in the new environment variable name."

Occam's Razor: Check the build script first
Result: Typo found. DATABSE_URL instead of DATABASE_URL

Common Anti-Patterns

Anti-PatternDescriptionCorrection
Rube GoldbergComplex solution to simple problemAsk "what's the minimum needed?"
Premature abstractionAbstracting for hypothetical casesWait for evidence of need
Resume-driven developmentUsing complex tech to learn itMatch tool to problem
Cargo cultingCopying complex patterns blindlyUnderstand why patterns exist
Conspiracy thinkingAssuming coordinated complex causesCheck simple causes first

Verification Checklist

  • Listed all plausible hypotheses/solutions
  • Counted assumptions required for each
  • Verified simpler options have equal explanatory power
  • Investigated in order of simplicity
  • Escalated to complexity only with evidence
  • Confirmed solution is "as simple as possible, but no simpler"
  • Checked for domain-irreducible complexity
  • Considered systemic vs. local simplicity

Combining with Other Models

  • First Principles: Reduce to fundamentals, then apply Occam's to solutions
  • Inversion: "What would make this unnecessarily complex?"
  • Debiasing: Watch for complexity bias (assuming complex = sophisticated)
  • Pre-Mortem: Would a simpler approach have fewer failure modes?

Key Questions

  • "What's the simplest explanation that fits all the evidence?"
  • "How many things have to be true for this hypothesis to hold?"
  • "Am I adding complexity to handle cases I haven't seen?"
  • "Would a junior engineer understand this solution?"
  • "If I explained this to a non-technical person, how many steps would it take?"
  • "What's the minimum change that could fix this?"
  • "Am I solving the problem I have, or a problem I might have?"

Ockham's Warning

"Plurality must never be posited without necessity."

The simplest solution isn't always correct, but it should always be tested first. Complexity should be earned through evidence, not assumed through speculation. When you find yourself building elaborate explanations, step back and ask: "What's the minimum hypothesis that explains what I'm seeing?"

平台分布

Codex

35.62%
按下载量换算62

Claude

29.23%
按下载量换算51

Cursor

18.12%
按下载量换算31

Gemini CLI

9.32%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills