agentleFS
febshhyfebshhy/mimir-codex/.agents/skills/testing/SKILL.md

testing

Skill0 starsChanged 4 days agoMITArchived repositoryView on GitHub

Use when verifying behavior changes or consequential behavior-preserving refactors, including state machines, boundary contracts, regressions, invariants, and property-based tests. Keep checks linked to meaningful claims and stable boundaries.

194 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use bundle-dependency-prs, update-library-template and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    bundle-dependency-prs

    Fix broken dependency update PRs and aggregate the ones that work into one PR.

    Also in 8 projects that use this

  • MicrosoftSkill

    update-library-template

    Merges the latest Library.Template into this repo (at position of HEAD) and resolves conflicts.

    Also in 8 projects that use this

  • NVIDIA-NeMoSkill

    build-and-dependency

    Dev environment setup for Megatron Bridge — container-based development, uv package management, lockfile regeneration, adding dependencies, Slurm container usage, and common build pitfalls.

    Also in 3 projects that use this

  • timmo001Skill

    changeset-scope

    Keep all scoped code work contained to the user-defined changeset. Use for implementation, fixes, diagnosis, refactoring, cleanup, and review when explicit instructions, named files, diffs, branches, pull requests, or injected work scopes define the boundary.

    Also in 3 projects that use this

  • JetBrainsSkill

    module-dependencies

    Add or modify IntelliJ module dependencies in `.iml` files.

    Also in 3 projects that use this

  • CES-LtdSkill

    oss-pr

    Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Call graphs in handoffs: When work or a finding depends on how code runs, include or reference the relevant source-derived trace in …

    line 8
  2. Distinctive:

    Prefer one primary check per claim at a stable boundary.

    line 27

“Common” is measured: kept by at least 6 in 10 of the 175 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Testing — claim → check → evidence

Call graphs in handoffs: When work or a finding depends on how code runs, include or reference the relevant source-derived trace in assignments, returns, and reviews. Follow Call Graph Output in the Mimir coordinator instructions (AGENTS.md in the release or .mimir/AGENTS.md in an installed project).

Authority: $testing selects verification and reports observed evidence; it does not approve product requirements, Bend laws, or changes to GUI/domain behavior.

Claim (approved requirement | invariant | defect | relevant contract)
  → Select stable boundary and primary check
    → Resolve real command and prerequisites
      → Execute → Passed(evidence) | Failed(evidence) | Inconclusive(reason)
        → Report supported scope, gaps, command, exit result, log

Optional task notes under ignored .work/ may preserve concrete evidence or reduce repeated inspection. They never replace required schema-3 plans, receipts, command logs, or observations. Preserve existing tests and evidence; do not create a separate task note just to record test planning.

Selection contract

Prefer one primary check per claim at a stable boundary; do not duplicate a claim at the same boundary or chase coverage numbers.

CheckSelect when
ConformanceApproved requirement/external contract or a proven Bend model must match production; compare with model when applicable.
BehavioralObservable module index or other stable boundary behavior.
SmokeOne critical end-to-end path per thin slice.
RegressionReproduce a real bug before its fix; retain its check.
Fuzz/propertyInvariants, state sequences, parsers or combinatorial domains; define property, generators, reproducible seeds, bounded runtime. Bend is optional.
UnitImportant pure-decision edge cases that boundary tests cannot isolate efficiently; say why.

Guards: link each check to a requirement, invariant, meaningful claim/card ID or defect. Review orphan tests and unverified requirements; lack of a card ID alone never justifies deleting a useful regression. Test through module index unless internals are a required contract. Do not mock the module under test. Stand-ins are only for external boundaries, and cannot establish behavior of the real boundary.

Execution and reporting

Read AGENTS.md Commands + actual repository configuration
  → Compile/build first if required (unless that check itself is the build)
  → Run smallest sufficient checks
  → Record outcome and relevant logs
  → Re-run affected checks after consequential changes

Never invent commands. If tooling is missing, use the project's native stack to scaffold an appropriate check when authorized; record its command under Commands. For noisy commands use scripts/factory log <suite-name> -- <command> [args...]; inspect saved failures. Do not rerun just to display output; rerun failures to investigate nondeterminism and keep both logs. Flakiness is a defect. Report not run with reason rather than implying success.

Data contracts, pipelines, analytics and models (conditional)

Select by claimed result, not by the presence of a green scheduler. Assert grain uniqueness; identity and reference resolution; source-to-target reconciliation; accepted/rejected counts; metric numerator/denominator and dimensions; null, empty, late, duplicate, reordered, corrected and tombstone events; timestamp/timezone/interval boundaries; schema version compatibility; replay/backfill idempotency and partial failure; freshness/quality alarm behavior; row/column permission checks. Use sample fixtures with hand-calculated expected results and limited real-system checks. A synthetic fixture tests logic, not actual production source integrity. For predictive work use leakage-free splits, baselines, threshold/cost evaluation, uncertainty and subgroup limits; distinguish offline predictive checks from causal impact. Preserve actual dataset version/time window and reproducible seed where needed. Record producer/consumer review and rollback readiness when a change crosses boundaries. See $data-operations and $data-statistics.

Structural changes

Behavior preservation is an intention, not a proved result. Before and after consequential tidying, check relevant outputs, errors, effects, ordering, persistence, concurrency, lifetime and performance contracts. Use focused existing checks or source-grounded characterization tests. Keep meaningful structural and behavioral steps separately verifiable when practical. Never approve snapshots or weaken checks merely to pass; if equivalence is unestablished, report its scope and risk. Purely cosmetic edits do not demand new tests without a credible failure mode.

GUI and motion (conditional)

Check affected real GUI states in an available browser/native environment; consult ../gui-design-thinking/references/RENDERING-AND-MOTION.md. Screenshot → visual state only; interaction assertion → behavior; measured frame trace → motion. Record target/revision and review baseline updates. An unavailable runtime is not verified, not evidence. For vector motion inspect raster-frame/embedded-image/vector-frame bloat, geometry, keyframes, size, scaling, clipping, reduced-motion and interruption. For material 3D inspect declared PBR/NPR/hybrid intent, geometry/material/texture cost, actual input/depth/legibility, static/2D fallback, runtime memory and frame pacing. Use actual target budgets and profiling when relevant; neither screenshot nor a material label establishes cross-platform correctness.

Bend scope (conditional)

Reviewed LAWS.bend + actual PROOF.bend
  → scripts/factory proof: passed for the law/proof pair (not smoke)
    → Production implementation
      → Model-to-production conformance + unhappy/effect paths

Changes to a law, normative model assumptions, compiler or relevant implementation invalidate affected evidence. A model proof does not certify external effects or independent production code. Report uncovered behavior explicitly.

Acceptance guard: claim accepted ⇒ observed relevant evidence at inspected revision. Passing tests support their tested scope, not comprehensive correctness.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.