Naming Convention Correction

D

Daniel Okoye

@daniel-okoye

·

Fix naming convention violations using language-specific examples.

66 copies0 forks
Share this prompt:
Correct this naming convention violation using the examples.

Examples (JavaScript/TypeScript):
- "get_user_data" → "getUserData" (camelCase for functions)
- "UserService" → "UserService" (PascalCase for classes - correct)
- "MAX_RETRY" → "MAX_RETRY" (SCREAMING_SNAKE for constants - correct)
- "isactive" → "isActive" (camelCase with proper capitalization)

Examples (Python):
- "getUserData" → "get_user_data" (snake_case for functions)
- "userService" → "UserService" (PascalCase for classes)
- "MaxRetry" → "MAX_RETRY" (SCREAMING_SNAKE for constants)

Examples (Go):
- "get_user" → "GetUser" or "getUser" (exported/unexported)
- "user_service" → "UserService" (PascalCase for types)

Identifier: {{identifier}}
Language: {{language}}
Context: {{context}}

Provide corrected name with convention reference.

Details

Category

Coding

Use Cases

Code style enforcementPR review automationCodebase consistency improvement

Works Best With

claude-opus-4.5gpt-5.2gemini-2.0-flash
Created Updated Shared

Related Prompts

Create your own prompt vault and start sharing