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.

referencesfuzzing.md

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

Fuzzing

Use this reference when /test targets parsers, serializers, file readers, protocol decoders, untrusted input handlers, state machines, or security-sensitive validation logic.

Trigger

Prioritize fuzzing for code that accepts:

  • Raw bytes, strings, JSON, YAML, XML, CSV, or custom formats.
  • Network request bodies, CLI arguments, file contents, or environment input.
  • Deserialized objects from untrusted boundaries.
  • State transition sequences where operation order matters.

Rules

  • Keep fuzz targets deterministic.
  • Minimize external I/O inside fuzz functions.
  • Add seed corpus entries for known edge cases before relying on random discovery.
  • Assert invariants, not implementation details.
  • Save every crash or regression input as a stable fixture.

Target Template

Every fuzz target needs:

  1. A small wrapper around the real public function.
  2. A seed corpus with valid, invalid, empty, boundary, and previously broken inputs.
  3. At least one invariant:
    • no panic
    • valid input round-trips
    • invalid input returns an error
    • output remains canonical
    • resource use stays bounded

Triage

When fuzzing finds a failure:

  1. Minimize the input.
  2. Add it as a named regression fixture.
  3. Write a normal unit test for the minimized case.
  4. Fix the bug.
  5. Re-run fuzzing and the regression test.

Output

Record fuzz coverage in .agents/scratch/tests/summary.md:

## Fuzz Targets

| Target | Corpus Seeds | Duration | Findings |
|---|---:|---:|---|
| <target> | <n> | <time> | <none or issue> |

Source: Adapted from an external skill corpus / testing-fuzzing. 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 yesterday.

Activeupdated 3 weeks ago

README badge

README badge for boshu2/agentops/test