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-artifacts.md

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

Golden Artifacts

Use this reference when /test must protect generated files, rendered output, snapshots, reports, command output, or serialized data.

When Golden Tests Fit

Golden tests are useful when humans care about the exact artifact or when downstream tooling depends on stable shape.

Good targets:

  • Generated markdown, JSON, YAML, CLI help, reports, and manifests.
  • Rendered templates after dynamic fields are scrubbed.
  • Cross-platform output after path and newline normalization.
  • Structured output that can be canonicalized before comparison.

Avoid golden tests for volatile output that has no stable contract.

Golden Modes

Mode Description
Exact Byte-for-byte comparison after deterministic generation.
Scrubbed Replace timestamps, temp paths, UUIDs, hashes, and host-specific values before comparing.
Semantic Parse into structured data and compare canonical JSON or sorted fields.
Fuzzy numeric Allow explicit tolerance for floats, timing, or benchmark-like values.
Shape-only Assert required keys and types when full values are intentionally variable.

Update Discipline

Never update golden files as the first move.

  1. Run the test and inspect the diff.
  2. Decide if the diff is intended.
  3. If intended, update the golden file and mention why in the summary.
  4. If unintended, fix the generator or source data.

Output

Add this to .agents/scratch/tests/summary.md when golden files change:

## Golden Changes

| Artifact | Verdict | Reason |
|---|---|---|
| <path> | accepted/rejected | <why> |

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