Token导航 LogoToken导航TokenDH.com
运维和基础设施需要联网github未标认证来源可访问clear审计通过

firstprinciplesfirstprinciples 命令行

Agent Skill

firstprinciples 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,575

周安装

152

GitHub Stars

11,803

下载量

1,252
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/danielmiessler/personal_ai_infrastructure --skill FirstPrinciples

简介

firstprinciples 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中整理仓库状态与协作事项。
  • 通过 npx skills add 命令安装,需确认权限范围和是否触发联网或文件操作。
  • 建议结合来源仓库和 README 核验具体用法,注意维护状态和风险边界。
  • 适用于基础设施自动化与运维排障场景。

SKILL.md

Customization

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.

🚨 MANDATORY: Voice Notification (REQUIRED BEFORE ANY ACTION)

You MUST send this notification BEFORE doing anything else when this skill is invoked.

  1. 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 &
  2. 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.

FirstPrinciples Skill

Foundational reasoning methodology based on Elon Musk's physics-based thinking framework. Deconstructs problems to fundamental truths rather than reasoning by analogy.

Core Concept

Reasoning by Analogy (default, often wrong):

  • "How did we solve something similar?"
  • "What do others do?"
  • Copies existing solutions with slight variations

Reasoning from First Principles (this skill):

  • "What are the fundamental truths here?"
  • "What is this actually made of?"
  • Rebuilds solutions from irreducible facts

When to Use

  • Architects: Challenge "is this actually a constraint or just how we've always done it?"
  • Pentesters: Identify actual attack surfaces vs. assumed security boundaries
  • RedTeam: Sharpen adversarial analysis by deconstructing assumptions
  • Engineers: When stuck, rebuild from fundamentals
  • Any skill: When inherited assumptions may be limiting the solution space

Workflow Routing

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...
  • Break problem into fundamental parts → Workflows/Deconstruct.md
  • Challenge assumptions systematically → Workflows/Challenge.md
  • Rebuild solution from fundamentals → Workflows/Reconstruct.md

The 3-Step Framework

┌─────────────────────────────────────────────────────────┐
│  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    │
└─────────────────────────────────────────────────────────┘

Key Questions

Deconstruction Questions

  • What is this actually made of?
  • What are the constituent parts?
  • What is the actual cost/value of each part?
  • What would a physicist say about this?

Challenge Questions

  • Is this a hard constraint (physics/reality) or soft constraint (policy/choice)?
  • What if we removed this constraint entirely?
  • Who decided this was a constraint and why?
  • What evidence supports this assumption?

Reconstruction Questions

  • If we started from scratch with only the fundamental truths, what would we build?
  • What field has solved an analogous problem differently?
  • Are we optimizing function or form?
  • What's the simplest solution that satisfies only the hard constraints?

Constraint Classification

When analyzing any system, classify constraints:

TypeDefinitionExampleCan Change?
HardPhysics/reality"Data can't travel faster than light"No
SoftPolicy/choice"We always use REST APIs"Yes
AssumptionUnvalidated belief"Users won't accept that UX"Maybe false

Rule: Only hard constraints are truly immutable. Soft constraints and assumptions should be challenged.

Integration Pattern

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

Examples

Example 1: Architecture Decision

Problem: "We need microservices because that's how modern apps are built"

First Principles Analysis:

  1. Deconstruct: What does this app actually need? (team size, scale, complexity)
  2. Challenge: Is "microservices" a hard constraint? No - it's reasoning by analogy
  3. Reconstruct: Given our 3-person team and moderate scale, a modular monolith optimizes for our actual constraints

Example 2: Security Assessment

Problem: "The firewall protects the internal network"

First Principles Analysis:

  1. Deconstruct: What is the firewall actually doing? (packet filtering on specific ports)
  2. Challenge: Does packet filtering = protection? What about authorized ports? Insider threats?
  3. Reconstruct: Protection requires defense in depth - firewall is one layer, not "the" protection

Example 3: Cost Optimization

Problem: "Cloud hosting costs $10,000/month - that's just what it costs"

First Principles Analysis:

  1. Deconstruct: What are we actually paying for? (compute, storage, bandwidth, managed services)
  2. Challenge: Is managed Kubernetes a hard requirement? Is this region required?
  3. Reconstruct: Actual compute needs = $2,000. The other $8,000 is convenience we're choosing to pay for

Output Format

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?]

Principles

  1. Physics First - Real constraints come from physics/reality, not convention
  2. Function Over Form - Optimize what you're trying to accomplish, not how it's traditionally done
  3. Question Everything - Every assumption is guilty until proven innocent
  4. Cross-Domain Synthesis - Solutions from unrelated fields often apply
  5. Rebuild, Don't Patch - When assumptions are wrong, start fresh rather than fixing

Anti-Patterns to Avoid

  • Reasoning by Analogy: "Company X does it this way, so should we"
  • Accepting Market Prices: "Batteries cost $600/kWh" without checking material costs
  • Form Fixation: Improving the suitcase instead of inventing wheels
  • Soft Constraint Worship: Treating policies as physics
  • Premature Optimization: Optimizing before understanding fundamentals

Attribution: Framework derived from Elon Musk's first principles methodology as documented by James Clear, Mayo Oshin, and public interviews.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

26.69%
按下载量换算334

OpenCode

21.89%
按下载量换算274

Gemini CLI

17.57%
按下载量换算220

Cursor

11.96%
按下载量换算150

Codex

8.59%
按下载量换算108

github-copilot

3.36%
按下载量换算42

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills