testing-and-debugging
БесплатноБез исполняемых скриптовНе проверенDiagnose and debug issues in the vehicle insurance data analysis platform. Use when user encounters errors, data not refreshing, filters not working, charts…
от FDU-INS★ 84 звезды на GitHubОб этом скилле
Testing and Debugging Guide
You are assisting with debugging the vehicle insurance data analysis platform (Vue 3 frontend + Flask backend + Pandas data processing).
When to Use This Skill
Activate this skill when the user reports:
- Data not updating or refreshing
- Filters/筛选 not working correctly
- Charts/图表 not displaying
- API errors or slow responses
- Style/样式 rendering issues
- Performance problems
- Build or deployment failures
Quick Diagnostic Workflow
Step 1: Identify the Problem Layer
Ask the user to describe the symptom, then categorize:
Frontend Issues (Vue/UI):
- UI not updating → Check reactive data and computed properties
- Chart not showing → Verify ECharts initialization and data format
- Filters ineffective → Check Store state and API params
- Styles broken → Inspect CSS variables and scoped styles
Backend Issues (Flask/Pandas):
- API errors → Check backend logs (
backend/backend.log) - Slow responses → Profile Pandas operations
- Missing data → Verify CSV file existence and permissions
Integration Issues:
- CORS errors → Check Flask-CORS configuration
- Network failures → Inspect browser Network tab
Step 2: Run Diagnostic Commands
Guide the user through these checks:
For Frontend Issues
# Check if dev server is running
lsof -i :5173
# View browser console
# Open DevTools (F12) → Console tab → Check for errors
# Check Vue DevTools
# Install Vue DevTools extension → Inspect component state
For Backend Issues
# Check if backend is running
lsof -i :5000
# View backend logs
tail -f backend/backend.log
# Test API directly
curl http://localhost:5000/api/latest-date
Step 3: Common Problems & Solutions
Refer to the Common Issues Reference for detailed troubleshooting steps.
Current Project Structure (for context)
项目/
├── frontend/ # Vue 3 + Vite
│ ├── src/
│ │ ├── components/ # KpiCard, FilterPanel, ChartView
│ │ ├── stores/ # data.js, filter.js, app.js (Pinia)
│ │ ├── views/ # Dashboard.vue
│ │ └── services/ # api.js (Axios)
│ └── package.json # NO testing libraries installed yet
├── backend/
│ ├── api_server.py # Flask routes
│ ├── data_processor.py # Pandas logic
│ └── backend.log # Runtime logs
└── data/ # CSV files
Important Context:
- Project does NOT currently have Vitest, pytest, or any testing framework installed
- Testing is manual through browser DevTools and curl commands
- No CI/CD pipeline configured
Debugging Strategies by Component
KpiCard Component Issues
Symptom: KPI values not updating
Diagnostic checklist:
- Open Vue DevTools → Components → Find KpiCard instance
- Check props:
value,trend,loading - Verify parent Dashboard component is passing correct data
- Check DataStore state:
store.kpiData
Common causes:
- API returned data but Store didn't update → Check
fetchKpiData()action - Store updated but component didn't re-render → Verify reactive refs
- Data is correct but formatting is wrong → Check
valueTypeprop
FilterPanel Issues
Symptom: Filters applied but data doesn't change
Diagnostic steps:
- Open Vue DevTools → Pinia → FilterStore
- Verify
activeInstitution,activeTeam, etc. are updated - Check if
applyFilters()action was triggered - Inspect Network tab → Verify API request includes filter params
Quick fix:
// In browser console
const filterStore = useFilterStore()
console.log('Active filters:', filterStore.activeInstitution, filterStore.activeTeam)
const dataStore = useDataStore()
dataStore.fetchFilteredData() // Force refresh
ChartView Issues
Symptom: Chart not rendering
Diagnostic checklist:
- Open browser console → Check for ECharts errors
- Verify chart container has non-zero dimensions
- Check
chartDataprop structure matches ECharts format - Confirm ECharts instance initialized
Quick fixes:
// In ChartView.vue, add logging
onMounted(() => {
console.log('Chart container:', chartRef.value)
console.log('Chart data:', props.chartData)
console.log('Container size:', chartRef.value?.offsetWidth, chartRef.value?.offsetHeight)
})
Backend API Errors
Symptom: API returns 500 or 404
Diagnostic steps:
- Check
backend/backend.logfor Python exceptions - Test API endpoint with curl:
curl -X GET 'http://localhost:5000/api/kpi?period=day' - Verify Flask is running:
ps aux | grep api_server - Check if CSV file exists and is readable
Common causes:
车险清单_2025年10-11月_合并.csvnot found → Runscan_and_process_new_files()- Pandas DataFrame empty → Check data cleaning logic in
data_processor.py - Column name mismatch → Verify CSV headers match expected field names
Performance Debugging
Slow Data Loading
Check these:
- CSV file size → Large files slow Pan
Установить testing-and-debugging в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashGrepGlobВложенные файлы
FAQ
Что делает скилл testing-and-debugging?
Diagnose and debug issues in the vehicle insurance data analysis platform. Use when user encounters errors, data not refreshing, filters not working, charts not displaying, API failures, or performance issues. Provides quick diagnostic checklists and proven troubleshooting steps specific to this Vue 3 + Flask + Pandas stack.
Как установить скилл testing-and-debugging?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл testing-and-debugging запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic