Validate Feature Fit
When to use
- The
improve-before-implementrule detected a potential misfit - User explicitly asks to validate a feature idea before implementing
- A feature request seems to overlap with existing functionality
- A requested approach contradicts established patterns
Procedure
1. Understand the request
Read the feature description / user message. Extract:
- Goal: What should be achieved?
- Scope: What files/modules are affected?
- Approach: How does the user want it done?
2. Check for duplicates
Search the codebase for existing functionality that covers (partially or fully) the same goal:
- Services with similar names or methods
- Controllers handling similar routes
- Models with similar scopes or relations
- Existing tests covering similar behavior
If duplicate found → report with file references, suggest extending vs. duplicating.
3. Check for contradictions
Verify the request doesn't conflict with:
- Existing module boundaries (does it cross module lines?)
- Established patterns (does it introduce a new pattern where one exists?)
- Naming conventions (does it use different naming than the codebase?)
- Data flow (does it bypass existing services or repositories?)
- Product rules and domain invariants — pull active rules via the
shared abstraction (see