{"record":{"id":"b2129e8f4de2ed6e","repo":"zed-industries/zed","slug":"skill-md-file-exceeds-maximum-size-of-kb","errorCode":null,"errorMessage":"SKILL.md file exceeds maximum size of {}KB","messagePattern":"SKILL\\.md file exceeds maximum size of (.+?)KB","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/agent_skills/agent_skills.rs","lineNumber":294,"sourceCode":"        .to_path_buf();\n\n    Ok(Skill {\n        name: metadata.name,\n        description: metadata.description,\n        source,\n        directory_path,\n        skill_file_path: skill_file_path.to_path_buf(),\n        load_warnings,\n        disable_model_invocation: metadata.disable_model_invocation,\n        embedded_body: None,\n    })\n}\n\n/// Extract the YAML frontmatter and body from a SKILL.md file without\n/// validating the metadata fields.\npub fn extract_skill_frontmatter(content: &str) -> Result<(SkillMetadata, &str)> {\n    if content.len() > MAX_SKILL_FILE_SIZE {\n        anyhow::bail!(\n            \"SKILL.md file exceeds maximum size of {}KB\",\n            MAX_SKILL_FILE_SIZE / 1024\n        );\n    }\n\n    extract_frontmatter(content)\n}\n\n/// Parse and validate the YAML frontmatter and body from a SKILL.md file.\npub fn parse_skill_file_content(content: &str) -> Result<(SkillMetadata, &str)> {\n    let (metadata, body) = extract_skill_frontmatter(content)?;\n\n    validate_name(&metadata.name).map_err(anyhow::Error::msg)?;\n    validate_description(&metadata.description).map_err(anyhow::Error::msg)?;\n\n    Ok((metadata, body))\n}\n","sourceCodeStart":276,"sourceCodeEnd":312,"githubUrl":"https://github.com/zed-industries/zed/blob/bc538def4545534201bbfcac4e95ac34ea6501b6/crates/agent_skills/agent_skills.rs#L276-L312","documentation":"Error \"SKILL.md file exceeds maximum size of {}KB\" thrown in zed-industries/zed.","triggerScenarios":"Thrown at crates/agent_skills/agent_skills.rs: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":"bc538def4545534201bbfcac4e95ac34ea6501b6","analyzedAt":"2026-08-16T07:30:46.435Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}