mirror of
https://github.com/rohitg00/skillkit.git
synced 2026-11-18 18:04:26 +00:00
* feat: redesign website with aggregator positioning and competitor landscape - Add WhySkillKit section with competitor comparison table (Vercel skills, PRPM, Askill, Skild, Paks) - Show SkillKit as meta-package manager aggregating 31+ sources, not competing with them - Add source grid showing all curated repositories (Anthropic, Vercel, Expo, Supabase, Stripe, etc.) - Update Hero tagline: "One CLI. Every Source. Every Agent. Zero Telemetry." - Fix agent count from 32 to 44 in Features stats - Reframe comparison table: "Simple Installers" vs "SkillKit" instead of vague "Without" - Update CompatibilityMatrix with all 44 agents (was 16) - Add zero-telemetry, Apache 2.0, no-account trust signals - Update nav to include "Why SkillKit" link * feat: update terminal demo to showcase aggregator workflow Show install from multiple sources (Anthropic, Vercel), auto-translation to 44 formats, security scanning, and cross-source recommendations. * feat: update promo video with aggregator positioning Updated Remotion video to reflect SkillKit's meta-package manager identity: - Version bumped from v1.7.5 to v1.19.0 across all scenes - Install scene shows multi-source aggregation + security scan - Find scene searches 31+ sources (15K+ skills) - Translate scene shows cross-source bulk translation - Workflow scene replaced with security scanner (46 rules) - Recommend scene shows cross-source recommendations with source labels - TUI scene updated with source attribution and 44 agents - Manifest scene shows multi-source team sync - Logo scene: "One CLI. Every Source. Every Agent." + "Zero Telemetry" - Agent count updated from "17 agents" to "44 agents | 31+ sources | 15K+ skills"
396 lines
19 KiB
TypeScript
396 lines
19 KiB
TypeScript
import React, { useState, useMemo } from 'react';
|
|
|
|
type Support = 'full' | 'partial' | 'none';
|
|
|
|
interface AgentDef {
|
|
id: string;
|
|
name: string;
|
|
icon: string;
|
|
group: string;
|
|
}
|
|
|
|
interface CategoryDef {
|
|
id: string;
|
|
name: string;
|
|
icon: string;
|
|
}
|
|
|
|
const AGENTS: AgentDef[] = [
|
|
{ id: 'claude-code', name: 'Claude', icon: '\u27C1', group: 'Tier 1' },
|
|
{ id: 'cursor', name: 'Cursor', icon: '\u25EB', group: 'Tier 1' },
|
|
{ id: 'codex', name: 'Codex', icon: '\u25CE', group: 'Tier 1' },
|
|
{ id: 'gemini-cli', name: 'Gemini', icon: '\u2726', group: 'Tier 1' },
|
|
{ id: 'opencode', name: 'OpenCode', icon: '\u2B21', group: 'Tier 1' },
|
|
{ id: 'windsurf', name: 'Windsurf', icon: '\u25C7', group: 'Tier 1' },
|
|
{ id: 'github-copilot', name: 'Copilot', icon: '\u2318', group: 'Tier 1' },
|
|
{ id: 'cline', name: 'Cline', icon: '\u25CF', group: 'Tier 1' },
|
|
{ id: 'devin', name: 'Devin', icon: '\u25C9', group: 'Tier 1' },
|
|
{ id: 'roo', name: 'Roo', icon: '\u25C6', group: 'Tier 2' },
|
|
{ id: 'kilo', name: 'Kilo', icon: '\u25B3', group: 'Tier 2' },
|
|
{ id: 'kiro-cli', name: 'Kiro CLI', icon: '\u25BD', group: 'Tier 2' },
|
|
{ id: 'goose', name: 'Goose', icon: '\u25CA', group: 'Tier 2' },
|
|
{ id: 'trae', name: 'Trae', icon: '\u25A0', group: 'Tier 2' },
|
|
{ id: 'amp', name: 'AMP', icon: '\u26A1', group: 'Tier 2' },
|
|
{ id: 'aider', name: 'Aider', icon: '\u25E6', group: 'Tier 2' },
|
|
{ id: 'cody', name: 'Cody', icon: '\u25D0', group: 'Tier 2' },
|
|
{ id: 'amazon-q', name: 'Amazon Q', icon: '\u25A3', group: 'Tier 2' },
|
|
{ id: 'antigravity', name: 'Antigrav', icon: '\u2191', group: 'Tier 3' },
|
|
{ id: 'continue', name: 'Continue', icon: '\u25B6', group: 'Tier 3' },
|
|
{ id: 'augment', name: 'Augment', icon: '\u25C8', group: 'Tier 3' },
|
|
{ id: 'replit', name: 'Replit', icon: '\u25B7', group: 'Tier 3' },
|
|
{ id: 'bolt', name: 'Bolt', icon: '\u2605', group: 'Tier 3' },
|
|
{ id: 'lovable', name: 'Lovable', icon: '\u2665', group: 'Tier 3' },
|
|
{ id: 'tabby', name: 'Tabby', icon: '\u25AB', group: 'Tier 3' },
|
|
{ id: 'tabnine', name: 'Tabnine', icon: '\u25AA', group: 'Tier 3' },
|
|
{ id: 'codegpt', name: 'CodeGPT', icon: '\u25E7', group: 'Tier 3' },
|
|
{ id: 'playcode', name: 'PlayCode', icon: '\u25B9', group: 'Tier 3' },
|
|
{ id: 'clawdbot', name: 'Clawdbot', icon: '\u25D1', group: 'Tier 3' },
|
|
{ id: 'droid', name: 'Droid', icon: '\u25D2', group: 'Tier 3' },
|
|
{ id: 'codebuddy', name: 'CodeBuddy', icon: '\u25D3', group: 'Tier 3' },
|
|
{ id: 'commandcode', name: 'CmdCode', icon: '\u25D4', group: 'Tier 3' },
|
|
{ id: 'crush', name: 'Crush', icon: '\u25D5', group: 'Tier 3' },
|
|
{ id: 'factory', name: 'Factory', icon: '\u25D6', group: 'Tier 3' },
|
|
{ id: 'mcpjam', name: 'MCPJam', icon: '\u25D7', group: 'Tier 3' },
|
|
{ id: 'mux', name: 'Mux', icon: '\u25E0', group: 'Tier 3' },
|
|
{ id: 'neovate', name: 'Neovate', icon: '\u25E1', group: 'Tier 3' },
|
|
{ id: 'openhands', name: 'OpenHands', icon: '\u25E2', group: 'Tier 3' },
|
|
{ id: 'pi', name: 'Pi', icon: '\u25E3', group: 'Tier 3' },
|
|
{ id: 'qoder', name: 'Qoder', icon: '\u25E4', group: 'Tier 3' },
|
|
{ id: 'qwen', name: 'Qwen', icon: '\u25E5', group: 'Tier 3' },
|
|
{ id: 'vercel', name: 'Vercel', icon: '\u25B2', group: 'Tier 3' },
|
|
{ id: 'zencoder', name: 'Zencoder', icon: '\u25E8', group: 'Tier 3' },
|
|
{ id: 'universal', name: 'Universal', icon: '\u25CB', group: 'Tier 3' },
|
|
];
|
|
|
|
const CATEGORIES: CategoryDef[] = [
|
|
{ id: 'translation', name: 'Skill Translation', icon: '\u21C4' },
|
|
{ id: 'hooks', name: 'Hooks', icon: '\u2693' },
|
|
{ id: 'mcp-tools', name: 'MCP & Tools', icon: '\u2699' },
|
|
{ id: 'context', name: 'Context Window', icon: '\u25A3' },
|
|
{ id: 'security', name: 'Security Skills', icon: '\u25D0' },
|
|
{ id: 'testing', name: 'Testing Skills', icon: '\u25D2' },
|
|
{ id: 'frontend', name: 'Frontend Skills', icon: '\u269B' },
|
|
{ id: 'backend', name: 'Backend Skills', icon: '\u2393' },
|
|
{ id: 'devops', name: 'DevOps Skills', icon: '\u25D1' },
|
|
{ id: 'docs', name: 'Documentation', icon: '\u25A1' },
|
|
];
|
|
|
|
// Based on actual SkillKit translator, agent constraints, and compatibility scoring:
|
|
// - claude-code, cline, roo: MCP + Tools + Hooks + large context (full support)
|
|
// - cursor: 32K context, no MCP/tools, hooks need manual adjustment
|
|
// - gemini-cli: 128K context, no MCP/tools, JSON-in-markdown format
|
|
// - opencode: 100K context, no MCP/tools, XML skills format
|
|
// - codex, github-copilot: 8K context, no MCP/tools (content condensed)
|
|
// - windsurf: 32K context, no MCP/tools, workflow YAML format
|
|
// - kilo, kiro-cli: XML block format, multi-mode support, no MCP
|
|
// - goose, amp, antigravity, trae, continue: varies, mostly universal adapter
|
|
const T3_FULL: Record<string, Support> = {
|
|
'augment': 'full', 'replit': 'full', 'bolt': 'full', 'lovable': 'full',
|
|
'tabby': 'full', 'tabnine': 'full', 'codegpt': 'full', 'playcode': 'full',
|
|
'clawdbot': 'full', 'droid': 'full', 'codebuddy': 'full', 'commandcode': 'full',
|
|
'crush': 'full', 'factory': 'full', 'mcpjam': 'full', 'mux': 'full',
|
|
'neovate': 'full', 'openhands': 'full', 'pi': 'full', 'qoder': 'full',
|
|
'qwen': 'full', 'vercel': 'full', 'zencoder': 'full', 'universal': 'full',
|
|
};
|
|
const T3_PARTIAL: Record<string, Support> = Object.fromEntries(Object.keys(T3_FULL).map(k => [k, 'partial']));
|
|
const T3_NONE: Record<string, Support> = Object.fromEntries(Object.keys(T3_FULL).map(k => [k, 'none']));
|
|
|
|
const MATRIX: Record<string, Record<string, Support>> = {
|
|
'translation': {
|
|
'claude-code': 'full', 'cursor': 'full', 'codex': 'full', 'gemini-cli': 'full',
|
|
'opencode': 'full', 'windsurf': 'full', 'github-copilot': 'full', 'cline': 'full',
|
|
'devin': 'full', 'roo': 'full', 'kilo': 'full', 'kiro-cli': 'partial', 'goose': 'full',
|
|
'trae': 'full', 'amp': 'full', 'aider': 'full', 'cody': 'full', 'amazon-q': 'full',
|
|
'antigravity': 'full', 'continue': 'full', ...T3_FULL,
|
|
},
|
|
'hooks': {
|
|
'claude-code': 'full', 'cursor': 'partial', 'codex': 'partial', 'gemini-cli': 'partial',
|
|
'opencode': 'partial', 'windsurf': 'none', 'github-copilot': 'none', 'cline': 'full',
|
|
'devin': 'partial', 'roo': 'full', 'kilo': 'partial', 'kiro-cli': 'partial', 'goose': 'partial',
|
|
'trae': 'partial', 'amp': 'partial', 'aider': 'none', 'cody': 'none', 'amazon-q': 'none',
|
|
'antigravity': 'none', 'continue': 'none', ...T3_NONE,
|
|
},
|
|
'mcp-tools': {
|
|
'claude-code': 'full', 'cursor': 'none', 'codex': 'none', 'gemini-cli': 'none',
|
|
'opencode': 'none', 'windsurf': 'none', 'github-copilot': 'none', 'cline': 'full',
|
|
'devin': 'partial', 'roo': 'full', 'kilo': 'none', 'kiro-cli': 'none', 'goose': 'none',
|
|
'trae': 'none', 'amp': 'none', 'aider': 'none', 'cody': 'none', 'amazon-q': 'none',
|
|
'antigravity': 'none', 'continue': 'none', ...T3_NONE,
|
|
},
|
|
'context': {
|
|
'claude-code': 'full', 'cursor': 'partial', 'codex': 'partial', 'gemini-cli': 'full',
|
|
'opencode': 'full', 'windsurf': 'partial', 'github-copilot': 'partial', 'cline': 'full',
|
|
'devin': 'full', 'roo': 'full', 'kilo': 'full', 'kiro-cli': 'full', 'goose': 'full',
|
|
'trae': 'partial', 'amp': 'full', 'aider': 'full', 'cody': 'full', 'amazon-q': 'partial',
|
|
'antigravity': 'partial', 'continue': 'partial', ...T3_PARTIAL,
|
|
},
|
|
'security': {
|
|
'claude-code': 'full', 'cursor': 'full', 'codex': 'partial', 'gemini-cli': 'full',
|
|
'opencode': 'full', 'windsurf': 'full', 'github-copilot': 'partial', 'cline': 'full',
|
|
'devin': 'full', 'roo': 'full', 'kilo': 'full', 'kiro-cli': 'full', 'goose': 'full',
|
|
'trae': 'full', 'amp': 'full', 'aider': 'full', 'cody': 'full', 'amazon-q': 'full',
|
|
'antigravity': 'partial', 'continue': 'partial', ...T3_PARTIAL,
|
|
},
|
|
'testing': {
|
|
'claude-code': 'full', 'cursor': 'full', 'codex': 'partial', 'gemini-cli': 'full',
|
|
'opencode': 'full', 'windsurf': 'full', 'github-copilot': 'partial', 'cline': 'full',
|
|
'devin': 'full', 'roo': 'full', 'kilo': 'full', 'kiro-cli': 'full', 'goose': 'full',
|
|
'trae': 'full', 'amp': 'full', 'aider': 'full', 'cody': 'full', 'amazon-q': 'partial',
|
|
'antigravity': 'partial', 'continue': 'partial', ...T3_PARTIAL,
|
|
},
|
|
'frontend': {
|
|
'claude-code': 'full', 'cursor': 'full', 'codex': 'partial', 'gemini-cli': 'full',
|
|
'opencode': 'full', 'windsurf': 'full', 'github-copilot': 'partial', 'cline': 'full',
|
|
'devin': 'full', 'roo': 'full', 'kilo': 'partial', 'kiro-cli': 'partial', 'goose': 'partial',
|
|
'trae': 'full', 'amp': 'full', 'aider': 'partial', 'cody': 'partial', 'amazon-q': 'partial',
|
|
'antigravity': 'partial', 'continue': 'partial', ...T3_PARTIAL,
|
|
},
|
|
'backend': {
|
|
'claude-code': 'full', 'cursor': 'full', 'codex': 'partial', 'gemini-cli': 'full',
|
|
'opencode': 'full', 'windsurf': 'full', 'github-copilot': 'partial', 'cline': 'full',
|
|
'devin': 'full', 'roo': 'full', 'kilo': 'full', 'kiro-cli': 'full', 'goose': 'full',
|
|
'trae': 'full', 'amp': 'full', 'aider': 'full', 'cody': 'full', 'amazon-q': 'partial',
|
|
'antigravity': 'partial', 'continue': 'partial', ...T3_PARTIAL,
|
|
},
|
|
'devops': {
|
|
'claude-code': 'full', 'cursor': 'full', 'codex': 'partial', 'gemini-cli': 'full',
|
|
'opencode': 'full', 'windsurf': 'partial', 'github-copilot': 'partial', 'cline': 'full',
|
|
'devin': 'full', 'roo': 'full', 'kilo': 'partial', 'kiro-cli': 'partial', 'goose': 'partial',
|
|
'trae': 'partial', 'amp': 'partial', 'aider': 'partial', 'cody': 'partial', 'amazon-q': 'partial',
|
|
'antigravity': 'partial', 'continue': 'partial', ...T3_PARTIAL,
|
|
},
|
|
'docs': {
|
|
'claude-code': 'full', 'cursor': 'full', 'codex': 'partial', 'gemini-cli': 'full',
|
|
'opencode': 'full', 'windsurf': 'full', 'github-copilot': 'full', 'cline': 'full',
|
|
'devin': 'full', 'roo': 'full', 'kilo': 'full', 'kiro-cli': 'full', 'goose': 'full',
|
|
'trae': 'full', 'amp': 'full', 'aider': 'full', 'cody': 'full', 'amazon-q': 'full',
|
|
'antigravity': 'full', 'continue': 'full', ...T3_FULL,
|
|
},
|
|
};
|
|
|
|
const SUPPORT_CONFIG: Record<Support, { color: string; bg: string; label: string }> = {
|
|
full: { color: 'text-green-400', bg: 'bg-green-400/10', label: 'Full' },
|
|
partial: { color: 'text-yellow-400', bg: 'bg-yellow-400/10', label: 'Partial' },
|
|
none: { color: 'text-red-400', bg: 'bg-red-400/10', label: 'None' },
|
|
};
|
|
|
|
const SUPPORT_SCORE: Record<Support, number> = { full: 2, partial: 1, none: 0 };
|
|
|
|
function SupportCell({ support }: { support: Support }): React.ReactElement {
|
|
const config = SUPPORT_CONFIG[support];
|
|
return (
|
|
<td className="px-1 py-2 text-center">
|
|
<div className={`inline-flex items-center justify-center w-5 h-5 rounded-full ${config.bg}`}>
|
|
<span className={`text-[10px] font-bold ${config.color}`}>
|
|
{support === 'full' ? '\u2713' : support === 'partial' ? '\u25CB' : '\u2715'}
|
|
</span>
|
|
</div>
|
|
</td>
|
|
);
|
|
}
|
|
|
|
function getAgentScore(agentId: string): number {
|
|
return Object.values(MATRIX).reduce((sum, row) => sum + SUPPORT_SCORE[row[agentId] || 'none'], 0);
|
|
}
|
|
|
|
function getMaxScore(): number {
|
|
return CATEGORIES.length * 2;
|
|
}
|
|
|
|
export function CompatibilityMatrix(): React.ReactElement {
|
|
const [filter, setFilter] = useState('');
|
|
const [groupFilter, setGroupFilter] = useState<string | null>(null);
|
|
|
|
const groups = useMemo(() => {
|
|
const seen = new Set<string>();
|
|
return AGENTS.reduce<string[]>((acc, a) => {
|
|
if (!seen.has(a.group)) {
|
|
seen.add(a.group);
|
|
acc.push(a.group);
|
|
}
|
|
return acc;
|
|
}, []);
|
|
}, []);
|
|
|
|
const { filteredAgents, filteredCategories } = useMemo(() => {
|
|
let agents = AGENTS;
|
|
if (groupFilter) {
|
|
agents = agents.filter(a => a.group === groupFilter);
|
|
}
|
|
|
|
if (!filter.trim()) {
|
|
return { filteredAgents: agents, filteredCategories: CATEGORIES };
|
|
}
|
|
|
|
const q = filter.toLowerCase();
|
|
|
|
const matchedAgents = agents.filter(a =>
|
|
a.name.toLowerCase().includes(q) || a.id.toLowerCase().includes(q)
|
|
);
|
|
const matchedCategories = CATEGORIES.filter(c =>
|
|
c.name.toLowerCase().includes(q) || c.id.toLowerCase().includes(q)
|
|
);
|
|
|
|
return {
|
|
filteredAgents: matchedAgents.length > 0 ? matchedAgents : (matchedCategories.length > 0 ? agents : []),
|
|
filteredCategories: matchedCategories.length > 0 ? matchedCategories : (matchedAgents.length > 0 ? CATEGORIES : []),
|
|
};
|
|
}, [filter, groupFilter]);
|
|
|
|
const maxScore = getMaxScore();
|
|
|
|
return (
|
|
<section className="py-12 border-b border-zinc-800" style={{ backgroundColor: '#09090b' }}>
|
|
<div className="mx-auto max-w-5xl px-4 sm:px-6 lg:px-8">
|
|
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-2 mb-6">
|
|
<div>
|
|
<h2 className="text-lg sm:text-xl font-bold text-white mb-1 font-mono">Compatibility Matrix</h2>
|
|
<p className="text-zinc-500 font-mono text-[10px] sm:text-xs">
|
|
Skill support across all 44 agents and {CATEGORIES.length} categories.
|
|
</p>
|
|
</div>
|
|
<div className="flex items-center gap-2">
|
|
<span className="w-2 h-2 bg-green-500 rounded-full"></span>
|
|
<span className="text-[10px] sm:text-xs font-mono text-zinc-500">Updated Feb 2026</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div className="flex flex-col sm:flex-row gap-2 sm:gap-3 mb-6">
|
|
<div className="relative flex-1">
|
|
<svg className="absolute left-2.5 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-zinc-600" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
|
|
</svg>
|
|
<input
|
|
type="text"
|
|
value={filter}
|
|
onChange={(e) => setFilter(e.target.value)}
|
|
placeholder="Filter agents or categories..."
|
|
className="w-full bg-black border border-zinc-800 text-zinc-300 placeholder-zinc-700 font-mono text-xs px-8 py-2 focus:outline-none focus:border-zinc-600 transition-colors"
|
|
/>
|
|
{filter && (
|
|
<button
|
|
onClick={() => setFilter('')}
|
|
className="absolute right-2.5 top-1/2 -translate-y-1/2 text-zinc-600 hover:text-zinc-400 transition-colors"
|
|
>
|
|
<svg className="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M6 18L18 6M6 6l12 12" />
|
|
</svg>
|
|
</button>
|
|
)}
|
|
</div>
|
|
<div className="flex gap-1.5">
|
|
<button
|
|
onClick={() => setGroupFilter(null)}
|
|
className={`px-2.5 py-1.5 font-mono text-[10px] sm:text-xs transition-all ${
|
|
groupFilter === null
|
|
? 'bg-white text-black'
|
|
: 'bg-zinc-900 text-zinc-400 border border-zinc-800 hover:border-zinc-600 hover:text-white'
|
|
}`}
|
|
>
|
|
All
|
|
</button>
|
|
{groups.map(g => (
|
|
<button
|
|
key={g}
|
|
onClick={() => setGroupFilter(groupFilter === g ? null : g)}
|
|
className={`px-2.5 py-1.5 font-mono text-[10px] sm:text-xs transition-all ${
|
|
groupFilter === g
|
|
? 'bg-white text-black'
|
|
: 'bg-zinc-900 text-zinc-400 border border-zinc-800 hover:border-zinc-600 hover:text-white'
|
|
}`}
|
|
>
|
|
{g}
|
|
</button>
|
|
))}
|
|
</div>
|
|
</div>
|
|
|
|
<div className="flex items-center gap-4 mb-4">
|
|
{Object.entries(SUPPORT_CONFIG).map(([key, config]) => (
|
|
<div key={key} className="flex items-center gap-1.5">
|
|
<div className={`w-3 h-3 rounded-full ${config.bg} flex items-center justify-center`}>
|
|
<span className={`text-[8px] font-bold ${config.color}`}>
|
|
{key === 'full' ? '\u2713' : key === 'partial' ? '\u25CB' : '\u2715'}
|
|
</span>
|
|
</div>
|
|
<span className="text-[10px] font-mono text-zinc-500">{config.label}</span>
|
|
</div>
|
|
))}
|
|
</div>
|
|
|
|
<div className="overflow-x-auto -mx-4 px-4 sm:mx-0 sm:px-0">
|
|
<div className="min-w-[700px]">
|
|
<table className="w-full border-collapse font-mono text-[10px]">
|
|
<thead>
|
|
<tr className="border-b border-zinc-800">
|
|
<th className="text-left text-zinc-500 uppercase tracking-wider py-2 pr-3 sticky left-0 bg-[#09090b] z-10 min-w-[120px]">
|
|
Category
|
|
</th>
|
|
{filteredAgents.map(agent => (
|
|
<th key={agent.id} className="px-1 py-2 text-center">
|
|
<div className="flex flex-col items-center gap-0.5">
|
|
<span className="text-sm">{agent.icon}</span>
|
|
<span className="text-zinc-400 whitespace-nowrap max-w-[50px] truncate" title={agent.name}>
|
|
{agent.name.length > 7 ? agent.name.slice(0, 7) : agent.name}
|
|
</span>
|
|
</div>
|
|
</th>
|
|
))}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{filteredCategories.map(category => (
|
|
<tr key={category.id} className="border-b border-zinc-800/50 hover:bg-zinc-900/50 transition-colors">
|
|
<td className="py-2 pr-3 sticky left-0 bg-[#09090b] z-10">
|
|
<div className="flex items-center gap-1.5">
|
|
<span className="text-zinc-600">{category.icon}</span>
|
|
<span className="text-zinc-300 whitespace-nowrap">{category.name}</span>
|
|
</div>
|
|
</td>
|
|
{filteredAgents.map(agent => (
|
|
<SupportCell
|
|
key={agent.id}
|
|
support={MATRIX[category.id]?.[agent.id] || 'none'}
|
|
/>
|
|
))}
|
|
</tr>
|
|
))}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr className="border-t border-zinc-700">
|
|
<td className="py-3 pr-3 sticky left-0 bg-[#09090b] z-10">
|
|
<span className="text-zinc-400 font-bold uppercase tracking-wider">Score</span>
|
|
</td>
|
|
{filteredAgents.map(agent => {
|
|
const score = getAgentScore(agent.id);
|
|
const pct = Math.round((score / maxScore) * 100);
|
|
const color = pct >= 80 ? 'text-green-400' : pct >= 50 ? 'text-yellow-400' : 'text-red-400';
|
|
return (
|
|
<td key={agent.id} className="px-1 py-3 text-center">
|
|
<div className={`font-bold text-xs ${color}`}>{pct}%</div>
|
|
<div className="text-zinc-600 text-[9px]">{score}/{maxScore}</div>
|
|
</td>
|
|
);
|
|
})}
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
{filteredAgents.length === 0 && (
|
|
<div className="text-center py-8 text-zinc-600 font-mono text-sm">
|
|
No agents match your filter.
|
|
</div>
|
|
)}
|
|
|
|
{filteredCategories.length === 0 && filteredAgents.length > 0 && (
|
|
<div className="text-center py-8 text-zinc-600 font-mono text-sm">
|
|
No categories match your filter.
|
|
</div>
|
|
)}
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|