{"record":{"id":"1c1fce8fe412348f","repo":"paperclipai/paperclip","slug":"no-audit-result-returned-for-skill-skill-key","errorCode":null,"errorMessage":"No audit result returned for skill ${skill.key}.","messagePattern":"No audit result returned for skill (.+?)\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/client/skills.ts","lineNumber":731,"sourceCode":"    }\n  }\n  return rows;\n}\n\nasync function auditCompanySkills(\n  ctx: ResolvedClientContext,\n  skillRef: string | undefined,\n): Promise<Array<{ skill: CompanySkillReferenceTarget; audit: CompanySkillAuditResult }>> {\n  const skills = await listCompanySkills(ctx);\n  const selected = skillRef ? [resolveCompanySkillReference(skills, skillRef)] : skills;\n  const rows: Array<{ skill: CompanySkillReferenceTarget; audit: CompanySkillAuditResult }> = [];\n  for (const skill of selected) {\n    const audit = await ctx.api.post<CompanySkillAuditResult>(\n      `/api/companies/${ctx.companyId}/skills/${encodeURIComponent(skill.id)}/audit`,\n      {},\n    );\n    if (!audit) {\n      throw new Error(`No audit result returned for skill ${skill.key}.`);\n    }\n    rows.push({ skill: toSkillReferenceTarget(skill), audit });\n  }\n  return rows;\n}\n\nasync function resolveAgent(ctx: ResolvedClientContext, agentRef: string): Promise<Agent> {\n  const params = new URLSearchParams({ companyId: ctx.companyId ?? \"\" });\n  const agent = await ctx.api.get<Agent>(`/api/agents/${encodeURIComponent(agentRef)}?${params.toString()}`);\n  if (!agent) {\n    throw new Error(`Agent not found: ${agentRef}`);\n  }\n  return agent;\n}\n\nfunction printCompanySkillRows(rows: Array<CompanySkillListItem | CompanySkill>): void {\n  if (rows.length === 0) {\n    printOutput([], { json: false });","sourceCodeStart":713,"sourceCodeEnd":749,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/cli/src/commands/client/skills.ts#L713-L749","documentation":"auditCompanySkills' POST for a skill audit resolved falsy, so there is no audit result to attach; a sentinel guard on a missing per-skill API response.","triggerScenarios":"Thrown at cli/src/commands/client/skills.ts:731 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the audit; if it persists, check server logs."],"exampleFix":null,"handlingStrategy":"type-guard","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"}