cosmicstack-labs/api-testing
REST and GraphQL testing, Postman/Insomnia patterns, contract testing, schema validation, and monitoring
npx skills add https://github.com/cosmicstack-labs/mercury-agent-skills --skill api-testing
Test REST and GraphQL APIs systematically.
| Category | What | Example |
|----------|------|---------|
| Functional | Does it work? | POST /users returns 201 |
| Validation | Input handling | Missing required field → 400 |
| Auth | Access control | No token → 401 |
| Edge Cases | Boundary conditions | Max page size, empty results |
| Contract | Schema conformance | Response matches OpenAPI spec |
| Performance | Within SLO | p95 < 500ms |
describe('POST /users', () => {
it('creates a user with valid data', async () => {
const res = await request(app)
.post('/api/users')
.send({ name: 'Alice', email: '[email protected]' });
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: '[email protected]' });
expect(res.status).toBe(409);
});
});
Take cosmicstack-labs/api-testing from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.