lcfix

Fix Python LeetCode solutions with minimal edits and # FIX comments.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/taoluo/leetcode-study-system --skill lcfix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lcfix
Source: https://github.com/taoluo/leetcode-study-system/tree/main/.claude/skills/lcfix
Command: npx skills add https://github.com/taoluo/leetcode-study-system --skill lcfix

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers perform minimal, auditable fixes on LeetCode solutions, preserving the original logic while clearly documenting each repair with explicit # FIX comments.

Core Features & Use Cases

  • Identify the target LeetCode Python file, read its header metadata (id, name, difficulty, tags), and determine the smallest honest repair.
  • Apply the repair without rewriting the algorithm, preserving structure and behavior, and annotate changes with precise # FIX: notes for traceability.
  • Manual-only workflow: the skill should not run automatically and is designed for careful, auditable edits.

Quick Start

Open a buggy LeetCode Python file and run the lcfix workflow to apply the smallest honest repair.

Frequently Asked Questions about lcfix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix bugs in my Python LeetCode solutions without rewriting the original logic?

To fix Python LeetCode solutions, this skill applies the smallest honest repair to buggy files without rewriting the algorithm, preserving the original structure while annotating every change with precise # FIX comments for traceability.

What is the best way to add code review annotations to buggy Python solutions?

Adding code review annotations involves inserting explicit # FIX comments directly at repair sites. This method performs minimal edits on Python solution files and documents the exact reasoning for each bug fix locally.

Can I automatically restructure my LeetCode algorithm during a bug fix?

No, the workflow performs the smallest honest repair without rewriting the algorithm, ensuring the original logic and behavior are strictly preserved during the Python bug fix.

Does the minimal LeetCode fix workflow run automatically on save?

No, the minimal LeetCode fix workflow is manual-only and designed for careful, auditable edits, requiring you to explicitly trigger the repair process on a specific buggy Python file.

What metadata do I need in my Python file for LeetCode bug fixing?

For LeetCode bug fixing, the Python file header must contain metadata including id, name, difficulty, and tags. The repair process reads this header to identify the target solution.