← Browse

@aldegad/alex-core-invariants

A

Use when reviewing architecture, refactors, state/data ownership, failure handling, debug discipline, work-in-progress hygiene, or concurrency policy against Alex's eight fixed invariants.

skillclaude

Install

agr install @aldegad/alex-core-invariants --target claude

Writes 6 files into .claude/skills/, pinned to git-63765fa9.

  • .claude/skills/alex-core-invariants/.gitignore
  • .claude/skills/alex-core-invariants/LICENSE
  • .claude/skills/alex-core-invariants/README.ko.md
  • .claude/skills/alex-core-invariants/README.md
  • .claude/skills/alex-core-invariants/SKILL.md
  • .claude/skills/alex-core-invariants/package.json

Document


name: alex-core-invariants description: "Use when reviewing architecture, refactors, state/data ownership, failure handling, debug discipline, work-in-progress hygiene, or concurrency policy against Alex's eight fixed invariants."

Alex Core Invariants Skill

Source of Truth

  • Canonical policy text lives in README.md.
  • If this file and README.md differ, README.md wins.
  • On policy drift, README.md wins.

When To Use

Use this skill when reviewing architecture, refactors, data flow, persistence boundaries, migration design, failure-handling behavior, or debug discipline (especially when a problem lives in a standardized infra/spec domain — Cloudflare, HTTP, OAuth, browser APIs, AWS/GCP, Kubernetes, build toolchains).

Workflow

  1. Read README.md first.
  2. Identify the canonical owner for each important truth.
  3. Flag dual-write, legacy shadow paths, silent fallback, and history-as-canonical patterns.
  4. Prefer self-heal from live truth over adding another truth surface.
  5. If explicit failover exists, verify that it is observable and does not mutate canonical truth.
  6. For problems in a standardized domain, search the official documentation before dispatching hypotheses.
  7. Recommend the smallest change that restores the invariant boundary.

Output Expectations

  • Findings first when doing review work.
  • Name which invariant is being violated.
  • Prefer fixes that reduce structure, ownership overlap, or hidden recovery logic.
  • Call out explicit failover separately from silent fallback.
  • For doc-first violations, cite the exact docs page that already had the answer.

Do Not

  • Create a second canonical copy of the eight invariants in another file.
  • Keep legacy write paths alive "just in case".
  • Hide primary-path failure with quiet fallback behavior.
  • Burn cycles dispatching guesses on a problem the official docs already solved.

Trustgrade A

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • passLicense

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-63765fa9d1be2026-07-31