zed-industries/zed · error
SKILL.md file exceeds maximum size of {}KB
Error message
SKILL.md file exceeds maximum size of {}KB What it means
Error "SKILL.md file exceeds maximum size of {}KB" thrown in zed-industries/zed.
Source
Thrown at crates/agent_skills/agent_skills.rs:294
.to_path_buf();
Ok(Skill {
name: metadata.name,
description: metadata.description,
source,
directory_path,
skill_file_path: skill_file_path.to_path_buf(),
load_warnings,
disable_model_invocation: metadata.disable_model_invocation,
embedded_body: None,
})
}
/// Extract the YAML frontmatter and body from a SKILL.md file without
/// validating the metadata fields.
pub fn extract_skill_frontmatter(content: &str) -> Result<(SkillMetadata, &str)> {
if content.len() > MAX_SKILL_FILE_SIZE {
anyhow::bail!(
"SKILL.md file exceeds maximum size of {}KB",
MAX_SKILL_FILE_SIZE / 1024
);
}
extract_frontmatter(content)
}
/// Parse and validate the YAML frontmatter and body from a SKILL.md file.
pub fn parse_skill_file_content(content: &str) -> Result<(SkillMetadata, &str)> {
let (metadata, body) = extract_skill_frontmatter(content)?;
validate_name(&metadata.name).map_err(anyhow::Error::msg)?;
validate_description(&metadata.description).map_err(anyhow::Error::msg)?;
Ok((metadata, body))
}
View on GitHub (pinned to bc538def45)
When it happens
Trigger: Thrown at crates/agent_skills/agent_skills.rs:294 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@bc538def45 (2026-08-16).
Data as JSON: /api/errors/b2129e8f4de2ed6e.
Report an issue: GitHub.