paperclipai/paperclip · error
No audit result returned for skill
Error message
No audit result returned for skill ${skill.key}. What it means
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.
Solutions
- Retry the audit; if it persists, check server logs.
Defensive patterns
Strategy: type-guard
When it happens
Trigger: Thrown at cli/src/commands/client/skills.ts:731 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@120ae5428f (2026-08-18).
Data as JSON: /api/errors/1c1fce8fe412348f.
Report an issue: GitHub.
Appendix: source
Thrown at cli/src/commands/client/skills.ts:731
}
}
return rows;
}
async function auditCompanySkills(
ctx: ResolvedClientContext,
skillRef: string | undefined,
): Promise<Array<{ skill: CompanySkillReferenceTarget; audit: CompanySkillAuditResult }>> {
const skills = await listCompanySkills(ctx);
const selected = skillRef ? [resolveCompanySkillReference(skills, skillRef)] : skills;
const rows: Array<{ skill: CompanySkillReferenceTarget; audit: CompanySkillAuditResult }> = [];
for (const skill of selected) {
const audit = await ctx.api.post<CompanySkillAuditResult>(
`/api/companies/${ctx.companyId}/skills/${encodeURIComponent(skill.id)}/audit`,
{},
);
if (!audit) {
throw new Error(`No audit result returned for skill ${skill.key}.`);
}
rows.push({ skill: toSkillReferenceTarget(skill), audit });
}
return rows;
}
async function resolveAgent(ctx: ResolvedClientContext, agentRef: string): Promise<Agent> {
const params = new URLSearchParams({ companyId: ctx.companyId ?? "" });
const agent = await ctx.api.get<Agent>(`/api/agents/${encodeURIComponent(agentRef)}?${params.toString()}`);
if (!agent) {
throw new Error(`Agent not found: ${agentRef}`);
}
return agent;
}
function printCompanySkillRows(rows: Array<CompanySkillListItem | CompanySkill>): void {
if (rows.length === 0) {
printOutput([], { json: false });View on GitHub (pinned to 120ae5428f)