REST and GraphQL testing, Postman/Insomnia patterns, contract testing, schema validation, and monitoring

MITAuto-check passedTesting & QA

Install API Testing

skills CLI
$ npx skills add cosmicstack-labs/mercury-agent-skills --skill api-testing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cosmicstack-labs/mercury-agent-skills api-testing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cosmicstack-labs/mercury-agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/categories/testing-qa/api-testing .claude/skills/api-testing && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
api-testing
GitHub stars
476
Token cost
~449 tokens
SKILL.md length
121 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

REST and GraphQL testing, Postman/Insomnia patterns, contract testing, schema validation, and monitoring

  • Tasks that involve API testing
  • SKILL.md covers Test Categories, REST API Testing, Contract Testing (Pact) and GraphQL Testing, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve GraphQL

What it does

API Testing is an agent skill from cosmicstack-labs/mercury-agent-skills. REST and GraphQL testing, Postman/Insomnia patterns, contract testing, schema validation, and monitoring

Its SKILL.md is about 450 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering API testing, GraphQL and Integration testing. It works with GraphQL and Postman. The repository describes itself as: A curated registry of reusable Mercury Agent, Open Claw or Hermes Agent skills designed for real developer workflows, persistent memory, and token-efficient execution. The licence is MIT.

When your agent uses it

  • Tasks that involve API testing
  • Tasks that involve GraphQL
  • Tasks that involve Integration testing

Example prompts

  • “/api-testing”

What it can do on your machine

Read from SKILL.md and the folder at commit 30392fb. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

API Testing loads about 449 tokens when it runs. Until then it costs about 29 tokens; SKILL.md has 121 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~29
When it runs · the whole SKILL.md, loaded when a task matches
~449

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from cosmicstack-labs/mercury-agent-skills at commit 30392fb, republished under its MIT licence (© cosmicstack-labs). 121 words, ~449 tokens.

