import { createhash } from 'node:crypto';
import { cp, readdir, readfile, rename, rm } from 'node:fs/promises';
import { homedir } from 'node:os';
import { join } from 'node:path';
import { createinterface } from 'node:readline/promises';
import { own_skills } from '../shared/agents.mjs';
import { hascode } from '../shared/errors.mjs';
import { git, reporoot } from '../shared/git.mjs';
const skills = join(import.meta.dirname, '..', '..', 'skills');
export const project_skill_folders = own_skills.map((name) => `.claude/skills/${name}/`);
const question = 'install the skills for the user, in ~/.claude/skills, or for the project, in .claude/skills of the main worktree? (user/projec