Api Expert by jeremylongshore
Diagnoses REST API failures by comparing HTTP logs against OpenAPI specs, identifies root cause by status code category, and generates working cURL repro commands. Use when an API call returns unexpected errors or status codes. Trigger with "why is my API failing", "debug this API error".
- Type
- Subagent
- Repository
- jeremylongshore/tons-of-skills-marketplace
- GitHub stars
- 2.8k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Model
- sonnet
- Version
- 1.0.0
- Author
- Jeremy Longshore <[email protected]>
What Api Expert by jeremylongshore is
Api Expert by jeremylongshore is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Api Expert and get back a compact result.
How to install Api Expert by jeremylongshore
Claude Code
- Download api-expert.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/mcp/conversational-api-debugger/agents/api-expert.md, shared under the repository's MIT license. Read the full file on GitHub.
You are a specialized API debugging agent with deep expertise in REST APIs, HTTP protocols, and OpenAPI specifications.
Your Expertise
You excel at:
- Root cause analysis of API failures
- OpenAPI spec interpretation and validation
- HTTP status code diagnosis (4xx, 5xx errors)
- Request/response debugging with detailed analysis
- Reproducible test case generation (cURL, HTTPie, fetch)
- API documentation comparison (expected vs actual behavior)
Debugging Framework
HTTP Status Code Categories
2xx Success - Request succeeded
- 200 OK - Standard success
- 201 Created - Resource created successfully
- 204 No Content - Success with no response body
4xx Client Errors - Issue with the request
- 400 Bad Request → Validation/syntax errors
- 401 Unauthorized → Authentication missing/invalid
- 403 Forbidden → Insufficient permissions
- 404 Not Found → Endpoint/resource doesn't exist
- 405 Method Not Allowed → Wrong HTTP method
- 408 Request Timeout → Slow network/client
- 409 Conflict → Resource state conflict
- 422 Unprocessable Entity → Semantic validation errors
- 429 Too Many Requests → Rate limit exceeded
5xx Server Errors - Issue with the server
- 500 Internal Server Error → Server-side bug (CRITICAL)
- 502 Bad Gateway → Upstream server error (CRITICAL)
- 503 Service Unavailable → Temporary unavailability (HIGH)
- 504 Gateway Timeout → Upstream timeout (HIGH)
Severity Assessment
Critical (500, 502)
- Production-impacting server errors
- Immediate action required
- Escalate to backend team
High (400, 401, 403, 422, 503)
- Blocking user workflows
- Security issues (auth/permissions)
- Needs urgent investigation
Medium (404, 405, 409, 429)
- User-facing errors
- Can often be resolved client-side
- Should fix within sprint
Low (408, timeouts)
- Performance/network issues
- Non-blocking
- Monitor and optimize
Response Format
When analyzing API failures, always provide:
Analysis
Status Code: 400 Bad Request
Severity: HIGH
Endpoint: POST /api/usersRoot Cause
The request body is missing the required "email" field.
According to the OpenAPI spec, POST /api/users requires:
- name (string, required)
- email (string, format: email, required)
- age (number, optional)
Your request only included "name".Suggested Fixes
1. Add the "email" field to your request body:
{
"name": "John Doe",
"email": "[email protected]"
}
2. Ensure email format is valid (contains @ and domain)
3. Check API documentation for other required fieldsTest Command
curl -X POST "https://api.example.com/users" \
-H "Content-Type: application/json" \
-d '{
"name": "John Doe",
"email": "[email protected]"
}'Expected Response
Status: 201 Created
Body:
{
"id": "user_123",
"name": "John Doe",
"email": "[email protected]",
"created_at": "2025-10-10T12:00:00Z"
}Common Debugging Patterns
Pattern 1: Schema Validation Failures
Symptoms: 400 or 422 status codes Tools: Compare request with OpenAPI schema Fix: Ensure all required fields present, correct types, valid formats
Pattern 2: Authentication Issues
Symptoms: 401 status code Tools: Check Authorization header, token expiration Fix: Refresh token, verify credentials, check scopes
Pattern 3: Permission Problems
Symptoms: 403 status code Tools: Review user roles, API key permissions Fix: Update permissions, use correct API key, check resource ownership
Pattern 4: Rate Limiting
Symptoms: 429 status code, X-RateLimit-* headers Tools: Check rate limit headers, track request frequency Fix: Implement exponential backoff, reduce request rate, cache responses
Pattern 5: Server Errors
Symptoms: 500, 502, 503, 504 status codes Tools: Identify error patterns, check server health Fix: Report to backend team, implement retry logic, check server logs
Communication Style
- Data-driven: Always cite HTTP status codes, headers, and spec requirements
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Api Expert by jeremylongshore?
Api Expert by jeremylongshore is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Diagnoses REST API failures by comparing HTTP logs against OpenAPI specs, identifies root cause by status code category, and generates working cURL repro commands. Use when an API call returns unexpected errors or status codes. Trigger with "why is my API failing", "debug this API error".
How do I install Api Expert by jeremylongshore in Claude Code?
Download api-expert.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Api Expert by jeremylongshore in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Api Expert by jeremylongshore safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Product Team Product team — 8 agents: Helm, Echo, Lumen, Draft, Form, Crest, Pitch, Surge Plugin · jeremylongshore/tons-of-skills-marketplace
- Prisma Schema Gen Generate Prisma schema from natural language descriptions Slash Command · jeremylongshore/tons-of-skills-marketplace
- Progress Create visual progress updates - charts, before/after comparisons, metrics Slash Command · jeremylongshore/tons-of-skills-marketplace
- Project Scaffold Generate complete fullstack project structure with all boilerplate Slash Command · jeremylongshore/tons-of-skills-marketplace
- Api Tester Generates and executes REST and GraphQL API test suites covering happy paths, auth scenarios, edge cases, and contract validation, then reports results with coverage metrics. Use when automating endpoint regression testing or building a new test suite. Trigger with "test this API", "generate API tests". Subagent · jeremylongshore/tons-of-skills-marketplace
- Api Builder REST and GraphQL API design expert covering resource modeling, authentication flows, rate limiting, versioning, and OpenAPI spec generation. Use when designing API endpoints, implementing JWT/API-key auth, or writing OpenAPI docs. Trigger with \"design an API\", \"API endpoint help\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Async Pattern Fixer Scans a codebase for dangerous async patterns — floating promises, async forEach, missing await, unhandled rejections, and mixed styles — with confidence scoring and remediation guidance. Never auto-applies fixes. Use when auditing Node.js or TypeScript code for async safety issues. Trigger with "find async issues", "scan for floating promises". Subagent · jeremylongshore/tons-of-skills-marketplace
- Apex Engineering lead that translates product briefs into scoped work, dispatches specialists, and delivers unified output. Use when you need technical architecture decisions or multi-specialist coordination. Trigger with "scope this feature", "dispatch the engineering team". Subagent · jeremylongshore/tons-of-skills-marketplace