Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Fetch and parse LeetCode problems with metadata, constraints, examples, hints, difficulty ratings, and related problems. Integrates with LeetCode API for comprehensive problem data retrieval.
.claude/skills/a5c-ai-leetcode-problem-fetcher/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 92% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 125% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -15% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 21% | 0% |
| case-11 | ✗→✓ | ▲ Improved | -17% | 0% |
A specialized skill for fetching and parsing LeetCode problems with complete metadata, suitable for competitive programming practice, interview preparation, and algorithm learning workflows.
Extract comprehensive problem data from LeetCode including:
bash# Install LeetCode MCP Server by jinzcdev claude mcp add-json "leetcode" '{"type":"stdio","command":"npx","args":["-y","@jinzcdev/leetcode-mcp-server","--site","global"]}'
Available MCP Tools:
get_daily_challenge - Fetch daily LeetCode challengeget_problem - Retrieve problem by titleSlugsearch_problems - Filter by category, tags, difficulty, keywordsget_user_profile - Access user dataget_user_contest_ranking - Track contest performancejavascript// GraphQL endpoint for LeetCode const LEETCODE_GRAPHQL = 'https://leetcode.com/graphql'; // Query for problem details const problemQuery = ` query getProblem($titleSlug: String!) { question(titleSlug: $titleSlug) { questionId title titleSlug content difficulty topicTags { name slug } hints sampleTestCase codeSnippets { lang code } stats } } `;
Competitive Companion - Parses problems from LeetCode and 115+ other online judges:
bash# Using MCP Server leetcode get_problem --titleSlug "two-sum" # Output includes: # - Problem title and description # - Difficulty and acceptance rate # - Topic tags # - Examples and constraints # - Code templates
bash# Search by difficulty and tags leetcode search_problems --difficulty MEDIUM --tags "dynamic-programming,array" # Search by keyword leetcode search_problems --keyword "substring"
bash# Fetch today's daily challenge leetcode get_daily_challenge
json{ "problem": { "id": "string", "title": "string", "titleSlug": "string", "difficulty": "Easy|Medium|Hard", "acceptanceRate": "number", "description": "string (markdown)", "constraints": ["string"], "examples": [ { "input": "string", "output": "string", "explanation": "string" } ], "hints": ["string"], "topicTags": ["string"], "similarQuestions": ["string"], "codeTemplates": { "python3": "string", "cpp": "string", "java": "string" } }, "metadata": { "fetchedAt": "ISO8601 timestamp", "source": "leetcode.com|leetcode.cn" } }
This skill enhances the following processes:
leetcode-problem-solving - Core problem-solving workflowpattern-recognition - Identifying algorithmic patternsfaang-interview-prep - FAANG interview preparation| Error | Cause | Resolution | |-------|-------|------------| | PROBLEM_NOT_FOUND | Invalid titleSlug | Verify problem URL or slug | | RATE_LIMITED | Too many requests | Implement exponential backoff | | AUTH_REQUIRED | Premium problem | Use alternative or authenticate | | NETWORK_ERROR | Connection failed | Check network, retry with backoff |
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 8,515 | 9,522 | +12% | 1 | 1 | 0% | 1,912 | 3,679 | +92% | 0 | 0 | — |
case-02 | fail→pass | 4,422 | 3,219 | -27% | 1 | 1 | 0% | 909 | 2,042 | +125% | 0 | 0 | — |
case-03 | pass→pass | 5,159 | 1,504 | -71% | 1 | 1 | 0% | 885 | 1,575 | +78% | 0 | 0 | — |
case-04 | fail→fail | 4,386 | 1,915 | -56% | 1 | 1 | 0% | 779 | 1,652 | +112% | 0 | 0 | — |
case-05 | fail→fail | 5,915 | 2,761 | -53% | 1 | 1 | 0% | 992 | 1,736 | +75% | 0 | 0 | — |
case-06 | fail→fail | 5,192 | 1,543 | -70% | 1 | 1 | 0% | 817 | 1,591 | +95% | 0 | 0 | — |
case-07 | fail→fail | 5,392 | 3,619 | -33% | 1 | 1 | 0% | 1,092 | 1,919 | +76% | 0 | 0 | — |
case-08 | fail→fail | 4,188 | 2,715 | -35% | 1 | 1 | 0% | 676 | 1,727 | +155% | 0 | 0 | — |
case-09 | fail→pass | 10,993 | 1,837 | -83% | 1 | 1 | 0% | 1,937 | 1,645 | -15% | 0 | 0 | — |
case-10 | fail→pass | 7,011 | 1,724 | -75% | 1 | 1 | 0% | 1,342 | 1,629 | +21% | 0 | 0 | — |
case-11 | fail→pass | 10,342 | 1,554 | -85% | 1 | 1 | 0% | 1,949 | 1,618 | -17% | 0 | 0 | — |
case-12 | fail→pass | 12,287 | 1,705 | -86% | 1 | 1 | 0% | 2,122 | 1,609 | -24% | 0 | 0 | — |
case-13 | fail→fail | 8,080 | 1,927 | -76% | 1 | 1 | 0% | 1,238 | 1,636 | +32% | 0 | 0 | — |
case-14 | fail→fail | 3,632 | 1,803 | -50% | 1 | 1 | 0% | 631 | 1,600 | +154% | 0 | 0 | — |
case-15 | fail→pass | 5,554 | 1,995 | -64% | 1 | 1 | 0% | 991 | 1,653 | +67% | 0 | 0 | — |
case-16 | fail→pass | 3,194 | 1,787 | -44% | 1 | 1 | 0% | 558 | 1,609 | +188% | 0 | 0 | — |
case-17 | fail→pass | 6,576 | 1,277 | -81% | 1 | 1 | 0% | 1,157 | 1,475 | +27% | 0 | 0 | — |
case-18 | fail→fail | 11,280 | 10,022 | -11% | 1 | 1 | 0% | 2,036 | 3,339 | +64% | 0 | 0 | — |
case-19 | fail→fail | 6,614 | 3,012 | -54% | 1 | 1 | 0% | 1,165 | 1,837 | +58% | 0 | 0 | — |
case-20 | fail→pass | 11,823 | 7,575 | -36% | 1 | 1 | 0% | 2,376 | 2,711 | +14% | 0 | 0 | — |
case-21 | fail→pass | 9,762 | 8,535 | -13% | 1 | 1 | 0% | 1,866 | 2,988 | +60% | 0 | 0 | — |
case-22 | fail→fail | 5,478 | 11,092 | +102% | 1 | 1 | 0% | 1,186 | 3,228 | +172% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +50 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.