UNPKG

@incidental/project-templates

Version:

Claude Code template library for JavaScript projects with framework auto-detection

21 lines (16 loc) 602 B
import { logger } from '../utils/logger.js'; import TemplateInstaller from '../installers/template-installer.js'; export async function addSkillHandler(name, _options) { logger.header(`Adding skill: ${name}`); // Install the skill const installer = new TemplateInstaller(); try { await installer.installSkill(name); logger.success('Skill installed successfully!'); logger.dim('\nClaude will automatically use this skill when appropriate'); } catch (error) { logger.error(`Failed to install skill: ${error.message}`); throw error; } } export default addSkillHandler;