Agent skill

Comment Code

by jd-solanki in jd-solanki/slidev-theme-dracula

Write clear, useful in-code comments and documentation that capture what the code cannot say for itself.

No licenceAuto-check passedDevelopment

Install Comment Code

skills CLI
$ npx skills add jd-solanki/slidev-theme-dracula --skill comment-code -a claude-code

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

GitHub CLI
$ gh skill install jd-solanki/slidev-theme-dracula comment-code --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/jd-solanki/slidev-theme-dracula.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.ai/skills/comment-code .claude/skills/comment-code && 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
comment-code
GitHub stars
161
Token cost
~2.7k tokens
SKILL.md length
1,336 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
None found

At a glance

Write clear, useful in-code comments and documentation that capture what the code cannot say for itself.

  • Works in 6 steps: Write the comment, then apply the test:… → For declarations, add the precision the… → For methods/classes, write the interface… → …
  • Revising comments
  • SKILL.md covers The one rule that governs…, Don't repeat the code, Comments work at a different… and Comment categories — and which…, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Comment Code is an agent skill from jd-solanki/slidev-theme-dracula. Write clear, useful in-code comments and documentation that capture what the code cannot say for itself. Use this skill whenever writing or revising comments, docstrings, interface/API documentation, function or class headers, or inline explanations — and whenever reviewing code for comment quality or being asked to "document," "add comments," "explain in comments," or improve existing comments. Apply it even when the request only mentions writing the code, since fresh code is the moment to document it well.

Its SKILL.md is about 2.7k 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. The repository describes itself as: Dracula theme for slidev 🧛.

When your agent uses it

  • Revising comments
  • Interface/API documentation
  • Inline explanations — and whenever reviewing code for comment quality
  • Being asked to document

Example prompts

  • “document,”
  • “add comments,”
  • “explain in comments,”
  • “/comment-code”

Requirements

  • Python 3

Workflow steps

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

  1. Write the comment, then apply the test: could a first-time reader produce this from the adjacent code alone? If yes, rewrite or delete.
  2. For declarations, add the precision the type omits (units, bounds, null meaning, ownership, invariants). Describe what it represents, not…
  3. For methods/classes, write the interface comment first — behavior, parameters, return, side effects, exceptions, preconditions — keeping…
  4. Inside long methods, label major blocks and complex loops at a higher level, and explain any non-obvious why.
  5. Use words different from the entity's name; reach for the level of detail above or below the code, never the same level.
  6. If you can't write an interface comment without describing the implementation, treat that as a design smell, not just a writing problem.

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are c, python and java).

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

  • Network

    No URLs in SKILL.md.

    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

Comment Code loads about 2.7k tokens when it runs. Until then it costs about 132 tokens; SKILL.md has 1,336 words of instructions outside code blocks.

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

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 passed

The automated check found no risky patterns in SKILL.md.

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,336 words (~2,700 tokens).

“Comments exist to capture information that was in the writer's mind but cannot be expressed in the code itself. Code states what happens mechanically; comments supply intent, contracts, rationale, units, invariants, and the higher-level picture. Good comments make a system…”

— opening of SKILL.md by jd-solanki
name
comment-code

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .ai/skills/comment-code of jd-solanki/slidev-theme-dracula.

Open the folder on GitHubat commit 383e9b1

Compare with similar skills

Comment Code 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.

Comment Code compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Comment Code this skilljd-solanki/slidev-theme-dracula161—~2.7kAutomated safety check: PassNone
Diagram Designcathrynlavery/diagram-design45k1 repos~7.5kAutomated safety check: PassMIT
Simple Englishmoeru-ai/airi50k2 repos~4.6kAutomated safety check: PassMIT
Get API Docs with chubandrewyng/context-hub14k2 repos~775Automated safety check: PassMIT
Doc SyncJetBrains/ideavim10k2 repos~2.6kAutomated safety check: PassMIT
Mailspring App ScreenshotsFoundry376/Mailspring18k—~1.5kAutomated safety check: PassGPL-3.0

