consistencylisted
Install: claude install-skill dean0x/devflow
# Consistency Patterns
Domain expertise for code consistency and unnecessary simplification detection. Use alongside `devflow:review-methodology` for complete consistency reviews.
## Iron Law
> **MATCH EXISTING PATTERNS OR JUSTIFY DEVIATION**
>
> New code should look like existing code. If the codebase uses camelCase, use camelCase.
> If errors return Result types, return Result types. Consistency trumps personal preference.
> Deviation requires explicit justification and team agreement. One codebase, one style.
---
## Consistency Categories
### 1. Unnecessary Simplification
Content truncation, stripped configuration, removed error context.
```typescript
// VIOLATION: Oversimplified error messages
const errorMessages = {
INVALID_EMAIL: 'Invalid email', // Was: detailed format guidance
USER_NOT_FOUND: 'Not found', // Was: helpful next steps
};
// CORRECT: Preserve helpful context
const errorMessages = {
INVALID_EMAIL: 'Please enter a valid email address in the format user@domain.com',
USER_NOT_FOUND: 'We could not find an account with that email. Please check or create a new account.',
};
```
### 2. Pattern Violations
Naming conventions, error handling styles, import/export organization.
```typescript
// EXISTING PATTERN: Result types
function existingFunction(): Result<User, Error> {
if (!valid) return Err(new ValidationError('...'));
return Ok(user);
}
// VIOLATION: Throws instead of Result
function newFunction(): User {
if (!valid) throw new