Official agent skill

Writing Comments

by withastro in withastro/astro

How to write JSDoc (/ /) and inline (//) comments in the Astro codebase, for contributors reading the source — not end users.

OfficialCustom licenceAuto-check passedDevelopment

Install Writing Comments

skills CLI
$ npx skills add withastro/astro --skill writing-comments -a claude-code

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

GitHub CLI
$ gh skill install withastro/astro writing-comments --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/withastro/astro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/writing-comments .claude/skills/writing-comments && 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
writing-comments
GitHub stars
63k
Token cost
~2.7k tokens
SKILL.md length
1,300 words
Files
2
Skills in repo
10
Repo updated
First seen
Licence
Custom licence

At a glance

How to write JSDoc (/ /) and inline (//) comments in the Astro codebase, for contributors reading the source — not end users.

  • Works in 2 steps: Never narrate change history. Words like… → Never address the reviewer. A comment…
  • Editing comments in .ts/.js source
  • SKILL.md covers Purpose, Scope Boundary, The Reader and Three Kinds of Comments, Three…, plus 8 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Writing Comments is an agent skill from withastro/astro, published by the product's own GitHub organization. How to write JSDoc (/ /) and inline (//) comments in the Astro codebase, for contributors reading the source — not end users. Use whenever writing or editing comments in .ts/.js source, including comments added incidentally while fixing bugs or building features. Does not cover the @docs-generated config/error reference.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `evals/evals.json`).

It sits in Development, covering Technical documentation and Static sites and blogs. It works with Astro. The repository describes itself as: The web framework for content-driven websites.

When your agent uses it

  • Editing comments in .ts/.js source
  • Including comments added incidentally while fixing bugs
  • Building features

Example prompts

  • “/writing-comments”

Workflow steps

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

  1. Never narrate change history. Words like "now", "previously", "no
  2. Never address the reviewer. A comment that argues your change is correct

What it can do on your machine

Read from SKILL.md and the folder at commit 28e7410. 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 typescript).

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

  • Network

    Links to these hosts (documentation or services it may open):

    • diataxis.fr
    • tsdoc.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

Writing Comments loads about 2.7k tokens when it runs. Until then it costs about 86 tokens; SKILL.md has 1,300 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~86
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

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

“Comments in this repository are read by contributors, months or years after they were written, with none of the context you have right now. This skill defines who that reader is, what each kind of comment is for, and which…”

— opening of SKILL.md by withastro, Custom licence
name
writing-comments

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in .agents/skills/writing-comments of withastro/astro.

  • SKILL.md
  • evals/evals.json

Open the folder on GitHubat commit 28e7410

Compare with similar skills

Writing Comments 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.

Writing Comments compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Writing Comments this skillwithastro/astro63k—~2.7kAutomated safety check: PassCustom licence
Orchardcore Docs WriterOrchardCMS/OrchardCore8.2k—~1.1kAutomated safety check: PassBSD-3-Clause
Tabler Menus and Redirectstabler/tabler42k—~1.2kAutomated safety check: PassMIT
Uui Documentationepam/UUI248—~1.3kAutomated safety check: PassMIT
Metadata Checkjdevalk/skills104—~1kAutomated safety check: PassMIT
Docsccusage/ccusage19k—~261Automated safety check: PassCustom licence

Similar skills

  • Orchardcore Docs Writer

    OrchardCMS/OrchardCore

    Authors OrchardCore documentation — MkDocs Material pages, module README docs, nav entries, admonitions, tabbed content, and redirects.

    8.2k GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Keeps Tabler pages reachable by updating the preview menu, docs menu and redirect table whenever a page is added, renamed, moved or removed.

    42k GitHub stars~1.2k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Helps update UUI documentation, add doc examples, configure Property Explorer, and manage component API documentation.

    248 GitHub stars~1.3k tokensUpdated 9 days ago
    DevelopmentAuto-check passed
  • Metadata Check

    jdevalk/skills

    Reviews short high-value strings — page titles, meta descriptions, schema description fields, FAQ answers, GitHub repo taglines, profile bios, social-card copy, and other metadata where Flesch and…

    104 GitHub stars~1k tokensUpdated 3 mo ago
    Marketing & SEOAuto-check passed
  • Docs

    ccusage/ccusage

    Routes ccusage documentation impact work. An agent skill from ccusage/ccusage.

    19k GitHub stars~261 tokensUpdated today
    DevelopmentAuto-check passed
  • Corvus Docs Website

    corvus-dotnet/Corvus.JsonSchema

    Build, serve, and maintain the Corvus.Text.Json documentation website and the six Blazor WASM playgrounds (JSON Schema, JSONata, JMESPath, JsonLogic, JSONPath, YAML).

    199 GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed

More from withastro/astro

All 10 skills in this repo
  • Official

    Analyze recent GitHub Actions workflow runs to identify patterns, mistakes, and improvements.

    63k GitHub starsUsed in 1 repo~1.3k tokens
    Auto-check passed
  • Astro Developer

    withastro/astro

    Official

    Comprehensive guide for developing in the Astro monorepo. An agent skill from withastro/astro.

    63k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Astro PR Writer

    withastro/astro

    Official

    Write and update Astro pull requests with reviewer-friendly titles and high-signal bodies.

    63k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Changeset

    withastro/astro

    Official

    Create a changeset for the Astro monorepo. An agent skill from withastro/astro.

    63k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Astro Code Review

    withastro/astro

    Official

    Perform a static, read-only code review of an Astro pull request or of a local branch, commit range, diff, patch, or working tree being prepared as a pull request.

    63k GitHub stars~7.6k tokensUpdated today
    Auto-check passed
  • Official

    Takes a bug report for the triagebot-action GitHub Action through reproduction, root-cause diagnosis, an intended-behavior check and a fix attempt.

    63k GitHub stars~639 tokensUpdated today
    Auto-check passed

Works with

Questions about Writing Comments

What does Writing Comments do?

How to write JSDoc (/ /) and inline (//) comments in the Astro codebase, for contributors reading the source — not end users. Writing Comments is an agent skill from withastro/astro, published by the product's own GitHub organization. How to write JSDoc (/ /) and inline (//) comments in the Astro codebase, for contributors reading the source — not end users.

When should I use Writing Comments?

Writing Comments fits situations like: editing comments in .ts/.js source; including comments added incidentally while fixing bugs; building features.

How do I install Writing Comments in Claude Code?

Run `npx skills add withastro/astro --skill writing-comments -a claude-code`. Or copy the skill folder (.agents/skills/writing-comments in withastro/astro) into .claude/skills/writing-comments in your project. Claude Code loads it when a task matches its description.

How do I install Writing Comments in Codex?

Run `npx skills add withastro/astro --skill writing-comments -a codex`. Or copy the skill folder (.agents/skills/writing-comments in withastro/astro) into .agents/skills/writing-comments in your project. Codex loads it when a task matches its description.

Can I use Writing Comments 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 withastro/astro --skill writing-comments -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/writing-comments, .gemini/skills/writing-comments, .github/skills/writing-comments and .opencode/skills/writing-comments in your project.

What does Writing Comments need to run?

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

Does Writing Comments access the network?

SKILL.md names 2 domains. As links in the text: diataxis.fr and tsdoc.org. This is read from the text; nothing was executed.

Is Writing Comments 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 Writing Comments use?

Writing Comments 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 Writing Comments 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 Writing Comments?

Skills that share tags, products or a category with Writing Comments: Orchardcore Docs Writer (OrchardCMS/OrchardCore, 8.2k stars), Tabler Menus and Redirects (tabler/tabler, 42k stars), Uui Documentation (epam/UUI, 248 stars) and Metadata Check (jdevalk/skills, 104 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Writing Comments?

withastro (a GitHub organization, an official publisher) maintains it in withastro/astro, which has 63,106 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 8, 2026.

Source: withastro/astro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.