FirstPrinciples by danielmiessler/personal_ai_infrastructure
npx skills add https://github.com/danielmiessler/personal_ai_infrastructure --skill FirstPrinciples执行前,请检查用户自定义设置于: ~/.claude/PAI/USER/SKILLCUSTOMIZATIONS/FirstPrinciples/
如果此目录存在,则加载并应用其中找到的任何 PREFERENCES.md、配置文件或资源。这些将覆盖默认行为。如果目录不存在,则使用技能的默认设置。
当此技能被调用时,你必须先发送此通知,然后再执行任何其他操作。
发送语音通知:
curl -s -X POST http://localhost:8888/notify
-H "Content-Type: application/json"
-d '{"message": "Running the WORKFLOWNAME workflow in the FirstPrinciples skill to ACTION"}'
> /dev/null 2>&1 &
输出文本通知:
Running the WorkflowName workflow in the FirstPrinciples skill to ACTION...
这不是可选的。请在技能调用时立即执行此 curl 命令。
基于埃隆·马斯克物理思维框架的基础推理方法。将问题解构为基本事实,而非通过类比推理。
类比推理(默认,通常是错误的):
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
第一性原理推理(本技能):
根据请求路由到相应的工作流。
执行工作流时,直接输出此通知:
Running the **WorkflowName** workflow in the **FirstPrinciples** skill to ACTION...
Workflows/Deconstruct.mdWorkflows/Challenge.mdWorkflows/Reconstruct.md┌─────────────────────────────────────────────────────────┐
│ 步骤 1: 解构 │
│ "这实际上是由什么构成的?" │
│ 分解为组成部分和基本事实 │
└─────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────┐
│ 步骤 2: 挑战 │
│ "这是一个真实的限制条件还是一个假设?" │
│ 将每个元素分类为硬约束/软约束 │
└─────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────┐
│ 步骤 3: 重建 │
│ "如果只基于事实,什么是最优的?" │
│ 从基本原理构建新方案,忽略形式 │
└─────────────────────────────────────────────────────────┘
分析任何系统时,对约束进行分类:
| 类型 | 定义 | 示例 | 能否改变? |
|---|---|---|---|
| 硬约束 | 物理/现实 | “数据无法比光速传播更快” | 否 |
| 软约束 | 策略/选择 | “我们总是使用 REST API” | 是 |
| 假设 | 未经证实的信念 | “用户不会接受那种用户体验” | 可能为假 |
规则:只有硬约束是真正不可改变的。软约束和假设应该受到挑战。
其他技能按如下方式调用 FirstPrinciples:
## 分析前
→ 对所有声明的约束使用 FirstPrinciples/Challenge
→ 将每个分类为硬约束/软约束/假设
## 遇到瓶颈时
→ 使用 FirstPrinciples/Deconstruct 分解问题
→ 使用 FirstPrinciples/Reconstruct 从基本原理重建
## 进行对抗性分析时
→ 红队使用 FirstPrinciples/Challenge 攻击假设
→ 渗透测试人员使用 FirstPrinciples/Deconstruct 分析安全模型
问题:“我们需要微服务,因为现代应用程序就是这样构建的”
第一性原理分析:
问题:“防火墙保护内部网络”
第一性原理分析:
问题:“云托管每月花费 10,000 美元——这就是它的成本”
第一性原理分析:
使用 FirstPrinciples 时,输出应包括:
## 第一性原理分析:[主题]
### 解构
- **组成部分**:[列出基本要素]
- **实际价值**:[真实成本/指标,而非市场价格]
### 约束分类
| 约束 | 类型 | 证据 | 挑战 |
|------------|------|----------|-----------|
| [X] | 硬约束/软约束/假设 | [原因] | [如果移除会怎样?] |
### 重建
- **基本事实**:[仅硬约束]
- **最优解决方案**:[从基本原理构建]
- **形式与功能**:[我们是否在优化正确的东西?]
### 关键洞察
[一句话:是什么假设限制了我们?]
归属:框架源自埃隆·马斯克的第一性原理方法,由 James Clear、Mayo Oshin 和公开访谈记录。
每周安装量
104
仓库
GitHub 星标数
10.4K
首次出现
2026 年 1 月 23 日
安全审计
安装于
codex87
gemini-cli86
opencode86
claude-code83
github-copilot79
cursor79
Before executing, check for user customizations at: ~/.claude/PAI/USER/SKILLCUSTOMIZATIONS/FirstPrinciples/
If this directory exists, load and apply any PREFERENCES.md, configurations, or resources found there. These override default behavior. If the directory does not exist, proceed with skill defaults.
You MUST send this notification BEFORE doing anything else when this skill is invoked.
Send voice notification :
curl -s -X POST http://localhost:8888/notify \
-H "Content-Type: application/json" \
-d '{"message": "Running the WORKFLOWNAME workflow in the FirstPrinciples skill to ACTION"}' \
> /dev/null 2>&1 &
Output text notification :
Running the **WorkflowName** workflow in the **FirstPrinciples** skill to ACTION...
This is not optional. Execute this curl command immediately upon skill invocation.
Foundational reasoning methodology based on Elon Musk's physics-based thinking framework. Deconstructs problems to fundamental truths rather than reasoning by analogy.
Reasoning by Analogy (default, often wrong):
Reasoning from First Principles (this skill):
Route to the appropriate workflow based on the request.
When executing a workflow, output this notification directly:
Running the **WorkflowName** workflow in the **FirstPrinciples** skill to ACTION...
Workflows/Deconstruct.mdWorkflows/Challenge.mdWorkflows/Reconstruct.md┌─────────────────────────────────────────────────────────┐
│ STEP 1: DECONSTRUCT │
│ "What is this really made of?" │
│ Break down to constituent parts and fundamental truths │
└─────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────┐
│ STEP 2: CHALLENGE │
│ "Is this a real constraint or an assumption?" │
│ Classify each element as hard/soft constraint │
└─────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────┐
│ STEP 3: RECONSTRUCT │
│ "Given only the truths, what's optimal?" │
│ Build new solution from fundamentals, ignoring form │
└─────────────────────────────────────────────────────────┘
When analyzing any system, classify constraints:
| Type | Definition | Example | Can Change? |
|---|---|---|---|
| Hard | Physics/reality | "Data can't travel faster than light" | No |
| Soft | Policy/choice | "We always use REST APIs" | Yes |
| Assumption | Unvalidated belief | "Users won't accept that UX" | Maybe false |
Rule : Only hard constraints are truly immutable. Soft constraints and assumptions should be challenged.
Other skills invoke FirstPrinciples like this:
## Before Analysis
→ Use FirstPrinciples/Challenge on all stated constraints
→ Classify each as hard/soft/assumption
## When Stuck
→ Use FirstPrinciples/Deconstruct to break down the problem
→ Use FirstPrinciples/Reconstruct to rebuild from fundamentals
## For Adversarial Analysis
→ RedTeam uses FirstPrinciples/Challenge to attack assumptions
→ Pentester uses FirstPrinciples/Deconstruct on security model
Problem : "We need microservices because that's how modern apps are built"
First Principles Analysis :
Problem : "The firewall protects the internal network"
First Principles Analysis :
Problem : "Cloud hosting costs $10,000/month - that's just what it costs"
First Principles Analysis :
When using FirstPrinciples, output should include:
## First Principles Analysis: [Topic]
### Deconstruction
- **Constituent Parts**: [List fundamental elements]
- **Actual Values**: [Real costs/metrics, not market prices]
### Constraint Classification
| Constraint | Type | Evidence | Challenge |
|------------|------|----------|-----------|
| [X] | Hard/Soft/Assumption | [Why] | [What if removed?] |
### Reconstruction
- **Fundamental Truths**: [Only the hard constraints]
- **Optimal Solution**: [Built from fundamentals]
- **Form vs Function**: [Are we optimizing the right thing?]
### Key Insight
[One sentence: what assumption was limiting us?]
Attribution : Framework derived from Elon Musk's first principles methodology as documented by James Clear, Mayo Oshin, and public interviews.
Weekly Installs
104
Repository
GitHub Stars
10.4K
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex87
gemini-cli86
opencode86
claude-code83
github-copilot79
cursor79
任务估算指南:敏捷开发故事点、计划扑克、T恤尺码法详解
10,500 周安装