From e8ce1d52455835af9bf4d06c7b56058197b209bd Mon Sep 17 00:00:00 2001 From: Vance Ingalls Date: Wed, 25 Mar 2026 02:05:16 -0700 Subject: [PATCH] refactor(cli): simplify skills to flat command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `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) --- .../commands/{skills.ts => install-skills.ts} | 30 ++++--------------- 1 file changed, 5 insertions(+), 25 deletions(-) rename packages/cli/src/commands/{skills.ts => install-skills.ts} (88%) diff --git a/packages/cli/src/commands/skills.ts b/packages/cli/src/commands/install-skills.ts similarity index 88% rename from packages/cli/src/commands/skills.ts rename to packages/cli/src/commands/install-skills.ts index 8ca9d82d07..d3f973e056 100644 --- a/packages/cli/src/commands/skills.ts +++ b/packages/cli/src/commands/install-skills.ts @@ -139,7 +139,7 @@ function listInstalledSkills(): string[] { // --------------------------------------------------------------------------- async function runInstall(): Promise { - 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 { clack.outro(c.success("Skills ready. They'll be available in all Claude Code sessions.")); } -async function runList(): Promise { - 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, });