zed-industries/zed · error
Skill name must contain only lowercase letters, numbers, and
Error message
Skill name must contain only lowercase letters, numbers, and hyphens
What it means
Validation in skill_creator's name validation: the skill name contains characters outside lowercase letters, digits, and hyphens (e.g. spaces, underscores, uppercase), so it cannot be used as a skill identifier.
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
- Use only lowercase letters, numbers, and hyphens in the name
- Auto-slugify the name as the user types
- Display the allowed character set in the validation error
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/155adf84957f719e.
Report an issue: GitHub.