import fs from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; import { resolveOpenClawPackageRootSync } from "../../infra/openclaw-root.js";
function looksLikeSkillsDir(dir: string): boolean { try { const entries = fs.readdirSync(dir, { withFileTypes: true }); for (const entry of entries) { if (entry.name.startsWith(".")) { continue;
} const fullPath = path.join(dir, entry.name); if (entry.isFile() && entry.name.endsWith(".md")) { returntrue;
} if (entry.isDirectory()) { if (fs.existsSync(path.join(fullPath, "SKILL.md"))) { returntrue;
}
}
}
} catch { returnfalse;
} returnfalse;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.