Agent skill

Lc Java

by yennanliu in yennanliu/CS_basics

File a LeetCode Java solution into this repo the way the existing ones are filed — put it in the package its pattern owns, write the file-level javadoc header (<number.

No licenceAuto-check: notesDevelopment

Install Lc Java

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

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

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

At a glance

File a LeetCode Java solution into this repo the way the existing ones are filed — put it in the package its pattern owns, write the file-level javadoc header (<number.

  • Works in 9 steps: Settle the problem, and find the row… → Pick up the draft from the workspace → Read a neighbour before writing → …
  • Asked to add LC <number in Java
  • SKILL.md covers Prime directives, The steps, Do not and Worked example
  • Calls javac, java and python3; reaches leetcode.com and neetcode.io

What it does

Lc Java is an agent skill from yennanliu/CS_basics. File a LeetCode Java solution into this repo the way the existing ones are filed — put it in the package its pattern owns, write the file-level javadoc header (<number. <Title then difficulty then the statement), mark the solution blocks // V0 / // V0-1 / // V1-1 so the markers match the method names, add the time = / space = javadoc, compile and run it, write every block as the standard, readable approach with explanatory comments and no clever syntactic sugar, file each other good approach as // V1, // V2, ……

Its SKILL.md is about 5.2k 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 Test coverage and Technical documentation. It works with Java and Python. 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 Java
  • File a draft out of ws/Workspace26.java
  • Port an existing Python solution to Java
  • Close part of the Java coverage gap

Example prompts

  • “add LC <number in Java”
  • “add LC 25 to LinkedList in java”
  • “/lc-java 239 SlideWindow”
  • “/lc-java”

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. Settle the problem, and find the row that already exists
  2. Pick up the draft from the workspace
  3. Read a neighbour before writing
  4. Write leetcode_java/src/main/java/LeetCodeJava//.java
  5. File every good approach as its own block
  6. Compile and smoke-test before reporting done
  7. Update the README row
  8. Check the coverage join actually sees the file
  9. Report what was assumed

What it can do on your machine

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

    • javac
    • java
    • python3

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • leetcode.com
    • neetcode.io

    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 Java loads about 5.2k tokens when it runs. Until then it costs about 230 tokens; SKILL.md has 2,470 words of instructions outside code blocks.

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

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,470 words (~5,199 tokens).

“Turn an LC number (plus, usually, a draft sitting in ws/Workspace26.java) into a committed-quality Java file and the [Java] link on its README row, in the shape the other ~1626 files under leetcode_java/ already use.”

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

Read the full SKILL.md on GitHub

Files

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

Open the folder on GitHubat commit dc0a1ac

Compare with similar skills

Lc Java 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 Java compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Lc Java this skillyennanliu/CS_basics142—~5.2kAutomated safety check: NotesNone
Mkdocsjeka-dev/jeka176—~2kAutomated safety check: PassApache-2.0
Supercovsupercorp-ai/supercov1501 repos~415Automated safety check: PassMIT
Code Comment GeneratorArabelaTso/Skills-4-SE253—~4.6kAutomated safety check: PassApache-2.0
Find Untested Sourcesdotnet/skills5.6k1 repos~3.3kAutomated safety check: PassMIT
TDD GuideLeoYeAI/openclaw-master-skills2.2k—~1.4kAutomated 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
  • Supercov

    supercorp-ai/supercov

    Measures test coverage and code quality in a repository with the supercov CLI, and turns what it finds into small, focused tests or fixes.

    150 GitHub starsUsed in 1 repo~415 tokens
    Testing & QAAuto-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
  • Official

    Statically pairs source files with test files to list code that no test references, using Roslyn for C# or tree-sitter for many languages, with no build.

    5.6k GitHub starsUsed in 1 repo~3.3k tokens
    Testing & QAAuto-check passed
  • TDD Guide

    LeoYeAI/openclaw-master-skills

    Test-driven development skill for writing unit tests, generating test fixtures and mocks, analyzing coverage gaps, and guiding red-green-refactor workflows across Jest, Pytest, JUnit, Vitest, and…

    2.2k GitHub stars~1.4k tokensUpdated 2 mo ago
    Testing & QAAuto-check passed
  • Test Oracle Generator

    ArabelaTso/Skills-4-SE

    Generates automated test oracles to verify correct software behavior.

    253 GitHub stars~3.5k 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.

    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 Java

What does Lc Java do?

File a LeetCode Java solution into this repo the way the existing ones are filed — put it in the package its pattern owns, write the file-level javadoc header (<number. Lc Java is an agent skill from yennanliu/CS_basics. File a LeetCode Java solution into this repo the way the existing ones are filed — put it in the package its pattern owns, write the file-level javadoc header (<number.

When should I use Lc Java?

Lc Java fits situations like: asked to add LC <number in Java; file a draft out of ws/Workspace26.java; port an existing Python solution to Java; close part of the Java coverage gap.

How do I install Lc Java in Claude Code?

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

How do I install Lc Java in Codex?

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

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

What does Lc Java need to run?

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

Does Lc Java access the network?

SKILL.md names 2 domains. In commands or code: leetcode.com and neetcode.io; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

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

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

How many tokens does Lc Java use?

About 5.2k tokens (SKILL.md is roughly 21k 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 Java?

Skills that share tags, products or a category with Lc Java: Mkdocs (jeka-dev/jeka, 176 stars), Supercov (supercorp-ai/supercov, 150 stars), Code Comment Generator (ArabelaTso/Skills-4-SE, 253 stars) and Find Untested Sources (dotnet/skills, 5.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Lc Java?

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 8, 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.