feat: Analyze now shows which projects would benefit from skill
This commit is contained in:
@@ -215,10 +215,18 @@ export default function ClawHubMarketplace() {
|
||||
description: data.description,
|
||||
triggers: data.triggers
|
||||
});
|
||||
setOutput(`📋 ${selectedSkill.name}\n\n` +
|
||||
`Description: ${data.description || "N/A"}\n\n` +
|
||||
`Triggers: ${data.triggers || "N/A"}\n\n` +
|
||||
(data.raw ? `📄 SKILL.md Preview:\n${data.raw.substring(0, 500)}...` : ""));
|
||||
let output = `📋 ${selectedSkill.name}\n\n`;
|
||||
output += `Description: ${data.description || "N/A"}\n\n`;
|
||||
output += `Triggers: ${data.triggers || "N/A"}\n\n`;
|
||||
if (data.projectMatches && data.projectMatches.length > 0) {
|
||||
output += `🎯 Project Matches:\n`;
|
||||
data.projectMatches.forEach((m: string) => {
|
||||
output += ` • ${m}\n`;
|
||||
});
|
||||
output += `\n`;
|
||||
}
|
||||
output += (data.raw ? `📄 SKILL.md Preview:\n${data.raw.substring(0, 500)}...` : "");
|
||||
setOutput(output);
|
||||
} catch (e) {
|
||||
setOutput("Error: " + String(e));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user