16 lines
717 B
Plaintext
16 lines
717 B
Plaintext
---
|
|
description: Documentation — README, comments, and API docs
|
|
globs: **/*.{md,mdx},**/README*
|
|
alwaysApply: false
|
|
---
|
|
|
|
# Documentation
|
|
|
|
- README must include: what it does, how to install, how to run, and how to test.
|
|
- Document environment variables in `.env.example` with comments explaining each one.
|
|
- Public functions and APIs need docstrings/JSDoc with params, return type, and examples.
|
|
- Comments explain *why*, not *what*. If the code needs a what-comment, rename or refactor.
|
|
- Keep docs in sync with code. Outdated docs are worse than no docs.
|
|
- Changelog or release notes for user-facing breaking changes.
|
|
- Architecture decisions worth preserving belong in ADRs or a `docs/` folder, not inline TODOs.
|