Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,19 @@ CI workflow is defined in [`.github/workflows/ci.yml`](.github/workflows/ci.yml)
- Add tests for derived traits (Clone, Debug, PartialEq)
- Add tests for enums unless they have explicit functionality

### Documentation

Less is more. Documentation goes out of date; rustdoc-generated output doesn't. Don't duplicate what rustdoc already provides for free (type listings, signatures, re-exports, intra-doc links).

**DO**:
- Document non-obvious behavior, errors, safety, and design intent
- Use `# Errors`, `# Safety`, `# Panics`, `# Example` sections

**DON'T**:
- Maintain explicit lists of types/functions in module-level docs
- Restate what the signature already shows (e.g. "owns an `Arc<T>`" on a struct whose only field is `Arc<T>`)
- Document internal `pub(crate)` / `pub(super)` items unless intent isn't obvious from usage

---

## Pre-commit Checklist
Expand Down
Loading