anti-entropy-governanc…
Use when touching retiring old logic, collapsing duplicate owners, removing fallbacks, or schema/persistence/source-of-truth boundaries; identify opportunities…
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.
$ npx -y skills add GanyuanRan/Aegis --skill first-principles-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/first-principles-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
name: first-principles-review description: "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."
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.
razor.
criteria.
direction risk.
consumer-side patches, or "just add another branch" reasoning.
wrong.
single-owner changes.
appears.
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 here
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
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
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
Aegis Method Pack Make your AI coding agent trustworthy: fewer reworks, safer changes, proof before "done". English · 中文 · Fast-Track Playbook · 速通秘籍 Stop babysitting your agent.
Use when touching retiring old logic, collapsing duplicate owners, removing fallbacks, or schema/persistence/source-of-truth boundaries; identify opportunities…
Use when defining ambiguous or high-complexity new features, product behavior, UI/component design, architecture choices, contract changes, or when…
Use when the user asks for caveman mode, fewer tokens, brief responses, compressed communication, or otherwise explicitly requests a much shorter answer.
Use when facing 2+ independent tasks without a written plan, with no shared state or sequential dependencies, where parallel delegation beats inline cost;…
Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain term that needs active…
Use when executing a written implementation plan across sessions or with review checkpoints. Small or single-slice plans stay inline. For same-session…