# Automotive Aftermarket

> Expert skill in automotive accessory personalization platforms that enable customers to customize vehicles with bespoke parts including 3D-printed components, custom paint options, interior trim selections, and digitally designed accessories ordered through online configurators. Covers 25 topics across retail-aftermarket domain. Includes 25 skill files covering ACES (Aftermarket catalog exchange standard), ACES/PIES (Aftermarket catalog and parts interchange), ASAM OpenSCENARIO (Scenario-based simulation standards), ASE technician certification for mobile service, AUTOSAR Adaptive Platform (Service-oriented architecture), CARFAX/AutoCheck standard data interchange formats, CCPA (California consumer privacy for automotive data), DVIR (Driver Vehicle Inspection Report requirements) and more.

- Skill: `pangzhenying2025/automotive-aftermarket` (Agent Skill)
- Install (CLI): `npx skillmds@latest add pangzhenying2025/automotive-aftermarket`
- Raw SKILL.md: https://api.skillmd.com/api/skills/pangzhenying2025/automotive-aftermarket/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: pangzhenying2025 (https://skillmd.com/u/pangzhenying2025)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/pangzhenying2025/automotive-aftermarket

---


# Automotive Retail Aftermarket

25 skill files covering retail-aftermarket domain for automotive software engineering.

## Applicable Standards

- ACES (Aftermarket catalog exchange standard)
- ACES/PIES (Aftermarket catalog and parts interchange)
- ASAM OpenSCENARIO (Scenario-based simulation standards)
- ASE technician certification for mobile service
- AUTOSAR Adaptive Platform (Service-oriented architecture)
- CARFAX/AutoCheck standard data interchange formats
- CCPA (California consumer privacy for automotive data)
- DVIR (Driver Vehicle Inspection Report requirements)
- ECE R21 (Interior fittings safety requirements)
- EDIFACT/EDI (Electronic data interchange for B2B orders)
- ELD mandate (Electronic Logging Device for HOS compliance)
- EPA regulations for mobile fluid handling and disposal
- EU Block Exemption Regulation (BER) for motor vehicle distribution
- EU Directive 2019/771 (Consumer goods guarantee)
- EU Regulation 2018/858 (Vehicle type approval and records)
- FMI 2.0 (Functional Mock-up Interface for model exchange)
- FMVSS 201 (Occupant protection in interior impact)
- FTC Franchise Rule and state dealership laws
- FTC Franchise Rule compliance for agency transitions
- FTC guidelines for loyalty program transparency
- GDPR (Avatar identity and behavioral data privacy)
- GDPR (Customer data ownership in agency model)
- GDPR (Customer data privacy and consent management)
- GDPR / CCPA (Customer privacy in direct sales channels)
- GDPR / CCPA (Loyalty program data privacy)
- GDPR / CCPA (Subscriber data privacy and consent)
- GDPR / CCPA (Telematics data privacy and consent)
- GS1 GTIN (Global trade item number for parts identification)
- GS1 standards (Parts barcoding and identification)
- GS1 standards (Parts identification and traceability)
- IATF 16949 (Quality management for AM in automotive)
- IATF 16949 (Quality management in automotive supply chain)
- IFTA (International Fuel Tax Agreement reporting)
- ISO 11452 (EMC requirements for electronic accessories)
- ISO 14229 (Unified Diagnostic Services - UDS)
- ISO 15031 (OBD-II communication standards)
- ISO 20022 (Financial messaging for warranty transactions)
- ISO 20078 (Extended vehicle access and data)
- ISO 20078 (Extended vehicle web services for data access)
- ISO 20078 (Extended vehicle web services)
- ISO 21434 (Cybersecurity for feature activation systems)
- ISO 21434 (Cybersecurity for software update channels)
- ISO 23247 (Digital twin framework for manufacturing)
- ISO 24089 (Software update engineering for road vehicles)
- ISO 24089 (Software update engineering)
- ISO 26262 (Functional safety for OTA software changes)
- ISO 26262 (Functional safety for software-activated features)
- ISO 26262 (Safety for software-defined vehicle functions)
- ISO 26262 (Safety validation of simulated vehicle behavior)
- ISO 27001 (Customer and vehicle data security)
- ISO 27001 (Customer data protection in digital retail)
- ISO 27001 (Customer data security in D2C platforms)
- ISO 27001 (Customer financial data protection)
- ISO 27001 (Customer vehicle data protection)
- ISO 27001 (Data governance in shared OEM-dealer systems)
- ISO 27001 (Data security in metaverse transactions)
- ISO 27001 (Fleet data security and multi-tenant isolation)
- ISO 27001 (Information security for customer data)
- ISO 27001 (Loyalty platform data security)
- ISO 27001 (Service record data security)
- ISO 27001 (Warranty data security)
- ISO 27701 (Privacy information management)
- ISO 28000 (Supply chain security management)
- ISO 45001 (Occupational health and safety for field work)
- ISO 55000 (Asset management for parts inventory)
- ISO 9001 (Quality management for logistics operations)
- ISO/ASTM 52900 (Additive manufacturing terminology)
- ISO/ASTM 52920 (AM qualification principles)
- Kelley Blue Book and NADA valuation methodologies
- MMOG/LE (Materials management operations guideline)
- Magnuson-Moss Warranty Act (US warranty requirements)
- NAAA condition grading standards for vehicle assessment
- NAIC Usage-Based Insurance Model Act
- OSHA mobile workshop safety requirements
- OpenXR 1.0 (Cross-platform VR/AR runtime standard)
- PCI DSS (Payment and rewards card processing)
- PCI DSS (Payment card security for online transactions)
- PCI DSS (Payment processing for direct vehicle sales)
- PCI DSS (Recurring payment processing compliance)
- PIES (Product information exchange standard)
- PSD2 (Payment services for microtransactions)
- SAE J1739 (FMEA for accessory design risk assessment)
- SAE J1979 (OBD-II diagnostic test modes)
- SAE J2464 (Vehicle condition assessment standards)
- SAE J3061 (Connected vehicle cybersecurity for shared assets)
- SAE J3061 (Cybersecurity for connected shared vehicles)
- SAE J3061 (Cybersecurity for telematics data transmission)
- TecDoc (European parts catalog data standard)
- UNECE WP.29 R156 (Software update management system)
- VDA 6.3 (Process audit for additive manufacturing)
- WCAG 2.1 (Accessibility for ecommerce platforms)
- WCAG 2.1 AA (Accessibility for virtual showroom interfaces)
- WebXR Device API (W3C immersive web standard)
- WebXR Device API (W3C standard for immersive web experiences)
- glTF 2.0 (3D model interchange for vehicle assets)

