{"record":{"id":"df95fb9cc7bdc968","repo":"xai-org/grok-build","slug":"skill-not-found","errorCode":null,"errorMessage":"Skill '{}' not found","messagePattern":"Skill '(.+?)' not found","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/codegen/xai-grok-shell/src/extensions/skills.rs","lineNumber":500,"sourceCode":"            msg.push_str(&format!(\"\\nTotal skills loaded: {}\", total_skills));\n\n            super::to_ext_response(Ok(SkillsConfigResponse {\n                paths,\n                ignore,\n                total_skills,\n                message: msg,\n                skills,\n            }))\n        }\n\n        \"x.ai/skills/toggle\" => {\n            let req: SkillsToggleRequest = serde_json::from_str(args.params.get())?;\n            let cwd = req.cwd.as_deref().unwrap_or(\".\");\n\n            // Validate the skill name exists before modifying config.\n            let current_skills = reload_skills(cwd, plugin_registry, compat).await;\n            if !current_skills.iter().any(|s| s.name == req.name) {\n                return super::to_ext_response(Err::<SkillsListResponse, _>(anyhow::anyhow!(\n                    \"Skill '{}' not found\",\n                    req.name\n                )));\n            }\n\n            let name = req.name.clone();\n            let enabled = req.enabled;\n            if let Err(e) = cli_config::update_config(|cfg| {\n                if enabled {\n                    cfg.skills.disabled.retain(|d| d != &name);\n                } else if !cfg.skills.disabled.contains(&name) {\n                    cfg.skills.disabled.push(name.clone());\n                }\n            })\n            .await\n            {\n                return super::to_ext_response(Err::<SkillsListResponse, _>(anyhow::anyhow!(\n                    \"Failed to save config: {e}\"","sourceCodeStart":482,"sourceCodeEnd":518,"githubUrl":"https://github.com/xai-org/grok-build/blob/bc7f02eddd3d84085849dc19ed216f11c23b0571/crates/codegen/xai-grok-shell/src/extensions/skills.rs#L482-L518","documentation":"Error \"Skill '{}' not found\" thrown in xai-org/grok-build.","triggerScenarios":"Thrown at crates/codegen/xai-grok-shell/src/extensions/skills.rs:500 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":"bc7f02eddd3d84085849dc19ed216f11c23b0571","analyzedAt":"2026-08-31T04:59:42.031Z","schemaVersion":2},"datasetVersion":"2026-08-31T09:17:48.483Z"}