{"record":{"id":"d6aa77d902734976","repo":"cline/cline","slug":"failed-to-parse-yaml-frontmatter-parseerror","errorCode":null,"errorMessage":"Failed to parse YAML frontmatter: ${parseError}","messagePattern":"Failed to parse YAML frontmatter: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"sdk/packages/core/src/extensions/config/user-instruction-config-loader.ts","lineNumber":294,"sourceCode":"\t\tresolve(context.filePath) === resolve(workspacePath, AGENTS_RULES_FILE_NAME)\n\t) {\n\t\treturn \"Workspace AGENTS.md\";\n\t}\n\n\tif (resolve(context.filePath) === resolve(resolveGlobalAgentsRulesPath())) {\n\t\treturn \"Global AGENTS.md\";\n\t}\n\n\treturn basename(context.filePath, extname(context.filePath));\n}\n\nexport function parseSkillConfigFromMarkdown(\n\tcontent: string,\n\tfallbackName: string,\n): SkillConfig {\n\tconst { data, body, parseError } = parseMarkdownFrontmatter(content);\n\tif (parseError) {\n\t\tthrow new Error(`Failed to parse YAML frontmatter: ${parseError}`);\n\t}\n\tconst instructions = body.trim();\n\tif (!instructions) {\n\t\tthrow new Error(\"Missing instructions body in skill file.\");\n\t}\n\tconst parsedName = parseStringField(data.name, \"name\", false);\n\tconst name = parsedName ?? fallbackName.trim();\n\tif (!name) {\n\t\tthrow new Error(\"Missing skill name.\");\n\t}\n\n\treturn {\n\t\tname,\n\t\tdescription: parseStringField(data.description, \"description\", false),\n\t\tdisabled:\n\t\t\tparseBooleanField(data.disabled, \"disabled\") ??\n\t\t\t(parseBooleanField(data.enabled, \"enabled\") === false ? true : undefined),\n\t\tinstructions,","sourceCodeStart":276,"sourceCodeEnd":312,"githubUrl":"https://github.com/cline/cline/blob/491b30b806fdb8c93513f821f2b87d63a61542f5/sdk/packages/core/src/extensions/config/user-instruction-config-loader.ts#L276-L312","documentation":"Error \"Failed to parse YAML frontmatter: ${parseError}\" thrown in cline/cline.","triggerScenarios":"Thrown at sdk/packages/core/src/extensions/config/user-instruction-config-loader.ts:294 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"491b30b806fdb8c93513f821f2b87d63a61542f5","analyzedAt":"2026-08-25T13:45:22.367Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}