first-principles-review

first-principles-review is a skill for Claude Code from GanyuanRan/Aegis. It costs 52 tokens per session (2,216 once invoked), scanned A, original, MIT.

A review method for choosing among competing technical approaches by examining basic principles, assumptions, constraints, and ownership.

In plain words
What is it for?
Use it before architecture or high-risk design decisions, especially when several solutions seem plausible or the current approach keeps accumulating exceptions.
Why use it?
It helps stop designs from growing through extra fallbacks, duplicate owners, or repeated patches when a simpler direction may be sufficient.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the aegis plugin — 23 skills, 1 hook shipped together

Good fit Use it before architecture or high-risk design decisions, especially when several solutions seem plausible or the current approach keeps accumulating exceptions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ganyuanran/aegis/first-principles-review
About the project

Aegis is a method pack that guides coding agents to inspect a project's baseline, make bounded changes, and verify their work with fresh evidence. It is for people using coding-agent hosts who want fewer unverified changes and less unnecessary process. The catalogue add-ons implement this method through skills, instructions, commands, a hook, and a plugin.

GanyuanRan/Aegis · 1,460 stars · on GitHub · autoloom.codes

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 GanyuanRan/Aegis --skill first-principles-review
Clone the repo
git clone --depth 1 https://github.com/GanyuanRan/Aegis

Made for: Claude Code.

Or install aegis, the plugin that ships this one along with the rest of its 23 skills, 1 hook.

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 first-principles-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/ganyuanran/aegis/first-principles-review/github.svg)](https://agentmods.dev/skills/ganyuanran/aegis/first-principles-review)
Your own site
<a href="https://agentmods.dev/skills/ganyuanran/aegis/first-principles-review"><img src="https://agentmods.dev/badge/skills/ganyuanran/aegis/first-principles-review/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 first-principles-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/ganyuanran/aegis/first-principles-review"><img src="https://agentmods.dev/badge/skills/ganyuanran/aegis/first-principles-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,216 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
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00052 $0.02216
Opus 5.5 $0.00021 $0.00886
Sonnet 5.5 $0.00010 $0.00443
Haiku 4.5 $0.00005 $0.00222

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

Security

Grade A, and why

first-principles-review 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.

skills/first-principles-review/SKILL.md · 233 lines

How it starts

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

First Principles Review

Purpose

Use this as a lightweight decision review before another Aegis workflow makes a directional choice. It is a compositional skill, not a standalone workflow.

Do not replace brainstorming, systematic-debugging, writing-plans, requesting-code-review, or verification-before-completion. Use it to clean the decision surface those skills will act on.

When this review materially changes the direction, surface Aegis Visibility in natural prose: name the first principle, dropped assumption, smallest sufficient path, or owner / retirement falsifier that changed the decision. Keep it advisory and task-specific; do not turn the lens into approval authority or a generic skill trace.

Use When

  • The user asks for first principles, first-principles thinking, or Occam's razor.
  • A design, plan, or fix has multiple plausible paths and unclear selection criteria.
  • The task has ambiguous goals, competing constraints, or product/architecture direction risk.
  • Debugging is drifting into repeated fixes, fallback growth, duplicate owners, consumer-side patches, or "just add another branch" reasoning.
  • A review finds that the implementation may be locally correct but directionally wrong.

Do Not Use

  • Simple Q&A, status checks, tiny wording/config edits, or clearly bounded single-owner changes.
  • Mechanical execution of an approved plan unless a new directional conflict appears.
  • As a required step for every task, every turn, or every TDD cycle.

Five-Line Review

Check the agreed goal for omissions and unsupported additions, including quantities, exclusions, relationships and conditions. Review criteria come from authorized requirements; this lens cannot add them or veto an authorized transformation merely because its form differs.

Answer only what is needed, usually in five short lines:

First Principle: What irreducible outcome must this satisfy?
Non-negotiables: What constraints cannot be broken?
Assumptions to Drop: What is habit, inherited shape, or unproven preference?
Smallest Sufficient Path: What is the least complex path that satisfies the first principle?
Escalation Signal: What finding would require spec/design/architecture review?

Read the full file on GitHub · 233 lines

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 · +5 lines becbc76bd236
  2. 1mo ago Changed · +5 lines 49786151c1cd
  3. 2mo ago Changed · +21 lines 6ca49ee3e0bd
  4. 3mo ago Changed · +21 lines cbe9797d1562
  5. 3mo ago First seen · 181 lines · 52 tokens per session scan A 6f71196586d3

Subscribe to this mod's changes

first-principles-review is a skill published in the GitHub repository GanyuanRan/Aegis (1,460 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 2,216 once invoked, about $0.0002 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

first-principles-review compared with skills from other repositories

first-principles-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
first-principles-reviewGanyuanRan/AegisSkill1.5kyesterdayMITA52Claude Code
go-testingGentleman-Programming/gentle-aiSkill9.7ktodayMITA26Claude Code, Codex
find-simplificationsQwenLM/qwen-codeSkill31ktodayApache-2.0C103Claude Code, Codex
aoe-sandbox-boundaryagent-of-empires/agent-of-empiresSkill5.3ktodayMITA85Claude Code, Codex
cross-model-reviewhashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A56Claude Code, Codex
gitnexushashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A58Codex
swarm-pr-reviewZaxbyHub/opencode-swarmSkill551todayMITA91Claude Code