First principles review

From Undermybelt/hermes-skills · View interactive version

First principles review is an AI agent skill from the GitHub repository Undermybelt/hermes-skills. Use when the user explicitly asks for first principles, first-principles review, Occam's razor, or when a complex decision has ambiguous goals, competing constraints, repeated fixes, fallback growth, duplicate owners, or architecture/product direction risk.

How to use this skill

Skill file

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.

Use When

razor.

criteria.

direction risk.

consumer-side patches, or "just add another branch" reasoning.

wrong.

Do Not Use

single-owner changes.

appears.

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?

For repair choices, "smallest" means smallest sufficient stable repair, not the

smallest textual diff:

Minimality Check:
- Smallest textual diff:
- Correct owner:
- Bug class fixed:
- New branch/fallback added:
- Old path retired or scheduled:
- Verdict: sufficient repair | local patch | needs first-principles review

Decision Hygiene Review

Use this escalation only when a design, fix, or plan needs endorsement before it

is written into a spec or implementation plan.

Escalate from the five-line review when any of these risk signals appear:

principles", or "Occam"

retirement schedule

Use this compact shape:

First-principles invariants:
- Non-negotiable goal:
- Non-negotiable constraints:
- Historical assumptions to delete:

Owner / retirement matrix:
- New canonical owner:
- Old owner:
- Compat-only carrier:
- Delete-first / retirement trigger:

Falsification matrix:
- Dependency-removal test:
- Counterexample scenario:
- Must fail / degrade / remain correct cases:

Verdict:
- Adopt / revise / reject / needs evidence:
- Blocking gaps:
- Next evidence:

Architecture Integrity Lens

Use this narrower lens when a proposal is executable but may still encode the

wrong owner, abstraction, contract boundary, or retirement path. It is advisory

method-pack output and may be embedded inside Decision Hygiene Review when

that is enough.

Trigger it when any of these appear before approach selection, task

decomposition, review, or completion-risk reporting:

carrier

higher level

higher-level simplification claim

Use this compact shape:

Architecture Integrity Lens:
- Invariant: What must remain true for the system to be coherent?
- Canonical owner / contract: Which owner, contract, or source-of-truth should carry the behavior?
- Responsibility overlap: What duplicate owner, caller-side patch, fallback, or stale path might still carry real logic?
- Higher-level simplification: Can the problem be solved at the owner / contract / source-of-truth layer instead of by another local branch?
- Retirement / falsifier: What old path retires, or what evidence would disprove this architecture judgment?
- Verdict: proceed | revise design | split owner | return to baseline | needs ADR/baseline sync

Do not run this lens for every low-risk task. If it does not change the

decision surface, return to the active workflow immediately.

Composition

ambiguous, likely to inherit a poor product shape, or involves owner /

retirement / fallback / adapter risk. Use Decision Hygiene Review or the

narrower Architecture Integrity Lens before recommending or selecting an

approach when those signals appear.

growth, duplicate owners, or consumer-side patching.

the wrong owner, abstraction, compatibility boundary, fallback, adapter, or

retirement schedule. If the approved spec did not already cover this, use

Decision Hygiene Review or the Architecture Integrity Lens before writing

tasks.

owner integrity, not just code quality.

risk. It does not grant completion authority.

Boundaries

user requirements. If evidence is missing, mark the line as unknown rather

than inventing a principle.

not create authoritative GateDecision, PolicySnapshot, or completion

authority.

active workflow immediately.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.