{"record":{"id":"6023108d29d49d14","repo":"larksuite/cli","slug":"inspect-suite-archive-w","errorCode":null,"errorMessage":"inspect suite archive: %w","messagePattern":"inspect suite archive: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/skillscheck/layout.go","lineNumber":88,"sourceCode":"\tsuitePath := filepath.Join(stagingRoot, \".agents\", \"skills\", \"lark-suite\")\n\tif err := prepareSuite(suitePath, plan.OfficialSkills, plan.ToUpdate); err != nil {\n\t\treturn err\n\t}\n\tinstallResult := runner.InstallLocalSuite(suitePath)\n\tif installResult == nil || installResult.Err != nil {\n\t\treturn fmt.Errorf(\"install cropped lark-suite failed: %s\", resultDetail(installResult))\n\t}\n\tif err := removeSkills(runner, installedSeparate); err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}\n\nfunc prepareSuite(suitePath string, official, target []string) error {\n\treferencesPath := filepath.Join(suitePath, \"references\")\n\tarchived, err := listDirectSubdirs(referencesPath)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"inspect suite archive: %w\", err)\n\t}\n\tif err := assertSameSkillNames(archived, official, \"suite archive\"); err != nil {\n\t\treturn err\n\t}\n\n\ttargetSet := toSet(target)\n\tremoved := []string{}\n\tfor _, name := range official {\n\t\tif targetSet[name] {\n\t\t\tcontinue\n\t\t}\n\t\tif err := vfs.RemoveAll(filepath.Join(referencesPath, name)); err != nil {\n\t\t\treturn fmt.Errorf(\"remove suite child %s: %w\", name, err)\n\t\t}\n\t\tremoved = append(removed, name)\n\t}\n\n\tskillPath := filepath.Join(suitePath, \"SKILL.md\")","sourceCodeStart":70,"sourceCodeEnd":106,"githubUrl":"https://github.com/larksuite/cli/blob/7fd6ef3c07182257ce776cdc5a614e122d5bd4b3/internal/skillscheck/layout.go#L70-L106","documentation":"prepareSuite could not list the staged archive's references/ subdirectories (via listDirectSubdirs), so the crop cannot know which child skills exist; wraps the underlying IO error and implies a broken archive layout.","triggerScenarios":"Thrown at internal/skillscheck/layout.go:88 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the suite archive layout (references/ with skill subdirectories) and re-stage"],"exampleFix":null,"handlingStrategy":"validation","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"}