AgentSkillsCN

apple-color-fix

修复 Apple 产品抓取工具中的颜色变体合并问题。当同一款产品的不同颜色变体(如粉色、青色、太空黑、银色等)未能正确合并时,可使用此技能。该技能适用于 iPhone、iPad、Mac、AirPods、Watch 和 TV 等全线产品。

SKILL.md
--- frontmatter
name: apple-color-fix
description: Fix color variant consolidation issues in Apple product scrapers. Use when color variants (Pink, Teal, Space Black, Silver, etc.) are not properly merged for same-spec products. Applies bulletproof consolidation logic across iPhone, iPad, Mac, AirPods, Watch, and TV product lines.

Apple Color Fix

This skill provides systematic diagnosis and repair of color variant consolidation issues in the Apple product scraping system.

Problem

Apple products often come in multiple colors (Pink, Teal, Silver, Space Black, etc.) with identical specs and prices. These should be consolidated into single products without color suffixes for clean price comparison.

Example Issue:

code
❌ BEFORE: "iPhone 16 128GB Pink", "iPhone 16 128GB Teal", "iPhone 16 128GB Ultramarine" 
✅ AFTER:  "iPhone 16 128GB"

Diagnostic Workflow

  1. Identify affected products - Check static JSON data for color variants
  2. Verify consolidation logic - Test robust_consolidation.py on sample data
  3. Apply systematic fix - Update all product line scrapers
  4. Validate deployment - Confirm fixes work in production

Implementation

Use the diagnostic script to identify issues:

bash
python scripts/diagnose_color_issues.py --product [iphone|ipad|mac|airpods|watch|tvhome]

Apply the systematic fix:

bash
python scripts/apply_color_fix.py --all-products

Reference Files