Maintain consistent naming conventions within related groups of identifiers. When naming related variables, functions, or constants, use the same naming pattern and style to improve code readability and maintainability.
Apply consistent patterns for:
Example from discussions:
// Good: Consistent environment variable naming
FEISHU_APP_ID: process.env.FEISHU_APP_ID,
FEISHU_APP_SECRET: process.env.FEISHU_APP_SECRET,
// Good: Consistent database field naming
emailVerifiedAt: timestamptz('email_verified_at'),
clerkCreatedAt: timestamptz('clerk_created_at'),
// Good: Specific, descriptive function names
initAgentRuntimeWithUserPayload() // Clear object and action
// Good: Context-appropriate naming
// Config files use snake_case
embedding_model: DEFAULT_FILE_EMBEDDING_MODEL_ITEM,
// Code variables use camelCase
embeddingModel: config.embedding_model,
This consistency reduces cognitive load when reading code and makes the codebase more predictable for developers.
Enter the URL of a public GitHub repository