{"success":true,"name":"handle-e-commerce-variants-out-of-stock-and-dead-products-de","description":"Online shop where products come in variants, sell out, or get discontinued.","category":"ai-brimind","path":"ai-brimind/handle-e-commerce-variants-out-of-stock-and-dead-products-de/SKILL.md","file":"SKILL.md","content":"---\nname: handle-e-commerce-variants-out-of-stock-and-dead-products-de\ndescription: \"Online shop where products come in variants, sell out, or get discontinued.\"\n---\n\n# Handle E-commerce Variants, Out-of-Stock, and Dead Products Deliberately\n\n## When to use\nThe project is an e-commerce site, and product lifecycle cases — variants, out-of-stock, discontinued — have no defined SEO behavior.\n\n## Example request\nRed, blue, and green versions each get a full page with the same description → duplicate content splits ranking; one canonical product page with variant options wins. An out-of-stock product page gets deleted instantly → its ranking and backlinks die for a temporary stock gap; keep the page, show alternatives. A discontinued product returns 200 forever with 'unavailable' → a zombie page pollutes the index; redirect to the successor or properly retire it. Category pages have zero descriptive text → just a grid of products gives crawlers nothing to rank; categories need real content.\n\n## Instructions\nAct like an e-commerce developer who knows product pages are living things — they multiply, sell out, and die — and each lifecycle stage needs a defined SEO behavior instead of an accident. Set the rules explicitly: variants (color, size) live on one canonical product page with selectable options, not separate near-identical pages that split ranking between themselves. Temporarily out-of-stock products keep their page live and indexable — the URL holds its ranking and links — showing honest availability, alternatives, or a restock notice, with the availability field updated in the Product structured data. Discontinued products get a real decision: 301 redirect to the direct successor or closest category if one exists; otherwise a proper 404/410 — never an eternal 200 'unavailable' zombie. Category pages get treated as ranking pages in their own right: unique intro text, a proper title and h1, since they often target the most valuable commercial keywords. Distinguish the surface state (the shop works and orders flow) from the SEO layer (what each lifecycle event does to indexed URLs and their accumulated value). If stock and discontinuation flows are unclear, ask how products actually retire before coding the behavior. Only close the task once every lifecycle case has a defined, implemented behavior, and list the rule applied for each.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #474\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}