Synthèse automatique
Guide la conception et l’implémentation de tableaux de bord analytiques avec cartes KPI, grilles responsives, graphiques, tableaux de données et navigation d’administration.
Points forts
- Fournit des exemples React et Tailwind concrets et réutilisables
- Met l’accent sur la hiérarchie visuelle et la lecture rapide des indicateurs
- Couvre les dispositions courantes d’administration et les mises en page responsives
Limites
- Très orienté React et Tailwind CSS
- N’aborde pas l’intégration des données, l’authentification ou le rendu côté serveur
- Peu de détails sur l’accessibilité et le choix des bibliothèques de graphiques
À utiliser pour concevoir ou améliorer une interface de tableau de bord d’analyse, d’administration ou de supervision.
À éviter si le besoin porte principalement sur la modélisation des données, les pipelines analytiques ou une interface non basée sur React et Tailwind.
Analyse de sécurité
SûrThe skill contains only design guidance and illustrative frontend code (React/JSX) with no executable commands, network access, or destructive operations. It does not declare or use any tools, and the content is purely instructional for building dashboard interfaces.
Aucun point d'attention détecté
Comment cette analyse est faiteExemples
Design an admin analytics dashboard in React and Tailwind with four KPI cards at the top, a revenue line chart, and a recent orders table.Create a responsive monitoring dashboard layout with a sticky header, sidebar navigation, and KPI cards that show trend indicators.Improve this dashboard layout so users can scan key metrics quickly and compare current values to previous periods.name: dashboard-design description: Design effective dashboards with clear layouts, KPI displays, data grids, and real-time updates. Covers dashboard patterns, information hierarchy, responsive grids, widget design, and admin panel layouts. Use for building analytics dashboards, admin interfaces, and monitoring displays.
Dashboard Design
Create effective, information-rich dashboards that surface key data clearly.
Instructions
- Prioritize information - Most important metrics at top-left
- Use consistent card layouts - Same styling for similar data types
- Design for scanning - Users glance, not read; make data obvious
- Show context - Compare to previous periods, show trends
- Enable action - Dashboards should lead to decisions
Dashboard Layout Patterns
Standard Admin Dashboard
function AdminDashboard() {
return (
<div className="min-h-screen bg-gray-100 dark:bg-gray-900">
{/* Top Navigation */}
<header className="sticky top-0 z-50 bg-white dark:bg-gray-800 border-b shadow-sm">
<div className="flex items-center justify-between h-16 px-6">
<Logo />
<div className="flex items-center gap-4">
<SearchInput />
<NotificationBell />
<UserMenu />
</div>
</div>
</header>
<div className="flex">
{/* Sidebar Navigation */}
<aside className="hidden lg:block w-64 bg-white dark:bg-gray-800 border-r min-h-[calc(100vh-4rem)] sticky top-16">
<nav className="p-4 space-y-2">
<SidebarLink icon={HomeIcon} label="Overview" active />
<SidebarLink icon={ChartIcon} label="Analytics" />
<SidebarLink icon={UsersIcon} label="Customers" />
<SidebarLink icon={SettingsIcon} label="Settings" />
</nav>
</aside>
{/* Main Content */}
<main className="flex-1 p-6">
{/* Page Header */}
<div className="mb-6">
<h1 className="text-2xl font-bold text-gray-900 dark:text-white">
Dashboard Overview
</h1>
<p className="text-gray-500">Welcome back, here's what's happening</p>
</div>
{/* KPI Cards Row */}
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<KPICard
title="Total Revenue"
value="$45,231"
change="+12.5%"
trend="up"
/>
<KPICard
title="Active Users"
value="2,345"
change="+5.2%"
trend="up"
/>
<KPICard
title="Conversion Rate"
value="3.2%"
change="-0.4%"
trend="down"
/>
<KPICard
title="Avg. Order Value"
value="$127"
change="+8.1%"
trend="up"
/>
</div>
{/* Charts Row */}
<div className="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
<ChartCard title="Revenue Over Time">
<LineChart data={revenueData} />
</ChartCard>
<ChartCard title="Sales by Category">
<BarChart data={categoryData} />
</ChartCard>
</div>
{/* Data Table */}
<Card>
<CardHeader>
<CardTitle>Recent Orders</CardTitle>
<Button variant="outline" size="sm">View All</Button>
</CardHeader>
<DataTable
columns={orderColumns}
data={recentOrders}
pagination
/>
</Card>
</main>
</div>
</div>
);
}
KPI Card Component
interface KPICardProps {
title: string;
value: string | number;
change?: string;
trend?: 'up' | 'down' | 'neutral';
icon?: React.ComponentType;
subtitle?: string;
}
function KPICard({ title, value, change, trend, icon: Icon, subtitle }: KPICardProps) {
return (
<div className="bg-white dark:bg-gray-800 rounded-xl p-6 shadow-sm border border-gray-200 dark:border-gray-700">
<div className="flex items-start justify-between">
<div>
<p className="text-sm font-medium text-gray-500 dark:text-gray-400">
{title}
</p>
<p className="mt-2 text-3xl font-bold text-gray-900 dark:text-white">
{value}
</p>
{change && (
<div className="mt-2 flex items-center gap-1">
{trend === 'up' && (
<ArrowUpIcon className="w-4 h-4 text-green-500" />
)}
{trend === 'down' && (
<ArrowDownIcon className="w-4 h-4 text-red-500" />
)}
<span className={`text-sm font-medium ${
trend === 'up' ? 'text-green-600' :
trend === 'down' ? 'text-red-600' :
'text-gray-500'
}`}>
{change}
</span>
<span className="text-sm text-gray-400">vs last month</span>
</div>
)}
</div>
{Icon && (
<div className="p-3 bg-blue-50 dark:bg-blue-900/20 rounded-lg">
<Icon className="w-6 h-6 text-blue-600 dark:text-blue-400" />
</div>
)}
</div>
</div>
);
}
Chart Card Component
interface ChartCardProps {
title: string;
subtitle?: string;
action?: React.ReactNode;
children: React.ReactNode;
}
function ChartCard({ title, subtitle, action, children }: ChartCardProps) {
return (
<div className="bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden">
<div className="flex items-center justify-between px-6 py-4 border-b border-gray-200 dark:border-gray-700">
<div>
<h3 className="font-semibold text-gray-900 dark:text-white">{title}</h3>
{subtitle && (
<p className="text-sm text-gray-500">{subtitle}</p>
)}
</div>
{action}
</div>
<div className="p-6">
{children}
</div>
</div>
);
}
Dashboard Grid Patterns
Responsive Dashboard Grid
// 12-column grid system
<div className="grid grid-cols-12 gap-6">
{/* Full width */}
<div className="col-span-12">
<PageHeader />
</div>
{/* 4 equal KPI cards */}
<div className="col-span-12 sm:col-span-6 lg:col-span-3">
<KPICard />
</div>
<div className="col-span-12 sm:col-span-6 lg:col-span-3">
<KPICard />
</div>
<div className="col-span-12 sm:col-span-6 lg:col-span-3">
<KPICard />
</div>
<div className="col-span-12 sm:col-span-6 lg:col-span-3">
<KPICard />
</div>
{/* 2/3 + 1/3 layout */}
<div className="col-span-12 lg:col-span-8">
<MainChart />
</div>
<div className="col-span-12 lg:col-span-4">
<SidePanel />
</div>
{/* 50/50 split */}
<div className="col-span-12 md:col-span-6">
<ChartA />
</div>
<div className="col-span-12 md:col-span-6">
<ChartB />
</div>
</div>
Real-Time Dashboard
function RealTimeDashboard() {
const [metrics, setMetrics] = useState<Metrics | null>(null);
useEffect(() => {
// WebSocket for real-time updates
const ws = new WebSocket('wss://api.example.com/metrics');
ws.onmessage = (event) => {
const data = JSON.parse(event.data);
setMetrics(data);
};
return () => ws.close();
}, []);
return (
<div className="space-y-6">
{/* Live indicator */}
<div className="flex items-center gap-2">
<span className="relative flex h-3 w-3">
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75" />
<span className="relative inline-flex rounded-full h-3 w-3 bg-green-500" />
</span>
<span className="text-sm text-gray-500">Live</span>
<span className="text-sm text-gray-400">
Updated {formatRelativeTime(metrics?.timestamp)}
</span>
</div>
{/* Real-time metrics */}
<div className="grid grid-cols-4 gap-4">
<LiveMetric
label="Active Users"
value={metrics?.activeUsers}
sparkline={metrics?.userHistory}
/>
<LiveMetric
label="Requests/sec"
value={metrics?.requestsPerSecond}
unit="req/s"
/>
<LiveMetric
label="Avg Response"
value={metrics?.avgResponseTime}
unit="ms"
/>
<LiveMetric
label="Error Rate"
value={metrics?.errorRate}
unit="%"
alert={metrics?.errorRate > 1}
/>
</div>
</div>
);
}
Data Table for Dashboards
interface DataTableProps<T> {
columns: ColumnDef<T>[];
data: T[];
pagination?: boolean;
searchable?: boolean;
actions?: (row: T) => React.ReactNode;
}
function DataTable<T>({ columns, data, pagination, searchable }: DataTableProps<T>) {
const [search, setSearch] = useState('');
const [page, setPage] = useState(1);
const pageSize = 10;
const filteredData = useMemo(() => {
if (!search) return data;
return data.filter(row =>
Object.values(row).some(val =>
String(val).toLowerCase().includes(search.toLowerCase())
)
);
}, [data, search]);
const paginatedData = useMemo(() => {
if (!pagination) return filteredData;
const start = (page - 1) * pageSize;
return filteredData.slice(start, start + pageSize);
}, [filteredData, page, pagination]);
return (
<div>
{searchable && (
<div className="mb-4">
<input
type="search"
placeholder="Search..."
value={search}
onChange={(e) => setSearch(e.target.value)}
className="px-4 py-2 border rounded-lg w-full max-w-sm"
/>
</div>
)}
<div className="overflow-x-auto">
<table className="w-full">
<thead className="bg-gray-50 dark:bg-gray-800">
<tr>
{columns.map(col => (
<th key={col.key} className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
{col.header}
</th>
))}
</tr>
</thead>
<tbody className="divide-y divide-gray-200 dark:divide-gray-700">
{paginatedData.map((row, i) => (
<tr key={i} className="hover:bg-gray-50 dark:hover:bg-gray-800">
{columns.map(col => (
<td key={col.key} className="px-6 py-4 whitespace-nowrap text-sm">
{col.render ? col.render(row) : row[col.key]}
</td>
))}
</tr>
))}
</tbody>
</table>
</div>
{pagination && (
<Pagination
page={page}
totalPages={Math.ceil(filteredData.length / pageSize)}
onPageChange={setPage}
/>
)}
</div>
);
}
Best Practices
- 5-second rule - Key metrics should be understood in 5 seconds
- Above the fold - Critical data visible without scrolling
- Consistent time ranges - All charts use same time period
- Progressive disclosure - Summary → details on demand
- Empty states - Show meaningful content when no data
- Loading states - Skeleton screens while loading
When to Use
- Building admin panels and back-office tools
- Creating analytics dashboards
- Monitoring systems and real-time displays
- Data-heavy business applications
- Internal tools and management interfaces
Notes
- Consider user role - executives vs analysts have different needs
- Mobile dashboards need different layouts, not just responsive
- Performance matters - virtualize long lists, lazy load charts
- Allow customization - users can arrange their own dashboards
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/dashboard-design-ms47vpxx/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/dashboard-design-ms47vpxx' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/dashboard-design-ms47vpxx/download' --output '.skill-downloads/dashboard-design-ms47vpxx/SKILL.md.part' && mv '.skill-downloads/dashboard-design-ms47vpxx/SKILL.md.part' '.skill-downloads/dashboard-design-ms47vpxx/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/dashboard-design-ms47vpxx/SKILL.md' && test -s '.skill-downloads/dashboard-design-ms47vpxx/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/dashboard-design' && cp -R '.skill-downloads/dashboard-design-ms47vpxx' '.claude/skills/dashboard-design'Cursor
test -f '.skill-downloads/dashboard-design-ms47vpxx/SKILL.md' && test -s '.skill-downloads/dashboard-design-ms47vpxx/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/dashboard-design' && cp -R '.skill-downloads/dashboard-design-ms47vpxx' '.cursor/skills/dashboard-design'Codex
test -f '.skill-downloads/dashboard-design-ms47vpxx/SKILL.md' && test -s '.skill-downloads/dashboard-design-ms47vpxx/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/dashboard-design' && cp -R '.skill-downloads/dashboard-design-ms47vpxx' '.agents/skills/dashboard-design'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/dashboard-design-ms47vpxx'openskills read 'dashboard-design-ms47vpxx'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/dashboard-design-ms47vpxx/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Bonnes pratiques React Hook Form
Developpement
Maîtrisez React Hook Form : évitez les anti-patterns, gérez les abonnements, et traitez correctement reset, dirty state et entrées contrôlées.
Migration Emotion vers Mantine
Developpement
Migrer les styled-components Emotion vers des composants Mantine avec style props et modules CSS. Pour convertir .styled.tsx ou supprimer les imports @emotion.
Détecteur de dérive de périmètre
Developpement
Analyse les diffs git par rapport à une intention pour détecter la dérive de périmètre, fichiers non liés et PR trop larges, puis suggère de garder, diviser ou justifier.