add code guideline: prefer established libraries over custom utils

This commit is contained in:
2026-04-09 09:28:46 +07:00
parent 976a2594b7
commit 96cd75ed81

View File

@@ -74,6 +74,12 @@ Detailed docs live in `docs/`:
- `docs/system-architecture.md` — Entry points, data flow, KV schema, queue, security - `docs/system-architecture.md` — Entry points, data flow, KV schema, queue, security
- `docs/feature-decisions.md` — Evaluated features and rationale for decisions - `docs/feature-decisions.md` — Evaluated features and rationale for decisions
## Code Guidelines
Prefer well-established npm packages over hand-written utilities for common operations
(e.g., date formatting, validation, string manipulation). Only write custom utils when
the logic is trivial (< 5 lines) or platform-specific (e.g., CF Workers crypto APIs).
## README Guidelines ## README Guidelines
Keep `README.md` clean and focused: project intro, features, commands, quick start, and links to docs. Keep `README.md` clean and focused: project intro, features, commands, quick start, and links to docs.