LaunchKit · 2026
Back to Skills

interactive-leetcode

Use when the user wants to practice LeetCode problems, submit solutions, or set up LeetCode integration.

0
939 downloads
by @sperekrestova

Setup & Installation

openclaw skills install @sperekrestova/interactive-leetcode

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install interactive-leetcode

Version History

v1.0.3Feb 10, 2026 - Version note by skill developer:

- Added explicit consent requirements before server installation and authentication setup. - Updated installation instructions to require user confirmation before downloading and running the MCP npm package. - Authentication flow now requires user consent, with a clear explanation of local credential storage. - Set disable-model-invocation: true in skill metadata. - Clarified credential/config requirements in skill metadata.

What This Skill Does

An MCP server that connects to LeetCode for guided practice sessions. It enforces a four-level progressive hint system before revealing solutions and handles problem search, solution submission, and authentication against LeetCode's API.

The enforced four-level hint progression prevents solutions from being revealed prematurely, which a plain AI assistant would not enforce on its own.

When to use it

  • Practicing today's LeetCode daily challenge
  • Working through a medium-difficulty array problem with hints instead of spoilers
  • Submitting a coded solution to LeetCode without leaving the editor
  • Reviewing recent accepted submissions for a user profile
  • Finding problems filtered by topic tag or difficulty level

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: I want to practice a medium array problem

AGENT
  1. 1Calls get_started to load the session guide and prompt invocation rules
  2. 2Invokes leetcode_learning_mode before any problem discussion begins
  3. 3Calls search_problems with difficulty=medium and tag=array to surface candidates
  4. 4Invokes leetcode_problem_workflow with the selected slug and difficulty, then leetcode_workspace_setup to create a local file
  5. 5Guides the user through hint levels 1 through 3 before offering any solution code
OUTPUT

User writes a solution in a local workspace file and submits it via submit_solution, receiving feedback on pass/fail status

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

LeetCode account (required for solution submission and authenticated features like progress tracking)LeetCode session cookies (csrftoken and LEETCODE_SESSION values, obtained from browser developer tools after logging in)