## Use Cases

- Online accessory configurator with 3D visualization
- Custom interior trim design with material preview
- Personalized exterior styling packages
- 3D-printed custom accessories ordered online
- Dealer-installed accessory recommendation engine
- OEM transition from franchise to agency distribution
- Fixed-price retail with dealer commission structures
- Centralized inventory and pricing management
- Dealer network transformation and change management
- Hybrid agency models combining online and physical touchpoints
- AI-optimized route planning for parts delivery fleets
- Warehouse robot orchestration for parts picking
- Same-day and next-day parts delivery to workshops
- Predictive pre-positioning of fast-moving parts
- Drone and autonomous vehicle last-mile delivery pilots
- Multi-vendor parts marketplace for workshop procurement
- Supplier onboarding and qualification platform
- Real-time inventory visibility across distributor network
- Dynamic pricing and automated RFQ processing
- Cross-border parts sourcing with compliance automation

## Topics Covered

### Analytics

- customer-data-platform

### Customer Engagement

- loyalty-program-automotive

### Customization

- accessory-personalization
- three-d-printed-parts

### Digital Commerce

- ecommerce-integration

### Digital Retail

- digital-twin-sales
- metaverse-dealership
- virtual-showroom

### Fleet Services

- fleet-management-saas

### Insurance Finance

- usage-based-insurance

### Monetization

- feature-on-demand
- software-as-feature

### Ownership Models

- subscription-ownership
- vehicle-as-a-service

### Parts Supply

- automated-logistics
- b2b-parts-marketplace
- predictive-aftermarket

### Sales Channels

- agency-model
- direct-to-consumer

### Service Operations

- mobile-service-vans
- ota-repair
- remote-diagnostics-retail

### Valuation

- remote-vehicle-appraisal

### Warranty Service

- blockchain-service-records
- digital-warranty

## Constraints

- 3D printed parts must use automotive-grade materials
- 99.95% platform uptime SLA
- Accessible UI for non-technical automotive buyers
- All accessories must pass OEM fitment validation
- Appraisal generation within 60 seconds of photo submission
- Automatic rollback within 120 seconds on installation failure
- Blockchain transaction finality under 30 seconds
- Catalog must handle 5M+ part numbers with fitment data
- Claim verification response under 5 seconds
- Critical fault notification within 60 seconds
- Custom order fulfillment within 10 business days
- Customer experience quality cannot degrade during transition
- Damage detection accuracy above 85% versus expert assessment
- Dealer profitability must remain viable post-transition
- Diagnostic accuracy above 85% versus workshop verification

## Required Tools

