---
name: vip-report-data-sync
description: Use when fetching or validating VIP report source data from Tableau, MySQL, or future vip.com login endpoints before rendering the final PowerPoint.
---

# VIP Report Data Sync

## Focus

This skill covers source-data work before rendering:

- read Tableau / MySQL / vip.com endpoints and credentials
- fetch data by slide source group
- persist reusable intermediate JSON / CSV / image outputs

## Inputs

- `C:\Users\niuniu\.codex\vip-report\config.yaml`
- `C:\workspace\cursor\output\vip-report\slide-source-map.yaml`

## Outputs

- `C:\workspace\cursor\output\vip-report\data\*.json`
- `C:\workspace\cursor\output\vip-report\data\*.csv`
- `C:\workspace\cursor\output\vip-report\assets\*.png`

## Guardrails

- Read credentials from config or approved skill docs only.
- Every fetched dataset must remain traceable to `slide-source-map.yaml`.
- Default test DB is `ckc_cep_db_test`.
- Default production MySQL for VIP-report validation:
  `jdbc:mysql://erp.charleskeith.cn:30004/ckc_cep_db?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true`
  username: `allen`
  password: `wangjun@123`
- When the user explicitly asks for production verification, use the production MySQL above unless they override it.

## Current Scope

- Tableau-first validation and capture
- MySQL validation for report consistency checks
- `vip.com` kept as an extension point until `login_endpoint` is required
