zed-industries/zed · error

Skill name cannot be empty

Error message

Skill name cannot be empty

What it means

Returned by validate_name during the skill creator's name recompute when the trimmed name is empty. An empty name cannot form the <skills_dir>/<name>/SKILL.md directory, so the field error is set and saving is blocked until a name is typed.

Source

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

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

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

    fn current_body(&self, cx: &App) -> String {
        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.chars().count();
        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.")

View on GitHub (pinned to 9d272b0363)

Solutions

  1. Remove leading/trailing hyphens from the skill name
  2. Auto-trim hyphens during input normalization
  3. Show the validation error inline under the field
Defensive patterns

Strategy: validation

When it happens

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

Common situations: See trigger scenarios.


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