{"id":"2075148611680149656","url":"https://x.com/shugarDadddy/status/2075148611680149656","text":"Before you launch your vibe coded project, run this prompt first:\n\n“Perform a comprehensive audit of the application, covering security, reliability, concurrency, accessibility, and UI consistency.\n\nReview the relevant codebase, architecture, data flows, API interactions, authentication and authorization logic, state management, async operations, error handling, and user-facing interfaces. Trace important flows end-to-end rather than reviewing files in isolation.\n\nSpecifically investigate:\n\nSecurity vulnerabilities and data exposure\n- Authentication and authorization flaws, including missing server-side permission checks, privilege escalation, insecure direct object references, and cross-tenant data access.\n\n- Sensitive information exposed through client-side code, environment variables, API responses, logs, analytics, URLs, local storage, session storage, cookies, error messages, or source maps.\n\n- Injection risks, including SQL, command, template, prompt, HTML, and script injection where applicable.\nXSS, CSRF, SSRF, insecure redirects, unsafe file uploads, path traversal, weak session handling, insecure token storage, and missing security boundaries.\n\n- Overly permissive database rules, API endpoints, CORS policies, storage buckets, webhook handlers, or third-party integrations.\n\n- Secrets, API keys, credentials, internal endpoints, personal data, or implementation details that could be unintentionally exposed.\n\n- Missing validation and sanitisation at trust boundaries. Do not assume client-side validation is sufficient.\n\nRace conditions, concurrency, and state integrity\n\n- Duplicate submissions caused by repeated clicks, retries, refreshes, or concurrent requests.\n\n- Non-idempotent operations that can create duplicate records, payments, messages, bookings, jobs, or side effects.\n\n- Stale state, optimistic update failures, lost updates, conflicting writes, and out-of-order async responses.\n\n- Effects, subscriptions, listeners, timers, and requests that are not correctly cleaned up.\n\n- UI states where actions remain available while an operation is already in progress.\n\n- Cache invalidation problems and inconsistencies between client state, server state, and persisted data.\n\n- Multi-tab, multi-device, and poor-network scenarios where relevant.\n\nReliability and failure handling\n- Unhandled promise rejections, swallowed errors, silent failures, infinite loading states, broken retry loops, and incomplete rollback behaviour.\n\n- Missing loading, empty, error, offline, timeout, and partial-success states.\n\n- Failure paths that leave data or the UI in an inconsistent state.\n\n- Assumptions about API responses, nullability, ordering, timing, or network availability that could cause production failures.\n\n- Memory leaks, unnecessary rerenders, expensive operations, and obvious performance bottlenecks that materially affect the user experience.\n\nAccessibility\n- Semantic HTML and correct use of landmarks, headings, labels, lists, tables, buttons, and links.\n\n- Keyboard navigation, logical tab order, focus visibility, focus trapping, and focus restoration.\n\n- Missing or incorrect accessible names, labels, descriptions, and ARIA attributes.\n\n- Colour contrast, text legibility, touch-target sizes, zoom behaviour, reduced-motion support, and reliance on colour alone to communicate meaning.\n\n- Screen-reader behaviour for modals, menus, dropdowns, tabs, toasts, validation errors, loading states, and dynamically updated content.\n\n- Forms with unclear instructions, inaccessible validation, missing autocomplete attributes, or poor error recovery.\n\n- Test against WCAG 2.2 AA expectations where applicable.\n\nVisual and interaction consistency\n- Inconsistent spacing, typography, colour usage, border radii, shadows, icon sizing, alignment, component dimensions, and responsive behaviour.\n\n- Components that visually appear identical but behave differently, or behave identically but are implemented inconsistently.\n\n1/2","author":{"name":"Leslie Williams","username":"shugarDadddy","avatarUrl":"https://pbs.twimg.com/profile_images/2053833870185844737/mi0nx-5F_200x200.jpg"},"createdAt":"Thu Jul 09 09:22:38 +0000 2026","engagement":{"replies":46,"retweets":240,"likes":2231,"views":253882}}