← Back to Skills Marketplace
candiecandyy

leetcode-plan

by 八云绿 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
110
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install leetcode-plan
Description
12周LeetCode跳槽刷题计划助手。当用户输入"第X天"或"DX"时触发,返回对应题目;当用户提交解题答案或表示未解出时,生成错题记录并写入errorset.md;根据当天进度推荐复习之前的错题。适用于系统性刷题打卡、错题管理和间隔复习场景。
README (SKILL.md)

LeetCode 刷题计划助手

核心工作流

1. 用户输入天数

当用户说"第X天"或"DX"时:

  1. 查阅 references/plan.md 找到对应天数的题目
  2. 若为复盘日(D7/D14/D20/D21/D28/D36/D44/D51/D58/D66/D73/D80等):提示用户复习错题,并运行:
    python3 scripts/manage_errors.py review \x3Cday>
    
  3. 若为正常题目日:输出格式:
## 第X天 - [题型]

**题号**:[题号]. [题目名称]
**难度**:[Easy/Medium/Hard]
**LeetCode链接**:https://leetcode.cn/problems/[slug]/

---
完成后请回复:
- 你的解题方案(代码或思路)
- 或「没做出来」+ 错误原因(可简短描述)

同时推荐当天需要复习的错题(若有):

python3 scripts/manage_errors.py review \x3Cday>

2. 用户提交解答

用户解出了:给出简短点评,指出可优化点,标注相似题(查 references/plan.md 相似题表)。若解法与最优解差距过大,则按未解出处理。

用户没做出来

  1. 请用户提供错误原因(一句话即可)
  2. 收到原因后,自动生成:
    • 核心思路:该题的关键解题思路(2-4句)
    • 相似题:从 references/plan.md 查找对应相似题
  3. 调用脚本记录到 errorset.md(路径:当前工作目录下):
    python3 scripts/manage_errors.py add \x3Cday> "\x3C题号>" "\x3C题目名>" "\x3C类型>" "\x3C错误原因>" "\x3C核心思路>" "\x3C相似题>"
    
  4. 确认记录成功,告知用户复习计划(D+1、D+3、D+7)

3. 复习推荐

每次用户说天数时,先检查当天是否有待复习错题,若有则在题目前展示:

## 今日复习提醒
以下错题需要今天重做:
- [题号] [题目名] (类型:XXX)
  核心思路:...

注意事项

  • errorset.md 保存在用户当前工作目录,不是 skill 目录
  • 核心思路和相似题由 Claude 生成,不需要用户填写
  • 错误原因需用户提供,其余字段自动填充
  • 题号参考表在 references/plan.md,相似题也在该文件末尾
Usage Guidance
This skill appears coherent and limited in scope, but check the working directory before running it: it will create or overwrite errorset.md in whatever directory the agent runs in. Ensure you are comfortable with a local file being written there and that you have Python 3 available. Also avoid pasting sensitive data into '错误原因' fields since the skill stores user-provided text in the local errorset.md (the script does not transmit data externally). If you prefer the file elsewhere, run the agent from a directory you control or modify the script to point to a different path.
Capability Analysis
Type: OpenClaw Skill Name: leetcode-plan Version: 1.0.1 The skill bundle is designed to manage a LeetCode study plan using a local Python script (scripts/manage_errors.py) to maintain a markdown-based error log (errorset.md). It is classified as suspicious because the instructions in SKILL.md direct the AI agent to execute shell commands using user-provided input (error reasons) as arguments, which presents a shell injection vulnerability. However, there is no evidence of intentional malice, data exfiltration, or unauthorized network activity.
Capability Assessment
Purpose & Capability
Name/description (12-week LeetCode plan,错题管理) match the provided files: references/plan.md contains the schedule and similarity table, SKILL.md describes using scripts/manage_errors.py to record/review errors. No unrelated credentials, binaries, or paths are requested.
Instruction Scope
SKILL.md instructs the agent to consult references/plan.md and to run scripts/manage_errors.py to add/review/list errors. The script only reads/writes errorset.md in the current working directory and reads references/plan.md for problem info; it does not access other system files or external endpoints. The SKILL.md explicitly warns errorset.md is created in the user's current working directory.
Install Mechanism
Instruction-only skill with a small Python script; no install spec, no downloads, and no archive extraction. Risk from installation is minimal — it requires a local Python runtime to run the script.
Credentials
No environment variables, credentials, or config paths are requested. The script uses os.getcwd() to decide where to write errorset.md — this is proportional to the stated goal of storing a local错题本.
Persistence & Privilege
always is false and the skill does not request persistent elevated privileges or modify other skills. Its only side effect is creating/updating errorset.md in the agent's current working directory.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install leetcode-plan
  3. After installation, invoke the skill by name or use /leetcode-plan
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- 简化和统一脚本调用路径,将 manage_errors.py 路径从 ~/.codeflicker/skills/leetcode-plan/scripts/ 更改为 scripts/ - 所有相关 Bash 调用和说明中移除绝对路径,使用相对 scripts/ 目录 - 其余功能描述未作更动
v1.0.0
LeetCode刷题计划助手首次发布! - 支持查询每日刷题内容及LeetCode题目信息,适用12周跳槽刷题计划 - 智能记录并管理用户未解出和做错的题,生成错题本(errorset.md) - 按间隔复习法推荐每日需复习的错题 - 自动对错题归档,标注核心思路和相似题,方便系统性提高 - 适配打卡、错题整理和阶段性复习等场景
Metadata
Slug leetcode-plan
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is leetcode-plan?

12周LeetCode跳槽刷题计划助手。当用户输入"第X天"或"DX"时触发,返回对应题目;当用户提交解题答案或表示未解出时,生成错题记录并写入errorset.md;根据当天进度推荐复习之前的错题。适用于系统性刷题打卡、错题管理和间隔复习场景。 It is an AI Agent Skill for Claude Code / OpenClaw, with 110 downloads so far.

How do I install leetcode-plan?

Run "/install leetcode-plan" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is leetcode-plan free?

Yes, leetcode-plan is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does leetcode-plan support?

leetcode-plan is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created leetcode-plan?

It is built and maintained by 八云绿 (@candiecandyy); the current version is v1.0.1.

💬 Comments