first-principles-review

first-principles-review is a skill for Claude Code from GanyuanRan/Aegis. It costs 52 tokens per session (2,087 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 — 22 skills, 3 commands, 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,178 stars · on GitHub

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 22 skills, 3 commands, 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,087 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.02087
Opus 5 $0.00026 $0.01043
Sonnet 5 $0.00010 $0.00417
Haiku 4.5 $0.00005 $0.00209

Measured 5d ago against content hash 6ca49ee3e0bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 5d 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 · 223 lines

How it starts

The opening of the file, as written. The whole thing — 223 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

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?

When the direction depends on a new mechanism or an unfamiliar domain, insert one optional line between path and escalation:

Read the full file on GitHub · 223 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. 5d ago Changed · +21 lines 6ca49ee3e0bd
  2. 7d ago Changed · +21 lines cbe9797d1562
  3. 11d 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,178 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 2,087 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories

review-delta

Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.

tirth8205/code-review-graph · 24 tokens

sdd-tasks

Break an SDD change into implementation tasks. Trigger: orchestrator launches task planning for a change.

Gentleman-Programming/gentle-ai · 25 tokens

pre-landing-review

Pre-landing PR review. Analyzes diff against the base branch for SQL safety, LLM trust boundary violations, conditional side effects, and other structural issues. Use when explicitly asked for the specialized pre-landing workflow. Product /review requests are handled by OpenBitFun's unified Review mechanism instead.…

GCWing/BitFun · 75 tokens

go-testing

Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.

Gentleman-Programming/gentle-ai · 26 tokens

find-simplifications

Use for a periodic repo-wide sweep of qwen-code for accumulated excess surface — dead components and files, orphaned locale keys, exports nothing consumes, added-then-removed scaffolding — filing candidates on a tracking issue and landing only what a maintainer has said yes to. Repo-wide and evidence-first; every…

QwenLM/qwen-code · 103 tokens

pr-review-canvas

Create a OpenBitFun Canvas for reviewing a pull request, branch diff, or change set with Cursor-style diff cards, review maps, risk callouts, and focused reviewer flow. Use when the user asks for a PR review canvas, diff walkthrough, change-set overview, or visual review summary.

GCWing/BitFun · 64 tokens