MCPcopy Create free account
hub / github.com/coder/coder / makeSkill

Function makeSkill

site/src/api/queries/userSkills.test.ts:24–35  ·  view source on GitHub ↗
(
	name: string,
	overrides: Partial<UserSkill> = {},
)

Source from the content-addressed store, hash-verified

22 });
23
24const makeSkill = (
25 name: string,
26 overrides: Partial<UserSkill> = {},
27): UserSkill => ({
28 id: `${name}-id`,
29 name,
30 description: `${name} description`,
31 content: `---\nname: ${name}\n---\nBody\n`,
32 created_at: "2026-05-21T00:00:00Z",
33 updated_at: "2026-05-21T00:00:00Z",
34 ...overrides,
35});
36
37const toMetadata = (skill: UserSkill): UserSkillMetadata => ({
38 id: skill.id,

Callers 1

userSkills.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected