FirstPrinciples

FirstPrinciples is a skill for Claude Code, Codex from danielmiessler/LifeOS. It costs 91 tokens per session (1,811 once invoked), scanned A, original, MIT.

A problem-solving method that breaks a question down into basic facts, constraints, and assumptions, then rebuilds a solution from those parts. It is also called first-principles reasoning.

In plain words
What is it for?
Use it to challenge assumptions, identify hard and flexible constraints, and design solutions from fundamental facts.
Why use it?
It helps separate what is truly required from habits or guesses copied from existing solutions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; positional $N argument.

Good fit Use it to challenge assumptions, identify hard and flexible constraints, and design solutions from fundamental facts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/danielmiessler/lifeos/firstprinciples
About the project

LifeOS is an AI-assisted personal operating system that records a person’s goals, values, context, and current situation to help move them toward a desired future state. It supports work such as building applications, starting businesses, and creative projects. Its catalogue entries extend the system through skills, hooks, agents, and commands.

danielmiessler/LifeOS · 20,594 stars · on GitHub · ourlifeos.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add danielmiessler/LifeOS --skill firstprinciples
Clone the repo
git clone --depth 1 https://github.com/danielmiessler/LifeOS

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for FirstPrinciples

README.md
[![agentmods](https://agentmods.dev/badge/skills/danielmiessler/lifeos/firstprinciples/github.svg)](https://agentmods.dev/skills/danielmiessler/lifeos/firstprinciples)
Your own site
<a href="https://agentmods.dev/skills/danielmiessler/lifeos/firstprinciples"><img src="https://agentmods.dev/badge/skills/danielmiessler/lifeos/firstprinciples/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for FirstPrinciples

Your own site · 80×15
<a href="https://agentmods.dev/skills/danielmiessler/lifeos/firstprinciples"><img src="https://agentmods.dev/badge/skills/danielmiessler/lifeos/firstprinciples.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,811 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 21
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00091 $0.01811
Opus 5.5 $0.00036 $0.00724
Sonnet 5.5 $0.00018 $0.00362
Haiku 4.5 $0.00009 $0.00181

Measured 1mo ago against content hash 75aa21ff638e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

FirstPrinciples scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

LifeOS/install/skills/FirstPrinciples/SKILL.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FirstPrinciples

Contents: Ideal State · Intent Routing · Constraint Classification · The Core Distinction · The Load-Bearing Rules · Output Format · Data & Config · Gotchas · Examples

Breaks a problem down to its fundamental truths and rebuilds the solution from there, instead of copying what already exists. Three steps, each an intent: DECONSTRUCT (break it into constituent parts and real values), CHALLENGE (classify every element as hard constraint, soft constraint, or unvalidated assumption; only physics is truly immutable), and RECONSTRUCT (build the optimal solution from the fundamentals alone). Outputs a parts breakdown, a constraint table, and a reconstructed solution. It is analysis, not implementation: a request to fix something is done directly, not through this skill. Other skills call it when inherited assumptions may be limiting the solution space: architecture work asking "constraint or convention?", RedTeam and pentests attacking assumed boundaries, RedTeam building counter-proposals with Reconstruct, and engineering escaping a local maximum.

Ideal State

  • What the analysis calls fundamental is only physics, math, verified fact or a truly immutable requirement; every market price, best practice and policy is shown to be convention and taken apart.
  • The irreducible function of the subject is stated as an outcome, not a mechanism ("pick the right model and effort for a piece of work", not "a router"), and every component under discussion is marked as serving that function or not. Costing from fundamentals appears only when cost is part of the question.
  • Output length matches the request: an inline, brief or terse pass returns the irreducible job, the classification with its evidence, and the key insight in a few lines, without empty template sections; the full templates are for full runs.
  • A full run ends with a solution rebuilt from the hard constraints and compared against the current approach, plus the one assumption that was limiting it.

Read the full file on GitHub · 113 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -39 lines 75aa21ff638e
  2. 3mo ago First seen · 152 lines · 91 tokens per session scan A c8b526a5d48a

Subscribe to this mod's changes

FirstPrinciples is a skill published in the GitHub repository danielmiessler/LifeOS (20,594 stars, last pushed 13d ago), licensed MIT. It adds 91 tokens to every session and 1,811 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

FirstPrinciples compared with skills from other repositories

FirstPrinciples next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
FirstPrinciplesdanielmiessler/LifeOSSkill21k13d agoMITA91Claude Code, Codex
long-running-workZfinix/asterSkill1431mo agoApache-2.0A0Claude Code, Codex
i-have-adhdZfinix/asterSkill1431mo agoApache-2.0A60Claude Code, Codex
shortcutsZfinix/asterSkill1431mo agoApache-2.0A0Claude Code, Codex
plan-devex-reviewGlobal-mindee/WAYSkill112mo agoMITA156Codex
aster-capabilitiesZfinix/asterSkill1431mo agoApache-2.0C0Claude Code, Codex
plan-tuneGlobal-mindee/WAYSkill112mo agoMITA170Codex