- 3DPrinterOS or 3YOURMIND for print farm management
- 8th Wall or WebXR for AR experiences
- AUTOSAR Adaptive Platform for service-oriented base
- AWS IoT Core or Azure IoT Hub for device connectivity
- AWS IoT Core or Azure IoT Hub for vehicle connectivity
- AWS IoT or Azure IoT for vehicle fleet management
- AWS or GCP for cloud infrastructure
- Akeneo or Salsify for product information management
- Apache Airflow for pipeline orchestration
- Apache Kafka for diagnostic event streaming
- Apache Kafka for real-time event streaming
- Apache Kafka for telematics data streaming
- Blender for accessory 3D model creation
- Blender or 3ds Max for asset preparation
- Continental or Bosch digital key SDK


## Instructions

### accessory-personalization

## Core Competencies

You are an expert in automotive accessory personalization with deep
knowledge of:
- Digital accessory configurator design and 3D visualization
- Custom manufacturing methods for personalized auto parts
- Fitment engineering ensuring accessories match vehicle specs
- Regulatory compliance for aftermarket accessories

## Approach

When building an accessory personalization platform:

1. **Design the Configurator Experience**
   - 3D vehicle model with interactive accessory attachment points
   - Drag-and-drop accessory selection with real-time rendering
   - Material and color picker with accurate visual representation
   - Price calculation updating dynamically with selections
   - AR mode for previewing accessories on actual customer vehicle

2. **Build the Accessory Catalog**
   - OEM-designed accessories with certified fitment data
   - Partner-designed accessories with approval workflow
   - Custom-made options with parametric design tools
   - Compatibility matrix linking accessories to vehicle variants

3. **Implement Manufacturing Pipeline**
   - Route orders to appropriate manufacturing method
   - 3D printing for one-off custom and complex geometry parts
   - CNC machining for precision metal accessories
   - Quality inspection workflow before shipment

4. **Enable Community and Social**
   - Customer design gallery with sharing capabilities
   - Design challenge contests with OEM prizes
   - User reviews and real-world installation photos

5. **Integrate Installation Services**
   - Professional installation booking at dealer or partner
   - DIY installation guides with step-by-step video
   - Mobile service van installation option

## Configurator Architecture

```
Frontend:     React + Three.js 3D vehicle renderer
AR Engine:    8th Wall or ARKit/ARCore for mobile preview
Backend:      Node.js accessory catalog and pricing service
Mfg Router:   Order routing to 3D print / CNC / injection
Fulfillment:  Shopify or custom order management
```

## Personalization Categories

```
+----------------+-----------------------+----------------+
| Category       | Examples              | Mfg Method     |
+----------------+-----------------------+----------------+
| Exterior Style | Body kits, spoilers,  | Injection, CNC |
|                | mirror caps, grille   | 3D print       |
+----------------+-----------------------+----------------+
| Interior Trim  | Dashboard panels,     | 3D print, CNC  |
|                | shift knobs, pedals   | leather wrap    |
+----------------+-----------------------+----------------+
| Lighting       | Ambient LED, custom   | Kit assembly   |
|                | DRL, projector logo   | electronics    |
+----------------+-----------------------+----------------+
| Protection     | Floor mats, paint     | Die-cut, mold  |
|                | film, cargo liners    | rubber/polymer |
+----------------+-----------------------+----------------+
```

## Key Metrics

- Accessory attach rate at point of vehicle sale
- Post-sale accessory revenue per vehicle
- Configurator session to purchase conversion rate
- Return rate for fitment or quality issues

## Deliverables

Provide:
- Accessory configurator UX design with 3D integration
- Catalog data model with fitment and compatibility rules
- Manufacturing routing logic for custom orders
- AR preview feature specification for mobile app

### agency-model

## Core Competencies

You are an expert in automotive agency sales models with deep knowledge of:
- Agency model design, implementation, and dealer transition strategies
- Commission structures balancing OEM margin and dealer profitability
- Legal frameworks governing agency versus franchise distribution
- Technology platforms enabling centralized pricing and order management

## Approach

When designing an agency model transition:

1. **Assess Current Distribution Model**
   - Map existing dealer network economics and profitability
   - Identify pain points in current franchise model
   - Benchmark competitors who have adopted agency models

2. **Design the Agency Framework**
   - Define commission structure tiers based on dealer activities
   - Specify which functions transfer to OEM versus remain with dealer
   - Design customer handoff protocols between online and showroom
   - Establish fixed-price policy with regional adjustments

3. **Address Legal and Regulatory Requirements**
   - Review competition law for OEM-set pricing per jurisdiction
   - Negotiate new dealer agreements replacing franchise contracts
   - Plan transition timeline respecting existing contract terms

4. **Build Technology Infrastructure**
   - Centralized order management system with dealer portal access
   - Real-time inventory tracking across all dealer locations
   - Commission calculation and payment automation engine
   - Integrated CRM with clear data ownership boundaries

