跳到正文
TakoAPI
返回技能列表

interactive-leetcode

由 sperekrestova 提供

Coding Agents & IDEs
939下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

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

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

User asks: I want to practice a medium array problem

智能体
  1. 1

    Calls get_started to load the session guide and prompt invocation rules

  2. 2

    Invokes leetcode_learning_mode before any problem discussion begins

  3. 3

    Calls search_problems with difficulty=medium and tag=array to surface candidates

  4. 4

    Invokes leetcode_problem_workflow with the selected slug and difficulty, then leetcode_workspace_setup to create a local file

  5. 5

    Guides the user through hint levels 1 through 3 before offering any solution code

输出

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

前置要求

  • 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)

安装

clawhub install sperekrestova/interactive-leetcode

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接