System Design
openxlings/xlings
Design systems, services, and architectures. An agent skill from openxlings/xlings.
A Senior Engineer interviewer providing the classic URL Shortener system design scenario.
$ npx skills add PrepLabsAI/InterviewMentor --skill url-shortener-interviewer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install PrepLabsAI/InterviewMentor url-shortener-interviewer --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/PrepLabsAI/InterviewMentor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agents/systems-design/url-shortener-interviewer .claude/skills/url-shortener-interviewer && rm -rf skills-srcUse ~/.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/
Install the "url-shortener-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/systems-design/url-shortener-interviewer into .claude/skills/url-shortener-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "url-shortener-interviewer", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/systems-design/url-shortener-interviewerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add PrepLabsAI/InterviewMentor --skill url-shortener-interviewer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install PrepLabsAI/InterviewMentor url-shortener-interviewer --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PrepLabsAI/InterviewMentor.git skills-src && mkdir -p .agents/skills && cp -r skills-src/agents/systems-design/url-shortener-interviewer .agents/skills/url-shortener-interviewer && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "url-shortener-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/systems-design/url-shortener-interviewer into .agents/skills/url-shortener-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "url-shortener-interviewer", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PrepLabsAI/InterviewMentor --skill url-shortener-interviewer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install PrepLabsAI/InterviewMentor url-shortener-interviewer --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PrepLabsAI/InterviewMentor.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/agents/systems-design/url-shortener-interviewer .cursor/skills/url-shortener-interviewer && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "url-shortener-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/systems-design/url-shortener-interviewer into .cursor/skills/url-shortener-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "url-shortener-interviewer", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/PrepLabsAI/InterviewMentor.git --path agents/systems-design/url-shortener-interviewer--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add PrepLabsAI/InterviewMentor --skill url-shortener-interviewer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install PrepLabsAI/InterviewMentor url-shortener-interviewer --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PrepLabsAI/InterviewMentor.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/agents/systems-design/url-shortener-interviewer .gemini/skills/url-shortener-interviewer && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "url-shortener-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/systems-design/url-shortener-interviewer into .gemini/skills/url-shortener-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "url-shortener-interviewer", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install PrepLabsAI/InterviewMentor url-shortener-interviewerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add PrepLabsAI/InterviewMentor --skill url-shortener-interviewer -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/PrepLabsAI/InterviewMentor.git skills-src && mkdir -p .github/skills && cp -r skills-src/agents/systems-design/url-shortener-interviewer .github/skills/url-shortener-interviewer && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "url-shortener-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/systems-design/url-shortener-interviewer into .github/skills/url-shortener-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "url-shortener-interviewer", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PrepLabsAI/InterviewMentor --skill url-shortener-interviewer -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install PrepLabsAI/InterviewMentor url-shortener-interviewer --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PrepLabsAI/InterviewMentor.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/agents/systems-design/url-shortener-interviewer .opencode/skills/url-shortener-interviewer && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "url-shortener-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/systems-design/url-shortener-interviewer into .opencode/skills/url-shortener-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "url-shortener-interviewer", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
url-shortener-interviewerA Senior Engineer interviewer providing the classic URL Shortener system design scenario.
URL Shortener Interviewer is an agent skill from PrepLabsAI/InterviewMentor. A Senior Engineer interviewer providing the classic URL Shortener system design scenario. Use this agent for your very first system design mock interview. It covers all the essential building blocks: API design, back-of-the-envelope capacity estimation, hashing vs base62 encoding, and basic caching strategies.
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, Interview preparation and Caching. The repository describes itself as: AI Based mock interviews for preparing for tech jobs. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 609d311. It shows what the files ask for, not the result of running them.
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.
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.
Hosts in commands or code, which the agent is likely to contact:
short.ioFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
URL Shortener Interviewer loads about 2.6k tokens when it runs, and up to ~5k if it reads all its reference files. Until then it costs about 84 tokens; SKILL.md has 1,080 words of instructions outside code blocks.
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.
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.
The full file from PrepLabsAI/InterviewMentor at commit 609d311, republished under its MIT licence (© PrepLabsAI). 1,080 words, ~2,603 tokens.
.claude/skills/url-shortener-interviewer/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Target Role: SWE-II / Senior Engineer Topic: System Design - URL Shortener Service Difficulty: Medium
You are the interviewer who gives this as the first system design question to every candidate. You've seen 500 people attempt it. You know exactly where they get stuck: they skip capacity estimation, they don't think about collision handling, and they forget about cache invalidation. Your job is to steer them into these traps gently, then help them out. You're supportive but you will NOT let them hand-wave past the math.
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.
Help candidates master system design interviews using the classic URL shortener problem. Focus on:
Ask the candidate to define:
Force the candidate to do back-of-envelope math:
Example calculation:
Pick 2-3 areas to explore deeply:
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.
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Client │────▶│ Load Balancer │────▶│ API Server │
└─────────────┘ └─────────────┘ └──────┬──────┘
│
┌───────────────────────────┼───────────────────────────┐
│ │ │
▼ ▼ ▼
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Cache │ │ Database │ │ Analytics │
│ (Redis) │ │ (MySQL/ │ │ (Kafka) │
│ │ │ DynamoDB) │ │ │
└─────────────┘ └─────────────┘ └─────────────┘User submits: https://www.example.com/very/long/url/path
Option 1: Hash-based
MD5(url) → 32 char hex → First 7 chars → "a3f5b2c"
Check collision → Store mapping → Return https://short.io/a3f5b2c
Option 2: Counter-based (Base62)
Global counter: 125_000_000
Base62 encode → "8H9jK2"
Store mapping → Return https://short.io/8H9jK2
Option 3: Random + Check
Generate random 7-char string
Check if exists in DB
If yes, regenerate
If no, store and returnQuestion: "How would you generate unique short URLs?"
Hints:
Hash-based:
✓ Deterministic (same URL → same short code)
✗ Collisions possible
✗ Predictable pattern
Counter-based:
✓ No collisions
✓ Sequential (predictable - might be pro or con)
✗ Need distributed counter (ZooKeeper, Redis)
Random:
✓ Unpredictable
✗ Need collision checking
✗ More DB lookupsQuestion: "How would you shard the database when you have billions of URLs?"
Hints:
Question: "How do you handle 10M redirects per day with <10ms latency?"
Hints:
Question: "Now add real-time click analytics. For each short URL, track total clicks, clicks per day, geographic distribution, and referrer. How do you design this without slowing down redirects?"
Hints:
Follow-Up Constraints:
| Area | Novice | Intermediate | Expert |
|---|---|---|---|
| Requirements | Jumps to solution | Captures basic requirements | Distinguishes must-haves from nice-to-haves, quantifies scale |
| API Design | Confusing endpoints | RESTful but incomplete | Clean, versioned, handles errors well |
| Data Model | Single table | Basic normalization | Optimized for access patterns, considers sharding early |
| Scalability | Vertical scaling only | Mentions caching | Multi-layer caching, CDN, read replicas, eventual consistency |
| Trade-offs | Only mentions pros | Discusses trade-offs | Actively compares alternatives with decision criteria |
| Operational | Ignores monitoring | Mentions logging | Discusses deployment, monitoring, rate limiting, security |
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
SKILL.md and 2 other files (references) in agents/systems-design/url-shortener-interviewer of PrepLabsAI/InterviewMentor.
Open the folder on GitHubat commit 609d311
URL Shortener 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| URL Shortener Interviewer this skillPrepLabsAI/InterviewMentor | 112 | — | ~2.6k | Automated safety check: Pass | MIT | |
| System Designopenxlings/xlings | 615 | 1 repos | ~328 | Automated safety check: Pass | Apache-2.0 | |
| Springboot Patternsaffaan-m/ECC | 276k | 5 repos | ~2.5k | Automated safety check: Pass | MIT | |
| Quarkus Patternsaffaan-m/ECC | 276k | 1 repos | ~5.4k | Automated safety check: Pass | MIT | |
| Quarkus Patternsaffaan-m/ECC | 276k | — | ~6.1k | Automated safety check: Pass | MIT | |
| System Designninehills/skills | 280 | — | ~4.7k | Automated safety check: Pass | MIT |
openxlings/xlings
Design systems, services, and architectures. An agent skill from openxlings/xlings.
affaan-m/ECC
Spring Boot architecture patterns, REST API design, layered services, data access, caching, async processing, and logging.
affaan-m/ECC
Quarkus 3.x LTS architecture patterns with Camel for messaging, RESTful API design, CDI services, data access with Panache, and async processing.
affaan-m/ECC
Quarkus 3.x LTS architecture patterns with Camel for messaging, RESTful API design, CDI services, data access with Panache, and async processing.
ninehills/skills
Design scalable distributed systems using structured approaches for load balancing, caching, database scaling, and message queues.
telagod/code-abyss
Architecture knowledge reference covering API design, security architecture, cloud-native patterns, caching strategies, message queues, and data security.
PrepLabsAI/InterviewMentor
A VP of Product interviewer that simulates a product strategy interview focused on AI-native products.
PrepLabsAI/InterviewMentor
A Staff Engineer interviewer specializing in API architecture and developer experience.
PrepLabsAI/InterviewMentor
An entry-level software engineering interviewer specializing in fundamental data structures.
PrepLabsAI/InterviewMentor
An entry-level software engineering interviewer specializing in binary tree data structures.
PrepLabsAI/InterviewMentor
An on-call SRE interviewer who just got paged about a broken checkout API.
PrepLabsAI/InterviewMentor
A Senior Performance Engineer interviewer focused on caching strategies.
Categories
A Senior Engineer interviewer providing the classic URL Shortener system design scenario. URL Shortener Interviewer is an agent skill from PrepLabsAI/InterviewMentor. A Senior Engineer interviewer providing the classic URL Shortener system design scenario.
URL Shortener Interviewer fits situations like: tasks that involve API design; tasks that involve Interview preparation; tasks that involve Caching.
Run `npx skills add PrepLabsAI/InterviewMentor --skill url-shortener-interviewer -a claude-code`. Or copy the skill folder (agents/systems-design/url-shortener-interviewer in PrepLabsAI/InterviewMentor) into .claude/skills/url-shortener-interviewer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add PrepLabsAI/InterviewMentor --skill url-shortener-interviewer -a codex`. Or copy the skill folder (agents/systems-design/url-shortener-interviewer in PrepLabsAI/InterviewMentor) into .agents/skills/url-shortener-interviewer in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PrepLabsAI/InterviewMentor --skill url-shortener-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/url-shortener-interviewer, .gemini/skills/url-shortener-interviewer, .github/skills/url-shortener-interviewer and .opencode/skills/url-shortener-interviewer in your project.
SKILL.md names no scripts, command-line tools or credentials: URL Shortener Interviewer is instructions for the agent only.
SKILL.md names 1 domain. In commands or code: short.io; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
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.
URL Shortener Interviewer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
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.4k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with URL Shortener Interviewer: System Design (openxlings/xlings, 615 stars), Springboot Patterns (affaan-m/ECC, 276k stars), Quarkus Patterns (affaan-m/ECC, 276k stars) and Quarkus Patterns (affaan-m/ECC, 276k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
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.