Official agent skill

Write Comment

by DataDog in DataDog/dd-trace-rb

A skill your agent uses whenever writing or reviewing a code comment anywhere in this repo (lib, ext, spec, sig, docs, CI config, etc.) – e.g.

OfficialCustom licenceAuto-check passedDevelopment

Install Write Comment

skills CLI
$ npx skills add DataDog/dd-trace-rb --skill write-comment -a claude-code

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

GitHub CLI
$ gh skill install DataDog/dd-trace-rb write-comment --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/DataDog/dd-trace-rb.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/write-comment .claude/skills/write-comment && 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
write-comment
GitHub stars
417
Token cost
~1.4k tokens
SKILL.md length
534 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
Custom licence

At a glance

A skill your agent uses whenever writing or reviewing a code comment anywhere in this repo (lib, ext, spec, sig, docs, CI config, etc.) – e.g.

  • Reviewing a code comment anywhere in this repo (lib
  • SKILL.md covers Code comments, Removing existing comments and Style
  • Reaches en.wikipedia.org
  • Tasks that involve Technical documentation

What it does

Write Comment is an agent skill from DataDog/dd-trace-rb, published by the product's own GitHub organization. Use whenever writing or reviewing a code comment anywhere in this repo (lib, ext, spec, sig, docs, CI config, etc.) – e.g. "add a comment", "explain this in a comment", "is this comment worth keeping". Enforces dd-trace-rb comment-noise conventions.

Its SKILL.md is about 1.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. It works with Datadog and Ruby. The repository describes itself as: Datadog's client library for Ruby.

When your agent uses it

  • Reviewing a code comment anywhere in this repo (lib
  • Tasks that involve Technical documentation

Example prompts

  • “add a comment”
  • “explain this in a comment”
  • “is this comment worth keeping”
  • “/write-comment”

What it can do on your machine

Read from SKILL.md and the folder at commit 8a3b01c. 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 ruby and c).

    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:

    • en.wikipedia.org

    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

Write Comment loads about 1.4k tokens when it runs. Until then it costs about 66 tokens; SKILL.md has 534 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~66
When it runs · the whole SKILL.md, loaded when a task matches
~1.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 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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 534 words (~1,414 tokens).

“Default to no comment: a comment must earn its place by saying something the code cannot.”

— opening of SKILL.md by DataDog, Custom licence
name
write-comment

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/write-comment of DataDog/dd-trace-rb.

Open the folder on GitHubat commit 8a3b01c

Compare with similar skills

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

Write Comment compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Write Comment this skillDataDog/dd-trace-rb417—~1.4kAutomated safety check: PassCustom licence
Git Command Class Implementationruby-git/ruby-git1.8k—~3kAutomated safety check: PassMIT
Clarify Java CommentsDataDog/dd-trace-java736—~2.3kAutomated safety check: NotesApache-2.0
Git::Repository Facade Methodsruby-git/ruby-git1.8k—~3.4kAutomated safety check: PassMIT
Facade YARD Documentation Rulesruby-git/ruby-git1.8k—~5kAutomated safety check: PassMIT
Readmeaiskillstore/marketplace4305 repos~4.9kAutomated safety check: NotesNone

Similar skills

  • Scaffolds and reviews `Git::Commands::*` classes in the ruby-git library, with unit tests, integration tests and YARD docs, using the Base command architecture.

    1.8k GitHub stars~3k tokensUpdated 5 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 today
    DevelopmentAuto-check: notes
  • Scaffolds and reviews facade methods on Git::Repository in ruby-git, with unit tests, integration tests and YARD documentation.

    1.8k GitHub stars~3.4k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Sets facade-specific YARD documentation rules for the Git::Repository public API, layered on the gem's general YARD skill.

    1.8k GitHub stars~5k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Readme

    aiskillstore/marketplace

    When the user wants to create or update a README.md file for a project.

    430 GitHub starsUsed in 5 repos~4.9k tokens
    DevelopmentAuto-check: notes
  • Readme Refresh

    joshukraine/dotfiles

    Audit and update a project README, or bootstrap a new one. An agent skill from joshukraine/dotfiles.

    429 GitHub stars~2.1k tokensUpdated yesterday
    DevelopmentAuto-check: notes

More from DataDog/dd-trace-rb

  • Write Rbs

    DataDog/dd-trace-rb

    Official

    A skill your agent uses when writing, reviewing, or modifying RBS type signatures (sig//.rbs, vendor/rbs//.rbs, or inline : annotations) or running Steep – e.g.

    417 GitHub stars~805 tokensUpdated today
    Auto-check passed
  • Write Changelog

    DataDog/dd-trace-rb

    Official

    A skill your agent uses when a change in this repo needs a customer-facing changelog entry — e.g.

    417 GitHub stars~2.9k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Write Comment

What does Write Comment do?

A skill your agent uses whenever writing or reviewing a code comment anywhere in this repo (lib, ext, spec, sig, docs, CI config, etc.) – e.g. Write Comment is an agent skill from DataDog/dd-trace-rb, published by the product's own GitHub organization.g.

When should I use Write Comment?

Write Comment fits situations like: reviewing a code comment anywhere in this repo (lib; tasks that involve Technical documentation.

How do I install Write Comment in Claude Code?

Run `npx skills add DataDog/dd-trace-rb --skill write-comment -a claude-code`. Or copy the skill folder (.agents/skills/write-comment in DataDog/dd-trace-rb) into .claude/skills/write-comment in your project. Claude Code loads it when a task matches its description.

How do I install Write Comment in Codex?

Run `npx skills add DataDog/dd-trace-rb --skill write-comment -a codex`. Or copy the skill folder (.agents/skills/write-comment in DataDog/dd-trace-rb) into .agents/skills/write-comment in your project. Codex loads it when a task matches its description.

Can I use Write Comment 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 DataDog/dd-trace-rb --skill write-comment -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/write-comment, .gemini/skills/write-comment, .github/skills/write-comment and .opencode/skills/write-comment in your project.

What does Write Comment need to run?

SKILL.md names no scripts, command-line tools or credentials: Write Comment is instructions for the agent only.

Does Write Comment access the network?

SKILL.md names 1 domain. In commands or code: en.wikipedia.org; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Write Comment 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 Write Comment use?

Write Comment has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Write Comment use?

About 1.4k tokens (SKILL.md is roughly 5.7k 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 Write Comment?

Skills that share tags, products or a category with Write Comment: Git Command Class Implementation (ruby-git/ruby-git, 1.8k stars), Clarify Java Comments (DataDog/dd-trace-java, 736 stars), Git::Repository Facade Methods (ruby-git/ruby-git, 1.8k stars) and Facade YARD Documentation Rules (ruby-git/ruby-git, 1.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Write Comment?

DataDog (a GitHub organization, an official publisher) maintains it in DataDog/dd-trace-rb, which has 417 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 7, 2026.

Source: DataDog/dd-trace-rb on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.