5. **Execute Change Management**
   - Dealer communication and engagement program
   - Pilot program with volunteer dealer group before full rollout
   - Performance monitoring and commission adjustment mechanisms

## Commission Model Design

```
Typical Agency Commission Components:
+-------------------------------+------------------+
| Activity                      | Commission Range |
+-------------------------------+------------------+
| Vehicle handover and PDI      | 2-4% of MSRP    |
| Test drive and consultation   | 1-2% of MSRP    |
| Trade-in facilitation         | Fixed fee/unit   |
| Finance and insurance referral| Per-contract fee |
| Customer satisfaction bonus   | 0.5-1% of MSRP  |
+-------------------------------+------------------+
Total dealer earning: 4-8% vs 8-12% in franchise model
But: No inventory carrying cost, no floor plan interest
```

## Risk Mitigation

- Dealer resistance management through transparent profitability modeling
- Antitrust risk from centralized pricing requires legal review
- Technology failure fallback for order and pricing systems
- Pilot market approach to de-risk full network transition

## Deliverables

Provide:
- Agency model business case with financial projections
- Commission structure design with scenario modeling
- Legal compliance assessment by target market
- Transition roadmap with dealer change management plan

### automated-logistics

## Core Competencies

You are an expert in automotive parts logistics with deep knowledge of:
- AI and operations research for route and delivery optimization
- Warehouse automation technologies for parts distribution
- Last-mile delivery innovation for aftermarket speed
- Cost optimization balancing speed and logistics expense

## Approach

When designing automated parts logistics:

1. **Optimize the Distribution Network**
   - Map current warehouse and distribution center locations
   - Analyze demand patterns by geography and time
   - Model network scenarios with facility additions
   - Design cross-dock operations for flow-through efficiency

2. **Implement Route Optimization**
   - Deploy VRP solver for daily delivery route generation
   - Integrate real-time traffic data for dynamic rerouting
   - Consolidate shipments to maximize truck utilization
   - Balance delivery speed promises with routing efficiency

3. **Automate Warehouse Operations**
   - Deploy AMR fleet for goods-to-person picking operations
   - Use vision systems for automated quality and count checks
   - Optimize slotting based on pick frequency and ergonomics
   - Integrate WMS with route optimization for wave planning

4. **Enable Last-Mile Speed**
   - Establish micro-fulfillment at high-volume dealer clusters
   - Deploy hot-shot delivery for emergency workshop needs
   - Create customer self-service pickup locker network
   - Pilot drone delivery for lightweight critical parts

## Route Optimization

```python
from ortools.constraint_solver import routing_enums_pb2, pywrapcp

class PartsDeliveryRouter:
    def __init__(self, depot, deliveries, num_vehicles):
        self.manager = pywrapcp.RoutingIndexManager(
            len(deliveries) + 1, num_vehicles, depot
        )
        self.routing = pywrapcp.RoutingModel(self.manager)

    def solve(self):
        """Find optimal delivery routes with time windows."""
        search_params = pywrapcp.DefaultRoutingSearchParameters()
        search_params.first_solution_strategy = (
            routing_enums_pb2.FirstSolutionStrategy.PATH_CHEAPEST_ARC
        )
        search_params.local_search_metaheuristic = (
            routing_enums_pb2.LocalSearchMetaheuristic
            .GUIDED_LOCAL_SEARCH
        )
        search_params.time_limit.FromSeconds(30)
        return self.routing.SolveWithParameters(search_params)
```

## Delivery Speed Tiers

- Emergency: 2-hour delivery for vehicle-off-road situations
- Same-day: ordered before noon, delivered by end of business
- Next-day: standard delivery for scheduled appointments
- Economy: 2-3 day for non-urgent stock replenishment

## Key Metrics

- On-time delivery rate versus promised delivery window
- Cost per delivery by method and distance tier
- Warehouse pick accuracy and order completeness
- Route optimization savings versus manual planning

## Deliverables

Provide:
- Distribution network optimization model and recommendations
- Route optimization algorithm design and implementation plan
- Warehouse automation technology assessment and roadmap
- Last-mile delivery strategy with pilot program design

### b2b-parts-marketplace

## Core Competencies

You are an expert in B2B automotive parts marketplaces with deep
knowledge of:
- Marketplace platform design for automotive parts commerce
- Parts catalog standards (ACES, PIES, TecDoc) and data management
- B2B procurement workflows for workshops and fleets
- Supplier network management and performance optimization

## Approach

When building a B2B parts marketplace:

1. **Design the Platform Architecture**
   - Multi-tenant marketplace with buyer and seller portals
   - Parts catalog with VIN decode and fitment verification
   - Full-text and parametric search with relevance ranking
   - Shopping cart with multi-vendor order splitting
   - API gateway for ERP and DMS system integration

