Solution 0x6e4b1371ee475009f70d20b65d81023f30d4f49f180342c8ce3cb5602ee80d40
All checks were successful
elffuss/validation Validation passed

T2T-Item: 0x6e4b1371ee475009f70d20b65d81023f30d4f49f180342c8ce3cb5602ee80d40
T2T-Issue: 0xb63b45e576476cb6be638c97b58f24fa0b78c017c4edc89447b69a35b3602672
This commit is contained in:
2026-10-02 09:14:08 +00:00
committed by elffuss-bot
parent f6006681f1
commit a829c0ce13
3 changed files with 24 additions and 0 deletions

View File

@@ -134,6 +134,7 @@ export async function installFromRepo(entry) {
// SKILL.md → { name, description, content }
export function parseSkill(md, fallbackName = 'skill') {
md = md.replace(/\r\n/g, '\n');
const fm = md.match(/^---\n([\s\S]*?)\n---/);
const meta = fm?.[1] || '';
const name = meta.match(/^name:\s*(.+)$/m)?.[1]?.trim() || fallbackName;