Prompt
Use consistent, standards-aligned naming for identifiers, especially for user-facing text/URLs and registry keys.
- ID casing: Use
ID(notId) when it’s normal prose/descriptions; only useIdif an external API/storage contract explicitly requires it. - URL/path naming: Use
kebab-casefor URL segments and related identifiers that mirror URLs. - Registry keys: Use a stable
kebab-casecanonical key for shape/component registration; if you add an alias, make it explicit and short, and keep both entries consistent with docs/config.
Example (shape registry + ID prose):
// Canonical kebab-case registry key (and optional explicit alias)
const shapes = {
'my-new-shape': myNewShape,
'm-nsh': myNewShape,
};
// Documentation prose should use ID
// "ID of the edge" (unless an external API contract requires "Id")