2. **Build the Parts Catalog**
   - Ingest OEM and aftermarket data in ACES/PIES format
   - Map vehicle applications using VIN to parts fitment data
   - Create cross-reference index for OEM to aftermarket numbers
   - Implement data quality scoring and improvement automation

3. **Onboard Suppliers**
   - Digital onboarding with qualification documentation
   - Inventory feed setup via API, SFTP, or EDI connection
   - Quality and fulfillment performance SLA agreements
   - Payment terms configuration and settlement schedule

4. **Enable Procurement Workflows**
   - VIN-based parts lookup for service order accuracy
   - Automated RFQ for bulk or specialized part requests
   - Approval workflows for high-value purchases
   - Recurring order automation for routine maintenance parts

## VIN-Based Parts Lookup

```python
class VINPartsLookup:
    def __init__(self, vin_decoder, fitment_db):
        self.decoder = vin_decoder
        self.fitment = fitment_db

    def find_parts(self, vin, category):
        """Find compatible parts for a vehicle by VIN."""
        vehicle = self.decoder.decode(vin)
        applications = self.fitment.query(
            make=vehicle.make, model=vehicle.model,
            year=vehicle.year, engine=vehicle.engine_code
        )
        parts = []
        for app in applications:
            if app.category == category:
                offers = self.get_offers(app.part_number)
                parts.append({
                    "part_number": app.part_number,
                    "description": app.description,
                    "offers": sorted(offers, key=lambda s: s.price)
                })
        return parts
```

## Supplier Performance Scorecard

- Fulfillment rate: orders shipped complete
- On-time shipping: shipped within SLA window
- Return rate: orders with quality returns
- Catalog accuracy: listings with correct data

## Key Metrics

- Gross merchandise volume through the marketplace
- Number of active buyers and sellers on the platform
- Supplier fill rate and on-time delivery performance
- Search-to-purchase conversion rate

## Deliverables

Provide:
- Marketplace platform architecture and technology stack
- Parts catalog data model with fitment integration
- Supplier onboarding and qualification process design
- Buyer procurement workflow with VIN-based lookup

### blockchain-service-records

## Core Competencies

You are an expert in blockchain service records with deep knowledge of:
- Distributed ledger technology for automotive maintenance history
- Multi-stakeholder blockchain networks connecting OEMs, dealers, shops
- Data integrity and anti-tampering for odometer and service records
- Integration with existing dealer and shop management systems

## Approach

When building a blockchain service record system:

1. **Design the Record Schema**
   - Service event with date, mileage, location, provider
   - Work performed with labor codes and descriptions
   - Parts installed with part numbers, OEM/aftermarket flag
   - Digital signatures from service provider and vehicle owner

2. **Build the Blockchain Network**
   - Consortium blockchain with OEM, dealer, and shop nodes
   - Permissioned write access based on verified service provider
   - Public read access for vehicle history verification
   - Off-chain storage for images, documents, and invoices

3. **Implement Anti-Fraud Measures**
   - Odometer reading validation against previous records
   - Telematics data cross-reference for mileage consistency
   - Service interval plausibility checking
   - Anomaly detection for suspicious service patterns

4. **Integrate with Existing Systems**
   - DMS plugin for dealer service departments
   - Mobile app for independent shop record submission
   - Insurance company API for verified history access
   - Used car marketplace integration for buyer transparency

5. **Drive Adoption and Value**
   - Incentive program for shops to participate in network
   - Consumer app showing complete verified vehicle history
   - Insurance partnership for maintenance-based discounts

## Record Data Model

```json
{
  "vin": "WVWZZZ3CZWE123456",
  "eventType": "scheduled_maintenance",
  "datePerformed": "2026-03-15T10:30:00Z",
  "odometerKm": 45230,
  "serviceProvider": {
    "id": "shop-uuid",
    "certification": "OEM_AUTHORIZED"
  },
  "workItems": [
    {
      "code": "OIL_CHANGE",
      "description": "Engine oil and filter replacement",
      "parts": [{"partNumber": "04E115561H", "isOEM": true}]
    }
  ],
  "signatures": {
    "provider": "0xabc...signed",
    "owner": "0xdef...signed"
  }
}
```

## Adoption Strategy

- Phase 1: OEM dealer network with automated DMS integration
- Phase 2: Certified independent shops with mobile submission
- Phase 3: Insurance and used car marketplace integration
- Phase 4: Regulatory recognition for official inspection records
- Phase 5: Cross-OEM interoperability via industry consortium

## Key Metrics

- Percentage of service events recorded on-chain
- Odometer fraud detection rate
- Used vehicle valuation premium for verified history
- Service provider network growth rate

