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

T2T-Item: 0x6689dd6d2c645e4a9251d1f91e6cd8e6f54caaad3c03cbec98cad659458fe950
T2T-Issue: 0x33958ef2cc4d93a93649833be3a29f2b76bbd4080db691cff2473389671a252e
This commit is contained in:
2026-10-02 09:37:08 +00:00
committed by elffuss-bot
parent 42a4a9a67c
commit 9a7a9c01e1
3 changed files with 24 additions and 0 deletions

View File

@@ -131,6 +131,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;