SkillAgentSearch skills...

api-test-plan

Plan tests for an API endpoint or service — functional, negative, and contract

Install / Use

npx skills add mohitagw15856/pm-claude-skills --skill api-test-plan

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

79/100

Category

Legal

Supported Platforms

Universal

Our assessment of api-test-plan

api-test-plan scores 79/100 on our quality scale, 141st of 177 Legal skills we index.

Its SKILL.md is 4.1 KB long, well organised into 8 sections and no code examples: a solid amount of guidance for an agent.

With 1,396 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
26/30
Structure
13/20
Description
12/15
Adoption
13/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 6 days ago, so api-test-plan is actively maintained.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

api-test-plan compared with similar skills

All 4 of these similar skills score higher than api-test-plan; compare them before choosing.

SkillScoreStarsUpdatedFormat
api-test-plan (this skill)by mohitagw15856791.4k6d agoSKILL.md
Agent-Reachby Panniantong10086.4k15d agoCLAUDE.md
headroomby headroomlabs-ai10074.2ktodayCLAUDE.md
Scraplingby D4Vinci10084.6k1d agoMCP Server
crawl4aiby unclecode10084.5k5d agoMCP Server

Frequently asked questions

How do I install api-test-plan?
Run npx skills add mohitagw15856/pm-claude-skills --skill api-test-plan. The install tabs above show the steps for each supported agent.
Which AI agents does api-test-plan work with?
It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
Is api-test-plan safe to use?
It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is api-test-plan still maintained?
The repository was last updated 6 days ago, so api-test-plan is actively maintained.

name: api-test-plan description: "Plan tests for an API endpoint or service — functional, negative, and contract. Use when asked to test an API, write API test cases, plan REST/GraphQL endpoint testing, or validate an API contract. Produces an API test plan — per-endpoint cases (status codes, schema, auth, validation, errors), boundary/negative cases, contract checks, and non-functional notes — so the API is verified beyond the happy 200."

API Test Plan Skill

APIs fail in specific, testable ways: wrong status codes, schema drift, missing auth checks, sloppy validation, unhelpful errors. This skill plans the tests that catch them — per endpoint, across the response codes and the error paths, with contract checks so the API keeps its promises to clients. It tests the whole behaviour, not just the happy 200.

Working from a brief

Given an endpoint or an API description, produce the test plan anyway — infer the likely parameters, responses, auth model, and error cases, labelling assumptions. Always include auth, validation, and negative cases. Never hand back a question instead of a plan.

Required Inputs

Ask for these only if they aren't already provided (else infer and label):

  • The API — REST/GraphQL, the endpoints/operations, and what they do.
  • Contract — request/response schemas, parameters, status codes (or an OpenAPI/spec if available).
  • Auth & rules — the auth model (token/scopes/roles), rate limits, and validation rules.
  • Dependencies & data — downstream services, and the data/state needed to test.

Output Format

API Test Plan: [API / endpoint]

Per endpoint, a set of cases grouped by type:

| ID | Endpoint | Case | Type | Request | Expected status | Expected body / assertion | |---|---|---|---|---|---|---| | API-01 | POST /orders | valid create | Functional | valid payload | 201 | body matches schema, id returned | | API-02 | POST /orders | missing field | Validation | partial payload | 400 | error names the field | | API-03 | POST /orders | no token | Auth | valid payload, no auth | 401 | not created | | API-04 | POST /orders | wrong role | Authz | valid payload, wrong scope | 403 | not created | | API-05 | GET /orders/{id} | not found | Negative | unknown id | 404 | error body |

Cover deliberately: happy path (correct status + schema), validation (missing/invalid/extra fields, types, boundaries), auth/authz (no token, expired, wrong scope/role), negative (not found, conflict, bad method), idempotency/concurrency where relevant, and errors (correct codes + helpful, consistent error bodies).

Contract checks — responses conform to the schema; required fields, types, and status codes match the spec; backward compatibility for existing clients.

Non-functional notes — rate limiting, pagination, large payloads, latency expectations, and security basics (no sensitive data leakage, proper status for unauthorised).

Setup — test data, environment, and any mocks/stubs for dependencies.

Quality Checks

  • [ ] Each endpoint is tested beyond 200 — error codes (4xx/5xx) and their bodies are asserted
  • [ ] Auth and authorization cases are included (no token, expired, wrong scope/role)
  • [ ] Validation/boundary/negative cases cover missing, invalid, and extra inputs
  • [ ] Responses are checked against the schema/contract, incl. backward compatibility
  • [ ] Status codes match the spec and are used correctly (e.g. 401 vs. 403, 400 vs. 422)
  • [ ] Non-functional aspects (rate limits, pagination, data leakage) are noted

Anti-Patterns

  • [ ] Do not test only the happy 200 — most API bugs are in validation, auth, and error paths
  • [ ] Do not ignore the response schema — a 200 with the wrong body still breaks clients
  • [ ] Do not skip authz (role/scope) testing — "logged in" isn't "allowed"
  • [ ] Do not assert only status codes — check the body/contract too
  • [ ] Do not overlook error-body quality and correct status semantics (401 vs 403, 400 vs 404)

Based On

API testing practice — contract/schema validation, status-code correctness, auth/authz coverage, and negative/boundary testing beyond the happy path.

Related Skills

View on GitHub
GitHub Stars1.4k
CategoryLegal
Updated6d ago
Forks249

Languages

HTML

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions