Creator · secondsky
Last updated · Sep 6, 2026
HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, GraphQL, request/response validation, authentication, and error handling.
Creator · secondsky
Last updated · Sep 6, 2026
HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, GraphQL, request/response validation, authentication, and error handling.
Creator · secondsky
Last updated · Sep 6, 2026
HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, GraphQL, request/response validation, authentication, and error handling.
Creator · secondsky
Last updated · Sep 6, 2026
HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, GraphQL, request/response validation, authentication, and error handling.
Do not auto-install
Install targets
Codex install prompt
Install the "api-testing" agent skill from https://github.com/secondsky/claude-skills/tree/main/plugins/api-testing/skills/api-testing. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, GraphQL, request/response validation, authentication, and error handling. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"secondsky-api-testing","task":"Install api-testing","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Testing and QA
I need my agent to test a web app, reproduce bugs, and verify fixes.
Agent fit
Claude Code + Browser agents + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add secondsky/claude-skills --skill api-testing
Maintenance
fresh
3d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
214
70/100 Quality · 67/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Do not auto-installTrust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Choose a stronger alternative or inspect the source manually before any install attempt.
Stars
214 GitHub stars
Repo activity
214 stars, 31 forks
Maintenance
3d since push
License
MIT
Install
npx skills add secondsky/claude-skills --skill api-testing
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add secondsky/claude-skills --skill api-testingDo not use when
Alternative
168.6K Stars
npx skills add mattpocock/skills --skill code-review
Alternative
40.8K Stars
npx skills add appsmithorg/appsmith
Alternative
175.7K Stars
npx skills add mattpocock/skills --skill implement
Alternative
30.9K Stars
npx skills add vercel-labs/agent-skills --skill vercel-react-best-practices
Agent safety v2
This skill should not be selected by an agent without explicit human security review.
Do not auto-install. Inspect the source, dependencies, and permission surface first.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20api-testing%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20api-testing%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/secondsky-api-testing/install
Agent should check
Copy prompt
Task: Use api-testing in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20api-testing%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/secondsky-api-testing/install
Install command: npx skills add secondsky/claude-skills --skill api-testing
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/secondsky-api-testing/install
LLM text format
/api/skills/secondsky-api-testing/install?format=text
Find alternatives
/api/skills/search?q=api-testing&limit=3
Agent prompt
Use api-testing for this task. Review https://www.openagentskill.com/api/skills/secondsky-api-testing/install, then install with: npx skills add secondsky/claude-skills --skill api-testingRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/secondsky-api-testing
LLM text
/api/registry/manifest/secondsky-api-testing?format=text
Install alias
/api/registry/install/secondsky-api-testing
Recommend
/api/registry/recommend?task=Use%20api-testing%20in%20an%20agent%20workflow&limit=3
Agent fit
Browser automation
Use-case tags
Platforms
Claude Code, Browser agents
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
Browser automation
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Trust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
GitHub adoption
INFO214 GitHub stars
Stars/forks activity
CHECK214 stars, 31 forks; issue activity unavailable in current metadata
Recent maintenance
PASS3d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Choose a stronger alternative or inspect the source manually before any install attempt.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Verify behavior
I need my agent to test a web app, reproduce bugs, and verify fixes.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Workflow fit
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Alternative shortlist
Similar skills that may fit this task.
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
Implement work from an approved spec or ticket set, run focused and full tests, invoke code review, and commit the result to the current branch.
React and Next.js performance guidance for writing, reviewing, and refactoring production UI code.
--- name: api-testing description: HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, GraphQL, request/response validation, authentication, and error handling. allowed-tools: Bash, Read, Edit, Write, Grep, Glob, TodoWrite license: MIT ---
# API Testing
Expert knowledge for testing HTTP APIs with Supertest (TypeScript/JavaScript) and httpx/pytest (Python).
## TypeScript/JavaScript (Supertest)
### Installation
```bash # Using Bun bun add -d supertest @types/supertest
# or: npm install -D supertest @types/supertest ```
### Basic Setup
```typescript import { describe, it, expect } from 'vitest' import request from 'supertest' import { app } from './app'
describe('API Tests', () => { it('returns health status', async () => { const response = await request(app) .get('/api/health') .expect(200)
expect(response.body).toEqual({ status: 'ok' }) })
it('creates a user', async () => { const response = await request(app) .post('/api/users') .send({ name: 'John Doe', email: 'john@example.com' }) .expect(201)
expect(response.body).toMatchObject({ id: expect.any(Number), name: 'John Doe', }) })
it('validates required fields', async () => { await request(app) .post('/api/users') .send({ name: 'John Doe' }) .expect(400) }) }) ```
### Request Methods
```typescript // GET await request(app).get('/api/users').expect(200)
// POST with body await request(app) .post('/api/users') .send({ name: 'John' }) .expect(201)
// PUT await request(app) .put('/api/users/1') .send({ name: 'Jane' }) .expect(200)
// DELETE await request(app).delete('/api/users/1').expect(204) ```
### Headers and Query Parameters
```typescript // Set headers await request(app) .get('/api/protected') .set('Authorization', 'Bearer token123') .expect(200)
// Query parameters await request(app) .get('/api/users') .query({ page: 1, limit: 10 }) .expect(200) ```
### Authentication Testing
```typescript describe('Authentication', () => { let authToken: string
beforeAll(async () => { const response = await request(app) .post('/api/auth/login') .send({ email: 'user@example.com', password: 'password123' }) .expect(200)
authToken = response.body.token })
it('accesses protected endpoint', async () => { await request(app) .get('/api/protected') .set('Authorization', `Bearer ${authToken}`) .expect(200) })
it('rejects without token', async () => { await request(app).get('/api/protected').expect(401) }) }) ```
### Error Handling
```typescript it('handles validation errors', async () => { const response = await request(app) .post('/api/users') .send({ email: 'invalid-email' }) .expect(400)
expect(response.body).toMatchObject({ error: 'Validation failed', details: expect.any(Array), }) })
it('handles not found', async () => { await request(app).get('/api/users/999999').expect(404) }) ```
## Python (httpx + pytest)
### Installation
```bash uv add --dev httpx pytest-asyncio ```
### Basic Setup
```python import pytest from fastapi.testclient import TestClient from main import app
client = TestClient(app)
def test_health_check(): response = client.get("/api/health") assert response.status_code == 200 assert response.json() == {"status": "ok"}
def test_create_user(): response = client.post( "/api/users", json={"name": "John Doe", "email": "john@example.com"} ) assert response.status_code == 201 data = response.json() assert data["name"] == "John Doe" assert "id" in data
def test_not_found(): response = client.get("/api/users/999") assert response.status_code == 404 ```
### Fixtures
```python @pytest.fixture def auth_token(client): response = client.post( "/api/auth/login", json={"email": "user@example.com", "password": "password123"} ) return response.json()["token"]
def test_protected_endpoint(client, auth_token): response = client.get( "/api/protected", headers={"Authorization": f"Bearer {auth_token}"} ) assert response.status_code == 200 ```
### File Upload
```python def test_file_upload(client, tmp_path): test_file = tmp_path / "test.txt" test_file.write_text("test content")
with open(test_file, "rb") as f: response = client.post( "/api/upload", files={"file": ("test.txt", f, "text/plain")} )
assert response.status_code == 200 ```
## GraphQL Testing
```typescript it('queries GraphQL endpoint', async () => { const query = ` query GetUser($id: ID!) { user(id: $id) { id name email } } `
const response = await request(app) .post('/graphql') .send({ query, variables: { id: '1' } }) .expect(200)
expect(response.body.data.user).toMatchObject({ id: '1', name: expect.any(String), }) }) ```
## Performance Testing
```typescript it('responds within acceptable time', async () => { const start = Date.now() await request(app).get('/api/users').expect(200) const duration = Date.now() - start expect(duration).toBeLessThan(100) // 100ms threshold }) ```
## Best Practices
- Group related endpoints in `describe` blocks - Reset database between tests - Validate status codes first - Check response structure - Test error message format - Mock external services - Test both happy path and error cases
## See Also
- `vitest-testing` - Unit testing framework - `playwright-testing` - E2E API testing - `test-quality-analysis` - Test quality patterns
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for api-testing, ready for a manual X post.
api-testing: HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, Graph... 214 stars https://www.openagentskill.com/skills/secondsky-api-testing?ref=x
Listing + install path for api-testing: https://www.openagentskill.com/skills/secondsky-api-testing?ref=x Install: npx skills add secondsky/claude-skills --skill api-testing
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to secondsky but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/secondsky-api-testing?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/secondsky-api-testing?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/secondsky-api-testing/audit)
[](https://www.openagentskill.com/skills/secondsky-api-testing?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)secondsky
@secondsky
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Do not auto-install
Code Review
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
168.6K StarsAppsmith
Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
40.8K StarsImplement
Implement work from an approved spec or ticket set, run focused and full tests, invoke code review, and commit the result to the current branch.
175.7K StarsVercel React Best Practices
React and Next.js performance guidance for writing, reviewing, and refactoring production UI code.
30.9K StarsDo not auto-install
Install targets
Codex install prompt
Install the "api-testing" agent skill from https://github.com/secondsky/claude-skills/tree/main/plugins/api-testing/skills/api-testing. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, GraphQL, request/response validation, authentication, and error handling. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"secondsky-api-testing","task":"Install api-testing","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Testing and QA
I need my agent to test a web app, reproduce bugs, and verify fixes.
Agent fit
Claude Code + Browser agents + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add secondsky/claude-skills --skill api-testing
Maintenance
fresh
3d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
214
70/100 Quality · 67/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Do not auto-installTrust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Choose a stronger alternative or inspect the source manually before any install attempt.
Stars
214 GitHub stars
Repo activity
214 stars, 31 forks
Maintenance
3d since push
License
MIT
Install
npx skills add secondsky/claude-skills --skill api-testing
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add secondsky/claude-skills --skill api-testingDo not use when
Alternative
168.6K Stars
npx skills add mattpocock/skills --skill code-review
Alternative
40.8K Stars
npx skills add appsmithorg/appsmith
Alternative
175.7K Stars
npx skills add mattpocock/skills --skill implement
Alternative
30.9K Stars
npx skills add vercel-labs/agent-skills --skill vercel-react-best-practices
Agent safety v2
This skill should not be selected by an agent without explicit human security review.
Do not auto-install. Inspect the source, dependencies, and permission surface first.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20api-testing%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20api-testing%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/secondsky-api-testing/install
Agent should check
Copy prompt
Task: Use api-testing in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20api-testing%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/secondsky-api-testing/install
Install command: npx skills add secondsky/claude-skills --skill api-testing
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/secondsky-api-testing/install
LLM text format
/api/skills/secondsky-api-testing/install?format=text
Find alternatives
/api/skills/search?q=api-testing&limit=3
Agent prompt
Use api-testing for this task. Review https://www.openagentskill.com/api/skills/secondsky-api-testing/install, then install with: npx skills add secondsky/claude-skills --skill api-testingRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/secondsky-api-testing
LLM text
/api/registry/manifest/secondsky-api-testing?format=text
Install alias
/api/registry/install/secondsky-api-testing
Recommend
/api/registry/recommend?task=Use%20api-testing%20in%20an%20agent%20workflow&limit=3
Agent fit
Browser automation
Use-case tags
Platforms
Claude Code, Browser agents
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
Browser automation
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Trust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
GitHub adoption
INFO214 GitHub stars
Stars/forks activity
CHECK214 stars, 31 forks; issue activity unavailable in current metadata
Recent maintenance
PASS3d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Choose a stronger alternative or inspect the source manually before any install attempt.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Verify behavior
I need my agent to test a web app, reproduce bugs, and verify fixes.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Workflow fit
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Alternative shortlist
Similar skills that may fit this task.
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
Implement work from an approved spec or ticket set, run focused and full tests, invoke code review, and commit the result to the current branch.
React and Next.js performance guidance for writing, reviewing, and refactoring production UI code.
--- name: api-testing description: HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, GraphQL, request/response validation, authentication, and error handling. allowed-tools: Bash, Read, Edit, Write, Grep, Glob, TodoWrite license: MIT ---
# API Testing
Expert knowledge for testing HTTP APIs with Supertest (TypeScript/JavaScript) and httpx/pytest (Python).
## TypeScript/JavaScript (Supertest)
### Installation
```bash # Using Bun bun add -d supertest @types/supertest
# or: npm install -D supertest @types/supertest ```
### Basic Setup
```typescript import { describe, it, expect } from 'vitest' import request from 'supertest' import { app } from './app'
describe('API Tests', () => { it('returns health status', async () => { const response = await request(app) .get('/api/health') .expect(200)
expect(response.body).toEqual({ status: 'ok' }) })
it('creates a user', async () => { const response = await request(app) .post('/api/users') .send({ name: 'John Doe', email: 'john@example.com' }) .expect(201)
expect(response.body).toMatchObject({ id: expect.any(Number), name: 'John Doe', }) })
it('validates required fields', async () => { await request(app) .post('/api/users') .send({ name: 'John Doe' }) .expect(400) }) }) ```
### Request Methods
```typescript // GET await request(app).get('/api/users').expect(200)
// POST with body await request(app) .post('/api/users') .send({ name: 'John' }) .expect(201)
// PUT await request(app) .put('/api/users/1') .send({ name: 'Jane' }) .expect(200)
// DELETE await request(app).delete('/api/users/1').expect(204) ```
### Headers and Query Parameters
```typescript // Set headers await request(app) .get('/api/protected') .set('Authorization', 'Bearer token123') .expect(200)
// Query parameters await request(app) .get('/api/users') .query({ page: 1, limit: 10 }) .expect(200) ```
### Authentication Testing
```typescript describe('Authentication', () => { let authToken: string
beforeAll(async () => { const response = await request(app) .post('/api/auth/login') .send({ email: 'user@example.com', password: 'password123' }) .expect(200)
authToken = response.body.token })
it('accesses protected endpoint', async () => { await request(app) .get('/api/protected') .set('Authorization', `Bearer ${authToken}`) .expect(200) })
it('rejects without token', async () => { await request(app).get('/api/protected').expect(401) }) }) ```
### Error Handling
```typescript it('handles validation errors', async () => { const response = await request(app) .post('/api/users') .send({ email: 'invalid-email' }) .expect(400)
expect(response.body).toMatchObject({ error: 'Validation failed', details: expect.any(Array), }) })
it('handles not found', async () => { await request(app).get('/api/users/999999').expect(404) }) ```
## Python (httpx + pytest)
### Installation
```bash uv add --dev httpx pytest-asyncio ```
### Basic Setup
```python import pytest from fastapi.testclient import TestClient from main import app
client = TestClient(app)
def test_health_check(): response = client.get("/api/health") assert response.status_code == 200 assert response.json() == {"status": "ok"}
def test_create_user(): response = client.post( "/api/users", json={"name": "John Doe", "email": "john@example.com"} ) assert response.status_code == 201 data = response.json() assert data["name"] == "John Doe" assert "id" in data
def test_not_found(): response = client.get("/api/users/999") assert response.status_code == 404 ```
### Fixtures
```python @pytest.fixture def auth_token(client): response = client.post( "/api/auth/login", json={"email": "user@example.com", "password": "password123"} ) return response.json()["token"]
def test_protected_endpoint(client, auth_token): response = client.get( "/api/protected", headers={"Authorization": f"Bearer {auth_token}"} ) assert response.status_code == 200 ```
### File Upload
```python def test_file_upload(client, tmp_path): test_file = tmp_path / "test.txt" test_file.write_text("test content")
with open(test_file, "rb") as f: response = client.post( "/api/upload", files={"file": ("test.txt", f, "text/plain")} )
assert response.status_code == 200 ```
## GraphQL Testing
```typescript it('queries GraphQL endpoint', async () => { const query = ` query GetUser($id: ID!) { user(id: $id) { id name email } } `
const response = await request(app) .post('/graphql') .send({ query, variables: { id: '1' } }) .expect(200)
expect(response.body.data.user).toMatchObject({ id: '1', name: expect.any(String), }) }) ```
## Performance Testing
```typescript it('responds within acceptable time', async () => { const start = Date.now() await request(app).get('/api/users').expect(200) const duration = Date.now() - start expect(duration).toBeLessThan(100) // 100ms threshold }) ```
## Best Practices
- Group related endpoints in `describe` blocks - Reset database between tests - Validate status codes first - Check response structure - Test error message format - Mock external services - Test both happy path and error cases
## See Also
- `vitest-testing` - Unit testing framework - `playwright-testing` - E2E API testing - `test-quality-analysis` - Test quality patterns
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for api-testing, ready for a manual X post.
api-testing: HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, Graph... 214 stars https://www.openagentskill.com/skills/secondsky-api-testing?ref=x
Listing + install path for api-testing: https://www.openagentskill.com/skills/secondsky-api-testing?ref=x Install: npx skills add secondsky/claude-skills --skill api-testing
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to secondsky but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/secondsky-api-testing?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/secondsky-api-testing?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/secondsky-api-testing/audit)
[](https://www.openagentskill.com/skills/secondsky-api-testing?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)secondsky
@secondsky
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Do not auto-install
Code Review
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
168.6K StarsAppsmith
Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
40.8K StarsImplement
Implement work from an approved spec or ticket set, run focused and full tests, invoke code review, and commit the result to the current branch.
175.7K StarsVercel React Best Practices
React and Next.js performance guidance for writing, reviewing, and refactoring production UI code.
30.9K StarsDo not auto-install
Install targets
Codex install prompt
Install the "api-testing" agent skill from https://github.com/secondsky/claude-skills/tree/main/plugins/api-testing/skills/api-testing. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, GraphQL, request/response validation, authentication, and error handling. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"secondsky-api-testing","task":"Install api-testing","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Testing and QA
I need my agent to test a web app, reproduce bugs, and verify fixes.
Agent fit
Claude Code + Browser agents + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add secondsky/claude-skills --skill api-testing
Maintenance
fresh
3d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
214
70/100 Quality · 67/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Do not auto-installTrust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Choose a stronger alternative or inspect the source manually before any install attempt.
Stars
214 GitHub stars
Repo activity
214 stars, 31 forks
Maintenance
3d since push
License
MIT
Install
npx skills add secondsky/claude-skills --skill api-testing
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add secondsky/claude-skills --skill api-testingDo not use when
Alternative
168.6K Stars
npx skills add mattpocock/skills --skill code-review
Alternative
40.8K Stars
npx skills add appsmithorg/appsmith
Alternative
175.7K Stars
npx skills add mattpocock/skills --skill implement
Alternative
30.9K Stars
npx skills add vercel-labs/agent-skills --skill vercel-react-best-practices
Agent safety v2
This skill should not be selected by an agent without explicit human security review.
Do not auto-install. Inspect the source, dependencies, and permission surface first.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20api-testing%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20api-testing%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/secondsky-api-testing/install
Agent should check
Copy prompt
Task: Use api-testing in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20api-testing%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/secondsky-api-testing/install
Install command: npx skills add secondsky/claude-skills --skill api-testing
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/secondsky-api-testing/install
LLM text format
/api/skills/secondsky-api-testing/install?format=text
Find alternatives
/api/skills/search?q=api-testing&limit=3
Agent prompt
Use api-testing for this task. Review https://www.openagentskill.com/api/skills/secondsky-api-testing/install, then install with: npx skills add secondsky/claude-skills --skill api-testingRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/secondsky-api-testing
LLM text
/api/registry/manifest/secondsky-api-testing?format=text
Install alias
/api/registry/install/secondsky-api-testing
Recommend
/api/registry/recommend?task=Use%20api-testing%20in%20an%20agent%20workflow&limit=3
Agent fit
Browser automation
Use-case tags
Platforms
Claude Code, Browser agents
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
Browser automation
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Trust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
GitHub adoption
INFO214 GitHub stars
Stars/forks activity
CHECK214 stars, 31 forks; issue activity unavailable in current metadata
Recent maintenance
PASS3d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Choose a stronger alternative or inspect the source manually before any install attempt.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Verify behavior
I need my agent to test a web app, reproduce bugs, and verify fixes.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Workflow fit
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Alternative shortlist
Similar skills that may fit this task.
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
Implement work from an approved spec or ticket set, run focused and full tests, invoke code review, and commit the result to the current branch.
React and Next.js performance guidance for writing, reviewing, and refactoring production UI code.
--- name: api-testing description: HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, GraphQL, request/response validation, authentication, and error handling. allowed-tools: Bash, Read, Edit, Write, Grep, Glob, TodoWrite license: MIT ---
# API Testing
Expert knowledge for testing HTTP APIs with Supertest (TypeScript/JavaScript) and httpx/pytest (Python).
## TypeScript/JavaScript (Supertest)
### Installation
```bash # Using Bun bun add -d supertest @types/supertest
# or: npm install -D supertest @types/supertest ```
### Basic Setup
```typescript import { describe, it, expect } from 'vitest' import request from 'supertest' import { app } from './app'
describe('API Tests', () => { it('returns health status', async () => { const response = await request(app) .get('/api/health') .expect(200)
expect(response.body).toEqual({ status: 'ok' }) })
it('creates a user', async () => { const response = await request(app) .post('/api/users') .send({ name: 'John Doe', email: 'john@example.com' }) .expect(201)
expect(response.body).toMatchObject({ id: expect.any(Number), name: 'John Doe', }) })
it('validates required fields', async () => { await request(app) .post('/api/users') .send({ name: 'John Doe' }) .expect(400) }) }) ```
### Request Methods
```typescript // GET await request(app).get('/api/users').expect(200)
// POST with body await request(app) .post('/api/users') .send({ name: 'John' }) .expect(201)
// PUT await request(app) .put('/api/users/1') .send({ name: 'Jane' }) .expect(200)
// DELETE await request(app).delete('/api/users/1').expect(204) ```
### Headers and Query Parameters
```typescript // Set headers await request(app) .get('/api/protected') .set('Authorization', 'Bearer token123') .expect(200)
// Query parameters await request(app) .get('/api/users') .query({ page: 1, limit: 10 }) .expect(200) ```
### Authentication Testing
```typescript describe('Authentication', () => { let authToken: string
beforeAll(async () => { const response = await request(app) .post('/api/auth/login') .send({ email: 'user@example.com', password: 'password123' }) .expect(200)
authToken = response.body.token })
it('accesses protected endpoint', async () => { await request(app) .get('/api/protected') .set('Authorization', `Bearer ${authToken}`) .expect(200) })
it('rejects without token', async () => { await request(app).get('/api/protected').expect(401) }) }) ```
### Error Handling
```typescript it('handles validation errors', async () => { const response = await request(app) .post('/api/users') .send({ email: 'invalid-email' }) .expect(400)
expect(response.body).toMatchObject({ error: 'Validation failed', details: expect.any(Array), }) })
it('handles not found', async () => { await request(app).get('/api/users/999999').expect(404) }) ```
## Python (httpx + pytest)
### Installation
```bash uv add --dev httpx pytest-asyncio ```
### Basic Setup
```python import pytest from fastapi.testclient import TestClient from main import app
client = TestClient(app)
def test_health_check(): response = client.get("/api/health") assert response.status_code == 200 assert response.json() == {"status": "ok"}
def test_create_user(): response = client.post( "/api/users", json={"name": "John Doe", "email": "john@example.com"} ) assert response.status_code == 201 data = response.json() assert data["name"] == "John Doe" assert "id" in data
def test_not_found(): response = client.get("/api/users/999") assert response.status_code == 404 ```
### Fixtures
```python @pytest.fixture def auth_token(client): response = client.post( "/api/auth/login", json={"email": "user@example.com", "password": "password123"} ) return response.json()["token"]
def test_protected_endpoint(client, auth_token): response = client.get( "/api/protected", headers={"Authorization": f"Bearer {auth_token}"} ) assert response.status_code == 200 ```
### File Upload
```python def test_file_upload(client, tmp_path): test_file = tmp_path / "test.txt" test_file.write_text("test content")
with open(test_file, "rb") as f: response = client.post( "/api/upload", files={"file": ("test.txt", f, "text/plain")} )
assert response.status_code == 200 ```
## GraphQL Testing
```typescript it('queries GraphQL endpoint', async () => { const query = ` query GetUser($id: ID!) { user(id: $id) { id name email } } `
const response = await request(app) .post('/graphql') .send({ query, variables: { id: '1' } }) .expect(200)
expect(response.body.data.user).toMatchObject({ id: '1', name: expect.any(String), }) }) ```
## Performance Testing
```typescript it('responds within acceptable time', async () => { const start = Date.now() await request(app).get('/api/users').expect(200) const duration = Date.now() - start expect(duration).toBeLessThan(100) // 100ms threshold }) ```
## Best Practices
- Group related endpoints in `describe` blocks - Reset database between tests - Validate status codes first - Check response structure - Test error message format - Mock external services - Test both happy path and error cases
## See Also
- `vitest-testing` - Unit testing framework - `playwright-testing` - E2E API testing - `test-quality-analysis` - Test quality patterns
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for api-testing, ready for a manual X post.
api-testing: HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, Graph... 214 stars https://www.openagentskill.com/skills/secondsky-api-testing?ref=x
Listing + install path for api-testing: https://www.openagentskill.com/skills/secondsky-api-testing?ref=x Install: npx skills add secondsky/claude-skills --skill api-testing
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to secondsky but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/secondsky-api-testing?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/secondsky-api-testing?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/secondsky-api-testing/audit)
[](https://www.openagentskill.com/skills/secondsky-api-testing?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)secondsky
@secondsky
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Do not auto-install
Code Review
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
168.6K StarsAppsmith
Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
40.8K StarsImplement
Implement work from an approved spec or ticket set, run focused and full tests, invoke code review, and commit the result to the current branch.
175.7K StarsVercel React Best Practices
React and Next.js performance guidance for writing, reviewing, and refactoring production UI code.
30.9K StarsDo not auto-install
Install targets
Codex install prompt
Install the "api-testing" agent skill from https://github.com/secondsky/claude-skills/tree/main/plugins/api-testing/skills/api-testing. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, GraphQL, request/response validation, authentication, and error handling. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"secondsky-api-testing","task":"Install api-testing","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Testing and QA
I need my agent to test a web app, reproduce bugs, and verify fixes.
Agent fit
Claude Code + Browser agents + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add secondsky/claude-skills --skill api-testing
Maintenance
fresh
3d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
214
70/100 Quality · 67/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Do not auto-installTrust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Choose a stronger alternative or inspect the source manually before any install attempt.
Stars
214 GitHub stars
Repo activity
214 stars, 31 forks
Maintenance
3d since push
License
MIT
Install
npx skills add secondsky/claude-skills --skill api-testing
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add secondsky/claude-skills --skill api-testingDo not use when
Alternative
168.6K Stars
npx skills add mattpocock/skills --skill code-review
Alternative
40.8K Stars
npx skills add appsmithorg/appsmith
Alternative
175.7K Stars
npx skills add mattpocock/skills --skill implement
Alternative
30.9K Stars
npx skills add vercel-labs/agent-skills --skill vercel-react-best-practices
Agent safety v2
This skill should not be selected by an agent without explicit human security review.
Do not auto-install. Inspect the source, dependencies, and permission surface first.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20api-testing%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20api-testing%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/secondsky-api-testing/install
Agent should check
Copy prompt
Task: Use api-testing in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20api-testing%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/secondsky-api-testing/install
Install command: npx skills add secondsky/claude-skills --skill api-testing
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/secondsky-api-testing/install
LLM text format
/api/skills/secondsky-api-testing/install?format=text
Find alternatives
/api/skills/search?q=api-testing&limit=3
Agent prompt
Use api-testing for this task. Review https://www.openagentskill.com/api/skills/secondsky-api-testing/install, then install with: npx skills add secondsky/claude-skills --skill api-testingRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/secondsky-api-testing
LLM text
/api/registry/manifest/secondsky-api-testing?format=text
Install alias
/api/registry/install/secondsky-api-testing
Recommend
/api/registry/recommend?task=Use%20api-testing%20in%20an%20agent%20workflow&limit=3
Agent fit
Browser automation
Use-case tags
Platforms
Claude Code, Browser agents
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
Browser automation
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Trust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
GitHub adoption
INFO214 GitHub stars
Stars/forks activity
CHECK214 stars, 31 forks; issue activity unavailable in current metadata
Recent maintenance
PASS3d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Choose a stronger alternative or inspect the source manually before any install attempt.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Verify behavior
I need my agent to test a web app, reproduce bugs, and verify fixes.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Workflow fit
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Alternative shortlist
Similar skills that may fit this task.
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
Implement work from an approved spec or ticket set, run focused and full tests, invoke code review, and commit the result to the current branch.
React and Next.js performance guidance for writing, reviewing, and refactoring production UI code.
--- name: api-testing description: HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, GraphQL, request/response validation, authentication, and error handling. allowed-tools: Bash, Read, Edit, Write, Grep, Glob, TodoWrite license: MIT ---
# API Testing
Expert knowledge for testing HTTP APIs with Supertest (TypeScript/JavaScript) and httpx/pytest (Python).
## TypeScript/JavaScript (Supertest)
### Installation
```bash # Using Bun bun add -d supertest @types/supertest
# or: npm install -D supertest @types/supertest ```
### Basic Setup
```typescript import { describe, it, expect } from 'vitest' import request from 'supertest' import { app } from './app'
describe('API Tests', () => { it('returns health status', async () => { const response = await request(app) .get('/api/health') .expect(200)
expect(response.body).toEqual({ status: 'ok' }) })
it('creates a user', async () => { const response = await request(app) .post('/api/users') .send({ name: 'John Doe', email: 'john@example.com' }) .expect(201)
expect(response.body).toMatchObject({ id: expect.any(Number), name: 'John Doe', }) })
it('validates required fields', async () => { await request(app) .post('/api/users') .send({ name: 'John Doe' }) .expect(400) }) }) ```
### Request Methods
```typescript // GET await request(app).get('/api/users').expect(200)
// POST with body await request(app) .post('/api/users') .send({ name: 'John' }) .expect(201)
// PUT await request(app) .put('/api/users/1') .send({ name: 'Jane' }) .expect(200)
// DELETE await request(app).delete('/api/users/1').expect(204) ```
### Headers and Query Parameters
```typescript // Set headers await request(app) .get('/api/protected') .set('Authorization', 'Bearer token123') .expect(200)
// Query parameters await request(app) .get('/api/users') .query({ page: 1, limit: 10 }) .expect(200) ```
### Authentication Testing
```typescript describe('Authentication', () => { let authToken: string
beforeAll(async () => { const response = await request(app) .post('/api/auth/login') .send({ email: 'user@example.com', password: 'password123' }) .expect(200)
authToken = response.body.token })
it('accesses protected endpoint', async () => { await request(app) .get('/api/protected') .set('Authorization', `Bearer ${authToken}`) .expect(200) })
it('rejects without token', async () => { await request(app).get('/api/protected').expect(401) }) }) ```
### Error Handling
```typescript it('handles validation errors', async () => { const response = await request(app) .post('/api/users') .send({ email: 'invalid-email' }) .expect(400)
expect(response.body).toMatchObject({ error: 'Validation failed', details: expect.any(Array), }) })
it('handles not found', async () => { await request(app).get('/api/users/999999').expect(404) }) ```
## Python (httpx + pytest)
### Installation
```bash uv add --dev httpx pytest-asyncio ```
### Basic Setup
```python import pytest from fastapi.testclient import TestClient from main import app
client = TestClient(app)
def test_health_check(): response = client.get("/api/health") assert response.status_code == 200 assert response.json() == {"status": "ok"}
def test_create_user(): response = client.post( "/api/users", json={"name": "John Doe", "email": "john@example.com"} ) assert response.status_code == 201 data = response.json() assert data["name"] == "John Doe" assert "id" in data
def test_not_found(): response = client.get("/api/users/999") assert response.status_code == 404 ```
### Fixtures
```python @pytest.fixture def auth_token(client): response = client.post( "/api/auth/login", json={"email": "user@example.com", "password": "password123"} ) return response.json()["token"]
def test_protected_endpoint(client, auth_token): response = client.get( "/api/protected", headers={"Authorization": f"Bearer {auth_token}"} ) assert response.status_code == 200 ```
### File Upload
```python def test_file_upload(client, tmp_path): test_file = tmp_path / "test.txt" test_file.write_text("test content")
with open(test_file, "rb") as f: response = client.post( "/api/upload", files={"file": ("test.txt", f, "text/plain")} )
assert response.status_code == 200 ```
## GraphQL Testing
```typescript it('queries GraphQL endpoint', async () => { const query = ` query GetUser($id: ID!) { user(id: $id) { id name email } } `
const response = await request(app) .post('/graphql') .send({ query, variables: { id: '1' } }) .expect(200)
expect(response.body.data.user).toMatchObject({ id: '1', name: expect.any(String), }) }) ```
## Performance Testing
```typescript it('responds within acceptable time', async () => { const start = Date.now() await request(app).get('/api/users').expect(200) const duration = Date.now() - start expect(duration).toBeLessThan(100) // 100ms threshold }) ```
## Best Practices
- Group related endpoints in `describe` blocks - Reset database between tests - Validate status codes first - Check response structure - Test error message format - Mock external services - Test both happy path and error cases
## See Also
- `vitest-testing` - Unit testing framework - `playwright-testing` - E2E API testing - `test-quality-analysis` - Test quality patterns
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for api-testing, ready for a manual X post.
api-testing: HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, Graph... 214 stars https://www.openagentskill.com/skills/secondsky-api-testing?ref=x
Listing + install path for api-testing: https://www.openagentskill.com/skills/secondsky-api-testing?ref=x Install: npx skills add secondsky/claude-skills --skill api-testing
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to secondsky but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/secondsky-api-testing?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/secondsky-api-testing?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/secondsky-api-testing/audit)
[](https://www.openagentskill.com/skills/secondsky-api-testing?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)secondsky
@secondsky
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Do not auto-install
Code Review
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
168.6K StarsAppsmith
Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
40.8K StarsImplement
Implement work from an approved spec or ticket set, run focused and full tests, invoke code review, and commit the result to the current branch.
175.7K StarsVercel React Best Practices
React and Next.js performance guidance for writing, reviewing, and refactoring production UI code.
30.9K StarsPermission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness