Agent skill

Add Time Space

by yennanliu in yennanliu/CS_basics

Add standardized Javadoc time and space complexity comments to LeetCode Java solutions.

No licenceAuto-check: notesDevelopment

Install Add Time Space

skills CLI
$ npx skills add yennanliu/CS_basics --skill add-time-space -a claude-code

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

GitHub CLI
$ gh skill install yennanliu/CS_basics add-time-space --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/add-time-space .claude/skills/add-time-space && 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
add-time-space
GitHub stars
141
Token cost
~555 tokens
SKILL.md length
202 words
Files
1
Skills in repo
16
Repo updated
First seen
Licence
None found

At a glance

Add standardized Javadoc time and space complexity comments to LeetCode Java solutions.

  • Works in 6 steps: Validate Input → Run the Python Script → Manual Processing (if needed) → …
  • A directory under leetcodejava/ needs its time = O(...) / space = O(...) annotations added
  • Calls git and python3
  • Normalised from inline comments

What it does

Add Time Space is an agent skill from yennanliu/CS_basics. Add standardized Javadoc time and space complexity comments to LeetCode Java solutions. Use when a directory under leetcodejava/ needs its time = O(...) / space = O(...) annotations added, normalised from inline comments, or filled in by hand where the script could not infer them.

Its SKILL.md is about 560 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. It works with Java. The repository describes itself as: My CS learning : algorithm, data structure, and system design | SE.

When your agent uses it

  • A directory under leetcodejava/ needs its time = O(...) / space = O(...) annotations added
  • Normalised from inline comments
  • Filled in by hand where the script could not infer them

Example prompts

  • “/add-time-space”

Requirements

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

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Validate Input
  2. Run the Python Script
  3. Manual Processing (if needed)
  4. Verify Changes
  5. Stop at the diff. Don't commit or push unless asked.
  6. Report Results

What it can do on your machine

Read from SKILL.md and the folder at commit cb6b21b. 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
    • Edit
    • Bash

    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

Add Time Space loads about 555 tokens when it runs. Until then it costs about 75 tokens; SKILL.md has 202 words of instructions outside code blocks.

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

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, Edit, Bash

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 202 words (~555 tokens).

“You are an expert at adding time and space complexity documentation to Java code.”

— opening of SKILL.md by yennanliu
name
add-time-space
allowed-tools
Read, Glob, Grep, Edit, Bash

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/add-time-space of yennanliu/CS_basics.

Open the folder on GitHubat commit cb6b21b

Compare with similar skills

Add Time Space 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.

Add Time Space compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Time Space this skillyennanliu/CS_basics141—~555Automated safety check: NotesNone
Mkdocsjeka-dev/jeka176—~2kAutomated safety check: PassApache-2.0
Releasesol4k/sol4k135—~949Automated safety check: PassApache-2.0
Clarify Java CommentsDataDog/dd-trace-java736—~2.3kAutomated safety check: NotesApache-2.0
Releaseosama-raddad/FireCrasher147—~649Automated safety check: PassApache-2.0
170 Java Documentationjabrena/plinth447—~784Automated safety check: PassApache-2.0

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
  • Release

    sol4k/sol4k

    Bump the sol4k library version everywhere, open a release PR, and draft GitHub release notes.

    135 GitHub stars~949 tokensUpdated 13 days ago
    DevelopmentAuto-check passed
  • Clarify Java Comments

    DataDog/dd-trace-java

    Official

    Clarify or review Java Javadocs, Javadoc tags, and explanatory code comments for legibility, accuracy, and source alignment.

    736 GitHub stars~2.3k tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • Release

    osama-raddad/FireCrasher

    Cut a new FireCrasher library release — bump the version, sync the README and ABI baseline, verify, and tag for JitPack.

    147 GitHub stars~649 tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • A skill your agent uses when you need to generate or improve Java project documentation — including README.md files, package-info.java files, and Javadoc enhancements — through a modular, step-based…

    447 GitHub stars~784 tokensUpdated 3 days 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

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

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

Works with

Categories

Questions about Add Time Space

What does Add Time Space do?

Add standardized Javadoc time and space complexity comments to LeetCode Java solutions. Add Time Space is an agent skill from yennanliu/CS_basics. Add standardized Javadoc time and space complexity comments to LeetCode Java solutions.

When should I use Add Time Space?

Add Time Space fits situations like: A directory under leetcodejava/ needs its time = O(...) / space = O(...) annotations added; normalised from inline comments; filled in by hand where the script could not infer them.

How do I install Add Time Space in Claude Code?

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

How do I install Add Time Space in Codex?

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

Can I use Add Time Space 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 add-time-space -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-time-space, .gemini/skills/add-time-space, .github/skills/add-time-space and .opencode/skills/add-time-space in your project.

What does Add Time Space need to run?

Going by SKILL.md and its folder, Add Time Space 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, Edit, Bash.

Does Add Time Space 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 Add Time Space 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 Add Time Space use?

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

How many tokens does Add Time Space use?

About 555 tokens (SKILL.md is roughly 2.2k 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 Add Time Space?

Skills that share tags, products or a category with Add Time Space: Mkdocs (jeka-dev/jeka, 176 stars), Release (sol4k/sol4k, 135 stars), Clarify Java Comments (DataDog/dd-trace-java, 736 stars) and Release (osama-raddad/FireCrasher, 147 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Time Space?

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