[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HQDXPPED5D4V89ZWS0BW1C":3,"skill-same:01M6HQDXPPED5D4V89ZWS0BW1C":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":30,"publishedAt":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":6,"ownerHtmlUrl":62,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":63,"install":64,"resources":77},"01M6HQDXPPED5D4V89ZWS0BW1C","interactive-dashboard-builder",null,"Build self-contained interactive HTML dashboards with Chart.js, dropdown filters, and professional styling. Use when creating dashboards, building interactive reports, or generating shareable HTML files with charts and filters that work without a server.","welflau\u002Fai-dev-system","welflau","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7010385?v=4","01M6HPTDGF18RFY07M229P8CTM","01M6HPTDMRMZCJPYBFEA9XVVYT",3,"MIT","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcb_teams_marketplace\u002Fplugins\u002Fdata\u002Fskills\u002Finteractive-dashboard-builder\u002FSKILL.md",[17,22,25],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000009","前端开发","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000013","分析与可视化",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],"dashboard builder","interactive","interactive dashboard builder","builder","dashboard","interactive dashboard","filters","when","with","professional","chart","self","files","reports","styling","html","use","work","dashboards","Charts","server","2026-11-10 10:12:30",false,"---\nname: interactive-dashboard-builder\ndescription: Build self-contained interactive HTML dashboards with Chart.js, dropdown filters, and professional styling. Use when creating dashboards, building interactive reports, or generating shareable HTML files with charts and filters that work without a server.\n---\n\n# Interactive Dashboard Builder Skill\n\nPatterns and techniques for building self-contained HTML\u002FJS dashboards with Chart.js, filters, interactivity, and professional styling.\n\n## HTML\u002FJS Dashboard Patterns\n\n### Base Template\n\nEvery dashboard follows this structure:\n\n```html\n\u003C!DOCTYPE html>\n\u003Chtml lang=\"en\">\n\u003Chead>\n    \u003Cmeta charset=\"UTF-8\">\n    \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    \u003Ctitle>Dashboard Title\u003C\u002Ftitle>\n    \u003Cscript src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Fchart.js@4.5.1\" integrity=\"sha384-jb8JQMbMoBUzgWatfe6COACi2ljcDdZQ2OxczGA3bGNeWe+6DChMTBJemed7ZnvJ\" crossorigin=\"anonymous\">\u003C\u002Fscript>\n    \u003Cscript src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Fchartjs-adapter-date-fns@3.0.0\" integrity=\"sha384-cVMg8E3QFwTvGCDuK+ET4PD341jF3W8nO1auiXfuZNQkzbUUiBGLsIQUE+b1mxws\" crossorigin=\"anonymous\">\u003C\u002Fscript>\n    \u003Cstyle>\n        \u002F* Dashboard styles go here *\u002F\n    \u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n    \u003Cdiv class=\"dashboard-container\">\n        \u003Cheader class=\"dashboard-header\">\n            \u003Ch1>Dashboard Title\u003C\u002Fh1>\n            \u003Cdiv class=\"filters\">\n                \u003C!-- Filter controls -->\n            \u003C\u002Fdiv>\n        \u003C\u002Fheader>\n\n        \u003Csection class=\"kpi-row\">\n            \u003C!-- KPI cards -->\n        \u003C\u002Fsection>\n\n        \u003Csection class=\"chart-row\">\n            \u003C!-- Chart containers -->\n        \u003C\u002Fsection>\n\n        \u003Csection class=\"table-section\">\n            \u003C!-- Data table -->\n        \u003C\u002Fsection>\n\n        \u003Cfooter class=\"dashboard-footer\">\n            \u003Cspan>Data as of: \u003Cspan id=\"data-date\">\u003C\u002Fspan>\u003C\u002Fspan>\n        \u003C\u002Ffooter>\n    \u003C\u002Fdiv>\n\n    \u003Cscript>\n        \u002F\u002F Embedded data\n        const DATA = [];\n\n        \u002F\u002F Dashboard logic\n        class Dashboard {\n            constructor(data) {\n                this.rawData = data;\n                this.filteredData = data;\n                this.charts = {};\n                this.init();\n            }\n\n            init() {\n                this.setupFilters();\n                this.renderKPIs();\n                this.renderCharts();\n                this.renderTable();\n            }\n\n            applyFilters() {\n                \u002F\u002F Filter logic\n                this.filteredData = this.rawData.filter(row => {\n                    \u002F\u002F Apply each active filter\n                    return true; \u002F\u002F placeholder\n                });\n                this.renderKPIs();\n                this.updateCharts();\n                this.renderTable();\n            }\n\n            \u002F\u002F ... methods for each section\n        }\n\n        const dashboard = new Dashboard(DATA);\n    \u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### KPI Card Pattern\n\n```html\n\u003Cdiv class=\"kpi-card\">\n    \u003Cdiv class=\"kpi-label\">Total Revenue\u003C\u002Fdiv>\n    \u003Cdiv class=\"kpi-value\" id=\"kpi-revenue\">$0\u003C\u002Fdiv>\n    \u003Cdiv class=\"kpi-change positive\" id=\"kpi-revenue-change\">+0%\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n```javascript\nfunction renderKPI(elementId, value, previousValue, format = 'number') {\n    const el = document.getElementById(elementId);\n    const changeEl = document.getElementById(elementId + '-change');\n\n    \u002F\u002F Format the value\n    el.textContent = formatValue(value, format);\n\n    \u002F\u002F Calculate and display change\n    if (previousValue && previousValue !== 0) {\n        const pctChange = ((value - previousValue) \u002F previousValue) * 100;\n        const sign = pctChange >= 0 ? '+' : '';\n        changeEl.textContent = `${sign}${pctChange.toFixed(1)}% vs prior period`;\n        changeEl.className = `kpi-change ${pctChange >= 0 ? 'positive' : 'negative'}`;\n    }\n}\n\nfunction formatValue(value, format) {\n    switch (format) {\n        case 'currency':\n            if (value >= 1e6) return `$${(value \u002F 1e6).toFixed(1)}M`;\n            if (value >= 1e3) return `$${(value \u002F 1e3).toFixed(1)}K`;\n            return `$${value.toFixed(0)}`;\n        case 'percent':\n            return `${value.toFixed(1)}%`;\n        case 'number':\n            if (value >= 1e6) return `${(value \u002F 1e6).toFixed(1)}M`;\n            if (value >= 1e3) return `${(value \u002F 1e3).toFixed(1)}K`;\n            return value.toLocaleString();\n        default:\n            return value.toString();\n    }\n}\n```\n\n### Chart Container Pattern\n\n```html\n\u003Cdiv class=\"chart-container\">\n    \u003Ch3 class=\"chart-title\">Monthly Revenue Trend\u003C\u002Fh3>\n    \u003Ccanvas id=\"revenue-chart\">\u003C\u002Fcanvas>\n\u003C\u002Fdiv>\n```\n\n## Chart.js Integration\n\n### Line Chart\n\n```javascript\nfunction createLineChart(canvasId, labels, datasets) {\n    const ctx = document.getElementById(canvasId).getContext('2d');\n    return new Chart(ctx, {\n        type: 'line',\n        data: {\n            labels: labels,\n            datasets: datasets.map((ds, i) => ({\n                label: ds.label,\n                data: ds.data,\n                borderColor: COLORS[i % COLORS.length],\n                backgroundColor: COLORS[i % COLORS.length] + '20',\n                borderWidth: 2,\n                fill: ds.fill || false,\n                tension: 0.3,\n                pointRadius: 3,\n                pointHoverRadius: 6,\n            }))\n        },\n        options: {\n            responsive: true,\n            maintainAspectRatio: false,\n            interaction: {\n                mode: 'index',\n                intersect: false,\n            },\n            plugins: {\n                legend: {\n                    position: 'top',\n                    labels: { usePointStyle: true, padding: 20 }\n                },\n                tooltip: {\n                    callbacks: {\n                        label: function(context) {\n                            return `${context.dataset.label}: ${formatValue(context.parsed.y, 'currency')}`;\n                        }\n                    }\n                }\n            },\n            scales: {\n                x: {\n                    grid: { display: false }\n                },\n                y: {\n                    beginAtZero: true,\n                    ticks: {\n                        callback: function(value) {\n                            return formatValue(value, 'currency');\n                        }\n                    }\n                }\n            }\n        }\n    });\n}\n```\n\n### Bar Chart\n\n```javascript\nfunction createBarChart(canvasId, labels, data, options = {}) {\n    const ctx = document.getElementById(canvasId).getContext('2d');\n    const isHorizontal = options.horizontal || labels.length > 8;\n\n    return new Chart(ctx, {\n        type: 'bar',\n        data: {\n            labels: labels,\n            datasets: [{\n                label: options.label || 'Value',\n                data: data,\n                backgroundColor: options.colors || COLORS.map(c => c + 'CC'),\n                borderColor: options.colors || COLORS,\n                borderWidth: 1,\n                borderRadius: 4,\n            }]\n        },\n        options: {\n            responsive: true,\n            maintainAspectRatio: false,\n            indexAxis: isHorizontal ? 'y' : 'x',\n            plugins: {\n                legend: { display: false },\n                tooltip: {\n                    callbacks: {\n                        label: function(context) {\n                            return formatValue(context.parsed[isHorizontal ? 'x' : 'y'], options.format || 'number');\n                        }\n                    }\n                }\n            },\n            scales: {\n                x: {\n                    beginAtZero: true,\n                    grid: { display: isHorizontal },\n                    ticks: isHorizontal ? {\n                        callback: function(value) {\n                            return formatValue(value, options.format || 'number');\n                        }\n                    } : {}\n                },\n                y: {\n                    beginAtZero: !isHorizontal,\n                    grid: { display: !isHorizontal },\n                    ticks: !isHorizontal ? {\n                        callback: function(value) {\n                            return formatValue(value, options.format || 'number');\n                        }\n                    } : {}\n                }\n            }\n        }\n    });\n}\n```\n\n### Doughnut Chart\n\n```javascript\nfunction createDoughnutChart(canvasId, labels, data) {\n    const ctx = document.getElementById(canvasId).getContext('2d');\n    return new Chart(ctx, {\n        type: 'doughnut',\n        data: {\n            labels: labels,\n            datasets: [{\n                data: data,\n                backgroundColor: COLORS.map(c => c + 'CC'),\n                borderColor: '#ffffff',\n                borderWidth: 2,\n            }]\n        },\n        options: {\n            responsive: true,\n            maintainAspectRatio: false,\n            cutout: '60%',\n            plugins: {\n                legend: {\n                    position: 'right',\n                    labels: { usePointStyle: true, padding: 15 }\n                },\n                tooltip: {\n                    callbacks: {\n                        label: function(context) {\n                            const total = context.dataset.data.reduce((a, b) => a + b, 0);\n                            const pct = ((context.parsed \u002F total) * 100).toFixed(1);\n                            return `${context.label}: ${formatValue(context.parsed, 'number')} (${pct}%)`;\n                        }\n                    }\n                }\n            }\n        }\n    });\n}\n```\n\n### Updating Charts on Filter Change\n\n```javascript\nfunction updateChart(chart, newLabels, newData) {\n    chart.data.labels = newLabels;\n\n    if (Array.isArray(newData[0])) {\n        \u002F\u002F Multiple datasets\n        newData.forEach((data, i) => {\n            chart.data.datasets[i].data = data;\n        });\n    } else {\n        chart.data.datasets[0].data = newData;\n    }\n\n    chart.update('none'); \u002F\u002F 'none' disables animation for instant update\n}\n```\n\n## Filter and Interactivity Implementation\n\n### Dropdown Filter\n\n```html\n\u003Cdiv class=\"filter-group\">\n    \u003Clabel for=\"filter-region\">Region\u003C\u002Flabel>\n    \u003Cselect id=\"filter-region\" onchange=\"dashboard.applyFilters()\">\n        \u003Coption value=\"all\">All Regions\u003C\u002Foption>\n    \u003C\u002Fselect>\n\u003C\u002Fdiv>\n```\n\n```javascript\nfunction populateFilter(selectId, data, field) {\n    const select = document.getElementById(selectId);\n    const values = [...new Set(data.map(d => d[field]))].sort();\n\n    \u002F\u002F Keep the \"All\" option, add unique values\n    values.forEach(val => {\n        const option = document.createElement('option');\n        option.value = val;\n        option.textContent = val;\n        select.appendChild(option);\n    });\n}\n\nfunction getFilterValue(selectId) {\n    const val = document.getElementById(selectId).value;\n    return val === 'all' ? null : val;\n}\n```\n\n### Date Range Filter\n\n```html\n\u003Cdiv class=\"filter-group\">\n    \u003Clabel>Date Range\u003C\u002Flabel>\n    \u003Cinput type=\"date\" id=\"filter-date-start\" onchange=\"dashboard.applyFilters()\">\n    \u003Cspan>to\u003C\u002Fspan>\n    \u003Cinput type=\"date\" id=\"filter-date-end\" onchange=\"dashboard.applyFilters()\">\n\u003C\u002Fdiv>\n```\n\n```javascript\nfunction filterByDateRange(data, dateField, startDate, endDate) {\n    return data.filter(row => {\n        const rowDate = new Date(row[dateField]);\n        if (startDate && rowDate \u003C new Date(startDate)) return false;\n        if (endDate && rowDate > new Date(endDate)) return false;\n        return true;\n    });\n}\n```\n\n### Combined Filter Logic\n\n```javascript\napplyFilters() {\n    const region = getFilterValue('filter-region');\n    const category = getFilterValue('filter-category');\n    const startDate = document.getElementById('filter-date-start').value;\n    const endDate = document.getElementById('filter-date-end').value;\n\n    this.filteredData = this.rawData.filter(row => {\n        if (region && row.region !== region) return false;\n        if (category && row.category !== category) return false;\n        if (startDate && row.date \u003C startDate) return false;\n        if (endDate && row.date > endDate) return false;\n        return true;\n    });\n\n    this.renderKPIs();\n    this.updateCharts();\n    this.renderTable();\n}\n```\n\n### Sortable Table\n\n```javascript\nfunction renderTable(containerId, data, columns) {\n    const container = document.getElementById(containerId);\n    let sortCol = null;\n    let sortDir = 'desc';\n\n    function render(sortedData) {\n        let html = '\u003Ctable class=\"data-table\">';\n\n        \u002F\u002F Header\n        html += '\u003Cthead>\u003Ctr>';\n        columns.forEach(col => {\n            const arrow = sortCol === col.field\n                ? (sortDir === 'asc' ? ' ▲' : ' ▼')\n                : '';\n            html += `\u003Cth onclick=\"sortTable('${col.field}')\" style=\"cursor:pointer\">${col.label}${arrow}\u003C\u002Fth>`;\n        });\n        html += '\u003C\u002Ftr>\u003C\u002Fthead>';\n\n        \u002F\u002F Body\n        html += '\u003Ctbody>';\n        sortedData.forEach(row => {\n            html += '\u003Ctr>';\n            columns.forEach(col => {\n                const value = col.format ? formatValue(row[col.field], col.format) : row[col.field];\n                html += `\u003Ctd>${value}\u003C\u002Ftd>`;\n            });\n            html += '\u003C\u002Ftr>';\n        });\n        html += '\u003C\u002Ftbody>\u003C\u002Ftable>';\n\n        container.innerHTML = html;\n    }\n\n    window.sortTable = function(field) {\n        if (sortCol === field) {\n            sortDir = sortDir === 'asc' ? 'desc' : 'asc';\n        } else {\n            sortCol = field;\n            sortDir = 'desc';\n        }\n        const sorted = [...data].sort((a, b) => {\n            const aVal = a[field], bVal = b[field];\n            const cmp = aVal \u003C bVal ? -1 : aVal > bVal ? 1 : 0;\n            return sortDir === 'asc' ? cmp : -cmp;\n        });\n        render(sorted);\n    };\n\n    render(data);\n}\n```\n\n## CSS Styling for Dashboards\n\n### Color System\n\n```css\n:root {\n    \u002F* Background layers *\u002F\n    --bg-primary: #f8f9fa;\n    --bg-card: #ffffff;\n    --bg-header: #1a1a2e;\n\n    \u002F* Text *\u002F\n    --text-primary: #212529;\n    --text-secondary: #6c757d;\n    --text-on-dark: #ffffff;\n\n    \u002F* Accent colors for data *\u002F\n    --color-1: #4C72B0;\n    --color-2: #DD8452;\n    --color-3: #55A868;\n    --color-4: #C44E52;\n    --color-5: #8172B3;\n    --color-6: #937860;\n\n    \u002F* Status colors *\u002F\n    --positive: #28a745;\n    --negative: #dc3545;\n    --neutral: #6c757d;\n\n    \u002F* Spacing *\u002F\n    --gap: 16px;\n    --radius: 8px;\n}\n```\n\n### Layout\n\n```css\n* {\n    margin: 0;\n    padding: 0;\n    box-sizing: border-box;\n}\n\nbody {\n    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n    background: var(--bg-primary);\n    color: var(--text-primary);\n    line-height: 1.5;\n}\n\n.dashboard-container {\n    max-width: 1400px;\n    margin: 0 auto;\n    padding: var(--gap);\n}\n\n.dashboard-header {\n    background: var(--bg-header);\n    color: var(--text-on-dark);\n    padding: 20px 24px;\n    border-radius: var(--radius);\n    margin-bottom: var(--gap);\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    flex-wrap: wrap;\n    gap: 12px;\n}\n\n.dashboard-header h1 {\n    font-size: 20px;\n    font-weight: 600;\n}\n```\n\n### KPI Cards\n\n```css\n.kpi-row {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n    gap: var(--gap);\n    margin-bottom: var(--gap);\n}\n\n.kpi-card {\n    background: var(--bg-card);\n    border-radius: var(--radius);\n    padding: 20px 24px;\n    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);\n}\n\n.kpi-label {\n    font-size: 13px;\n    color: var(--text-secondary);\n    text-transform: uppercase;\n    letter-spacing: 0.5px;\n    margin-bottom: 4px;\n}\n\n.kpi-value {\n    font-size: 28px;\n    font-weight: 700;\n    color: var(--text-primary);\n    margin-bottom: 4px;\n}\n\n.kpi-change {\n    font-size: 13px;\n    font-weight: 500;\n}\n\n.kpi-change.positive { color: var(--positive); }\n.kpi-change.negative { color: var(--negative); }\n```\n\n### Chart Containers\n\n```css\n.chart-row {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));\n    gap: var(--gap);\n    margin-bottom: var(--gap);\n}\n\n.chart-container {\n    background: var(--bg-card);\n    border-radius: var(--radius);\n    padding: 20px 24px;\n    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);\n}\n\n.chart-container h3 {\n    font-size: 14px;\n    font-weight: 600;\n    color: var(--text-primary);\n    margin-bottom: 16px;\n}\n\n.chart-container canvas {\n    max-height: 300px;\n}\n```\n\n### Filters\n\n```css\n.filters {\n    display: flex;\n    gap: 12px;\n    align-items: center;\n    flex-wrap: wrap;\n}\n\n.filter-group {\n    display: flex;\n    align-items: center;\n    gap: 6px;\n}\n\n.filter-group label {\n    font-size: 12px;\n    color: rgba(255, 255, 255, 0.7);\n}\n\n.filter-group select,\n.filter-group input[type=\"date\"] {\n    padding: 6px 10px;\n    border: 1px solid rgba(255, 255, 255, 0.2);\n    border-radius: 4px;\n    background: rgba(255, 255, 255, 0.1);\n    color: var(--text-on-dark);\n    font-size: 13px;\n}\n\n.filter-group select option {\n    background: var(--bg-header);\n    color: var(--text-on-dark);\n}\n```\n\n### Data Table\n\n```css\n.table-section {\n    background: var(--bg-card);\n    border-radius: var(--radius);\n    padding: 20px 24px;\n    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);\n    overflow-x: auto;\n}\n\n.data-table {\n    width: 100%;\n    border-collapse: collapse;\n    font-size: 13px;\n}\n\n.data-table thead th {\n    text-align: left;\n    padding: 10px 12px;\n    border-bottom: 2px solid #dee2e6;\n    color: var(--text-secondary);\n    font-weight: 600;\n    font-size: 12px;\n    text-transform: uppercase;\n    letter-spacing: 0.5px;\n    white-space: nowrap;\n    user-select: none;\n}\n\n.data-table thead th:hover {\n    color: var(--text-primary);\n    background: #f8f9fa;\n}\n\n.data-table tbody td {\n    padding: 10px 12px;\n    border-bottom: 1px solid #f0f0f0;\n}\n\n.data-table tbody tr:hover {\n    background: #f8f9fa;\n}\n\n.data-table tbody tr:last-child td {\n    border-bottom: none;\n}\n```\n\n### Responsive Design\n\n```css\n@media (max-width: 768px) {\n    .dashboard-header {\n        flex-direction: column;\n        align-items: flex-start;\n    }\n\n    .kpi-row {\n        grid-template-columns: repeat(2, 1fr);\n    }\n\n    .chart-row {\n        grid-template-columns: 1fr;\n    }\n\n    .filters {\n        flex-direction: column;\n        align-items: flex-start;\n    }\n}\n\n@media print {\n    body { background: white; }\n    .dashboard-container { max-width: none; }\n    .filters { display: none; }\n    .chart-container { break-inside: avoid; }\n    .kpi-card { border: 1px solid #dee2e6; box-shadow: none; }\n}\n```\n\n## Performance Considerations for Large Datasets\n\n### Data Size Guidelines\n\n| Data Size | Approach |\n|---|---|\n| \u003C1,000 rows | Embed directly in HTML. Full interactivity. |\n| 1,000 - 10,000 rows | Embed in HTML. May need to pre-aggregate for charts. |\n| 10,000 - 100,000 rows | Pre-aggregate server-side. Embed only aggregated data. |\n| >100,000 rows | Not suitable for client-side dashboard. Use a BI tool or paginate. |\n\n### Pre-Aggregation Pattern\n\nInstead of embedding raw data and aggregating in the browser:\n\n```javascript\n\u002F\u002F DON'T: embed 50,000 raw rows\nconst RAW_DATA = [\u002F* 50,000 rows *\u002F];\n\n\u002F\u002F DO: pre-aggregate before embedding\nconst CHART_DATA = {\n    monthly_revenue: [\n        { month: '2024-01', revenue: 150000, orders: 1200 },\n        { month: '2024-02', revenue: 165000, orders: 1350 },\n        \u002F\u002F ... 12 rows instead of 50,000\n    ],\n    top_products: [\n        { product: 'Widget A', revenue: 45000 },\n        \u002F\u002F ... 10 rows\n    ],\n    kpis: {\n        total_revenue: 1980000,\n        total_orders: 15600,\n        avg_order_value: 127,\n    }\n};\n```\n\n### Chart Performance\n\n- Limit line charts to \u003C500 data points per series (downsample if needed)\n- Limit bar charts to \u003C50 categories\n- For scatter plots, cap at 1,000 points (use sampling for larger datasets)\n- Disable animations for dashboards with many charts: `animation: false` in Chart.js options\n- Use `Chart.update('none')` instead of `Chart.update()` for filter-triggered updates\n\n### DOM Performance\n\n- Limit data tables to 100-200 visible rows. Add pagination for more.\n- Use `requestAnimationFrame` for coordinated chart updates\n- Avoid rebuilding the entire DOM on filter change -- update only changed elements\n\n```javascript\n\u002F\u002F Efficient table pagination\nfunction renderTablePage(data, page, pageSize = 50) {\n    const start = page * pageSize;\n    const end = Math.min(start + pageSize, data.length);\n    const pageData = data.slice(start, end);\n    \u002F\u002F Render only pageData\n    \u002F\u002F Show pagination controls: \"Showing 1-50 of 2,340\"\n}\n```\n","# Interactive Dashboard Builder Skill\n\nPatterns and techniques for building self-contained HTML\u002FJS dashboards with Chart.js, filters, interactivity, and professional styling.\n\n## HTML\u002FJS Dashboard Patterns\n\n### Base Template\n\nEvery dashboard follows this structure:\n\n```html\n\u003C!DOCTYPE html>\n\u003Chtml lang=\"en\">\n\u003Chead>\n    \u003Cmeta charset=\"UTF-8\">\n    \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    \u003Ctitle>Dashboard Title\u003C\u002Ftitle>\n    \u003Cscript src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Fchart.js@4.5.1\" integrity=\"sha384-jb8JQMbMoBUzgWatfe6COACi2ljcDdZQ2OxczGA3bGNeWe+6DChMTBJemed7ZnvJ\" crossorigin=\"anonymous\">\u003C\u002Fscript>\n    \u003Cscript src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Fchartjs-adapter-date-fns@3.0.0\" integrity=\"sha384-cVMg8E3QFwTvGCDuK+ET4PD341jF3W8nO1auiXfuZNQkzbUUiBGLsIQUE+b1mxws\" crossorigin=\"anonymous\">\u003C\u002Fscript>\n    \u003Cstyle>\n        \u002F* Dashboard styles go here *\u002F\n    \u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n    \u003Cdiv class=\"dashboard-container\">\n        \u003Cheader class=\"dashboard-header\">\n            \u003Ch1>Dashboard Title\u003C\u002Fh1>\n            \u003Cdiv class=\"filters\">\n                \u003C!-- Filter controls -->\n            \u003C\u002Fdiv>\n        \u003C\u002Fheader>\n\n        \u003Csection class=\"kpi-row\">\n            \u003C!-- KPI cards -->\n        \u003C\u002Fsection>\n\n        \u003Csection class=\"chart-row\">\n            \u003C!-- Chart containers -->\n        \u003C\u002Fsection>\n\n        \u003Csection class=\"table-section\">\n            \u003C!-- Data table -->\n        \u003C\u002Fsection>\n\n        \u003Cfooter class=\"dashboard-footer\">\n            \u003Cspan>Data as of: \u003Cspan id=\"data-date\">\u003C\u002Fspan>\u003C\u002Fspan>\n        \u003C\u002Ffooter>\n    \u003C\u002Fdiv>\n\n    \u003Cscript>\n        \u002F\u002F Embedded data\n        const DATA = [];\n\n        \u002F\u002F Dashboard logic\n        class Dashboard {\n            constructor(data) {\n                this.rawData = data;\n                this.filteredData = data;\n                this.charts = {};\n                this.init();\n            }\n\n            init() {\n                this.setupFilters();\n                this.renderKPIs();\n                this.renderCharts();\n                this.renderTable();\n            }\n\n            applyFilters() {\n                \u002F\u002F Filter logic\n                this.filteredData = this.rawData.filter(row => {\n                    \u002F\u002F Apply each active filter\n                    return true; \u002F\u002F placeholder\n                });\n                this.renderKPIs();\n                this.updateCharts();\n                this.renderTable();\n            }\n\n            \u002F\u002F ... methods for each section\n        }\n\n        const dashboard = new Dashboard(DATA);\n    \u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### KPI Card Pattern\n\n```html\n\u003Cdiv class=\"kpi-card\">\n    \u003Cdiv class=\"kpi-label\">Total Revenue\u003C\u002Fdiv>\n    \u003Cdiv class=\"kpi-value\" id=\"kpi-revenue\">$0\u003C\u002Fdiv>\n    \u003Cdiv class=\"kpi-change positive\" id=\"kpi-revenue-change\">+0%\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n```javascript\nfunction renderKPI(elementId, value, previousValue, format = 'number') {\n    const el = document.getElementById(elementId);\n    const changeEl = document.getElementById(elementId + '-change');\n\n    \u002F\u002F Format the value\n    el.textContent = formatValue(value, format);\n\n    \u002F\u002F Calculate and display change\n    if (previousValue && previousValue !== 0) {\n        const pctChange = ((value - previousValue) \u002F previousValue) * 100;\n        const sign = pctChange >= 0 ? '+' : '';\n        changeEl.textContent = `${sign}${pctChange.toFixed(1)}% vs prior period`;\n        changeEl.className = `kpi-change ${pctChange >= 0 ? 'positive' : 'negative'}`;\n    }\n}\n\nfunction formatValue(value, format) {\n    switch (format) {\n        case 'currency':\n            if (value >= 1e6) return `$${(value \u002F 1e6).toFixed(1)}M`;\n            if (value >= 1e3) return `$${(value \u002F 1e3).toFixed(1)}K`;\n            return `$${value.toFixed(0)}`;\n        case 'percent':\n            return `${value.toFixed(1)}%`;\n        case 'number':\n            if (value >= 1e6) return `${(value \u002F 1e6).toFixed(1)}M`;\n            if (value >= 1e3) return `${(value \u002F 1e3).toFixed(1)}K`;\n            return value.toLocaleString();\n        default:\n            return value.toString();\n    }\n}\n```\n\n### Chart Container Pattern\n\n```html\n\u003Cdiv class=\"chart-container\">\n    \u003Ch3 class=\"chart-title\">Monthly Revenue Trend\u003C\u002Fh3>\n    \u003Ccanvas id=\"revenue-chart\">\u003C\u002Fcanvas>\n\u003C\u002Fdiv>\n```\n\n## Chart.js Integration\n\n### Line Chart\n\n```javascript\nfunction createLineChart(canvasId, labels, datasets) {\n    const ctx = document.getElementById(canvasId).getContext('2d');\n    return new Chart(ctx, {\n        type: 'line',\n        data: {\n            labels: labels,\n            datasets: datasets.map((ds, i) => ({\n                label: ds.label,\n                data: ds.data,\n                borderColor: COLORS[i % COLORS.length],\n                backgroundColor: COLORS[i % COLORS.length] + '20',\n                borderWidth: 2,\n                fill: ds.fill || false,\n                tension: 0.3,\n                pointRadius: 3,\n                pointHoverRadius: 6,\n            }))\n        },\n        options: {\n            responsive: true,\n            maintainAspectRatio: false,\n            interaction: {\n                mode: 'index',\n                intersect: false,\n            },\n            plugins: {\n                legend: {\n                    position: 'top',\n                    labels: { usePointStyle: true, padding: 20 }\n                },\n                tooltip: {\n                    callbacks: {\n                        label: function(context) {\n                            return `${context.dataset.label}: ${formatValue(context.parsed.y, 'currency')}`;\n                        }\n                    }\n                }\n            },\n            scales: {\n                x: {\n                    grid: { display: false }\n                },\n                y: {\n                    beginAtZero: true,\n                    ticks: {\n                        callback: function(value) {\n                            return formatValue(value, 'currency');\n                        }\n                    }\n                }\n            }\n        }\n    });\n}\n```\n\n### Bar Chart\n\n```javascript\nfunction createBarChart(canvasId, labels, data, options = {}) {\n    const ctx = document.getElementById(canvasId).getContext('2d');\n    const isHorizontal = options.horizontal || labels.length > 8;\n\n    return new Chart(ctx, {\n        type: 'bar',\n        data: {\n            labels: labels,\n            datasets: [{\n                label: options.label || 'Value',\n                data: data,\n                backgroundColor: options.colors || COLORS.map(c => c + 'CC'),\n                borderColor: options.colors || COLORS,\n                borderWidth: 1,\n                borderRadius: 4,\n            }]\n        },\n        options: {\n            responsive: true,\n            maintainAspectRatio: false,\n            indexAxis: isHorizontal ? 'y' : 'x',\n            plugins: {\n                legend: { display: false },\n                tooltip: {\n                    callbacks: {\n                        label: function(context) {\n                            return formatValue(context.parsed[isHorizontal ? 'x' : 'y'], options.format || 'number');\n                        }\n                    }\n                }\n            },\n            scales: {\n                x: {\n                    beginAtZero: true,\n                    grid: { display: isHorizontal },\n                    ticks: isHorizontal ? {\n                        callback: function(value) {\n                            return formatValue(value, options.format || 'number');\n                        }\n                    } : {}\n                },\n                y: {\n                    beginAtZero: !isHorizontal,\n                    grid: { display: !isHorizontal },\n                    ticks: !isHorizontal ? {\n                        callback: function(value) {\n                            return formatValue(value, options.format || 'number');\n                        }\n                    } : {}\n                }\n            }\n        }\n    });\n}\n```\n\n### Doughnut Chart\n\n```javascript\nfunction createDoughnutChart(canvasId, labels, data) {\n    const ctx = document.getElementById(canvasId).getContext('2d');\n    return new Chart(ctx, {\n        type: 'doughnut',\n        data: {\n            labels: labels,\n            datasets: [{\n                data: data,\n                backgroundColor: COLORS.map(c => c + 'CC'),\n                borderColor: '#ffffff',\n                borderWidth: 2,\n            }]\n        },\n        options: {\n            responsive: true,\n            maintainAspectRatio: false,\n            cutout: '60%',\n            plugins: {\n                legend: {\n                    position: 'right',\n                    labels: { usePointStyle: true, padding: 15 }\n                },\n                tooltip: {\n                    callbacks: {\n                        label: function(context) {\n                            const total = context.dataset.data.reduce((a, b) => a + b, 0);\n                            const pct = ((context.parsed \u002F total) * 100).toFixed(1);\n                            return `${context.label}: ${formatValue(context.parsed, 'number')} (${pct}%)`;\n                        }\n                    }\n                }\n            }\n        }\n    });\n}\n```\n\n### Updating Charts on Filter Change\n\n```javascript\nfunction updateChart(chart, newLabels, newData) {\n    chart.data.labels = newLabels;\n\n    if (Array.isArray(newData[0])) {\n        \u002F\u002F Multiple datasets\n        newData.forEach((data, i) => {\n            chart.data.datasets[i].data = data;\n        });\n    } else {\n        chart.data.datasets[0].data = newData;\n    }\n\n    chart.update('none'); \u002F\u002F 'none' disables animation for instant update\n}\n```\n\n## Filter and Interactivity Implementation\n\n### Dropdown Filter\n\n```html\n\u003Cdiv class=\"filter-group\">\n    \u003Clabel for=\"filter-region\">Region\u003C\u002Flabel>\n    \u003Cselect id=\"filter-region\" onchange=\"dashboard.applyFilters()\">\n        \u003Coption value=\"all\">All Regions\u003C\u002Foption>\n    \u003C\u002Fselect>\n\u003C\u002Fdiv>\n```\n\n```javascript\nfunction populateFilter(selectId, data, field) {\n    const select = document.getElementById(selectId);\n    const values = [...new Set(data.map(d => d[field]))].sort();\n\n    \u002F\u002F Keep the \"All\" option, add unique values\n    values.forEach(val => {\n        const option = document.createElement('option');\n        option.value = val;\n        option.textContent = val;\n        select.appendChild(option);\n    });\n}\n\nfunction getFilterValue(selectId) {\n    const val = document.getElementById(selectId).value;\n    return val === 'all' ? null : val;\n}\n```\n\n### Date Range Filter\n\n```html\n\u003Cdiv class=\"filter-group\">\n    \u003Clabel>Date Range\u003C\u002Flabel>\n    \u003Cinput type=\"date\" id=\"filter-date-start\" onchange=\"dashboard.applyFilters()\">\n    \u003Cspan>to\u003C\u002Fspan>\n    \u003Cinput type=\"date\" id=\"filter-date-end\" onchange=\"dashboard.applyFilters()\">\n\u003C\u002Fdiv>\n```\n\n```javascript\nfunction filterByDateRange(data, dateField, startDate, endDate) {\n    return data.filter(row => {\n        const rowDate = new Date(row[dateField]);\n        if (startDate && rowDate \u003C new Date(startDate)) return false;\n        if (endDate && rowDate > new Date(endDate)) return false;\n        return true;\n    });\n}\n```\n\n### Combined Filter Logic\n\n```javascript\napplyFilters() {\n    const region = getFilterValue('filter-region');\n    const category = getFilterValue('filter-category');\n    const startDate = document.getElementById('filter-date-start').value;\n    const endDate = document.getElementById('filter-date-end').value;\n\n    this.filteredData = this.rawData.filter(row => {\n        if (region && row.region !== region) return false;\n        if (category && row.category !== category) return false;\n        if (startDate && row.date \u003C startDate) return false;\n        if (endDate && row.date > endDate) return false;\n        return true;\n    });\n\n    this.renderKPIs();\n    this.updateCharts();\n    this.renderTable();\n}\n```\n\n### Sortable Table\n\n```javascript\nfunction renderTable(containerId, data, columns) {\n    const container = document.getElementById(containerId);\n    let sortCol = null;\n    let sortDir = 'desc';\n\n    function render(sortedData) {\n        let html = '\u003Ctable class=\"data-table\">';\n\n        \u002F\u002F Header\n        html += '\u003Cthead>\u003Ctr>';\n        columns.forEach(col => {\n            const arrow = sortCol === col.field\n                ? (sortDir === 'asc' ? ' ▲' : ' ▼')\n                : '';\n            html += `\u003Cth onclick=\"sortTable('${col.field}')\" style=\"cursor:pointer\">${col.label}${arrow}\u003C\u002Fth>`;\n        });\n        html += '\u003C\u002Ftr>\u003C\u002Fthead>';\n\n        \u002F\u002F Body\n        html += '\u003Ctbody>';\n        sortedData.forEach(row => {\n            html += '\u003Ctr>';\n            columns.forEach(col => {\n                const value = col.format ? formatValue(row[col.field], col.format) : row[col.field];\n                html += `\u003Ctd>${value}\u003C\u002Ftd>`;\n            });\n            html += '\u003C\u002Ftr>';\n        });\n        html += '\u003C\u002Ftbody>\u003C\u002Ftable>';\n\n        container.innerHTML = html;\n    }\n\n    window.sortTable = function(field) {\n        if (sortCol === field) {\n            sortDir = sortDir === 'asc' ? 'desc' : 'asc';\n        } else {\n            sortCol = field;\n            sortDir = 'desc';\n        }\n        const sorted = [...data].sort((a, b) => {\n            const aVal = a[field], bVal = b[field];\n            const cmp = aVal \u003C bVal ? -1 : aVal > bVal ? 1 : 0;\n            return sortDir === 'asc' ? cmp : -cmp;\n        });\n        render(sorted);\n    };\n\n    render(data);\n}\n```\n\n## CSS Styling for Dashboards\n\n### Color System\n\n```css\n:root {\n    \u002F* Background layers *\u002F\n    --bg-primary: #f8f9fa;\n    --bg-card: #ffffff;\n    --bg-header: #1a1a2e;\n\n    \u002F* Text *\u002F\n    --text-primary: #212529;\n    --text-secondary: #6c757d;\n    --text-on-dark: #ffffff;\n\n    \u002F* Accent colors for data *\u002F\n    --color-1: #4C72B0;\n    --color-2: #DD8452;\n    --color-3: #55A868;\n    --color-4: #C44E52;\n    --color-5: #8172B3;\n    --color-6: #937860;\n\n    \u002F* Status colors *\u002F\n    --positive: #28a745;\n    --negative: #dc3545;\n    --neutral: #6c757d;\n\n    \u002F* Spacing *\u002F\n    --gap: 16px;\n    --radius: 8px;\n}\n```\n\n### Layout\n\n```css\n* {\n    margin: 0;\n    padding: 0;\n    box-sizing: border-box;\n}\n\nbody {\n    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n    background: var(--bg-primary);\n    color: var(--text-primary);\n    line-height: 1.5;\n}\n\n.dashboard-container {\n    max-width: 1400px;\n    margin: 0 auto;\n    padding: var(--gap);\n}\n\n.dashboard-header {\n    background: var(--bg-header);\n    color: var(--text-on-dark);\n    padding: 20px 24px;\n    border-radius: var(--radius);\n    margin-bottom: var(--gap);\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    flex-wrap: wrap;\n    gap: 12px;\n}\n\n.dashboard-header h1 {\n    font-size: 20px;\n    font-weight: 600;\n}\n```\n\n### KPI Cards\n\n```css\n.kpi-row {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n    gap: var(--gap);\n    margin-bottom: var(--gap);\n}\n\n.kpi-card {\n    background: var(--bg-card);\n    border-radius: var(--radius);\n    padding: 20px 24px;\n    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);\n}\n\n.kpi-label {\n    font-size: 13px;\n    color: var(--text-secondary);\n    text-transform: uppercase;\n    letter-spacing: 0.5px;\n    margin-bottom: 4px;\n}\n\n.kpi-value {\n    font-size: 28px;\n    font-weight: 700;\n    color: var(--text-primary);\n    margin-bottom: 4px;\n}\n\n.kpi-change {\n    font-size: 13px;\n    font-weight: 500;\n}\n\n.kpi-change.positive { color: var(--positive); }\n.kpi-change.negative { color: var(--negative); }\n```\n\n### Chart Containers\n\n```css\n.chart-row {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));\n    gap: var(--gap);\n    margin-bottom: var(--gap);\n}\n\n.chart-container {\n    background: var(--bg-card);\n    border-radius: var(--radius);\n    padding: 20px 24px;\n    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);\n}\n\n.chart-container h3 {\n    font-size: 14px;\n    font-weight: 600;\n    color: var(--text-primary);\n    margin-bottom: 16px;\n}\n\n.chart-container canvas {\n    max-height: 300px;\n}\n```\n\n### Filters\n\n```css\n.filters {\n    display: flex;\n    gap: 12px;\n    align-items: center;\n    flex-wrap: wrap;\n}\n\n.filter-group {\n    display: flex;\n    align-items: center;\n    gap: 6px;\n}\n\n.filter-group label {\n    font-size: 12px;\n    color: rgba(255, 255, 255, 0.7);\n}\n\n.filter-group select,\n.filter-group input[type=\"date\"] {\n    padding: 6px 10px;\n    border: 1px solid rgba(255, 255, 255, 0.2);\n    border-radius: 4px;\n    background: rgba(255, 255, 255, 0.1);\n    color: var(--text-on-dark);\n    font-size: 13px;\n}\n\n.filter-group select option {\n    background: var(--bg-header);\n    color: var(--text-on-dark);\n}\n```\n\n### Data Table\n\n```css\n.table-section {\n    background: var(--bg-card);\n    border-radius: var(--radius);\n    padding: 20px 24px;\n    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);\n    overflow-x: auto;\n}\n\n.data-table {\n    width: 100%;\n    border-collapse: collapse;\n    font-size: 13px;\n}\n\n.data-table thead th {\n    text-align: left;\n    padding: 10px 12px;\n    border-bottom: 2px solid #dee2e6;\n    color: var(--text-secondary);\n    font-weight: 600;\n    font-size: 12px;\n    text-transform: uppercase;\n    letter-spacing: 0.5px;\n    white-space: nowrap;\n    user-select: none;\n}\n\n.data-table thead th:hover {\n    color: var(--text-primary);\n    background: #f8f9fa;\n}\n\n.data-table tbody td {\n    padding: 10px 12px;\n    border-bottom: 1px solid #f0f0f0;\n}\n\n.data-table tbody tr:hover {\n    background: #f8f9fa;\n}\n\n.data-table tbody tr:last-child td {\n    border-bottom: none;\n}\n```\n\n### Responsive Design\n\n```css\n@media (max-width: 768px) {\n    .dashboard-header {\n        flex-direction: column;\n        align-items: flex-start;\n    }\n\n    .kpi-row {\n        grid-template-columns: repeat(2, 1fr);\n    }\n\n    .chart-row {\n        grid-template-columns: 1fr;\n    }\n\n    .filters {\n        flex-direction: column;\n        align-items: flex-start;\n    }\n}\n\n@media print {\n    body { background: white; }\n    .dashboard-container { max-width: none; }\n    .filters { display: none; }\n    .chart-container { break-inside: avoid; }\n    .kpi-card { border: 1px solid #dee2e6; box-shadow: none; }\n}\n```\n\n## Performance Considerations for Large Datasets\n\n### Data Size Guidelines\n\n| Data Size | Approach |\n|---|---|\n| \u003C1,000 rows | Embed directly in HTML. Full interactivity. |\n| 1,000 - 10,000 rows | Embed in HTML. May need to pre-aggregate for charts. |\n| 10,000 - 100,000 rows | Pre-aggregate server-side. Embed only aggregated data. |\n| >100,000 rows | Not suitable for client-side dashboard. Use a BI tool or paginate. |\n\n### Pre-Aggregation Pattern\n\nInstead of embedding raw data and aggregating in the browser:\n\n```javascript\n\u002F\u002F DON'T: embed 50,000 raw rows\nconst RAW_DATA = [\u002F* 50,000 rows *\u002F];\n\n\u002F\u002F DO: pre-aggregate before embedding\nconst CHART_DATA = {\n    monthly_revenue: [\n        { month: '2024-01', revenue: 150000, orders: 1200 },\n        { month: '2024-02', revenue: 165000, orders: 1350 },\n        \u002F\u002F ... 12 rows instead of 50,000\n    ],\n    top_products: [\n        { product: 'Widget A', revenue: 45000 },\n        \u002F\u002F ... 10 rows\n    ],\n    kpis: {\n        total_revenue: 1980000,\n        total_orders: 15600,\n        avg_order_value: 127,\n    }\n};\n```\n\n### Chart Performance\n\n- Limit line charts to \u003C500 data points per series (downsample if needed)\n- Limit bar charts to \u003C50 categories\n- For scatter plots, cap at 1,000 points (use sampling for larger datasets)\n- Disable animations for dashboards with many charts: `animation: false` in Chart.js options\n- Use `Chart.update('none')` instead of `Chart.update()` for filter-triggered updates\n\n### DOM Performance\n\n- Limit data tables to 100-200 visible rows. Add pagination for more.\n- Use `requestAnimationFrame` for coordinated chart updates\n- Avoid rebuilding the entire DOM on filter change -- update only changed elements\n\n```javascript\n\u002F\u002F Efficient table pagination\nfunction renderTablePage(data, page, pageSize = 50) {\n    const start = page * pageSize;\n    const end = Math.min(start + pageSize, data.length);\n    const pageData = data.slice(start, end);\n    \u002F\u002F Render only pageData\n    \u002F\u002F Show pagination controls: \"Showing 1-50 of 2,340\"\n}\n```\n",{"name":5,"description":7},"main","18d0e63d1313ca87098f614aa7c1e2dcf6de79c7","backend\u002Fskills\u002Fmarketplace\u002Fcb_teams_marketplace\u002Fplugins\u002Fdata\u002Fskills\u002Finteractive-dashboard-builder",1,"https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system","https:\u002F\u002Fgithub.com\u002Fwelflau","2026-11-12 14:55:20",{"source":8,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add welflau\u002Fai-dev-system --skill interactive-dashboard-builder",{"tool":70,"command":71},"bunx","bunx skills add welflau\u002Fai-dev-system --skill interactive-dashboard-builder",{"tool":73,"command":74},"pnpm","pnpm dlx skills add welflau\u002Fai-dev-system --skill interactive-dashboard-builder","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcb_teams_marketplace\u002Fplugins\u002Fdata\u002Fskills\u002Finteractive-dashboard-builder\u002FSKILL.md",true,[],[79,109,137,162,189,212],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":84,"sourceHtmlUrl":85,"categories":86,"keywords":91,"publishedAt":108},"01M6HS9Z4B0YA8CJCS2Y2F04Y3","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Fwebapp-testing\u002FSKILL.md",[87,90],{"categoryNo":88,"categoryName":89,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,39,107],"testing","webapp testing","webapp","frontend","screenshots","playwright","web","debugging","toolkit","browser","ui","logs","applications","behavior","local","for","2026-11-11 15:11:14",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":113,"sourceHtmlUrl":114,"categories":115,"keywords":119,"publishedAt":108},"01M6HRAGMG7JF0HXYHMA5QHS8A","internal-comms","A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Finternal-comms\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Finternal-comms\u002FSKILL.md",[116],{"categoryNo":117,"categoryName":118,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000005","邮件与沟通",[120,121,122,123,124,125,47,44,126,127,128,129,130,131,132,133,134,135,136],"internal comms","comms","status","help","SET","write","me","incident","leadership","project","resources","communications","internal communications","formats","sort","my","updates",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":141,"sourceHtmlUrl":142,"categories":143,"keywords":145,"publishedAt":52},"01M6HSTDP4M3JFXEBK91VFB4PA","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Fweb-artifacts-builder\u002FSKILL.md",[144],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[146,98,147,148,34,95,149,150,151,152,153,154,155,156,47,157,158,159,160,107,161],"web artifacts builder","artifacts","artifacts builder","css","components","react","routing","state management","state","file","Tailwind","single-file","simple","ui components","multi","single",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":166,"sourceHtmlUrl":167,"categories":168,"keywords":176,"publishedAt":52},"01M6HSDXH0JSP8R3QTNY9XZ8HN","frontend-design","Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML\u002FCSS layouts, or when styling\u002Fbeautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Ffrontend-design\u002FSKILL.md",[169,170,173],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":171,"categoryName":172,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":174,"categoryName":175,"taxonomyType":28,"taxonomyTypeDesc":29},"01JBSEEDCAT000000000000032","设计师",[95,177,178,149,98,150,151,179,180,181,147,182,104,183,47,184,185,186,187,39,188,38],"design","frontend design","react components","create","code","examples","landing","ui design","pages","aesthetics","web ui","generic",{"skillNo":190,"name":191,"nameZh":6,"description":192,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":193,"sourceHtmlUrl":194,"categories":195,"keywords":197,"publishedAt":52},"01M6HSA77QYVP7A72HREGTDN2C","algorithmic-art","Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Falgorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Falgorithmic-art\u002FSKILL.md",[196],{"categoryNo":171,"categoryName":172,"taxonomyType":20,"taxonomyTypeDesc":21},[198,199,200,180,181,201,202,48,32,47,203,204,205,206,39,207,208,209,210,211,38],"algorithmic art","Art","algorithmic","flow","js","generative art","exploration","systems","users","Existing","request","generative","copyright","fields",{"skillNo":213,"name":214,"nameZh":6,"description":215,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":216,"sourceHtmlUrl":217,"categories":218,"keywords":220,"publishedAt":52},"01M6HS9HE0X390Y6RQKTY1YNGJ","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Ftheme-factory\u002FSKILL.md",[219],{"categoryNo":171,"categoryName":172,"taxonomyType":20,"taxonomyTypeDesc":21},[221,222,223,224,100,225,147,124,226,227,183,45,228,185,229,39,230,231,232,107,233,234],"theme factory","factory","theme","docs","generate","fly","slides","artifact","themes","you","fonts","can","apply","new"]