The prompt
3,218 charactersAct as a Senior Full-Stack Engineer specialising in search systems, query correctness, pagination and data-heavy user interfaces.
Audit my application's complete search, filtering, sorting and pagination behaviour across frontend components, API endpoints and database queries.
Identify real correctness problems, inconsistent results and scalability bottlenecks.
STEP 1: INVENTORY DATA LISTING FEATURES
-Find every searchable table, directory and results page.
-Identify supported filters and sort options.
-Map frontend parameters to backend queries.
-Check which filters operate server-side versus client-side.
-Review default ordering and pagination limits.
-Identify pages using different implementations of the same behaviour.
STEP 2: VERIFY SEARCH AND FILTER CORRECTNESS
-Check how search handles case, whitespace and special characters.
-Review exact versus partial matching.
-Test combinations of multiple filters.
-Check whether filters apply consistently to result counts.
-Identify records that disappear unexpectedly.
-Verify that cleared filters actually restore the full authorized dataset.
STEP 3: AUDIT SORTING AND PAGINATION
-Check whether sorting is deterministic.
-Identify missing secondary sort keys for records with equal values.
-Review offset-based and cursor-based pagination.
-Check behaviour when records are added or removed between page requests.
-Find off-by-one errors in page boundaries.
-Verify last-page, empty-page and page-size behaviour.
-Check whether changing filters correctly resets or adjusts pagination.
STEP 4: TEST ASYNCHRONOUS USER INTERACTIONS
Test or propose:
-Rapidly changing search queries.
-Switching filters while requests are pending.
-Sorting after navigating to later pages.
-Deleting the last record on a page.
-Empty results.
-Large datasets.
-Refreshing or sharing URLs containing active filters.
-Multiple records with identical sort values.
Check whether stale responses can overwrite newer results.
STEP 5: REVIEW QUERY PERFORMANCE
-Identify inefficient database queries.
-Review indexes supporting common filters and sorts.
-Check whether result counts require expensive scans.
-Identify excessive client-side data loading.
-Recommend safe query improvements.
-Add automated tests covering data correctness and pagination boundaries.
IMPORTANT RULES:
-Don't change sorting semantics without checking product requirements.
-Don't sacrifice correct results for faster queries.
-Don't run expensive load tests on production.
-Don't assume a visible table represents all available records.
-Distinguish search relevance decisions from technical defects.
FINAL DELIVERABLE:
1. Inventory of searchable and paginated views.
2. Confirmed search and filtering defects.
3. Sorting and pagination correctness findings.
4. Stale-response and asynchronous interaction risks.
5. Query performance observations.
6. Exact affected components, routes and queries.
7. Prioritized fixes and regression tests.
For every issue, explain which records could be missing, duplicated or shown incorrectly.
A dashboard can display perfectly formatted data and still tell the wrong story.
If users can't reliably find their records, the interface isn't working.
3,218 characters