Prompt
Use consistent naming patterns throughout the codebase. When adding new identifiers, follow existing patterns in similar contexts. This includes:
- Consistent prefix/suffix patterns in related identifiers
- Consistent casing (camelCase, PascalCase, etc.)
- Consistent naming patterns for configuration keys and constants
Example of inconsistent naming:
// Inconsistent - mixing patterns
alwaysAllowReadOnly: true,
alwaysAllowWrite: true,
alwaysApproveResubmit: true, // Should be alwaysAllowResubmit
// Inconsistent casing
const getLmStudioModels = ...
const getLMStudioModels = ... // Inconsistent LM vs LM
// Inconsistent constant naming pattern
const SEARCH_MIN_SCORE = 0.4
const DEFAULT_MAX_SEARCH_RESULTS = 50 // Pattern mismatch
Corrected version:
// Consistent prefix pattern
alwaysAllowReadOnly: true,
alwaysAllowWrite: true,
alwaysAllowResubmit: true, // Follows established pattern
// Consistent casing
const getLMStudioModels = ... // Standardized on LM
const getLMStudioModels = ...
// Consistent constant naming pattern
const DEFAULT_SEARCH_MIN_SCORE = 0.4
const DEFAULT_MAX_SEARCH_RESULTS = 50 // Consistent pattern
When adding new identifiers:
- Look for similar existing identifiers and follow their pattern
- Maintain consistent casing for acronyms (e.g., API, LM, URL)
- Use consistent prefixes/suffixes for related configurations
- Follow established patterns for constants and configuration keys