first-principles-review
Skill1.3k starsChanged 7 months agoMITView on GitHub
Use when asked for first-principles or Occam's-razor review, or when high-risk decisions involve competing constraints, fallback growth, duplicate owners, or architecture direction risk. Ordinary bug fixes stay on the fast path.
Trending
Quiet since October.about the whole repository
Who's talking about GanyuanRan/Aegis
- hashgraph-online/awesome-codex-plugins“Add Aegis - agentic skills framework and software development methodology”GitHub · May 7, 2026 · 2 reactions
- sudosubin/agents.nix“agent-skills.github.ganyuanran.aegis: 2.10.7 → 2.12.1”GitHub · Oct 3, 2026
- ProSkillsMD/proskills“[Candidate] ganyuanran/aegis/skills/communicating-concisely - communicating-concisely”GitHub · Oct 2, 2026
- ProSkillsMD/proskills“[Candidate] ganyuanran/aegis/skills/brainstorming - brainstorming”GitHub · Oct 2, 2026
- ProSkillsMD/proskills“[Candidate] ganyuanran/aegis/skills/anti-entropy-governance - anti-entropy-governance”GitHub · Oct 2, 2026
The biggest 5 of 15 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 15
Talked about on GitHub (15 times).
On GitHub · 15
- May 7, 2026Add Aegis - agentic skills framework and software development methodology — hashgraph-online/awesome-codex-plugins2 reactions · 2 comments
- Oct 3, 2026agent-skills.github.ganyuanran.aegis: 2.10.7 → 2.12.1 — sudosubin/agents.nix0 reactions
- Oct 2, 2026[Candidate] ganyuanran/aegis/skills/communicating-concisely - communicating-concisely — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 2, 2026[Candidate] ganyuanran/aegis/skills/brainstorming - brainstorming — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 2, 2026[Candidate] ganyuanran/aegis/skills/anti-entropy-governance - anti-entropy-governance — ProSkillsMD/proskills0 reactions · 1 comment
10 more on GitHub
- Sep 30, 20260.1.22 在 DSH 0.2.0(会话格式 v4)下写入被拒:每轮对话结束抛未捕获的 promise rejection(附最小修复) — TelosmaYLX/dsh-session-notify0 reactions · 1 comment
- Sep 27, 2026agent-skills.github.ganyuanran.aegis: init at 2.10.7 — sudosubin/agents.nix0 reactions
- Sep 14, 2026Weekly discovery: new DeepSeek Harness ecosystem candidates — fendouai/awesome-deepseek-harness0 reactions · 1 comment
- Aug 29, 2026Misclassifies missing Git executable as plugin repository failure — dshplugin/dsh-plugin-hub0 reactions · 1 comment
- Aug 24, 2026fix: use explicit HTTPS URLs for GitHub plugin installs — dshplugin/dsh-plugin-hub0 reactions · 3 comments
- Aug 22, 2026[Audit] aegis — SoberReport-AI/DeepGuard0 reactions · 19 comments
- Jun 15, 2026weekly sync — 2026-06-15 — norbert-pap/claudebert0 reactions
- May 25, 2026Add Aegis — composio-community/awesome-claude-plugins0 reactions
- May 25, 2026Add Aegis — filipecalegario/awesome-vibe-coding0 reactions
- May 25, 2026Add skill: GanyuanRan/Aegis — VoltAgent/awesome-agent-skills0 reactions
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- anti-entropy-governanceSkill
- brainstormingSkill
- communicating-conciselySkill
- dispatching-parallel-agentsSkill
- establishing-project-contextSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- goal-framingSkill
- long-task-continuationSkill
- receiving-code-reviewSkill
- recording-architecture-decisionsSkill
- requesting-code-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- ui-ux-governanceSkill
- update-aegisSkill
- using-aegisSkill
- using-git-worktreesSkill
- verification-before-completionSkill
- writing-plansSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use this as a lightweight decision review before another Aegis workflow makes a directional choice.
- Very specific: line 13
Do not replace brainstorming, systematic-debugging, writing-plans, requesting-code-review, or verification-before-completion.
- Very specific: line 17
When this review materially changes the direction, surface Aegis Visibility in natural prose: name the first principle, dropped assumption, …
- Distinctive: line 20
Keep it advisory and task-specific.
- Distinctive: line 56
When the direction depends on a new mechanism or an unfamiliar domain, insert one optional line between path and escalation:
- Distinctive: line 79
Use this escalation only when a design, fix, or plan needs endorsement before it is written into a spec or implementation plan.
- Distinctive: line 96
Use this compact shape:
- Very specific: line 151
Use this narrower lens when a proposal is executable but may still encode the wrong owner, abstraction, contract boundary, or retirement …
- Distinctive: line 191
Do not run this lens for every low-risk task.
- Distinctive: line 215
Prefer evidence from current project files, baseline docs, tests, logs, and user requirements.
- Very specific: line 218
Keep the result advisory. This skill may recommend escalation, but it does not create authoritative GateDecision, PolicySnapshot, or …
- Distinctive: line 221
If the five-line review does not change the decision surface, return to the active workflow immediately.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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:
Known Prior Art: proven external pattern worth adopting or adapting to project
constraints (cite source), or `unknown` when precedent cannot be verified hereFor 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 reviewDecision 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
- an existing object, behavior, responsibility, contract, or relationship may be reinterpreted, narrowed, replaced, or retired, and the proposal could lose a legitimate role or explicit reference while removing invalid authority
Use this compact shape:
First-principles invariants:
- Non-negotiable goal:
- Non-negotiable constraints:
- Historical assumptions to delete:
Bounded preservation reminder:
- Evidence-backed behavior that must remain correct:
- Highest-risk counterexample:
- Material unknown / uninspected surface:
- Known explicit anchors / upstream-downstream refs and disposition:
- Role-before-value ambiguity, if any:
Owner / retirement matrix:
- New canonical owner:
- Old owner:
- Compat-only carrier:
- Delete-first / retirement trigger:
Falsification matrix (evaluate in order; stop at the first failing gate):
- Gate 0 - Premise evidence (stage-graded): design stage accepts spec/logic
refs; implementation/runtime stage requires log, telemetry, or test
evidence. No evidence -> park as watch-listed, do not enter value
evaluation.
- Gate 1 - Decidability: no obtainable evidence to judge it -> park as a
watched falsifier, do not act.
- Gate 2 - Value (any one): lowers future fix probability / shrinks the
solution set / exposes a missing actionable acceptance criterion / the same
broken assumption is reused elsewhere. Passing here still requires
gates 3-5.
- Gate 3 - Cost match: change cost vs business priority, costed at the
current stage; a valid but deferred counterexample is recorded in the owner
doc, never parked orally.
- Gate 4 - Goal regression: the constrained solution still meets the original
goal; re-read the accepted-constraint list at existing checkpoints (design
review, plan approval, pre-completion verification).
- Gate 5 - Minimize then classify: boundary-shaped destructive claims must be
minimized first; premise attacks classify as destructive directly.
Classes: destructive (refactor/retirement track) | supplementary (boundary
constraint) | watch-listed (falsifier). Conflicting counterexamples are
decided by business-goal ranking, never by stacking constraints.
- Gate 6 - Adoption trace: the cheapest checkable form (regression test for
destructive; contract, assertion, or checklist line for supplementary),
written into the existing owner doc.
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?
- Responsibility / capability boundary: Which invalid authority retires, and
does the same carrier still serve a separately evidenced legitimate role?
- Verdict: proceed | revise design | split owner | return to baseline | needs ADR/baseline syncBounded preservation reminder is a risk-triggered reasoning aid, not a
universal artifact or an exhaustive behavior inventory. Inspect the smallest
relevant contract, consumer, test, or history evidence. Preserve, rebind,
retire, or reject each known explicit reference; state unresolved relationships
as unknown instead of re-inferring them or claiming semantic completeness. The
Method Pack does not build an authoritative relationship graph, prove
referential integrity or input lineage, calculate complete behavior coverage,
or issue a runtime gate.
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. UseDecision Hygiene Reviewor the narrowerArchitecture Integrity Lensbefore 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, useDecision Hygiene Reviewor theArchitecture Integrity Lensbefore 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

