Clean Crate Skills

2026-08-30 浏览 (1)


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

你可能感兴趣的文章

/crate-info

/docs Command

/skill-index

Create llms.txt from URLs

/rust-features

Achievement System

Update Crate Skill

/unsafe-check

AI Daily Report

Sync Crate Skills

  • 所属分类: AI
  • 本文标签: rust
  • 版权声明: 本文链接 https://seaxiang.com/blog/SocRQ182