Download SKILL.mdSave it as .claude/skills/api-testing/SKILL.md (or your agent's skills folder).
name
api-testing
description
REST and GraphQL testing, Postman/Insomnia patterns, contract testing, schema validation, and monitoring
metadata.author
cosmicstack-labs
metadata.version
1.0.0
metadata.category
testing-qa
metadata.tags
api, testing, rest, graphql, contract-testing

API Testing

Test REST and GraphQL APIs systematically.

Test Categories

CategoryWhatExample
FunctionalDoes it work?POST /users returns 201
ValidationInput handlingMissing required field → 400
AuthAccess controlNo token → 401
Edge CasesBoundary conditionsMax page size, empty results
ContractSchema conformanceResponse matches OpenAPI spec
PerformanceWithin SLOp95 < 500ms

REST API Testing

Structure
typescript
describe('POST /users', () => {
  it('creates a user with valid data', async () => {
    const res = await request(app)
      .post('/api/users')
      .send({ name: 'Alice', email: 'alice@test.com' });
    expect(res.status).toBe(201);
    expect(res.body).toHaveProperty('id');
  });
  it('rejects duplicate email', async () => {
    const res = await request(app)
      .post('/api/users')
      .send({ name: 'Alice', email: 'existing@test.com' });
    expect(res.status).toBe(409);
  });
});

Contract Testing (Pact)

  • Provider publishes OpenAPI spec
  • Consumer tests verify against published spec
  • CI rejects PR if contract breaks
  • Prevents API drift between services

GraphQL Testing

  • Test queries and mutations independently
  • Validate against schema
  • Test error paths (partial failures, null propagation)

API Monitoring

  • Synthetic checks every 5 minutes
  • Assert status, response time, required fields
  • Alert on SLA breaches
  • Monitor from multiple regions

© cosmicstack-labs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in categories/testing-qa/api-testing of cosmicstack-labs/mercury-agent-skills.

Open the folder on GitHubat commit 30392fb

Compare with similar skills

API Testing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

API Testing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
API Testing this skillcosmicstack-labs/mercury-agent-skills476—~449Automated safety check: PassMIT
API Testingpetrkindlmann/qa-skills163—~2.7kAutomated safety check: PassMIT
API Testingfugazi/test-automation-skills-agents247—~1.5kAutomated safety check: PassMIT
Qe Contract Testingproffesor-for-testing/agentic-qe494—~1.2kAutomated safety check: PassMIT
API Testingnaodeng/awesome-qa-skills243—~314Automated safety check: PassCustom licence
Use Yaakmountain-loop/yaak19k—~1.9kAutomated safety check: PassMIT

Similar skills

  • API Testing

    petrkindlmann/qa-skills

    Test REST and GraphQL APIs with Playwright APIRequestContext, Supertest, or standalone HTTP clients.

    163 GitHub stars~2.7k tokensUpdated 3 mo ago
    Testing & QAAuto-check passed
  • API Testing

    fugazi/test-automation-skills-agents

    Test REST and GraphQL endpoint contracts using Playwright request fixture (TypeScript) or REST Assured (Java).

    247 GitHub stars~1.5k tokensUpdated 4 days ago
    Testing & QAAuto-check passed
  • Qe Contract Testing

    proffesor-for-testing/agentic-qe

    Consumer-driven contract testing for APIs including REST, GraphQL, and event-driven systems with schema validation.

    494 GitHub stars~1.2k tokensUpdated 3 days ago
    Backend & APIsAuto-check passed
  • API Testing

    naodeng/awesome-qa-skills

    A skill your agent uses when you need to design API test plans or cases for REST, GraphQL, or gRPC interfaces; triggers include API 测试 and api testing.

    243 GitHub stars~314 tokensUpdated 11 days ago
    Testing & QAAuto-check passed
  • Use Yaak

    mountain-loop/yaak

    A skill your agent uses when the user mentions Yaak, a Yaak workspace, or the yaak command, or asks to call, hit, or smoke test HTTP/REST endpoints, save or organize API requests for reuse or manual…

    19k GitHub stars~1.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • Playwright E2E Testing

    fugazi/test-automation-skills-agents

    Author and maintain versioned Playwright (@playwright/test) TypeScript UI specs for browser user flows.

    247 GitHub stars~3.2k tokensUpdated 4 days ago
    Testing & QAAuto-check passed

More from cosmicstack-labs/mercury-agent-skills

All 12 skills in this repo
  • Before You Build

    cosmicstack-labs/mercury-agent-skills

    Use this before implementing a product, feature, SaaS, AI app, or side project to score product risk and choose the smallest validation step.

    476 GitHub stars~2.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Hyperframes CLI

    cosmicstack-labs/mercury-agent-skills

    HyperFrames CLI dev loop — project scaffolding, validation (lint/inspect), browser preview with live reload, MP4/WebM rendering, and environment troubleshooting (doctor, browser, info, upgrade).

    476 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Hyperframes Media

    cosmicstack-labs/mercury-agent-skills

    Asset preprocessing for HyperFrames compositions — local text-to-speech narration (Kokoro-82M, no API key), audio/video transcription (Whisper), and background removal for transparent overlays…

    476 GitHub stars~1.7k tokensUpdated 1 mo ago
    Auto-check passed
  • Agent Handoff Protocols

    cosmicstack-labs/mercury-agent-skills

    Design and implement agent-to-agent handoff protocols for multi-agent systems.

    476 GitHub stars~4.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Agent Health Monitoring

    cosmicstack-labs/mercury-agent-skills

    Monitor AI agent health, detect anomalies, set up alerting, and maintain observability dashboards for production multi-agent systems.

    476 GitHub stars~2.7k tokensUpdated 1 mo ago
    Auto-check passed
  • Agent Task Delegation

    cosmicstack-labs/mercury-agent-skills

    Design and operate task delegation systems for multi-agent fleets.

    476 GitHub stars~3.4k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about API Testing

What does API Testing do?

REST and GraphQL testing, Postman/Insomnia patterns, contract testing, schema validation, and monitoring. API Testing is an agent skill from cosmicstack-labs/mercury-agent-skills.

When should I use API Testing?

API Testing fits situations like: tasks that involve API testing; tasks that involve GraphQL; tasks that involve Integration testing.

How do I install API Testing in Claude Code?

Run `npx skills add cosmicstack-labs/mercury-agent-skills --skill api-testing -a claude-code`. Or copy the skill folder (categories/testing-qa/api-testing in cosmicstack-labs/mercury-agent-skills) into .claude/skills/api-testing in your project. Claude Code loads it when a task matches its description.

How do I install API Testing in Codex?

Run `npx skills add cosmicstack-labs/mercury-agent-skills --skill api-testing -a codex`. Or copy the skill folder (categories/testing-qa/api-testing in cosmicstack-labs/mercury-agent-skills) into .agents/skills/api-testing in your project. Codex loads it when a task matches its description.

Can I use API Testing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cosmicstack-labs/mercury-agent-skills --skill api-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/api-testing, .gemini/skills/api-testing, .github/skills/api-testing and .opencode/skills/api-testing in your project.

What does API Testing need to run?

SKILL.md names no scripts, command-line tools or credentials: API Testing is instructions for the agent only.

Does API Testing access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is API Testing safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does API Testing use?

API Testing is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does API Testing use?

About 449 tokens (SKILL.md is roughly 1.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to API Testing?

Skills that share tags, products or a category with API Testing: API Testing (petrkindlmann/qa-skills, 163 stars), API Testing (fugazi/test-automation-skills-agents, 247 stars), Qe Contract Testing (proffesor-for-testing/agentic-qe, 494 stars) and API Testing (naodeng/awesome-qa-skills, 243 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains API Testing?

cosmicstack-labs (a GitHub organization) maintains it in cosmicstack-labs/mercury-agent-skills, which has 476 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on August 25, 2026.

Source: cosmicstack-labs/mercury-agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.