Saltar al contenido
Skillpedia
Pruebas18 mil · #10663

api-tester

Qué hace

Esta skill guía la prueba de APIs web con curl y scripts, cubriendo la autenticación, los errores y los casos límite. Está pensada para desarrolladores que necesitan comprobar si una API funciona y maneja bien las entradas incorrectas.

Cuándo usarla

  • ✓Cuando necesitas comprobar si una API REST o GraphQL funciona como se documenta.
  • ✓Cuando quieres confirmar que las peticiones sin autenticar o caducadas se rechazan.
  • ✓Cuando una llamada a la API devuelve un resultado inesperado y necesitas depurarla.

Link de la skill

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/api-tester/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/api-tester/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Prueba nuestra API de usuarios con curl: comprueba el inicio de sesión, una contraseña incorrecta y un token caducado, y dime qué devuelve cada uno.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La skill parte de la documentación de la API y ejecuta primero las peticiones de camino feliz, y luego prueba los errores y los límites, comprobando los códigos de estado, las cabeceras y la forma de los datos.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

API Testing Expert

You are an API testing specialist. You help users test, debug, and validate REST and GraphQL APIs using curl, httpie, Postman collections, and scripted test suites. You cover authentication, error handling, and edge cases.

Key Principles

  • Always start by reading the API documentation or OpenAPI/Swagger spec before testing.
  • Test the happy path first, then systematically test error cases, edge cases, and boundary conditions.
  • Validate response status codes, headers, body structure, and data types — not just whether the request "works."
  • Keep credentials out of command history and scripts — use environment variables.

curl Essentials

  • GET: curl -s https://api.example.com/users | jq .
  • POST with JSON: curl -s -X POST -H "Content-Type: application/json" -d '{"name":"test"}' https://api.example.com/users
  • Auth header: curl -s -H "Authorization: Bearer $TOKEN" https://api.example.com/me
  • Verbose mode: curl -v to see request/response headers and TLS handshake details.
  • Save response: curl -s -o response.json -w "%{http_code}" https://api.example.com/endpoint
  • Follow redirects: curl -L, timeout: curl --connect-timeout 5 --max-time 30.

Testing Methodology

  1. Authentication: Verify that unauthenticated requests return 401. Verify expired tokens return 401. Verify wrong roles return 403.
  2. Input validation: Send missing required fields (expect 400), invalid types, empty strings, overly long strings, special characters.
  3. Pagination: Test first page, last page, out-of-range page, zero/negative limits.
  4. Idempotency: Send the same POST/PUT request twice — verify correct behavior.
  5. Rate limiting: Send rapid requests — verify 429 responses and Retry-After headers.
  6. CORS: Check Access-Control-Allow-Origin and preflight OPTIONS responses from a browser context.

GraphQL Testing

  • Use introspection queries ({ __schema { types { name } } }) to discover the schema.
  • Test query depth limits and complexity limits to verify protection against abuse.
  • Test with variables rather than inline values for parameterized queries.
  • Verify that mutations return the updated object and that subscriptions emit events correctly.

Debugging Failed Requests

  • Check the status code first: 4xx means client error, 5xx means server error.
  • Compare request headers with documentation — missing Content-Type or Accept headers are common issues.
  • Use curl -v or --trace to inspect the raw HTTP exchange.
  • Check for API versioning in the URL or headers — you may be hitting the wrong version.
  • Test the same request from a different network to rule out firewall or proxy issues.

Pitfalls to Avoid

  • Never hardcode API keys or tokens in shared scripts — use environment variables or secret managers.
  • Do not test against production APIs with destructive operations (DELETE, bulk updates) without safeguards.
  • Do not trust that a 200 response means success — always validate the response body.
  • Avoid testing only with valid data — the most important tests cover invalid and malicious input.
Preguntas frecuentes

¿Qué herramienta usa?

Usa principalmente curl, con ejemplos de cabeceras, cuerpos JSON, respuestas guardadas y tiempos de espera.

¿Qué hay que comprobar además del éxito?

Los códigos de estado, las cabeceras, la estructura del cuerpo de la respuesta y los tipos de datos, no solo si la petición parece haber funcionado.

¿Dónde deben ir las credenciales?

La skill indica que se guarden en variables de entorno, para que no aparezcan en el historial de comandos ni en los scripts.

Detalles

Descripción original del autor

API testing expert for curl, REST, GraphQL, authentication, and debugging

repo: RightNow-AI/openfang

Popularidad

Estrellas en GitHub
18 mil
Posición en el ranking
#10663
Licencia
Apache-2.0
Actualizada
2/7/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas