MCPcopy Create free account
hub / github.com/MemTensor/MemOS / readSkillMarkdown

Function readSkillMarkdown

packages/memos-core/src/client/skill-sync.ts:36–42  ·  view source on GitHub ↗
(dirPath: string, fallback: string)

Source from the content-addressed store, hash-verified

34}
35
36function readSkillMarkdown(dirPath: string, fallback: string): string {
37 const skillMdPath = path.join(dirPath, "SKILL.md");
38 if (fs.existsSync(skillMdPath)) {
39 return fs.readFileSync(skillMdPath, "utf8");
40 }
41 return fallback;
42}
43
44function readCompanionFiles(dirPath: string): Array<{ filename: string; content: string }> {
45 if (!fs.existsSync(dirPath)) return [];

Callers 1

buildSkillBundleForHubFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected