api-test

api-test is a skill for Claude Code, Codex from nntan90/qa-skill-suite. It costs 164 tokens per session (8,448 once invoked), scanned B, original, MIT.

A testing guide for REST and GraphQL APIs, database queries, and service contracts. It also covers authentication, access control, mobile backends, response schemas, and error handling.

In plain words
What is it for?
Use it to test HTTP endpoints, validate REST or GraphQL response contracts, check authentication and access rules, test database behavior, or verify API errors.
Why use it?
It helps catch failures in normal requests, invalid input, permissions, database interactions, and agreements between services. It emphasizes explaining why each test matters and checking more than the happy path.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { app } from '../app';.

Good fit Use it to test HTTP endpoints, validate REST or GraphQL response contracts, check authentication and access rules, test database behavior, or verify API errors.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/nntan90/qa-skill-suite
agentmods
npx agentmods add skills/nntan90/qa-skill-suite/api-test

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/nntan90/qa-skill-suite/api-test/github.svg)](https://agentmods.dev/skills/nntan90/qa-skill-suite/api-test)
Your own site
<a href="https://agentmods.dev/skills/nntan90/qa-skill-suite/api-test"><img src="https://agentmods.dev/badge/skills/nntan90/qa-skill-suite/api-test/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/nntan90/qa-skill-suite/api-test"><img src="https://agentmods.dev/badge/skills/nntan90/qa-skill-suite/api-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 164 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,448 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00164 $0.08448
Opus 5.5 $0.00066 $0.03379
Sonnet 5.5 $0.00033 $0.01690
Haiku 4.5 $0.00016 $0.00845

Measured 2mo ago against content hash f6b2f4652d94, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

api-test scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

response = requests.post( "https://api.example.com/graphql",

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

response = requests.post(
api-test/SKILL.md · 1,005 lines

How it starts

The opening of the file, as written. The whole thing — 1,005 lines — stays where its author put it; the contents beside it link to each section on GitHub.

API Test Skill

REST · GraphQL · Database · Contract · Mobile API

When to Use This Skill

  • User has an API endpoint to test (REST or GraphQL)
  • User wants schema/contract validation
  • User wants to test auth flows, RBAC, IDOR
  • User wants database-level testing
  • User wants to test mobile backend APIs

Agent Persona

Act like a senior QA engineer with 20 years of experience.

  • Use plain, clear English. Short sentences. No robot language.
  • Be direct. If something is wrong or missing, say it straight.
  • Share real experience. Say things like: "I've seen this miss bugs in production before" or "Most teams skip this, but it matters."
  • Always explain WHY a test matters, not just what to do.
  • Point out risks even when the user didn't ask.

Language standard: Write all output in B1-level English. Simple words. Active voice. One idea per sentence.


Output Review Loop

After producing any output, the agent MUST run this self-check and include the result at the bottom.

My Self-Check:
  [ ] Happy path — covered
  [ ] Error / failure cases — at least 2 covered
  [ ] Boundary values — covered (if numbers or ranges exist)
  [ ] Empty / null / zero inputs — covered
  [ ] Auth / permission — covered (if feature has login)
  [ ] Nothing obvious missing that a real user would try
  [ ] Output is complete — no "TODO" or "add more" placeholders

Verdict: COMPLETE / INCOMPLETE
If INCOMPLETE — what I still need to add: [list]

Input Schema

Collect ALL mandatory fields before generating tests. Ask if not provided.

INPUT REQUIRED:
  # --- Mandatory ---
  endpoint:               # HTTP method + path. e.g., "POST /api/users"
                          # Multiple endpoints: list all

  # --- Strongly Recommended ---
  request_spec:           # Describe the request:
                          # headers: [Authorization: Bearer, Content-Type: application/json]
                          # body fields: [{name, type, required, constraints}]
                          # path params: [{name, type}]
                          # query params: [{name, type, optional}]

  response_spec:          # Expected response(s):
                          # success: {status: 201, body_fields: [id, name, email, createdAt]}
                          # errors:  [{status: 422, when: "email missing"}, ...]

  auth_type:              # none | bearer_token | api_key | session_cookie | oauth2 | basic
                          # Default: bearer_token

  language:               # python | typescript | javascript | java | go | csharp
                          # Default: detect from context or python

  # --- Optional ---
  base_url:               # e.g., http://localhost:8000
                          # Default: http://localhost:8000

  user_roles:             # Roles to test RBAC with. e.g., [admin, user, guest]

  schema_definition:      # OpenAPI spec snippet OR JSON schema for response validation

  test_db:                # true | false — also verify DB state after mutations
                          # Default: false

  existing_tests:         # Paste existing test code to detect gaps

  special_scenarios:      # e.g., ["concurrent requests", "large payload", "unicode in name"]

Read the full file on GitHub · 1,005 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 1,005 lines · 164 tokens per session scan B f6b2f4652d94

Subscribe to this mod's changes

api-test is a skill published in the GitHub repository nntan90/qa-skill-suite (5 stars, last pushed 6mo ago), licensed MIT. It adds 164 tokens to every session and 8,448 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

server-side-calls

Call tRPC procedures directly from server code using t.createCallerFactory() and router.createCaller(context) for integration testing, internal server logic, and custom API endpoints. Catch TRPCError and extract HTTP status with getHTTPStatusCodeFromError(). Error handling via onError option.

trpc/trpc · 61 tokens

mem0-test-integration

Verify a Mem0 integration produced by /mem0-integrate. Runs in the same workspace on the same branch (loose coupling) — installs dependencies, runs the repo's native test suite, then exercises a real end-to-end smoke flow against the user's API key. Produces a scorecard. TRIGGER when: user has just run /mem0-integrate…

mem0ai/mem0 · 207 tokens

prowler-test-api

Testing patterns for Prowler API: JSON:API, Celery tasks, RLS isolation, RBAC. Trigger: When writing tests for api/ (JSON:API requests/assertions, cross-tenant isolation, RBAC, Celery tasks, viewsets/serializers).

prowler-cloud/prowler · 62 tokens

python-sdk

Implement or modify Python SDK behavior under python/composio, including tools, toolkits, sessions, auth configs, connected accounts, client integration, and shared Python models. Use for Python core runtime/API work; pair with python-testing and cross-sdk-parity when TypeScript must match.

ComposioHQ/composio · 60 tokens

voiden

Create and edit Voiden .void files for API testing. Covers the .void file format and all enabled extension block types.

VoidenHQ/voiden · 28 tokens

convex-test

Generate convex-test tests for the app's Convex functions.

openclaw/clawhub · 16 tokens