agentleFS
bruuuuucebruuuuuce/mana/skills/api-test-validation/SKILL.md

api-test-validation

Skill2 starsChanged 4 months agoMITView on GitHub

Authors and executes explicitly approved Newman API testbook entries against isolated test targets, preserving access-controlled request evidence and redacted reports.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use when API requirements, OpenAPI/collection evidence, or existing automated requests must become repeatable regression or integration …

    line 49
  2. Distinctive:

    Read API requirements and source references.

    line 53
  3. Very specific:

    Write an API testbook proposal, run report, artifact references, and learning proposal.

    line 69
  4. Very specific:

    Follow docs/standards/agent-skill-output-standard.md (Agent And Skill Output Standard).

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

API Test Validation

Purpose

Build and execute a bounded API testbook for isolated test targets. The agent selects approved IDs; the runner resolves a local Newman collection and never accepts a URL, request body, credentials, or shell command from the agent.

When To Use It

Use when API requirements, OpenAPI/collection evidence, or existing automated requests must become repeatable regression or integration validation.

Workflow

  1. Read API requirements and source references; record only secret references.
  2. Propose one catalog entry per collection scenario with deterministic status, schema, and negative-path assertions. Keep it unapproved.
  3. Require owner approval of target, data reset, and entries.
  4. Execute selected entries through scripts/run-api-testbook.sh.
  5. Produce a redacted report and an approval-required learning proposal.

Rules

  • Target classification must be isolated_test; production and unknown targets are blocked.
  • Newman collection and environment files are local repository artifacts.
  • Credentials and sensitive request/response data remain outside the catalog and must not appear in reports. Raw artifacts are access-controlled.
  • A failing request is not proof of an API regression without cause evidence.

Outputs

Write an API testbook proposal, run report, artifact references, and learning proposal. Use templates/api-testbook.template.yaml.

Decision Rules

  • passed: Newman exits successfully and expected report files exist.
  • failed: the approved collection command exits non-zero.
  • blocked: target, approval, collection, environment, or policy gate fails.
  • inconclusive: evidence cannot isolate product, contract, data, or environment cause.

Output Standard

Follow docs/standards/agent-skill-output-standard.md (Agent And Skill Output Standard). Use compact caveman mode and a context budget: keep source references, IDs, artifacts, gaps, and cause hypotheses, never raw payloads, tokens, or logs.

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.