Skip to content
Agentmart
Submit a tool

api-critic

Autonomous API testing and evaluation.

Skill by JansenAnalytics

IndexedMIT★ 5
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/jansenanalytics-api-critic

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Autonomous API testing and evaluation. Tests any REST API for correctness, security, performance, error handling, and standards compliance. Discovers endpoints, probes with valid/invalid/edge-case payloads, checks auth, response times, injection vulnerabilities, and generates severity-scored reports with actionable fixes. Use before any API "done" claim.

Use cases: backend, testing, security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/api-critic

What's inside

Skill name
api-critic
Description
Autonomous API testing and evaluation. Tests any REST API for correctness, security, performance, error handling, and standards compliance. Discovers endpoints, probes with valid/invalid/edge-case payloads, checks auth, response times, injection vulnerabilities, and generates severity-scored reports with actionable fixes. Use before any API "done" claim.
License
MIT
Instructions
85 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (5)

  • SKILL.md
  • discover.cjs · scripts/
  • probe.cjs · scripts/
  • report.cjs · scripts/
  • review.cjs · scripts/

SKILL.md (first lines)

# api-critic — Autonomous API Testing & Evaluation

Like design-critic but for backends. Tests any REST API for correctness, security, performance, error handling, and standards compliance.

## Quick Start

```bash
api-critic https://jsonplaceholder.typicode.com
api-critic http://localhost:3000 --auth "Bearer token" --full
api-critic http://localhost:3000 --quick
api-critic http://localhost:3000 --compare /tmp/api-critic-previous
```

## Options

| Flag | Description |
|------|-------------|
| `--endpoints FILE` | Manual route list (JSON: `[{method, path, body?}]`) |
| `--auth "Bearer x"` | Authorization header for all requests |
| `--timeout MS` | Request timeout (default: 10000) |
| `--quick` | Skip edge cases (SQL injection, XSS, oversized payload) |
| `--full` | Run everything including extended probes |
| `--compare DIR` | Compare with previous run's output directory |
| `--out-dir DIR` | Output directory (default: /tmp/api-critic-TIMESTAMP) |

## What It Tests

### Correctness
- Happy path (valid requests → 2xx)
- JSON validity, schema types
- Status code correctness (201 for POST, 204 for DELETE)

### Security
- CORS wildcard detection
- Auth bypass (requests without auth header)
- Malformed token acceptance
- SQL injection strings in query params
- XSS reflection in responses
- Mass assignment (extra unknown fields accepted)

### Performance
- Response time (>500ms warning, >2000ms critical)

### Error Handling
- Empty body, null values → should get 4xx not 5xx
- Wrong Content-Type handling
- Oversized payload (1MB)

### Standards
- Content-Type headers present
- Cache headers on GET responses
- 405 for wrong HTTP methods
- Pagination support detection

## Pipeline

1. **discover.cjs** — Finds endpoints (OpenAPI spec, common paths, CRUD inference)
2. **probe.cjs** — Runs all tests against each endpoint
3. **report.cjs** — Generates scored report (0-100, grade A-F)

## Output

- `discovered-endpoints.json` — Found endpoints
- `probe-results.json` — Raw test results
- `api-critic-report.md` — Human-readable report
- `api-critic-report.json` — Machine-readable summary

## Individual Scripts

```bash
# Just discover
node ${CLAUDE_SKILLS_DIR:-$HOME/.claude-agent/.claude/skills}/api-critic/scripts/discover.cjs https://api.example.com --out-dir /tmp/out

# Just probe (needs discovered-endpoints.json)
node ${CLAUDE_SKILLS_DIR:-$HOME/.claude-agent/.claude/skills}/api-critic/scripts/probe.cjs https://api.example.com --out-dir /tmp/out

# Just report (needs probe-results.json)
node ${CLAUDE_SKILLS_DIR:-$HOME/.claude-agent/.claude/skills}/api-critic/scripts/report.cjs --out-dir /tmp/out
```

## Dependencies

None. Uses only Node.js built-in modules (http, https, fs, path, url, child_process).

From JansenAnalytics/claudex, MIT.

More from JansenAnalytics/claudex

Signals

Stars
5
Forks
0
Open issues
0
Last commit (this folder)
Jun 3, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from JansenAnalytics

Cite this page

api-critic skill. Agent Mart. https://agentmart.dev/skills/jansenanalytics-api-critic (last updated 2026-10-24)