MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isValidSkillName

Function isValidSkillName

common/src/constants/skills.ts:42–47  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

40 * @returns true if valid, false otherwise
41 */
42export function isValidSkillName(name: string): boolean {
43 if (!name || name.length > SKILL_NAME_MAX_LENGTH) {
44 return false
45 }
46 return SKILL_NAME_REGEX.test(name)
47}
48
49/**
50 * Validates a skill description according to length rules.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected