feat(cli): prompt to install skills during init (#206)

Replace the static "Tip" message at the end of `hyperframes init` with an
interactive prompt that offers to install AI coding skills. When the user
accepts, the skills command runs `npx skills add` with `--all` and
`stdio: "inherit"` so the native installer output is visible.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
James Russo
2026-04-03 07:36:08 -07:00
committed by GitHub
co-authored by Claude Opus 4.6
parent e2c8ed5d83
commit 29541aefaa
2 changed files with 21 additions and 30 deletions
+13 -4
View File
@@ -692,10 +692,19 @@ export default defineCommand({
const files = readdirSync(destDir);
clack.note(files.map((f) => c.accent(f)).join("\n"), c.success(`Created ${name}/`));
clack.log.message(
`${c.dim("Tip:")} Install AI coding skills: ${c.accent("npx skills add heygen-com/hyperframes")}\n` +
`${c.dim(" Then open this project with")} ${c.accent("Claude Code")}${c.dim(",")} ${c.accent("Cursor")}${c.dim(", or your preferred agent.")}`,
);
// Offer to install AI coding skills
const installSkills = await clack.confirm({
message: "Install AI coding skills? (for Claude Code, Cursor, Codex, etc.)",
initialValue: true,
});
if (clack.isCancel(installSkills)) {
clack.cancel("Setup cancelled.");
process.exit(0);
}
if (installSkills) {
const skillsCmd = await import("./skills.js").then((m) => m.default);
await runCommand(skillsCmd, { rawArgs: [] });
}
// Auto-launch studio preview
clack.log.info("Opening studio preview...");