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?
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:
- multiple plausible paths and no clear selection criteria
- a new owner, duplicate owner, fallback, adapter, or compat-only carrier
- an old path that may need delete-first handling or a retirement trigger
- an unverified assumption that the proposal depends on
- user language such as "more elegant", "long-term stable", "first
principles", or "Occam"
- a plan could encode the wrong owner, abstraction, compatibility boundary, or
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:
- responsibilities may overlap or a canonical owner is unclear
- the smallest diff adds a caller-side fallback, guard, adapter, or compat-only
carrier
- an existing source-of-truth or contract could solve the class of problem at a
higher level
- a stale owner, fallback, or old path may keep carrying real logic
- the work makes a long-term stability, "cleaner architecture", or
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
- With
brainstorming: run before approach selection when the request is broad,
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.
- With
systematic-debugging: run after evidence shows repeated fixes, fallback
growth, duplicate owners, or consumer-side patching.
- With
writing-plans: run before task decomposition when the plan could encode
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.
- With
requesting-code-review: run when review should check direction and
owner integrity, not just code quality.
- With
verification-before-completion: use only to name residual directional
risk. It does not grant completion authority.
Boundaries
- Prefer evidence from current project files, baseline docs, tests, logs, and
user requirements. If evidence is missing, mark the line as unknown rather
than inventing a principle.
- Keep the result advisory. This skill may recommend escalation, but it does
not create authoritative
GateDecision, PolicySnapshot, or completion
authority.
- If the five-line review does not change the decision surface, return to the
active workflow immediately.
Source: hashgraph-online/awesome-codex-plugins → plugins/GanyuanRan/Aegis/skills/first-principles-review/SKILL.md
1---2name: first-principles-review3description: Use when explicitly asked for first-principles or Occam's-razor review, or when complex decisions involve competing constraints, repeated fixes, fallback growth, duplicate owners, or architecture/product direction risk.4---567# First Principles Review89## Purpose1011Use this as a lightweight decision review before another Aegis workflow makes a12directional choice. It is a compositional skill, not a standalone workflow.1314Do not replace `brainstorming`, `systematic-debugging`, `writing-plans`,15`requesting-code-review`, or `verification-before-completion`. Use it to clean16the decision surface those skills will act on.1718When this review materially changes the direction, surface `Aegis Visibility`19in natural prose: name the first principle, dropped assumption, smallest20sufficient path, or owner / retirement falsifier that changed the decision.21Keep it advisory and task-specific; do not turn the lens into approval22authority or a generic skill trace.2324## Use When2526- The user asks for first principles, first-principles thinking, or Occam's27 razor.28- A design, plan, or fix has multiple plausible paths and unclear selection29 criteria.30- The task has ambiguous goals, competing constraints, or product/architecture31 direction risk.32- Debugging is drifting into repeated fixes, fallback growth, duplicate owners,33 consumer-side patches, or "just add another branch" reasoning.34- A review finds that the implementation may be locally correct but directionally35 wrong.3637## Do Not Use3839- Simple Q&A, status checks, tiny wording/config edits, or clearly bounded40 single-owner changes.41- Mechanical execution of an approved plan unless a new directional conflict42 appears.43- As a required step for every task, every turn, or every TDD cycle.4445## Five-Line Review4647Answer only what is needed, usually in five short lines:4849```text50First Principle: What irreducible outcome must this satisfy?51Non-negotiables: What constraints cannot be broken?52Assumptions to Drop: What is habit, inherited shape, or unproven preference?53Smallest Sufficient Path: What is the least complex path that satisfies the first principle?54Escalation Signal: What finding would require spec/design/architecture review?55```5657For repair choices, "smallest" means smallest sufficient stable repair, not the58smallest textual diff:5960```text61Minimality Check:62- Smallest textual diff:63- Correct owner:64- Bug class fixed:65- New branch/fallback added:66- Old path retired or scheduled:67- Verdict: sufficient repair | local patch | needs first-principles review68```6970## Decision Hygiene Review7172Use this escalation only when a design, fix, or plan needs endorsement before it73is written into a spec or implementation plan.7475Escalate from the five-line review when any of these risk signals appear:7677- multiple plausible paths and no clear selection criteria78- a new owner, duplicate owner, fallback, adapter, or compat-only carrier79- an old path that may need delete-first handling or a retirement trigger80- an unverified assumption that the proposal depends on81- user language such as "more elegant", "long-term stable", "first82 principles", or "Occam"83- a plan could encode the wrong owner, abstraction, compatibility boundary, or84 retirement schedule8586Use this compact shape:8788```text89First-principles invariants:90- Non-negotiable goal:91- Non-negotiable constraints:92- Historical assumptions to delete:9394Owner / retirement matrix:95- New canonical owner:96- Old owner:97- Compat-only carrier:98- Delete-first / retirement trigger:99100Falsification matrix:101- Dependency-removal test:102- Counterexample scenario:103- Must fail / degrade / remain correct cases:104105Verdict:106- Adopt / revise / reject / needs evidence:107- Blocking gaps:108- Next evidence:109```110111## Architecture Integrity Lens112113Use this narrower lens when a proposal is executable but may still encode the114wrong owner, abstraction, contract boundary, or retirement path. It is advisory115method-pack output and may be embedded inside `Decision Hygiene Review` when116that is enough.117118Trigger it when any of these appear before approach selection, task119decomposition, review, or completion-risk reporting:120121- responsibilities may overlap or a canonical owner is unclear122- the smallest diff adds a caller-side fallback, guard, adapter, or compat-only123 carrier124- an existing source-of-truth or contract could solve the class of problem at a125 higher level126- a stale owner, fallback, or old path may keep carrying real logic127- the work makes a long-term stability, "cleaner architecture", or128 higher-level simplification claim129130Use this compact shape:131132```text133Architecture Integrity Lens:134- Invariant: What must remain true for the system to be coherent?135- Canonical owner / contract: Which owner, contract, or source-of-truth should carry the behavior?136- Responsibility overlap: What duplicate owner, caller-side patch, fallback, or stale path might still carry real logic?137- Higher-level simplification: Can the problem be solved at the owner / contract / source-of-truth layer instead of by another local branch?138- Retirement / falsifier: What old path retires, or what evidence would disprove this architecture judgment?139- Verdict: proceed | revise design | split owner | return to baseline | needs ADR/baseline sync140```141142Do not run this lens for every low-risk task. If it does not change the143decision surface, return to the active workflow immediately.144145## Composition146147- With `brainstorming`: run before approach selection when the request is broad,148 ambiguous, likely to inherit a poor product shape, or involves owner /149 retirement / fallback / adapter risk. Use `Decision Hygiene Review` or the150 narrower `Architecture Integrity Lens` before recommending or selecting an151 approach when those signals appear.152- With `systematic-debugging`: run after evidence shows repeated fixes, fallback153 growth, duplicate owners, or consumer-side patching.154- With `writing-plans`: run before task decomposition when the plan could encode155 the wrong owner, abstraction, compatibility boundary, fallback, adapter, or156 retirement schedule. If the approved spec did not already cover this, use157 `Decision Hygiene Review` or the `Architecture Integrity Lens` before writing158 tasks.159- With `requesting-code-review`: run when review should check direction and160 owner integrity, not just code quality.161- With `verification-before-completion`: use only to name residual directional162 risk. It does not grant completion authority.163164## Boundaries165166- Prefer evidence from current project files, baseline docs, tests, logs, and167 user requirements. If evidence is missing, mark the line as unknown rather168 than inventing a principle.169- Keep the result advisory. This skill may recommend escalation, but it does170 not create authoritative `GateDecision`, `PolicySnapshot`, or completion171 authority.172- If the five-line review does not change the decision surface, return to the173 active workflow immediately.174175---176177**Source:** [`hashgraph-online/awesome-codex-plugins`](https://github.com/hashgraph-online/awesome-codex-plugins) → `plugins/GanyuanRan/Aegis/skills/first-principles-review/SKILL.md`