Skip to content
Back to skills

Api Test Supertest

ASecurity

Use this skill when you need to parse multi-format API definitions and generate executable Supertest scripts; triggers include Supertest, Node.js API testing, and Supertest automation.

  • 313 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 6, 2026
ai-agentsgonodetestinggitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 6, 2026

npx -y skills add naodeng/awesome-qa-skills --skill api-test-supertest --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Test Supertest?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Test Supertest
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/naodeng-api-test-supertest/badge)](https://www.skillsdirectory.com/skills/naodeng-api-test-supertest)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: api-test-supertest
description: Use this skill when you need to parse multi-format API definitions and generate executable Supertest scripts; triggers include Supertest, Node.js API testing, and Supertest automation.
license: PolyForm-Noncommercial-1.0.0
metadata:
  version: "1.0.0"
  compatibility: ""
  author: "Awesome QA Skills contributors"
  language: "en"
  category: "testing-types"
  source: "https://github.com/naodeng/awesome-qa-skills"
  license-url: "https://polyformproject.org/licenses/noncommercial/1.0.0"
---

# api-test-supertest (EN)

**Chinese version:** See the corresponding Chinese skill.

## When to Use

- Need API outputs that should land in Supertest based automation.
- The project is Node.js-based or already uses Supertest/Jest.

## Generation and execution boundary

Generators produce smoke assertions for known fields only: require nonempty endpoints and explicit expected_statuses; optional expected_json and sourced max_response_ms. Missing data, unresolved parameters/variables, or schema assertions produce incomplete scaffolds and a nonzero exit. Read `references/generator-contract.md`; configure target and credentials explicitly.

## Workflow

1. Read and follow the main prompt listed under Progressive disclosure (coverage, structure, quality bar).
2. Add only project context that changes the result: scope, environment, constraints, risks, dependencies, expected deliverable.
3. If input is incomplete, return a usable first draft and explicitly mark assumptions and gaps.
4. Default to Markdown; switch formats only when the user asks.

## Core Constraints

- Prioritize by risk / business impact — do not treat everything equally.
- Separate confirmed facts from current assumptions.
- Do not invent endpoints, fields, environments, or root causes the user did not provide.
- Use placeholders or env-var semantics for auth/secrets; never hardcode real credentials.
- Keep output executable: concrete scenarios, clear priority, clear next steps.

## Progressive Disclosure

- Before producing output, read and follow `prompts/api-test-supertest.md` (minimum coverage, output structure, quality bar).
- When a ready-made template fits: use matching files under `output-templates/`.
- When the user wants examples or alignment with existing assets: read relevant `examples/`.
- For deep framework/troubleshoot/schema notes: read only the relevant file(s) under `references/`, do not load the whole directory.
- For format conversion or helper checks: prefer existing `scripts/` over reinventing.
- For evaluating/regressing this skill: use `evals/` with skill-up.

## Pre-delivery Checklist

- [ ] Followed the main prompt's output structure
- [ ] Minimum coverage focus: suite structure, environment setup, auth handling, priority endpoints, positive scenarios, negative and boundary scenarios, assertion focus, data strategy, ... (details in main prompt)
- [ ] Covered the minimum checklist, or explained omissions
- [ ] High-risk items have explicit priority
- [ ] Did not invent details the user did not provide
- [ ] Assumptions and gaps are marked

## Common Pitfalls

- Do not pretend completeness when scope/context is missing.
- Do not treat every item as equally important.
- Do not skip assumptions and information gaps.
- Do not dump generic theory unrelated to the current toolchain.

Files in this skill

  • README.md812 B
  • SKILL.md3.3 KB
  • agents/openai.yaml482 B
  • evals/cases/basic-success.yaml933 B
  • evals/cases/edge-bad-or-neighbor.yaml721 B
  • evals/cases/edge-incomplete-input.yaml655 B
  • evals/cases/review-repair-regression.yaml1.3 KB
  • evals/eval.yaml607 B
  • evals/graders/review-repair-regression.py1.1 KB
  • examples/bruno/sample.bru137 B
  • examples/ci/Jenkinsfile.supertest545 B
  • examples/ci/github-actions-supertest.yml655 B
  • examples/sample.curl212 B
  • examples/sample.insomnia.json502 B
  • examples/sample.openapi.yaml240 B
  • examples/sample.opencollection.json243 B
  • examples/sample.postman_collection.json828 B
  • examples/sample.wsdl534 B
  • output-templates/template-markdown.md83 B
  • prompts/api-test-supertest.md5.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.