{"record":{"id":"405ca97a7b62369d","repo":"paperclipai/paperclip","slug":"skill-not-found-reference","errorCode":null,"errorMessage":"Skill not found: ${reference}","messagePattern":"Skill not found: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/client/skills.ts","lineNumber":627,"sourceCode":"  const trimmed = reference.trim();\n  if (!trimmed) {\n    throw new Error(\"Skill reference is required.\");\n  }\n\n  const byId = skills.find((skill) => skill.id === trimmed);\n  if (byId) return byId;\n\n  const byKey = skills.find((skill) => skill.key === trimmed);\n  if (byKey) return byKey;\n\n  const normalizedSlug = normalizeSkillSlug(trimmed);\n  const bySlug = skills.filter((skill) => skill.slug === normalizedSlug);\n  if (bySlug.length === 1 && bySlug[0]) return bySlug[0];\n  if (bySlug.length > 1) {\n    throw new Error(`Ambiguous skill slug \"${trimmed}\". Use a skill ID or key instead.`);\n  }\n\n  throw new Error(`Skill not found: ${reference}`);\n}\n\nasync function resolveCompanySkill(\n  ctx: ResolvedClientContext,\n  reference: string,\n): Promise<CompanySkillReferenceTarget> {\n  return resolveCompanySkillReference(await listCompanySkills(ctx), reference);\n}\n\nasync function checkCompanySkills(\n  ctx: ResolvedClientContext,\n  skillRef: string | undefined,\n): Promise<CompanySkillCheckRow[]> {\n  const skills = await listCompanySkills(ctx);\n  const selected = skillRef ? [resolveCompanySkillReference(skills, skillRef)] : skills;\n  const rows: CompanySkillCheckRow[] = [];\n  for (const skill of selected) {\n    const status = await ctx.api.get<CompanySkillUpdateStatus>(","sourceCodeStart":609,"sourceCodeEnd":645,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/cli/src/commands/client/skills.ts#L609-L645","documentation":"Error \"Skill not found: ${reference}\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at cli/src/commands/client/skills.ts:627 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the skill reference; list skills and use a valid ID, key, or slug."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}