Test

From egregore-labs/egregore · View interactive version

Test is an AI agent skill from the GitHub repository egregore-labs/egregore. Run Egregore's fast static, Runtime-contract, and targeted automated test gate before save. Optional relationship index validation requires an explicit request.

How to use this skill

Skill file

Run the fast automated gate for the current change.

When to invoke

Use for $test, “test my changes”, or a quick pre-save validation. Use qa

for broader behavioral proof and adversarial fixtures.

Arguments: $ARGUMENTS — optional paths, --all, or explicit --graph.

Default gate

  1. Run bash bin/base-branch.sh to print the configured integration branch.

Scope to supplied paths, --all, or changed files against that branch.

  1. Run static analysis once:
bash bin/test-changes.sh <scope>

--all scans source skills plus Runtime-neutral shell adapters. Do not treat a

missing historical .claude/commands directory as test coverage.

  1. Run the architectural ratchet once (source instances only — installed

instances do not ship the distribution engine and skip this step):

if [ -f bin/capability-distribution.mjs ] && [ -f capability-distribution.json ]; then
  bash bin/node-run.sh bin/capability-distribution.mjs runtime-skill-audit \
    --root . --strict-contract
fi

This checks the complete skill denominator, QMD/graph/control-plane/write

coupling ceilings, and migrated-skill contracts.

  1. Select the smallest relevant existing test suites from the changed paths

and skill-references.json. Run independent suites in parallel where the

harness supports it. Do not rerun the same suite through multiple rituals.

  1. For changes to cross-harness Runtime sources or skills, run Codex/Pi/Prime

bundle parity checks.

Optional graph validation

Only when the user explicitly passed --graph or changed the graph projection

adapter itself:

Never scan every skill for Cypher and execute it against a live database.

Result

Render one compact pass/fail report with:

Warnings do not block unless they represent a privacy, authorization,

canonical-order, or destructive-action risk.

Rules

memory state.

Emit content-free telemetry after the gate:

bash bin/telemetry.sh emit "command" '{"command":"test"}' 2>/dev/null &
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.