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

Method getSkillByName

packages/memos-core/src/storage/sqlite.ts:1761–1764  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

1759 }
1760
1761 getSkillByName(name: string): Skill | null {
1762 const row = this.db.prepare("SELECT * FROM skills WHERE name = ?").get(name) as SkillRow | undefined;
1763 return row ? rowToSkill(row) : null;
1764 }
1765
1766 updateSkill(skillId: string, fields: { description?: string; version?: number; status?: SkillStatus; installed?: number; qualityScore?: number | null; updatedAt?: number }): void {
1767 const sets: string[] = [];

Callers 3

resolveLocalSkillNameFunction · 0.45
handleNewSkillMethod · 0.45
syncIfInstalledMethod · 0.45

Calls 3

prepareMethod · 0.80
rowToSkillFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected