Agent skill

Lc Cheatsheet

by yennanliu in yennanliu/CS_basics

File a LeetCode problem into the cheatsheets under doc/cheatsheet/ the way the existing sections are written — find the sheet whose Scope line owns the topic, file it under the pattern it belongs to…

No licenceAuto-check: notesTesting & QA

Install Lc Cheatsheet

skills CLI
$ npx skills add yennanliu/CS_basics --skill lc-cheatsheet -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install yennanliu/CS_basics lc-cheatsheet --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/yennanliu/CS_basics.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/lc-cheatsheet .claude/skills/lc-cheatsheet && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
lc-cheatsheet
GitHub stars
141
Token cost
~3.5k tokens
SKILL.md length
1,658 words
Files
1
Skills in repo
16
Repo updated
First seen
Licence
None found

At a glance

File a LeetCode problem into the cheatsheets under doc/cheatsheet/ the way the existing sections are written — find the sheet whose Scope line owns the topic, file it under the pattern it belongs to…

  • Works in 9 steps: Find the sheet that owns it → Pick the mode from what the sheet… → Read the neighbouring section before… → …
  • Update a cheatsheet
  • SKILL.md covers Prime directives, The steps, Do not and Worked example
  • Calls node, python3 and bash

What it does

Lc Cheatsheet is an agent skill from yennanliu/CS_basics. File a LeetCode problem into the cheatsheets under doc/cheatsheet/ the way the existing sections are written — find the sheet whose Scope line owns the topic, file it under the pattern it belongs to (a worked example, a variation on an existing template, a new pattern section, or a new sheet), smoke-test every snippet, fix the heading anchors the edit moved, and re-translate the 中文 sections it invalidated. Use when asked to add or update a cheatsheet, to document a pattern just learned, to add an LC example or a…

Its SKILL.md is about 3.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering QA and bug reports. The repository describes itself as: My CS learning : algorithm, data structure, and system design | SE.

When your agent uses it

  • Update a cheatsheet
  • Document a pattern just learned
  • Add an LC example
  • A template variation to a sheet

Example prompts

  • “add LC 1650 to binarytree as a variation”
  • “/lc-cheatsheet 239 into slidingwindow”
  • “document the monotonic stack pattern”
  • “/lc-cheatsheet”

Requirements

  • Python 3
  • Pre-approved tools (allowed-tools): Read, Glob, Grep, Bash, Write, Edit

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. Find the sheet that owns it
  2. Pick the mode from what the sheet already has
  3. Read the neighbouring section before writing
  4. Write the section
  5. Follow the anchors the edit moved
  6. Smoke-test every snippet
  7. Re-key the 中文 overlay
  8. Verify the way CI does
  9. Report what was assumed

What it can do on your machine

Read from SKILL.md and the folder at commit b6cade9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • Bash
    • Write
    • Edit

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • node
    • python3
    • bash
    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Lc Cheatsheet loads about 3.5k tokens when it runs. Until then it costs about 196 tokens; SKILL.md has 1,658 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~196
When it runs · the whole SKILL.md, loaded when a task matches
~3.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Glob, Grep, Bash, Write, Edit

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 1,658 words (~3,531 tokens).

“Turn a problem (or a pattern just learned) into a cheatsheet section in the shape the other ~130 sheets under doc/cheatsheet/ already use — filed under the pattern that owns it, with every snippet run, every moved anchor followed, and…”

— opening of SKILL.md by yennanliu
name
lc-cheatsheet
allowed-tools
Read, Glob, Grep, Bash, Write, Edit

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/lc-cheatsheet of yennanliu/CS_basics.

Open the folder on GitHubat commit b6cade9

Compare with similar skills

Lc Cheatsheet next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Lc Cheatsheet compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Lc Cheatsheet this skillyennanliu/CS_basics141—~3.5kAutomated safety check: NotesNone
Reproduce Chat Statesdifferent-ai/openwork24k—~673Automated safety check: PassCustom licence
Dynamo Jira TicketDynamoDS/Dynamo2k—~1.1kAutomated safety check: PassApache-2.0
Moav E2EMotherofallVPNs/MoaV449—~1.9kAutomated safety check: NotesMIT
Creating A Coral TaskHuman-Agent-Society/CORAL1.1k—~2.2kAutomated safety check: PassApache-2.0
Launch Rlmarin-community/marin3.9k—~894Automated safety check: PassApache-2.0

