Api Test Generate

🌐Community
by manastalukdar · vlatest · Repository

Helps with API, testing, code generation as part of agent workflows workflows.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add api-test-generate npx -- -y @trustedskills/api-test-generate
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "api-test-generate": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/api-test-generate"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill generates API test cases based on a given OpenAPI specification or a description of an API endpoint. It can create tests in various formats, including JSON and YAML, to verify functionality and ensure proper integration. The generated tests are designed to cover common scenarios like successful responses, error handling, and boundary conditions.

When to use it

  • Automated Testing: Quickly generate test cases for new or existing APIs without manual effort.
  • API Documentation Validation: Create tests that align with your API documentation, ensuring accuracy and completeness.
  • Integration Testing: Develop tests to verify the interaction between different systems using an API.
  • Regression Testing: Generate a baseline set of tests to ensure changes don't break existing functionality.

Key capabilities

  • Generates test cases from OpenAPI specifications.
  • Creates test cases based on textual descriptions of API endpoints.
  • Supports multiple output formats (JSON, YAML).
  • Covers common testing scenarios (success, error handling, boundaries).

Example prompts

  • "Generate JSON tests for the /users endpoint described in this OpenAPI spec: [paste spec here]"
  • "Create YAML test cases for an API that accepts a POST request to /orders with these parameters: [describe parameters]."
  • “Give me some basic tests for an API endpoint that retrieves product information by ID.”

Tips & gotchas

  • The quality of the generated tests depends heavily on the clarity and completeness of the OpenAPI specification or description provided. Ambiguous descriptions will lead to less effective test cases.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
manastalukdar
Installs
3

🌐 Community

Passed automated security scans.