import fs from 'fs';
import path from 'path';
export async function uninstallCommand(skill) {
    const cwd = process.cwd();
    const skillDir = path.join(cwd, 'skills', skill);
    if (!fs.existsSync(skillDir)) {
        console.error(`Skill "${skill}" is not installed.`);
        process.exit(1);
    }
    fs.rmSync(skillDir, { recursive: true, force: true });
    console.log(`Skill "${skill}" uninstalled.`);
}
