{"record":{"id":"8796502e4138b4e2","repo":"larksuite/cli","slug":"remove-stale-official-skills-failed-s","errorCode":null,"errorMessage":"remove stale official skills failed: %s","messagePattern":"remove stale official skills failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/skillscheck/layout.go","lineNumber":204,"sourceCode":"\t}\n\tsort.Strings(names)\n\treturn names\n}\n\nfunc installedNameIfPresent(installed []installedSkill, name string) []string {\n\tif hasInstalledSkill(installed, name) {\n\t\treturn []string{name}\n\t}\n\treturn nil\n}\n\nfunc removeSkills(runner SkillsRunner, names []string) error {\n\tif len(names) == 0 {\n\t\treturn nil\n\t}\n\tresult := runner.RemoveGlobalSkills(uniqueSorted(names))\n\tif result == nil || result.Err != nil {\n\t\treturn fmt.Errorf(\"remove stale official skills failed: %s\", resultDetail(result))\n\t}\n\treturn nil\n}\n\nfunc assertSameSkillNames(got, want []string, label string) error {\n\tgot = uniqueSorted(got)\n\twant = uniqueSorted(want)\n\tif strings.Join(got, \"\\x00\") != strings.Join(want, \"\\x00\") {\n\t\treturn fmt.Errorf(\"%s child Skill list mismatch: got %v, want %v\", label, got, want)\n\t}\n\treturn nil\n}\n","sourceCodeStart":186,"sourceCodeEnd":217,"githubUrl":"https://github.com/larksuite/cli/blob/7fd6ef3c07182257ce776cdc5a614e122d5bd4b3/internal/skillscheck/layout.go#L186-L217","documentation":"removeSkills wraps a failed RemoveGlobalSkills runner call (nil result or result.Err) after a successful suite install; %s is the structured result detail. Stale separate skills remain installed when this fires.","triggerScenarios":"Thrown at internal/skillscheck/layout.go:204 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry `lark-cli skills update`; if it persists, remove the stale skills manually per the result detail"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7fd6ef3c07182257ce776cdc5a614e122d5bd4b3","analyzedAt":"2026-09-04T21:17:44.649Z","contentChangedAt":"2026-09-04T21:17:44.649Z","schemaVersion":2},"datasetVersion":"2026-09-12T02:17:10.037Z"}