MCPcopy Index your code
hub / github.com/anomalyco/opencode / isSkillFrontmatter

Function isSkillFrontmatter

packages/opencode/src/skill/index.ts:53–59  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

51)
52
53function isSkillFrontmatter(data: unknown): data is { name: string; description?: string } {
54 return (
55 isRecord(data) &&
56 typeof data.name === "string" &&
57 (data.description === undefined || typeof data.description === "string")
58 )
59}
60
61export class InvalidError extends Schema.TaggedErrorClass<InvalidError>()("SkillInvalidError", {
62 path: Schema.String,

Callers 1

index.tsFile · 0.85

Calls 1

isRecordFunction · 0.90

Tested by

no test coverage detected