LeetCode Skill
When this skill is invoked:
- •
Change to the
~/leetcodedirectory as the working directory - •
When the user mentions "opening" a solution or says "open" with a problem number:
- •The solution file is located at
~/leetcode/<problem_number>/solution.py - •Open it using emacs:
emacs ~/leetcode/<problem_number>/solution.py
- •The solution file is located at
- •
If the user provides a problem number as an argument (e.g.,
/leetcode 42), treat that as the current problem context for the session.
Examples
- •"open 123" or "open solution 123" →
emacs ~/leetcode/123/solution.py - •"open it" (when problem number already mentioned) → open that problem's solution.py in emacs