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

Method getSkill

packages/memos-core/src/storage/sqlite.ts:1756–1759  ·  view source on GitHub ↗
(skillId: string)

Source from the content-addressed store, hash-verified

1754 }
1755
1756 getSkill(skillId: string): Skill | null {
1757 const row = this.db.prepare("SELECT * FROM skills WHERE id = ?").get(skillId) as SkillRow | undefined;
1758 return row ? rowToSkill(row) : null;
1759 }
1760
1761 getSkillByName(name: string): Skill | null {
1762 const row = this.db.prepare("SELECT * FROM skills WHERE name = ?").get(name) as SkillRow | undefined;

Callers 2

disableSkillMethod · 0.95
enableSkillMethod · 0.95

Calls 3

prepareMethod · 0.80
rowToSkillFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected