Agent skill

Lc Python

by yennanliu in yennanliu/CS_basics

File a LeetCode Python solution into this repo the way the existing ones are filed — find the problem's real slug, write the Python file in the house layout (problem docstring, V0 with an IDEA block…

No licenceAuto-check: notesDevelopment

Install Lc Python

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

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

GitHub CLI
$ gh skill install yennanliu/CS_basics lc-python --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-python .claude/skills/lc-python && 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-python
GitHub stars
142
Token cost
~4.4k tokens
SKILL.md length
2,169 words
Files
1
Skills in repo
16
Repo updated
First seen
Licence
None found

At a glance

File a LeetCode Python solution into this repo the way the existing ones are filed — find the problem's real slug, write the Python file in the house layout (problem docstring, V0 with an IDEA block…

  • Works in 7 steps: Find the problem's source of truth → Read a neighbour before writing → Write leetcode_python//.py → …
  • Asked to add LC <number in Python
  • SKILL.md covers Prime directives, The steps, Do not and Worked example
  • Calls git and python3

What it does

Lc Python is an agent skill from yennanliu/CS_basics. File a LeetCode Python solution into this repo the way the existing ones are filed — find the problem's real slug, write the Python file in the house layout (problem docstring, V0 with an IDEA block and a time/space line; the standard, readable approach with explanatory comments and no clever syntactic sugar; every other good approach filed as V1, V2, …), smoke-test it against the examples, and insert the README row. Use when asked to "add LC <number" in Python, to file a problem just solved in a weekly contest…

Its SKILL.md is about 4.4k 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 Development, covering Technical documentation, QA and bug reports and Slides and decks. It works with Python and Java. The repository describes itself as: My CS learning : algorithm, data structure, and system design | SE.

When your agent uses it

  • Asked to add LC <number in Python
  • File a problem just solved in a weekly contest
  • Turn a pasted draft into a committed solution
  • Wire an existing solution file into README

Example prompts

  • “add LC <number”
  • “add LC 4038 to Hashtable”
  • “/lc-python 239 slidewindow”
  • “/lc-python”

Requirements

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

Workflow steps

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

  1. Find the problem's source of truth
  2. Read a neighbour before writing
  3. Write leetcode_python//.py
  4. File every good approach as its own version
  5. Smoke-test before reporting done
  6. Add the README row
  7. Report what was assumed

What it can do on your machine

Read from SKILL.md and the folder at commit d51b258. 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:

    • git
    • python3

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

  • Network

    No URLs in SKILL.md. Its commands use git, 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 Python loads about 4.4k tokens when it runs. Until then it costs about 208 tokens; SKILL.md has 2,169 words of instructions outside code blocks.

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

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 2,169 words (~4,360 tokens).

“Turn an LC number (plus, usually, a draft the user already wrote) into a committed-quality Python solution file and its README row, in the shape the other ~826 files under leetcode_python/ already use.”

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

Read the full SKILL.md on GitHub

Files

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

Open the folder on GitHubat commit d51b258

Compare with similar skills

Lc Python 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 Python compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Lc Python this skillyennanliu/CS_basics142—~4.4kAutomated safety check: NotesNone
Mkdocsjeka-dev/jeka176—~2kAutomated safety check: PassApache-2.0
Code Comment GeneratorArabelaTso/Skills-4-SE253—~4.6kAutomated safety check: PassApache-2.0
Edge Bringupexeex/edge-cores110—~1.7kAutomated safety check: NotesApache-2.0
OpenROAD Issue TriageThe-OpenROAD-Project/OpenROAD3.2k—~842Automated safety check: PassBSD-3-Clause
GAIA Agent Eval Scorecardamd/gaia1.6k—~2.6kAutomated safety check: PassMIT

Similar skills

  • Mkdocs

    jeka-dev/jeka

    MkDocs documentation project reference covering CLI commands, mkdocs.yml configuration, Material theme setup, and plugin integration.

    176 GitHub stars~2k tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Code Comment Generator

    ArabelaTso/Skills-4-SE

    Generates meaningful comments and documentation for code to improve maintenance and readability.

    253 GitHub stars~4.6k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Edge Bringup

    exeex/edge-cores

    Prepare a macOS or Ubuntu machine for edge-e3 development, diagnose missing Verilator/LLVM/Python dependencies, initialize the public repository, and answer or act on the example prompts in the root…

    110 GitHub stars~1.7k tokensUpdated 11 days ago
    AI & LLM EngineeringAuto-check: notes
  • OpenROAD Issue Triage

    The-OpenROAD-Project/OpenROAD

    Reproduces an OpenROAD GitHub bug from an attached tarball and shrinks the failing design with whittle.py so maintainers get a minimal test case.

    3.2k GitHub stars~842 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Adds a release eval scorecard to a GAIA hub agent by writing a harness adapter, running a real eval, and wiring the result into the agent's README and release gate.

    1.6k GitHub stars~2.6k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Tests a product's developer experience live in a browser: follows the docs and getting-started flow, times it, captures errors and produces a scorecard.

    136k GitHub stars~19k tokensUpdated today
    DevelopmentAuto-check: notes

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.

    142 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.

    142 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.

    142 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…

    142 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…

    142 GitHub stars~2.4k tokensUpdated today
    Auto-check: notes
  • Lc Cheatsheet

    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…

    142 GitHub stars~3.5k tokensUpdated today
    Auto-check: notes

Works with

Questions about Lc Python

What does Lc Python do?

File a LeetCode Python solution into this repo the way the existing ones are filed — find the problem's real slug, write the Python file in the house layout (problem docstring, V0 with an IDEA block…. Lc Python is an agent skill from yennanliu/CS_basics. File a LeetCode Python solution into this repo the way the existing ones are filed — find the problem's real slug, write the Python file in the house layout (problem docstring, V0 with an IDEA block and a time/space line; the standard, readable approach with explanatory comments and no clever syntactic sugar; every other good approach filed as V1, V2, …), smoke-test it against the examples, and insert the README row.

When should I use Lc Python?

Lc Python fits situations like: asked to add LC <number in Python; file a problem just solved in a weekly contest; turn a pasted draft into a committed solution; wire an existing solution file into README.

How do I install Lc Python in Claude Code?

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

How do I install Lc Python in Codex?

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

Can I use Lc Python 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-python -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-python, .gemini/skills/lc-python, .github/skills/lc-python and .opencode/skills/lc-python in your project.

What does Lc Python need to run?

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

Does Lc Python access the network?

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

Is Lc Python 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 Python use?

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

How many tokens does Lc Python use?

About 4.4k tokens (SKILL.md is roughly 17k 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 Python?

Skills that share tags, products or a category with Lc Python: Mkdocs (jeka-dev/jeka, 176 stars), Code Comment Generator (ArabelaTso/Skills-4-SE, 253 stars), Edge Bringup (exeex/edge-cores, 110 stars) and OpenROAD Issue Triage (The-OpenROAD-Project/OpenROAD, 3.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Lc Python?

yennanliu (a GitHub user) maintains it in yennanliu/CS_basics, which has 142 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 7, 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.