{"record":{"id":"dc7f3bc2d2b8017c","repo":"Hmbown/CodeWhale","slug":"skill-name-is-not-installed-at","errorCode":null,"errorMessage":"skill '{name}' is not installed at {}","messagePattern":"skill '(.+?)' is not installed at (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/skills/install.rs","lineNumber":509,"sourceCode":"            }\n        }\n        InstallOutcome::NeedsApproval(_) | InstallOutcome::NetworkDenied(_) => {}\n    }\n    match outcome {\n        InstallOutcome::Installed(installed) => Ok(UpdateResult::Updated(installed)),\n        InstallOutcome::NeedsApproval(host) => Ok(UpdateResult::NeedsApproval(host)),\n        InstallOutcome::NetworkDenied(host) => Ok(UpdateResult::NetworkDenied(host)),\n    }\n}\n\n/// Remove a community-installed skill.\n///\n/// Refuses to touch any directory that doesn't carry the `.installed-from`\n/// marker — that's our cue that it's user-owned and not a system skill.\npub fn uninstall(name: &str, skills_dir: &Path) -> Result<()> {\n    let target = skill_target_path(name, skills_dir)?;\n    if !target.exists() {\n        bail!(\"skill '{name}' is not installed at {}\", target.display());\n    }\n    ensure_target_within_skills_dir(&target, skills_dir)?;\n    if !target.join(INSTALLED_FROM_MARKER).exists() {\n        return Err(InstallError::NotInstalledHere(name.to_string()).into());\n    }\n    fs::remove_dir_all(&target)\n        .with_context(|| format!(\"failed to remove {}\", target.display()))?;\n    Ok(())\n}\n\n/// Mark a community-installed skill as trusted, binding the marker to the\n/// current package content digest (schema v2).\n///\n/// Refuses to mark system skills (no `.installed-from`) so the bundled\n/// `skill-creator` doesn't accidentally inherit elevated tool privileges.\n#[cfg(test)]\npub fn trust(name: &str, skills_dir: &Path) -> Result<()> {\n    let target = skill_target_path(name, skills_dir)?;","sourceCodeStart":491,"sourceCodeEnd":527,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/skills/install.rs#L491-L527","documentation":"`uninstall` verifies the skill directory actually exists at `skills_dir/<name>` before deleting. If nothing is at that path there is nothing to remove, so it errors instead of silently succeeding. Note this is the plain path-missing case; a directory that exists but lacks the `.installed-from` marker raises `NotInstalledHere` instead.","triggerScenarios":"Calling `uninstall(name, skills_dir)` where `skills_dir.join(name)` does not exist — wrong skills dir, skill never installed, already removed, or name typo.","commonSituations":"Uninstalling a bundled/system skill by name when only community skills live in `skills_dir`; running uninstall twice; pointing at the wrong `--skills-dir` in scripts.","solutions":["Check `skills_dir.join(name).exists()` before calling, or treat this as a no-op","Pass the same `skills_dir` used at install time","Verify the skill name spelling"],"exampleFix":"// before\nuninstall(\"my-skill\", &skills_dir)?; // panics/errors if absent\n// after\nif skills_dir.join(\"my-skill\").exists() {\n    uninstall(\"my-skill\", &skills_dir)?;\n}","handlingStrategy":"validation","validationCode":"if !skills_dir.join(name).exists() { return Ok(()); } // treat as already uninstalled","typeGuard":null,"tryCatchPattern":"if let Err(e) = uninstall(name, &skills_dir) {\n    if !e.to_string().contains(\"is not installed\") { return Err(e); }\n}","preventionTips":["Check existence before destructive calls","Keep the skills_dir path in one shared constant","List installed skills before uninstalling"],"tags":["skills","uninstall","filesystem"],"backgroundTag":"file-not-found","analyzedSha":"73e0f67d83c59909b571efdfc88c4bc28c309cb1","analyzedAt":"2026-09-22T01:30:00.501Z","contentChangedAt":"2026-09-22T01:30:00.501Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}