Similar skills

  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    45k GitHub starsUsed in 1 repo~7.5k tokens
    DevelopmentAuto-check passed
  • Simple English

    moeru-ai/airi

    Write or rewrite technical text with the rules of ASD-STE100 Simplified Technical English so it is clear, unambiguous, and free of AI slop.

    50k GitHub starsUsed in 2 repos~4.6k tokens
    DevelopmentAuto-check passed
  • Get API Docs with chub

    andrewyng/context-hub

    Fetches current documentation for third-party APIs and SDKs with the chub CLI before the agent writes code against them, instead of relying on remembered API shapes.

    14k GitHub starsUsed in 2 repos~775 tokens
    DevelopmentAuto-check passed
  • Doc Sync

    JetBrains/ideavim

    Official

    Keeps IdeaVim documentation in sync with code changes. An agent skill from JetBrains/ideavim.

    10k GitHub starsUsed in 2 repos~2.6k tokens
    DevelopmentAuto-check passed
  • Mailspring App Screenshots

    Foundry376/Mailspring

    Captures screenshots of the running Mailspring dev app for docs, PRs or visual checks by launching it with a debugging port, driving the UI and clipping to an element.

    18k GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Draw.io Diagram Studio

    Agents365-ai/drawio-skill

    Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.

    10k GitHub stars~2.4k tokensUpdated 5 days ago
    DevelopmentAuto-check: notes

More from jd-solanki/slidev-theme-dracula

  • Automate npm Release

    jd-solanki/slidev-theme-dracula

    Automate npm package publishing via GitHub Actions for single-package repos and independent monorepo packages, including bumpp version tags, GitHub release notes, trusted publishing, provenance, and…

    161 GitHub stars~626 tokensUpdated 3 mo ago
    Auto-check passed
  • Clean Code

    jd-solanki/slidev-theme-dracula

    Write readable, maintainable code through disciplined naming, small functions, and clean error handling.

    161 GitHub starsUsed in 1 repo~3.8k tokens
    Auto-check passed
  • Node CLI

    jd-solanki/slidev-theme-dracula

    Patterns and conventions for building Node.js CLI tools — src structure, entry point setup, Commander wiring, and update notifications.

    161 GitHub stars~1.6k tokensUpdated 3 mo ago
    Auto-check passed
  • Automate Commit Based Gh Release Changelog

    jd-solanki/slidev-theme-dracula

    Automate GitHub release creation and changelog generation from Conventional Commits using changelogithub — includes GitHub release mechanics, tag-based triggers, required permissions, and…

    161 GitHub stars~470 tokensUpdated 3 mo ago
    Auto-check passed
  • Code Organisation

    jd-solanki/slidev-theme-dracula

    Decide where code lives — the directory tree, module and package boundaries, and the layout inside a file.

    161 GitHub stars~1.6k tokensUpdated 3 mo ago
    Auto-check passed

Categories

Questions about Comment Code

What does Comment Code do?

Write clear, useful in-code comments and documentation that capture what the code cannot say for itself. Comment Code is an agent skill from jd-solanki/slidev-theme-dracula. Write clear, useful in-code comments and documentation that capture what the code cannot say for itself.

When should I use Comment Code?

Comment Code fits situations like: revising comments; interface/API documentation; inline explanations — and whenever reviewing code for comment quality; being asked to document.

How do I install Comment Code in Claude Code?

Run `npx skills add jd-solanki/slidev-theme-dracula --skill comment-code -a claude-code`. Or copy the skill folder (.ai/skills/comment-code in jd-solanki/slidev-theme-dracula) into .claude/skills/comment-code in your project. Claude Code loads it when a task matches its description.

How do I install Comment Code in Codex?

Run `npx skills add jd-solanki/slidev-theme-dracula --skill comment-code -a codex`. Or copy the skill folder (.ai/skills/comment-code in jd-solanki/slidev-theme-dracula) into .agents/skills/comment-code in your project. Codex loads it when a task matches its description.

Can I use Comment Code 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 jd-solanki/slidev-theme-dracula --skill comment-code -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/comment-code, .gemini/skills/comment-code, .github/skills/comment-code and .opencode/skills/comment-code in your project.

What does Comment Code need to run?

SKILL.md names no scripts, command-line tools or credentials: Comment Code is instructions for the agent only. Our summary lists: Python 3.

Does Comment Code access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Comment Code safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Comment Code use?

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

How many tokens does Comment Code use?

About 2.7k tokens (SKILL.md is roughly 11k 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 Comment Code?

Skills that share tags, products or a category with Comment Code: Diagram Design (cathrynlavery/diagram-design, 45k stars), Simple English (moeru-ai/airi, 50k stars), Get API Docs with chub (andrewyng/context-hub, 14k stars) and Doc Sync (JetBrains/ideavim, 10k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Comment Code?

jd-solanki (a GitHub user) maintains it in jd-solanki/slidev-theme-dracula, which has 161 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on July 6, 2026.

Source: jd-solanki/slidev-theme-dracula on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.