Similar skills

  • Reproduce Chat States

    different-ai/openwork

    Fires known chat states in the running OpenWork desktop app, such as provider errors, retries and tool steps, so you can check how each renders.

    24k GitHub stars~673 tokensUpdated today
    Testing & QAAuto-check passed
  • Dynamo Jira Ticket

    DynamoDS/Dynamo

    Create structured Jira tickets for Dynamo from bug reports, failing tests, or feature requests.

    2k GitHub stars~1.1k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Moav E2E

    MotherofallVPNs/MoaV

    Run and debug MoaV's end-to-end tests — real protocol connectivity (client-test.sh) and the moav CLI smoke test — against a LIVE server, via the self-hosted e2e workflow or a local test VPS.

    449 GitHub stars~1.9k tokensUpdated 4 days ago
    Testing & QAAuto-check: notes
  • Creating A Coral Task

    Human-Agent-Society/CORAL

    Author a new CORAL task — the three pieces that must line up (task.yaml, seed/, a packaged grader/), the coral init → coral validate → smoke-test loop, and how to pick a grader pattern (stdout…

    1.1k GitHub stars~2.2k tokensUpdated 1 mo ago
    Testing & QAAuto-check passed
  • Launch Rl

    marin-community/marin

    Define, validate, submit, or restart a Marin SkyRL experiment through its artifact main.

    3.9k GitHub stars~894 tokensUpdated today
    Testing & QAAuto-check passed
  • Actionbook Web Test

    actionbook/actionbook

    Run browser-based web tests against websites using Actionbook CLI.

    1.6k GitHub stars~9.7k tokensUpdated 1 mo ago
    Testing & QAAuto-check passed

More from yennanliu/CS_basics

All 16 skills in this repo
  • Lc Coach

    yennanliu/CS_basics

    FAANG coding-interview coach. An agent skill from yennanliu/CS_basics.

    141 GitHub stars~5k tokensUpdated today
    Auto-check: notes
  • Code Refactor Master

    yennanliu/CS_basics

    Code refactoring expert for improving code quality, readability, maintainability, and performance.

    141 GitHub stars~3.3k tokensUpdated today
    Auto-check passed
  • L3 Core

    yennanliu/CS_basics

    Report where the L3 core set stands and pick the next problems to drill from it.

    141 GitHub stars~2.2k tokensUpdated today
    Auto-check: notes
  • Lc Again

    yennanliu/CS_basics

    Move a problem's README status cell after a re-solve — promote AGAIN to OK when it was genuinely re-derived unaided, add a review pass when it was not, or demote OK back to AGAIN when a solid…

    141 GitHub stars~2.4k tokensUpdated today
    Auto-check: notes
  • Lc Algo Demo

    yennanliu/CS_basics

    Add or edit an algorithm visualizer under algodemo/ against the shared contract the other 36 pages already obey — colours read from the VIZ palette and never hardcoded, no re-implementation of the…

    141 GitHub stars~2.4k tokensUpdated today
    Auto-check: notes
  • Lc Discussion

    yennanliu/CS_basics

    Search recent LeetCode Discuss posts (leetcode.com/discuss/) by keyword — a company, a level, a round — read the ones that describe real interview questions, map each question to an LC number, check…

    141 GitHub stars~2k tokensUpdated today
    Auto-check: notes

Categories

Questions about Lc Cheatsheet

What does Lc Cheatsheet do?

File a LeetCode problem into the cheatsheets under doc/cheatsheet/ the way the existing sections are written — find the sheet whose Scope line owns the topic, file it under the pattern it belongs to…. Lc Cheatsheet is an agent skill from yennanliu/CS_basics. File a LeetCode problem into the cheatsheets under doc/cheatsheet/ the way the existing sections are written — find the sheet whose Scope line owns the topic, file it under the pattern it belongs to (a worked example, a variation on an existing template, a new pattern section, or a new sheet), smoke-test every snippet, fix the heading anchors the edit moved, and re-translate the 中文 sections it invalidated.

When should I use Lc Cheatsheet?

Lc Cheatsheet fits situations like: update a cheatsheet; document a pattern just learned; add an LC example; A template variation to a sheet.

How do I install Lc Cheatsheet in Claude Code?

Run `npx skills add yennanliu/CS_basics --skill lc-cheatsheet -a claude-code`. Or copy the skill folder (.claude/skills/lc-cheatsheet in yennanliu/CS_basics) into .claude/skills/lc-cheatsheet in your project. Claude Code loads it when a task matches its description.

How do I install Lc Cheatsheet in Codex?

Run `npx skills add yennanliu/CS_basics --skill lc-cheatsheet -a codex`. Or copy the skill folder (.claude/skills/lc-cheatsheet in yennanliu/CS_basics) into .agents/skills/lc-cheatsheet in your project. Codex loads it when a task matches its description.

Can I use Lc Cheatsheet in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yennanliu/CS_basics --skill lc-cheatsheet -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/lc-cheatsheet, .gemini/skills/lc-cheatsheet, .github/skills/lc-cheatsheet and .opencode/skills/lc-cheatsheet in your project.

What does Lc Cheatsheet need to run?

Going by SKILL.md and its folder, Lc Cheatsheet needs the command-line tools its instructions call (node, python3, bash and npm). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Glob, Grep, Bash, Write, Edit.

Does Lc Cheatsheet access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Lc Cheatsheet safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Lc Cheatsheet use?

No licence was found for Lc Cheatsheet or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Lc Cheatsheet use?

About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Lc Cheatsheet?

Skills that share tags, products or a category with Lc Cheatsheet: Reproduce Chat States (different-ai/openwork, 24k stars), Dynamo Jira Ticket (DynamoDS/Dynamo, 2k stars), Moav E2E (MotherofallVPNs/MoaV, 449 stars) and Creating A Coral Task (Human-Agent-Society/CORAL, 1.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Lc Cheatsheet?

yennanliu (a GitHub user) maintains it in yennanliu/CS_basics, which has 141 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 11, 2026.

Source: yennanliu/CS_basics on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.