leetcode-coach

leetcode-coach is a skill for Cursor from JingyaLiu/ml-rs-interview-agent. It costs 56 tokens per session (585 once invoked), scanned A, original, MIT.

An interview coach for practicing LeetCode programming problems through four stages: understand, recognize the pattern, plan, code, and verify. LeetCode is a site with coding problems commonly used for technical interview practice.

In plain words
What is it for?
It supports practice with sliding windows, two pointers, binary search, arrays, edge cases, time and memory estimates, and gradually stronger hints when the learner is stuck.
Why use it?
It helps build the ability to recognize recurring solution patterns under time pressure while encouraging the learner to write the code first.

Skill for Cursor

Written for Cursor: installed under .cursor/.

Good fit It supports practice with sliding windows, two pointers, binary search, arrays, edge cases, time and memory estimates, and gradually stronger hints when the learner is stuck.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jingyaliu/ml-rs-interview-agent/leetcode-coach
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add JingyaLiu/ml-rs-interview-agent --skill leetcode-coach
Clone the repo
git clone --depth 1 https://github.com/JingyaLiu/ml-rs-interview-agent

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for leetcode-coach

README.md
[![agentmods](https://agentmods.dev/badge/skills/jingyaliu/ml-rs-interview-agent/leetcode-coach/github.svg)](https://agentmods.dev/skills/jingyaliu/ml-rs-interview-agent/leetcode-coach)
Your own site
<a href="https://agentmods.dev/skills/jingyaliu/ml-rs-interview-agent/leetcode-coach"><img src="https://agentmods.dev/badge/skills/jingyaliu/ml-rs-interview-agent/leetcode-coach/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for leetcode-coach

Your own site · 80×15
<a href="https://agentmods.dev/skills/jingyaliu/ml-rs-interview-agent/leetcode-coach"><img src="https://agentmods.dev/badge/skills/jingyaliu/ml-rs-interview-agent/leetcode-coach.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 585 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.00585
Opus 5 $0.00028 $0.00293
Sonnet 5 $0.00011 $0.00117
Haiku 4.5 $0.00006 $0.00059

Measured 9d ago against content hash 7764b555845b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

leetcode-coach scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/skills/leetcode-coach/SKILL.md · 66 lines

What it actually says

LeetCode Coach

Goal

Build pattern recall under interview constraints. Structure > spoilers. User codes; coach scaffolds.

Vault paths

What Where
Sliding window Learning-Vault/leetcode/sliding-windows/ (create if needed)
Two pointers Learning-Vault/leetcode/two-pointer/
Binary search Learning-Vault/leetcode/binary-search/
Pattern notes each folder's notes.md
Solutions practice */problems/*.py
Cadence see profile.md (often Mon/Wed/Fri ~60 min)

Session flow (always label steps)

  1. UNDERSTAND — restate; constraints; 2–3 I/O examples
  2. RECOGNIZE — name pattern; why; 1 common trap
  3. PLAN — 3–6 bullets; time/space
  4. CODE — user writes first; review after attempt
  5. VERIFY — edge cases; suggest cold re-solve date

Hint ladder (stuck)

  1. Clarifying question
  2. Pattern name nudge
  3. Pseudocode sketch (no full code)
  4. Skeleton only if still blocked >5 min
  5. Full solution only if they ask after attempt

Pattern cues

Pattern Tell Typical LC
Sliding window contiguous / unique / min window 3, 76, 209
Two pointers sorted pair / palindrome / container 125, 167, 15, 11
Binary search sorted / first-last / answer-space 704, 34, 875

After success

  • 1 line insight → append to folder notes.md if novel
  • Suggest 2 related problems for spaced repetition
  • Tick THIS_WEEK.md checkbox if present

Example prompts

Say this Expect
Coach me on LC 3 — don't give the answer U-R-P only, then wait
I think it's a sliding window — check my plan Validate / poke holes
Review my solution in problems/*.py Code review + edges

Anti-patterns

  • Dumping full solutions on first message
  • Jumping topics mid-session unless asked
  • Skipping RECOGNIZE (pattern naming is the product)
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 66 lines · 56 tokens per session scan A 7764b555845b

Subscribe to this mod's changes

leetcode-coach is a skill published in the GitHub repository JingyaLiu/ml-rs-interview-agent (5 stars, last pushed 27d ago), licensed MIT. It adds 56 tokens to every session and 585 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

hr-onboarding

A new-hire onboarding plan as a single page — first week schedule, buddy + manager intro, learning track, equipment checklist, and "you're set when…" outcomes. Use when the brief mentions "onboarding", "new hire", "first week plan", or "入职".

nexu-io/open-design · 62 tokens

book-mirror

Take any book (EPUB/PDF), produce a personalized chapter-by-chapter analysis. Each chapter is preserved in detail (The Chapter) and mirrored back to the reader's actual life (The Mirror) using brain context. The mirror observes and resonates — a friend pointing out parallels, NOT a consultant rearranging the reader's…

garrytan/gbrain · 138 tokens

miniapp

Build a tiny interactive HTML playground only when someone asks to see, play with, or step through a mechanism.

yc-software/qm · 25 tokens

eli5

Explain research, papers, or technical ideas in plain English with minimal jargon, concrete analogies, and clear takeaways. Use when the user says "ELI5 this", asks for a simple explanation of a paper or research result, wants jargon removed, or asks what something technically dense actually means.

companion-inc/feynman · 63 tokens

deck-course-module

A course or workshop slide template with persistent learning goals, teaching pages, multiple-choice self-tests, and a wrap-up.

nexu-io/html-anything · 25 tokens

master-yinguang

A reference-based assistant for questions about Yinguang and Pure Land Buddhism, a Buddhist tradition focused on faith, ethical living, and practice connected with rebirth in the Pure Land. It can answer in Yinguang’s historical teaching style.

xr843/Master-skill · 274 tokens