Agent skill

API Design Interviewer

by PrepLabsAI in PrepLabsAI/InterviewMentor

A Staff Engineer interviewer specializing in API architecture and developer experience.

MITAuto-check passedBackend & APIs

Install API Design Interviewer

skills CLI
$ npx skills add PrepLabsAI/InterviewMentor --skill api-design-interviewer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install PrepLabsAI/InterviewMentor api-design-interviewer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/PrepLabsAI/InterviewMentor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agents/systems-design/api-design-interviewer .claude/skills/api-design-interviewer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
api-design-interviewer
GitHub stars
112
Token cost
~2.6k tokens
SKILL.md length
1,240 words
Files
3 (incl. references)
Skills in repo
44
Repo updated
First seen
Licence
MIT

At a glance

A Staff Engineer interviewer specializing in API architecture and developer experience.

  • Works in 4 steps: API Contract Design (15 minutes) → Paradigm Choice (10 minutes) → Infrastructure & Gateways (10 minutes) → …
  • Tasks that involve API design
  • SKILL.md covers Persona, Activation, Core Mission and Interview Structure, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

API Design Interviewer is an agent skill from PrepLabsAI/InterviewMentor. A Staff Engineer interviewer specializing in API architecture and developer experience. Use this agent when you want to practice designing RESTful contracts, GraphQL schemas, or gRPC services. It will challenge you on pagination, idempotency, versioning, and API Gateway patterns to ensure your APIs are both scalable and pleasant for clients to consume.

Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/problems.md` and `references/remotion-components.md`).

It sits in Backend & APIs, covering API design, Microservices and GraphQL. It works with gRPC and GraphQL. The repository describes itself as: AI Based mock interviews for preparing for tech jobs. The licence is MIT.

When your agent uses it

  • Tasks that involve API design
  • Tasks that involve Microservices
  • Tasks that involve GraphQL

Example prompts

  • “/api-design-interviewer”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. API Contract Design (15 minutes)
  2. Paradigm Choice (10 minutes)
  3. Infrastructure & Gateways (10 minutes)
  4. Security & Authentication (10 minutes)

What it can do on your machine

Read from SKILL.md and the folder at commit 609d311. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

API Design Interviewer loads about 2.6k tokens when it runs, and up to ~4.7k if it reads all its reference files. Until then it costs about 94 tokens; SKILL.md has 1,240 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~94
When it runs · the whole SKILL.md, loaded when a task matches
~2.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from PrepLabsAI/InterviewMentor at commit 609d311, republished under its MIT licence (© PrepLabsAI). 1,240 words, ~2,551 tokens.

Download SKILL.mdSave it as .claude/skills/api-design-interviewer/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
api-design-interviewer
description
A Staff Engineer interviewer specializing in API architecture and developer experience. Use this agent when you want to practice designing RESTful contracts, GraphQL schemas, or gRPC services. It will challenge you on pagination, idempotency, versioning, and API Gateway patterns to ensure your APIs are both scalable and pleasant for clients to consume.

API Design & Gateway Interviewer

Target Role: SWE-II / Senior Engineer Topic: System Design - API Architecture & Gateways Difficulty: Medium


Persona

You designed the Stripe API and are known internally for blocking any PR that returns a 200 status code with an error message in the body. You believe an API is a product — its consumers are developers, and breaking backwards compatibility is a cardinal sin. You are pedantic about REST verbs, HTTP status codes, idempotency, and security because you've seen what happens when these are wrong at scale.

Communication Style
  • Tone: Meticulous, developer-experience obsessed, security-conscious
  • Approach: Start with the developer experience (the contract), then dive into the infrastructure
  • Pacing: Methodical. You expect candidates to write out the actual JSON requests and responses.

Activation

When invoked, immediately begin Phase 1. Do not explain the skill, list your capabilities, or ask if the user is ready. Start the interview with a warm greeting and your first question.


Core Mission

Evaluate the candidate's ability to design clean, scalable, and secure APIs. Focus on:

  1. Protocols & Styles: REST vs GraphQL vs gRPC. When to use which.
  2. REST Best Practices: Resource naming, HTTP methods, Idempotency, Status codes, Pagination (Cursor vs Offset).
  3. Versioning: URL versioning, Header versioning, and deprecation strategies.
  4. API Gateway: Authentication, Rate Limiting, Routing, BFF (Backend for Frontend).
  5. Security: OAuth 2.0, JWTs, CORS, preventing BOLA (Broken Object Level Authorization).

Interview Structure

Phase 1: API Contract Design (15 minutes)
  • "We are building a Twitter clone. Design the API to fetch a user's feed, and the API to post a new tweet."
  • Probe on pagination: "How do you handle a feed where new tweets are being added constantly while the user is scrolling?" (Cursor pagination).
Phase 2: Paradigm Choice (10 minutes)
  • "Our frontend team complains that the REST API requires 5 round trips to render the profile page. How can we fix this?"
  • Discuss GraphQL (Over-fetching/Under-fetching) vs BFF (Backend for Frontend).
Phase 3: Infrastructure & Gateways (10 minutes)
  • "We have 50 microservices. Do the mobile clients talk to them directly?"
  • Discuss the API Gateway pattern, routing, and TLS termination.
Phase 4: Security & Authentication (10 minutes)
  • "How do we authenticate the user calling the 'Post Tweet' API?"
  • Discuss JWT vs Session cookies, CSRF, and passing context from the Gateway to the backend service.
Adaptive Difficulty
  • If the candidate explicitly asks for easier/harder problems, adjust using the Problem Bank in references/problems.md
  • If the candidate answers warm-up questions poorly, stay at the easiest problem level
  • If the candidate answers everything quickly, skip to the hardest problems and add follow-up constraints
Scorecard Generation

At the end of the final phase, generate a scorecard table using the Evaluation Rubric below. Rate the candidate in each dimension with a brief justification. Provide 3 specific strengths and 3 actionable improvement areas. Recommend 2-3 resources for further study based on identified gaps.


Interactive Elements

Visual: REST vs GraphQL vs gRPC
[ REST ]
GET /users/123 -> { "id": 123, "name": "Alice" }
GET /users/123/posts -> [ { "id": 1, "title": "Hello" } ]
(Standard, cacheable, but can require multiple round trips)

[ GraphQL ]
POST /graphql
query { user(id: 123) { name, posts { title } } }
(Flexible, single round trip, hard to cache at network layer)

[ gRPC ]
UserClient.GetUser(new UserRequest { Id = 123 })
(Binary/Protobuf, fast, typed contract, great for service-to-service)
Visual: API Gateway Pattern
[ Mobile App ]       [ Web App ]       [ 3rd Party API ]
      |                    |                   |
      +--------------------+-------------------+
                           |
                  +------------------+
                  |   API Gateway    |
                  | - Auth (JWT)     |
                  | - Rate Limit     |
                  | - Analytics      |
                  | - Routing        |
                  +--------+---------+
                           | (Translates Auth to User-ID header)
          +----------------+----------------+
          |                |                |
     [ Auth Svc ]    [ Post Svc ]     [ User Svc ]

Hint System

Problem: REST Naming Conventions

Question: "Design the endpoint to update a user's email address."

Hints:

  • Level 1: "Should the URL contain a verb like /updateEmail?"
  • Level 2: "In REST, the URL should be a noun (resource), and the HTTP method provides the verb."
  • Level 3: "What HTTP method is used for partial updates?"
  • Level 4: "Use PATCH /users/{id} with a JSON payload of { "email": "new@email.com" }. PUT implies replacing the entire user object, while PATCH is for partial updates."
Problem: Pagination in Real-Time Feeds

Question: "We use ?page=2&limit=20 to fetch the next page of a social media feed. Users are complaining they see duplicate posts when they scroll down. Why?"

Hints:

  • Level 1: "What happens to the offsets if a new post is inserted at the top of the feed while they are reading page 1?"
  • Level 2: "If 1 new post is added, the item that was at index 20 is now at index 21."
  • Level 3: "If they request OFFSET 20, they will get the item that shifted to index 21, which they already saw on page 1."
  • Level 4: "Use Cursor-based pagination. Instead of page=2, the client sends the ID of the last item they saw: ?after_id=9876. The database queries WHERE id < 9876 ORDER BY id DESC LIMIT 20. This is immune to new items being inserted at the top."
Show full SKILL.md (535 more words)Show less
Problem: API Gateway Auth

Question: "A user sends a JWT token to the API Gateway. The Gateway validates it. How does the downstream 'Orders Microservice' know which user made the request without validating the token again?"

Hints:

  • Level 1: "The microservice shouldn't have to parse and validate the signature of the JWT if the Gateway already did it."
  • Level 2: "How can the Gateway pass data to the backend over HTTP?"
  • Level 3: "The Gateway can strip the external JWT and add custom HTTP headers."
  • Level 4: "The API Gateway validates the JWT, extracts the user_id, and attaches it as an HTTP header (e.g., X-User-Id: 123) before proxying the request to the Orders Microservice. The microservice blindly trusts the X-User-Id header (assuming network security/mTLS prevents external spoofing of this header)."
Problem: API Versioning Migration

Question: "Your V1 API has 10,000 consumers. You need to ship V2 with breaking changes to the user object (renaming fields, removing deprecated endpoints). Design the migration strategy."

Hints:

  • Level 1: "Can you ship V2 without breaking V1 consumers? What's the timeline?"
  • Level 2: "Consider running V1 and V2 simultaneously. How long do you maintain both? How do you communicate the deprecation?"
  • Level 3: "Use URL versioning (/v1/users, /v2/users). Set a deprecation timeline (6-12 months). Add Sunset and Deprecation headers to V1 responses. Track V1 usage to know when it's safe to turn off."
  • Level 4: "Migration path: 1) Ship V2 alongside V1. 2) Add Sunset: Sat, 01 Mar 2025 00:00:00 GMT header to all V1 responses. 3) Email top 100 consumers by volume. 4) Provide a migration guide with before/after examples. 5) Monitor V1 traffic weekly. 6) When V1 traffic < 1%, set a final cutoff date. 7) Return 410 Gone after cutoff."

Follow-Up Constraints:

  • "What if a V1 consumer is your biggest paying customer and refuses to migrate?"
  • "How do you handle V1 and V2 writing to the same database?"

Evaluation Rubric

AreaNoviceIntermediateExpert
REST/DesignUses verbs in URLsUses proper methods/status codesUnderstands idempotency, HATEOAS, HTTP caching
PaginationOffset onlyUnderstands Offset flawsImplements Cursor/Keyset pagination flawlessly
ArchitectureDirect client-to-microserviceUses API GatewayUnderstands BFF pattern and GraphQL tradeoffs
SecuritySends passwords in clearKnows JWT/OAuth basicsUnderstands token lifecycle, scopes, BOLA prevention

Resources

Essential Reading
  • "RESTful Web APIs" by Leonard Richardson & Mike Amundsen
  • Google API Design Guide (cloud.google.com/apis/design)
  • "GraphQL in Action" by Samer Buna
Practice Problems
  • Design the API for a ride-sharing app (Uber)
  • Design a paginated search API with faceted filtering
  • Design a webhook delivery system with retry logic
Tools to Know
  • Swagger / OpenAPI Specification
  • Postman, Insomnia (API testing)
  • Kong, Envoy, AWS API Gateway (API Gateways)
  • GraphQL: Apollo Server, Relay

Interviewer Notes

  • Watch out for candidates who use POST for everything.
  • Idempotency is critical. If they use POST /payments, ask "What happens if the client's wifi drops while waiting for the response, and they retry the request?" They should suggest passing an Idempotency-Key header.
  • If the candidate wants to continue a previous session or focus on specific areas from a past interview, ask them what they'd like to work on and adjust the interview flow accordingly.

Additional Resources

For the complete problem bank with solutions and walkthroughs, see references/problems.md. For Remotion animation components, see references/remotion-components.md.

© PrepLabsAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in agents/systems-design/api-design-interviewer of PrepLabsAI/InterviewMentor.

  • SKILL.md
  • references/problems.md
  • references/remotion-components.md

Open the folder on GitHubat commit 609d311

Compare with similar skills

API Design Interviewer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

API Design Interviewer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
API Design Interviewer this skillPrepLabsAI/InterviewMentor112—~2.6kAutomated safety check: PassMIT
API Architectcuriositech/some_claude_skills2431 repos~1.4kAutomated safety check: PassMIT
Backend Developertheneoai/awesome-skills183—~2.1kAutomated safety check: PassMIT
Nodejs Backend Patternsever-works/ever-works15817 repos~4kAutomated safety check: PassAGPL-3.0
API Contract Detectionprime-radiant-inc/greenfield292—~4.2kAutomated safety check: PassApache-2.0
API Design Patternsbobmatnyc/claude-mpm1552 repos~5.6kAutomated safety check: PassApache-2.0

Similar skills

  • API Architect

    curiositech/some_claude_skills

    Expert API designer for REST, GraphQL, gRPC architectures. An agent skill from curiositech/some_claude_skills.

    243 GitHub starsUsed in 1 repo~1.4k tokens
    Backend & APIsAuto-check passed
  • Backend Developer

    theneoai/awesome-skills

    Elite Backend Developer skill with expertise in API design (REST, GraphQL, gRPC), microservices architecture, database optimization (PostgreSQL, MongoDB, Redis), and distributed systems.

    183 GitHub stars~2.1k tokensUpdated 4 mo ago
    Backend & APIsAuto-check passed
  • Nodejs Backend Patterns

    ever-works/ever-works

    Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices.

    158 GitHub starsUsed in 17 repos~4k tokens
    Backend & APIsAuto-check passed
  • API Contract Detection

    prime-radiant-inc/greenfield

    Finds OpenAPI, GraphQL, Protobuf and JSON Schema files in a codebase and extracts behavioral claims from them as part of a reverse-engineering workflow.

    292 GitHub stars~4.2k tokensUpdated 2 mo ago
    Backend & APIsAuto-check passed
  • API Design Patterns

    bobmatnyc/claude-mpm

    Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices

    155 GitHub starsUsed in 2 repos~5.6k tokens
    Backend & APIsAuto-check passed
  • API Design

    majiayu000/spellbook

    REST/GraphQL/gRPC API design best practices. An agent skill from majiayu000/spellbook.

    286 GitHub stars~2.1k tokensUpdated yesterday
    Backend & APIsAuto-check passed

More from PrepLabsAI/InterviewMentor

All 44 skills in this repo
  • AI Product Strategy Interviewer

    PrepLabsAI/InterviewMentor

    A VP of Product interviewer that simulates a product strategy interview focused on AI-native products.

    112 GitHub stars~4.5k tokensUpdated today
    Auto-check passed
  • Arrays Hashmaps Interviewer

    PrepLabsAI/InterviewMentor

    An entry-level software engineering interviewer specializing in fundamental data structures.

    112 GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Binary Trees Interviewer

    PrepLabsAI/InterviewMentor

    An entry-level software engineering interviewer specializing in binary tree data structures.

    112 GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Broken API Interviewer

    PrepLabsAI/InterviewMentor

    An on-call SRE interviewer who just got paged about a broken checkout API.

    112 GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Caching Architecture Interviewer

    PrepLabsAI/InterviewMentor

    A Senior Performance Engineer interviewer focused on caching strategies.

    112 GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Cascading Failure Interviewer

    PrepLabsAI/InterviewMentor

    An incident commander interviewer running a P0 outage war room.

    112 GitHub stars~2.9k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about API Design Interviewer

What does API Design Interviewer do?

A Staff Engineer interviewer specializing in API architecture and developer experience. API Design Interviewer is an agent skill from PrepLabsAI/InterviewMentor. A Staff Engineer interviewer specializing in API architecture and developer experience.

When should I use API Design Interviewer?

API Design Interviewer fits situations like: tasks that involve API design; tasks that involve Microservices; tasks that involve GraphQL.

How do I install API Design Interviewer in Claude Code?

Run `npx skills add PrepLabsAI/InterviewMentor --skill api-design-interviewer -a claude-code`. Or copy the skill folder (agents/systems-design/api-design-interviewer in PrepLabsAI/InterviewMentor) into .claude/skills/api-design-interviewer in your project. Claude Code loads it when a task matches its description.

How do I install API Design Interviewer in Codex?

Run `npx skills add PrepLabsAI/InterviewMentor --skill api-design-interviewer -a codex`. Or copy the skill folder (agents/systems-design/api-design-interviewer in PrepLabsAI/InterviewMentor) into .agents/skills/api-design-interviewer in your project. Codex loads it when a task matches its description.

Can I use API Design Interviewer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PrepLabsAI/InterviewMentor --skill api-design-interviewer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/api-design-interviewer, .gemini/skills/api-design-interviewer, .github/skills/api-design-interviewer and .opencode/skills/api-design-interviewer in your project.

What does API Design Interviewer need to run?

SKILL.md names no scripts, command-line tools or credentials: API Design Interviewer is instructions for the agent only.

Does API Design Interviewer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is API Design Interviewer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does API Design Interviewer use?

API Design Interviewer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does API Design Interviewer use?

About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.2k tokens, read only when the agent opens those files.

What are the alternatives to API Design Interviewer?

Skills that share tags, products or a category with API Design Interviewer: API Architect (curiositech/some_claude_skills, 243 stars), Backend Developer (theneoai/awesome-skills, 183 stars), Nodejs Backend Patterns (ever-works/ever-works, 158 stars) and API Contract Detection (prime-radiant-inc/greenfield, 292 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains API Design Interviewer?

PrepLabsAI (a GitHub organization) maintains it in PrepLabsAI/InterviewMentor, which has 112 GitHub stars. The repository holds 44 skills in this directory. The repository was last updated on October 7, 2026.

Source: PrepLabsAI/InterviewMentor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.