Skip to content
Development
Command

/clean-crate-skills

Remove local dynamic crate skills

From plugin
rust-skills
1.4k21 skills11 agents21 commands1 hook
+1
Install
> /plugin marketplace add zhanghandong/rust-skills
> /plugin install rust-skills@rust-skills

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/clean-crate-skills

Context preview

What this command does when you run it.

Remove local dynamic crate skills

Command definition

clean-crate-skills.md
description: Remove local dynamic crate skills
argument-hint: [crate_names...] [--all]

Clean Crate Skills

Remove dynamically generated crate skills from the local skills directory.

Arguments: $ARGUMENTS

  • `crate_names`: Specific crates to remove (space-separated)
  • `--all`: Remove all local crate skills

---

Instructions

1. List Current Skills

ls -la ~/.claude/skills/

Display current skills:

Local crate skills:
- tokio (1.40.0) - 2025-01-15
- serde (1.0.215) - 2025-01-14
- axum (0.7.9) - 2025-01-13

2. Handle Arguments

**If specific crates provided:**

# Remove specified crate skill directories
rm -rf ~/.claude/skills/{crate_name}
rm -rf ~/.claude/skills/{crate_name}-*  # Remove sub-skills (e.g., tokio-task, tokio-sync)

**If `--all` flag:**

# Remove all crate skills (be careful not to remove non-crate skills)
rm -rf ~/.claude/skills/{crate_name}*

**If no arguments:** Use AskUserQuestion to ask which crates to remove:

Which crate skills do you want to remove?
- tokio
- serde
- axum
- All of the above

3. Confirm Deletion

Before removing, confirm with user:

This will remove skills for: tokio, serde
Continue? (yes/no)

4. Report Results

Cleaned skills:
- tokio - removed
- serde - removed

Remaining skills: axum

---

Example Usage

# List and interactively select skills to remove
/clean-crate-skills

# Remove specific crate skills
/clean-crate-skills tokio serde

# Remove all crate skills
/clean-crate-skills --all

---

Safety Notes

  • This only removes skills from `~/.claude/skills/`
  • Does not affect the rust-skills repository
  • Skills can be regenerated with `/sync-crate-skills`
Read more
Ships withrust-skills

AI-powered Rust development assistant with meta-cognition framework

Get the whole plugin