{"record":{"id":"91ca6e4f38816086","repo":"Tencent/WeKnora","slug":"file-not-found-in-skill-s-s","errorCode":null,"errorMessage":"file not found in skill %s: %s","messagePattern":"file not found in skill (.+?): (.+?)","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/agent/skills/tenant_source.go","lineNumber":183,"sourceCode":"\trow, err := s.row(name)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tclean, err := safeSkillRelPath(relativePath)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tarchive, err := s.bundleArchive(row)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tindex, err := skillBundleFileIndex(archive)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\titem, ok := index[clean]\n\tif !ok {\n\t\treturn nil, fmt.Errorf(\"file not found in skill %s: %s\", name, relativePath)\n\t}\n\tcontent, err := readLimitedSkillZipFile(item)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tbasePath, err := sandbox.SkillDirFor(row.Name)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &SkillFile{\n\t\tName: relativePath,\n\t\t// The path the model sees is the in-image one, because that is where\n\t\t// it can act on the file.\n\t\tPath:     path.Join(basePath, clean),\n\t\tContent:  string(content),\n\t\tIsScript: IsScript(clean),\n\t}, nil\n}","sourceCodeStart":165,"sourceCodeEnd":201,"githubUrl":"https://github.com/Tencent/WeKnora/blob/988cbb03305e055d8ebb7d46d9ac6cc0803cd074/internal/agent/skills/tenant_source.go#L165-L201","documentation":"Lookup miss in TenantSkillSource.LoadSkillFile: the requested relativePath (after safeSkillRelPath normalization) is not present in the skill bundle archive's file index. The skill exists and loads; only the specific file is absent from its zip bundle.","triggerScenarios":"Thrown at internal/agent/skills/tenant_source.go:183 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["List the skill's files first to see available paths","Use the exact path as stored in the bundle (relative, no leading slash)","Re-upload the skill bundle if the file should exist"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"988cbb03305e055d8ebb7d46d9ac6cc0803cd074","analyzedAt":"2026-09-02T14:41:08.344Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}