{"record":{"id":"f057f892312524aa","repo":"larksuite/cli","slug":"create-suite-staging-directory-w","errorCode":null,"errorMessage":"create suite staging directory: %w","messagePattern":"create suite staging directory: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/skillscheck/layout.go","lineNumber":61,"sourceCode":"\tif requested != \"\" {\n\t\treturn ParseLayout(string(requested))\n\t}\n\tif readable {\n\t\treturn EffectiveLayout(state), nil\n\t}\n\treturn LayoutSeparate, nil\n}\n\nfunc syncSuite(runner SkillsRunner, source string, plan SyncPlan, installed []installedSkill) error {\n\tinstalledSeparate := installedOfficialNames(installed, plan.CleanupOfficial)\n\tif len(plan.ToUpdate) == 0 {\n\t\tremove := append(installedSeparate, installedNameIfPresent(installed, \"lark-suite\")...)\n\t\treturn removeSkills(runner, remove)\n\t}\n\n\tstagingRoot, err := vfs.MkdirTemp(\"\", \"lark-cli-suite-\")\n\tif err != nil {\n\t\treturn fmt.Errorf(\"create suite staging directory: %w\", err)\n\t}\n\tdefer vfs.RemoveAll(stagingRoot)\n\n\tstageResult := runner.StageSuite(source, stagingRoot)\n\tif stageResult == nil || stageResult.Err != nil {\n\t\treturn fmt.Errorf(\"suite archive install failed: %s\", resultDetail(stageResult))\n\t}\n\n\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","sourceCodeStart":43,"sourceCodeEnd":79,"githubUrl":"https://github.com/larksuite/cli/blob/7fd6ef3c07182257ce776cdc5a614e122d5bd4b3/internal/skillscheck/layout.go#L43-L79","documentation":"Wraps vfs.MkdirTemp failure while creating the temporary staging directory used to install the skills suite archive. Without staging, the suite sync cannot proceed.","triggerScenarios":"Thrown at internal/skillscheck/layout.go:61 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify TEMP/TMP permissions and free space","Retry after clearing the failing temp-dir state"],"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"}