Writing Comments

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.

withastro e168aa9 2 files · 16.2 KB Updated

File contents

withastro/astro/tree/main/.agents/skills/writing-comments commit e168aa9db3

Frequently asked questions

npx skillmds add withastro/writing-comments