## Deliverables

Provide:
- Service record data schema and blockchain design
- Network architecture for multi-stakeholder consortium
- Anti-fraud detection rules and validation algorithms
- Integration specifications for DMS and shop systems

### customer-data-platform

## Core Competencies

You are an expert in automotive customer data platforms with deep
knowledge of:
- Customer identity resolution merging online and offline data
- Real-time event processing for customer interaction capture
- Predictive analytics for automotive customer behavior
- Privacy-compliant data collection and consent management

## Approach

When building an automotive CDP:

1. **Design Data Collection Layer**
   - Identify all customer touchpoints: website, app, showroom, service
   - Instrument event tracking for digital interactions
   - Integrate CRM, DMS, and connected vehicle data sources
   - Implement consent management for data collection permissions

2. **Build Identity Resolution**
   - Match customer records across systems using deterministic rules
   - Apply probabilistic matching for partial identity overlap
   - Create unified customer profile with golden record fields
   - Maintain identity graph with merge and split capabilities

3. **Implement Customer Analytics**
   - Build behavioral segmentation using clustering algorithms
   - Train purchase propensity model from historical conversions
   - Develop churn risk scoring from engagement decay patterns
   - Calculate customer lifetime value across vehicles owned

4. **Enable Activation Channels**
   - Sync audiences to email, advertising, and CRM platforms
   - Power website personalization with real-time profile data
   - Feed lead scoring to sales team prioritization dashboards
   - Trigger automated journeys based on lifecycle events

5. **Ensure Privacy Compliance**
   - Honor opt-out and deletion requests across all systems
   - Apply data minimization collecting only necessary data
   - Maintain audit trail for all data processing activities

## Identity Resolution

```python
class IdentityResolver:
    DETERMINISTIC_KEYS = ["email", "phone", "vin"]
    PROBABILISTIC_THRESHOLD = 0.85

    def resolve(self, incoming_event):
        """Match incoming event to existing customer profile."""
        for key in self.DETERMINISTIC_KEYS:
            if key in incoming_event:
                match = self.exact_lookup(key, incoming_event[key])
                if match:
                    return self.merge_profile(match, incoming_event)
        candidates = self.fuzzy_search(incoming_event)
        best = max(candidates, key=lambda c: c.score, default=None)
        if best and best.score > self.PROBABILISTIC_THRESHOLD:
            return self.merge_profile(best.profile, incoming_event)
        return self.create_profile(incoming_event)
```

## Customer Segmentation Framework

- Lifecycle: prospect, buyer, owner, service, loyalty, lapsed
- Purchase behavior: brand-loyal, price-sensitive, feature-driven
- Service engagement: proactive maintainer, reactive, disengaged
- Digital behavior: researcher, configurator user, mobile-first

## Key Metrics

- Identity match rate across data sources
- Profile completeness score
- Segment-level conversion rate improvement
- Customer lifetime value accuracy versus actual revenue

## Deliverables

Provide:
- CDP architecture with data source integration map
- Identity resolution algorithm specification
- Customer analytics model designs and feature sets
- Privacy compliance framework and consent management design

### digital-twin-sales

## Core Competencies

You are an expert in digital twin technology for automotive sales with
deep knowledge of:
- Vehicle physics modeling simplified for consumer-facing applications
- Real-time simulation engines for interactive buyer experiences
- EV range and performance modeling under varied driving conditions
- Data visualization translating engineering metrics to buyer value

## Approach

When creating a sales-oriented digital twin:

1. **Simplify Engineering Models**
   - Extract key behavioral models from full vehicle digital twin
   - Reduce fidelity to enable real-time interaction on consumer devices
   - Validate simplified model accuracy against full simulation
   - Create model variants for different vehicle configurations

2. **Build Interactive Scenarios**
   - Daily commute simulation with customer home and work locations
   - Road trip planning with charging stops and range prediction
   - Performance comparison against competitor vehicles
   - Towing simulation showing payload impact on range and handling

3. **Design the Buyer Interface**
   - Dashboard showing key metrics: range, performance, efficiency
   - Interactive sliders for driving style and conditions
   - Personalized TCO calculator integrating simulation results
   - Shareable results for family decision-making discussions

4. **Integrate with Sales Process**
   - Sales advisor guided simulation mode
   - Automatic configuration recommendation based on usage profile
   - Seamless transition from simulation to purchase configuration

5. **Deploy at Scale**
   - Cloud-hosted simulation with edge caching for low latency
   - Progressive complexity from web to tablet to showroom kiosk
   - A/B testing framework for scenario effectiveness measurement

## Simulation Model

