refactor(cli): simplify skills to flat command

`hyperframes skills` directly installs + shows summary.
No subcommands needed — list was redundant since install
already prints all installed skills.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Vance Ingalls
2026-03-26 17:50:46 +00:00
committed by Vance Ingalls
co-authored by Claude Opus 4.6
parent 8b8e2737a2
commit e8ce1d5245
@@ -139,7 +139,7 @@ function listInstalledSkills(): string[] {
// ---------------------------------------------------------------------------
async function runInstall(): Promise<void> {
clack.intro(c.bold("hyperframes skills install"));
clack.intro(c.bold("hyperframes skills"));
mkdirSync(SKILLS_DIR, { recursive: true });
@@ -179,30 +179,10 @@ async function runInstall(): Promise<void> {
clack.outro(c.success("Skills ready. They'll be available in all Claude Code sessions."));
}
async function runList(): Promise<void> {
const skills = listInstalledSkills();
if (skills.length === 0) {
console.log(c.dim("No skills installed. Run: hyperframes skills install"));
return;
}
console.log(c.bold(`${skills.length} skills in ${SKILLS_DIR}\n`));
for (const name of skills) {
console.log(` ${c.accent(name)}`);
}
console.log();
}
export default defineCommand({
meta: { name: "skills", description: "Manage Claude Code skills for HyperFrames" },
subCommands: {
install: defineCommand({
meta: { name: "install", description: "Install HyperFrames and GSAP skills globally" },
run: runInstall,
}),
list: defineCommand({
meta: { name: "list", description: "List installed skills" },
run: runList,
}),
meta: {
name: "skills",
description: "Install HyperFrames and GSAP skills for Claude Code",
},
run: runInstall,
});