All skills
boshu2 avatar

/test

@c655850
by Boboshu2/agentops446 stars
42

Write behavioral tests, practice TDD or inspect important coverage gaps. Use when: test design or missing proof needs work; running an existing suite needs no skill.

Use this Skill: https://skilld.dev/gh/boshu2/agentops/test

This session only. Nothing lands on disk.

referencesgolden-artifact-strategy.md

≈503 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Golden Artifact Strategy

Use this reference before accepting changes to snapshots, generated reports, rendered docs, CLI output fixtures, or other checked-in artifacts that define a behavior contract.

Strategy

Golden artifacts are useful when the artifact itself is the interface. They are weak when the output is volatile, host-specific, or easier to assert through a structured parser.

Choose one comparison mode up front:

Mode Use When Required Guard
Exact Bytes are intentionally stable Deterministic generator and stable inputs.
Scrubbed Output has timestamps, paths, or IDs Scrubber covers every volatile field.
Structured JSON/YAML/CSV can be parsed Canonical ordering before comparison.
Shape Values are intentionally variable Required keys and types are asserted.
Diff review Human-readable artifact changed Diff is attached to the validation note.

Update Rules

Do not refresh a golden artifact just to make a test pass.

  1. Run the current test and inspect the diff.
  2. Identify the source change that produced the diff.
  3. Decide whether the diff is intended behavior, fixture drift, or a bug.
  4. Update the artifact only for intended behavior or fixture drift.
  5. Add a short note explaining why the new artifact is accepted.

Review Checklist

  • Dynamic fields are scrubbed or parsed away.
  • The fixture input is checked in near the artifact or named in the test.
  • The test fails on missing fields, extra unknown fields, and wrong exit codes when those are part of the contract.
  • The update command is documented in the test or nearby fixture comment.

Output

Add an acceptance table to .agents/scratch/tests/summary.md when golden files change:

## Golden Artifact Review

| Artifact | Decision | Evidence |
|---|---|---|
| <path> | accepted/rejected | <diff or command> |

Source: Adapted from an external skill corpus / testing-golden-artifacts. Pattern-only, no verbatim text.

Source: SKILL.md on GitHub

No alerts8d4 checks · Risk SAFE
  • Gen Agent Trust Hub8d

    The skill establishes a framework for behavioral testing, TDD, and coverage analysis. It includes robust security-conscious guidelines for integration testing and fuzzing, with explicit instructions to use sandbox environments and non-production credentials. No malicious patterns or security risks were identified.

  • Socket8d

    No alerts

  • Snyk8d

    Risk: LOW · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at c655850. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 20 hours ago.

Activeupdated 3 weeks ago

README badge

README badge for boshu2/agentops/test