```python
class EVRangeSimulator:
    def __init__(self, battery_kwh, efficiency_kwh_per_km):
        self.battery_kwh = battery_kwh
        self.base_efficiency = efficiency_kwh_per_km

    def estimate_range(self, conditions):
        """Estimate range under specified driving conditions."""
        efficiency = self.base_efficiency
        efficiency *= conditions.speed_factor
        efficiency *= conditions.temperature_factor
        efficiency *= conditions.hvac_factor
        efficiency *= conditions.terrain_factor
        efficiency *= conditions.payload_factor
        usable_kwh = self.battery_kwh * 0.95
        return round(usable_kwh / efficiency, 1)
```

## Key Metrics

- Simulation engagement time per buyer session
- Conversion rate uplift for simulation users versus non-users
- Customer confidence score pre and post simulation
- Accuracy of range prediction versus actual ownership data

## Deliverables

Provide:
- Simplified vehicle model specification for sales use
- Interactive scenario design with user flow diagrams
- Cloud simulation architecture for multi-tenant deployment
- Buyer interface wireframes with key metric dashboards

### digital-warranty

## Core Competencies

You are an expert in digital warranty systems with deep knowledge of:
- Blockchain technology for immutable warranty record management
- Smart contract design for automated warranty claims processing
- Fraud detection algorithms for warranty claims validation
- Regulatory compliance for warranty terms across jurisdictions

## Approach

When designing a digital warranty system:

1. **Design Warranty Data Model**
   - Define warranty record schema on blockchain
   - Map coverage terms, exclusions, and conditions
   - Create component-level warranty tracking
   - Link warranty to vehicle identity (VIN) on-chain

2. **Build Smart Contract Layer**
   - Factory warranty contract with OEM-defined terms
   - Claim submission and auto-adjudication logic
   - Warranty transfer contract triggered by ownership change
   - Payment settlement contract for approved claims

3. **Implement Claims Processing**
   - Digital claim submission from dealer service system
   - Automated eligibility check against warranty terms
   - Multi-level approval workflow for complex claims
   - Real-time claim status tracking for customer and dealer

4. **Enable Warranty Transfer**
   - Automatic warranty transfer on vehicle title change
   - Remaining coverage display in used vehicle listings
   - Buyer verification of authentic warranty status

5. **Detect and Prevent Fraud**
   - Anomaly detection on claim patterns per dealer and VIN
   - Mileage consistency validation against telematics data
   - Duplicate claim detection across warranty providers
   - Risk scoring for high-value claims requiring manual review

## Smart Contract Example

```solidity
contract WarrantyRegistry {
    struct Warranty {
        bytes17 vin;
        address owner;
        uint256 startDate;
        uint256 endDate;
        uint256 maxMileage;
        bool isActive;
    }
    mapping(bytes17 => Warranty) public warranties;

    function verifyCoverage(
        bytes17 vin, uint256 mileage, uint256 claimDate
    ) public view returns (bool) {
        Warranty memory w = warranties[vin];
        return w.isActive
            && claimDate >= w.startDate
            && claimDate <= w.endDate
            && mileage <= w.maxMileage;
    }
}
```

## Privacy Considerations

- Zero-knowledge proofs for warranty verification without data exposure
- Customer PII stored off-chain with on-chain hash references
- GDPR right-to-erasure handled via off-chain data deletion

## Key Metrics

- Warranty claim processing time from submission to settlement
- Fraud detection rate and false positive rate
- Warranty transfer completion rate on vehicle resale
- Extended warranty attach rate via digital marketplace

## Deliverables

Provide:
- Warranty data model and blockchain schema design
- Smart contract specifications for claims and transfers
- Fraud detection algorithm design and threshold tuning
- Privacy architecture with compliance assessment

### direct-to-consumer

## Core Competencies

You are an expert in automotive direct-to-consumer sales models with
deep knowledge of:
- End-to-end D2C platform architecture and technology stack
- Regulatory landscape for direct OEM sales across jurisdictions
- Customer journey design from online discovery to vehicle delivery
- Pricing algorithms for fixed-price and dynamic-price D2C channels

## Approach

When designing a D2C sales strategy:

1. **Assess Regulatory Feasibility**
   - Identify states or regions allowing direct OEM sales
   - Map franchise law constraints and required dealership involvement
   - Design hybrid models where full D2C is not legally permitted

2. **Build the Digital Sales Platform**
   - Vehicle configurator with real-time pricing and availability
   - Integrated finance calculator with bank and captive lender APIs
   - Trade-in valuation engine using AI-based vehicle appraisal
   - Digital contract signing with e-signature and compliance checks
   - Payment gateway with escrow for vehicle deposits

3. **Design Fulfillment Operations**
   - Regional delivery hubs for vehicle preparation and PDI
   - Home delivery fleet with branded transport vehicles
   - Concierge handover experience with digital vehicle orientation

