(program: Command)
| 189 | } |
| 190 | |
| 191 | export function registerSkillAliases(program: Command): void { |
| 192 | program |
| 193 | .command("si", { hidden: true }) |
| 194 | .argument("<repository>", "GitHub repository (/owner/repo)") |
| 195 | .argument("[skill]", "Specific skill name to install") |
| 196 | .option("--all", "Install all skills without prompting") |
| 197 | .option("--all-agents", "Install to all supported agent locations") |
| 198 | .option("-y, --yes", "Skip confirmation prompts") |
| 199 | .option("--global", "Install globally instead of current directory") |
| 200 | .option("--claude", "Claude Code (.claude/skills/)") |
| 201 | .option("--cursor", "Cursor (.cursor/skills/)") |
| 202 | .option("--universal", "Universal (.agents/skills/)") |
| 203 | .option("--antigravity", "Antigravity (.agent/skills/)") |
| 204 | .description("Install skills (alias for: skills install)") |
| 205 | .action(async (project: string, skillName: string | undefined, options: AddOptions) => { |
| 206 | warnSkillHubDeprecated(); |
| 207 | await installCommand(project, skillName, options); |
| 208 | }); |
| 209 | |
| 210 | program |
| 211 | .command("ss", { hidden: true }) |
| 212 | .argument("<keywords...>", "Search keywords") |
| 213 | .description("Search for skills (alias for: skills search)") |
| 214 | .action(async (keywords: string[]) => { |
| 215 | warnSkillHubDeprecated(); |
| 216 | await searchCommand(keywords.join(" ")); |
| 217 | }); |
| 218 | |
| 219 | program |
| 220 | .command("ssg", { hidden: true }) |
| 221 | .option("--global", "Install globally instead of current directory") |
| 222 | .option("--claude", "Claude Code (.claude/skills/)") |
| 223 | .option("--cursor", "Cursor (.cursor/skills/)") |
| 224 | .option("--universal", "Universal (.agents/skills/)") |
| 225 | .option("--antigravity", "Antigravity (.agent/skills/)") |
| 226 | .description("Suggest skills (alias for: skills suggest)") |
| 227 | .action(async (options: SuggestOptions) => { |
| 228 | warnSkillHubDeprecated(); |
| 229 | await suggestCommand(options); |
| 230 | }); |
| 231 | } |
| 232 | |
| 233 | async function installCommand( |
| 234 | input: string, |
no test coverage detected