/** * Skills Section - UI for managing Skills configuration * * Allows users to enable/disable Skills and select which directories * to load Skills from (user ~/.claude/skills/ or project .claude/skills/). */ import { Label } from '@/components/ui/label'; import { Switch } from '@/components/ui/switch'; import { Checkbox } from '@/components/ui/checkbox'; import { cn } from '@/lib/utils'; import { Zap, Globe, FolderOpen, ExternalLink, Sparkles } from 'lucide-react'; import { useSkillsSettings } from './hooks/use-skills-settings'; export function SkillsSection() { const { enabled, sources, updateEnabled, updateSources, isLoading } = useSkillsSettings(); const toggleSource = (source: 'user' | 'project') => { if (sources.includes(source)) { updateSources(sources.filter((s: 'user' | 'project') => s !== source)); } else { updateSources([...sources, source]); } }; return (
{/* Header */}

Skills {enabled && ( {sources.length} source{sources.length !== 1 ? 's' : ''} active )}

Filesystem-based capabilities Claude invokes autonomously

{/* Content */}
{/* Sources Selection */} {enabled && (
{/* User Skills Option */} {/* Project Skills Option */}
)} {/* Help Text */} {enabled && (

Auto-Discovery

Skills are automatically discovered when agents start. Define skills as{' '} SKILL.md files.

View Skills documentation
)} {/* Disabled State Empty Message */} {!enabled && (

Skills are disabled

Enable to load filesystem-based capabilities

)}
); }