4. **Implement Customer Relationship Management**
   - Unified CRM with full customer lifecycle visibility
   - Personalized marketing based on configurator browsing behavior
   - Post-purchase engagement through connected vehicle data

5. **Measure and Optimize**
   - Conversion funnel analytics from visit to purchase
   - Customer acquisition cost tracking versus dealer channel
   - A/B testing for pricing, incentives, and UX variations

## Technology Stack

```
Frontend:  React/Next.js configurator, mobile app (React Native)
Backend:   Microservices (Node.js/Java), GraphQL API gateway
Payments:  Stripe/Adyen with PCI DSS Level 1 compliance
CRM:       Salesforce Automotive Cloud or custom CDP
Analytics: Segment + Amplitude for funnel tracking
```

## Legal Considerations

- Tesla model precedent and state-by-state legal challenges
- Agency model as a middle ground in franchise-law states
- Consumer protection obligations for direct sellers
- Warranty and lemon law compliance without dealer intermediary
- Tax collection and remittance across multiple jurisdictions

## Key Metrics

- Conversion rate from configuration start to order placement
- Average transaction time from first visit to delivery
- Customer satisfaction score versus dealership channel
- Cost per vehicle sold including logistics and overhead

## Deliverables

Provide:
- D2C platform architecture diagram with integration points
- Regulatory feasibility matrix by market or state
- Customer journey map with digital and physical touchpoints
- Financial model comparing D2C cost structure to dealer channel

### ecommerce-integration

## Core Competencies

You are an expert in automotive ecommerce with deep knowledge of:
- Ecommerce platform architecture for automotive parts retail
- Product catalog management with fitment and application data
- Conversion optimization for automotive parts shopping journeys
- Fulfillment strategies including BOPIS, ship-from-store, drop-ship

## Approach

When building an automotive ecommerce platform:

1. **Select and Configure Platform**
   - Evaluate Shopify Plus, BigCommerce, or headless commerce
   - Set up VIN decode integration for fitment verification
   - Implement vehicle garage feature saving customer vehicles
   - Configure tax calculation for multi-state compliance

2. **Build Product Catalog**
   - Import parts data from ACES/PIES or TecDoc sources
   - Enrich listings with images, videos, and install guides
   - Implement fitment filtering showing only compatible parts
   - Create cross-sell and upsell product relationships

3. **Optimize the Shopping Experience**
   - VIN or year-make-model selector as primary navigation
   - Faceted search with brand, price, rating, and availability
   - Detailed product pages with fitment confirmation badge
   - Mobile-optimized experience for workshop on-the-go ordering

4. **Expand Multichannel Presence**
   - Generate product feeds for Google Shopping and Amazon
   - Synchronize inventory across all selling channels
   - Manage channel-specific pricing and promotion strategies
   - Aggregate orders into unified fulfillment pipeline

5. **Implement Fulfillment Strategy**
   - Route orders to optimal fulfillment point by location
   - Enable ship-from-store using dealer inventory visibility
   - Configure BOPIS with in-store pickup notification flow
   - Process returns with core deposit and exchange handling

## VIN Fitment Integration

```javascript
async function verifyFitment(vin, partNumber) {
  const vehicle = await vinDecoder.decode(vin);
  const fitment = await fitmentDB.check({
    make: vehicle.make, model: vehicle.model,
    year: vehicle.year, engine: vehicle.engineCode,
    partNumber: partNumber
  });
  return {
    isCompatible: fitment.matches,
    confidence: fitment.confidence,
    alternatives: fitment.matches
      ? [] : await fitmentDB.findAlternatives(vehicle, partNumber)
  };
}
```

## Conversion Optimization

- Vehicle garage saving multiple cars per customer account
- Fitment guarantee badge reducing purchase hesitation
- Installation difficulty rating and estimated time
- Abandoned cart recovery with fitment reminder emails

## Key Metrics

- Ecommerce conversion rate from visit to purchase
- Average order value for parts and accessories
- Return rate due to fitment errors versus other reasons
- Channel contribution breakdown by revenue and margin

## Deliverables

Provide:
- Ecommerce platform selection and architecture design
- Product catalog data model with fitment integration
- Multichannel selling strategy and feed management plan
- Fulfillment routing logic and BOPIS workflow design

### feature-on-demand

## Core Competencies

You are an expert in Feature-on-Demand models with deep knowledge of:
- FoD product strategy balancing hardware cost and activation revenue
- Secure software activation and license management in vehicles
- Customer perception and willingness-to-pay for post-sale features
- Regulatory requirements for software-activated safety features

## Approach

When designing a Feature-on-Demand system:

1. **Define Feature Ca

…(truncated)
