MCPcopy Create free account
hub / github.com/continuedev/continue / handleSkills

Function handleSkills

extensions/cli/src/slashCommands.ts:112–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110}
111
112async function handleSkills(): Promise<SlashCommandResult> {
113 const { skills } = await loadMarkdownSkills();
114
115 if (!skills.length) {
116 return {
117 exit: false,
118 output: chalk.yellow(
119 "No skills found. Add skills under .continue/skills or .claude/skills.",
120 ),
121 };
122 }
123
124 const header = chalk.bold("Available skills:");
125 const lines = skills.map(
126 (skill) =>
127 `${chalk.cyan(skill.name)} - ${skill.description} ${chalk.gray(
128 `(${skill.path})`,
129 )}`,
130 );
131
132 return {
133 exit: false,
134 output: [header, "", ...lines].join("\n"),
135 };
136}
137
138async function handleImportSkill(args: string[]): Promise<SlashCommandResult> {
139 const query = args.join(" ").trim();

Callers 1

slashCommands.tsFile · 0.85

Calls 1

loadMarkdownSkillsFunction · 0.50

Tested by

no test coverage detected