zed-industries/zed · error

Skill description must be at most {MAX_SKILL_DESCRIPTION_LEN

Error message

Skill description must be at most {MAX_SKILL_DESCRIPTION_LEN} bytes

What it means

Skill creator description validation rejects descriptions whose byte length exceeds MAX_SKILL_DESCRIPTION_LEN bytes; the provided description is too large (measured in bytes, so multibyte characters count more).

Source

Thrown at crates/settings_ui/src/pages/skill_creator.rs:406

        self.body_editor.read(cx).text(cx)
    }

    fn current_url(&self, cx: &App) -> String {
        self.url_editor.read(cx).text(cx)
    }

    fn recompute_name_error(&mut self, cx: &mut Context<Self>) {
        let name = self.current_name(cx);
        let error = validate_name(&name).err();
        self.name_error = error;
        self.name_editor
            .update(cx, |field, cx| field.set_error(error, cx));
    }

    fn recompute_description_error(&mut self, cx: &mut Context<Self>) {
        let description = self.current_description(cx);
        self.description_length = description.len();
        let error = validate_description(&description).err();
        self.description_error = error;
        self.description_editor
            .update(cx, |field, cx| field.set_error(error, cx));
    }

    fn recompute_body_error(&mut self, cx: &App) {
        let body = self.current_body(cx);
        self.body_error = if body.trim().is_empty() {
            Some("Body is required.")
        } else {
            None
        };
    }

    fn is_valid(&self, cx: &App) -> bool {
        validate_name(&self.current_name(cx)).is_ok()
            && validate_description(&self.current_description(cx)).is_ok()
            && !self.current_body(cx).trim().is_empty()

View on GitHub (pinned to f4178619ac)

Solutions

  1. Shorten the description below the byte limit
  2. Show a live byte counter in the UI
  3. Be mindful that non-ASCII characters use multiple bytes
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at crates/settings_ui/src/pages/skill_creator.rs:406 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20). Data as JSON: /api/errors/88778fad050205cd. Report an issue: GitHub.