--- name: anti-pattern description: > Anti-pattern detection and prevention skill. Catches hardcoded data, non-functional UI elements, placeholder code, N+1 queries, and other common development anti-patterns before they ship. license: MIT --- # Anti-Pattern Skill — Ship Real Code, Not Decorations This skill detects and prevents the most common anti-patterns that make software look unfinished or unprofessional. ## Banned Anti-Patterns (ZERO TOLERANCE) ### UI/UX Anti-Patterns ``` ❌ BANNED: - "Coming Soon" sections or labels - Non-functional buttons (must work or be removed) - Forms that don't submit anywhere - Hardcoded fake data in production components - Static tables pretending to be dynamic - Links that go nowhere (href="#") - "Under Construction" banners - Feature flags permanently set to false - Disabled inputs without clear explanation - Empty states without helpful messaging - Pagination that doesn't actually paginate - Search bars that don't actually search - Filters that return the same results - SINGLE LANDING PAGE when user asks for "a website" (MUST be multi-page) - No color palette defined before writing CSS - Random hex colors without a documented design system - Inconsistent colors across pages (different blues, different spacing) - EMOJIS anywhere in the website (use SVG icons from Lucide/Heroicons/Phosphor) - Sections touching each other (no spacing between content blocks) - Footer stuck directly to the section above (no breathing room) - Navigation with more than 7 top-level items (cluttered, overwhelming) - Service pages without individual detail pages (/services only, no /services/web-design) - Product pages without individual detail pages (/products only, no /products/[slug]) - Generic service descriptions (2-3 lines per service is NOT enough) ✅ REQUIRED: - Every visible button triggers a real handler or is removed - Every form has a real onSubmit connected to an API call - Every list loads from a real data source with loading states - Every link navigates to a real destination - Empty states explain why and suggest next actions - Error states show real error messages from the server - Loading states appear during real async operations - Multi-page website with separate routes (Home, About, Services, Contact, Products) - Professional 6-color palette (--color-primary, secondary, accent, bg, surface, text) - Consistent design system across ALL pages - ZERO emojis — use SVG icons (Lucide, Heroicons, Phosphor) - Section spacing: minimum 80px padding between sections - Footer: minimum 128px top padding (never touching content above) - Navigation: max 7 items, dropdowns for groups, secondary links in footer - Services: listing page + individual detail pages per service - Products: listing page + individual detail pages per product - Each service detail: description, process, deliverables, pricing, FAQ, CTA - Each product detail: gallery, specs, pricing, reviews, related products ``` ### Website Architecture Anti-Patterns ``` ❌ BANNED (when user says "build a website"): - Creating index.html as the ONLY file - Putting all content in one scrollable page - Using anchor links (#about, #services) instead of separate pages - Calling it a "website" when it's just a landing page - No navigation menu between sections/pages - No shared header/footer across pages - No unique meta title/description per page ✅ REQUIRED: - Separate route/page for each section (e.g., /about, /services, /contact) - Navigation menu linking all pages - Shared header + footer components - Each page has unique