clean/SKILL.md
C盘空间清理。快速分析磁盘占用,一键清理缓存和临时文件。触发词:'/clean'、'清理C盘'、'磁盘空间不够'。
npx skillsauth add atxinsky/skills cleanInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
快速分析 + 清理 C 盘空间,不浪费 token。
收到 /clean 后,直接执行脚本:
bash ~/.claude/skills/clean/clean.sh
脚本会自动:
然后根据用户指令,执行对应清理命令:
| 项目 | 命令 | 风险 |
|------|------|------|
| pip 缓存 | pip cache purge | 低 |
| npm 缓存 | npm cache clean --force | 低 |
| Temp 临时文件 | 脚本自动清理 | 低 |
| Docker 无用镜像/缓存 | docker system prune -a --volumes -f | 中 |
| Docker vhdx 压缩 | 需关闭 Docker 后手动执行 diskpart | 高 |
| Chrome 缓存 | 用户在 Chrome 设置中清除 | 低 |
Docker prune 后 vhdx 不会自动缩小,需要:
wsl --shutdown
Optimize-VHD -Path "$env:LOCALAPPDATA\Docker\wsl\disk\docker_data.vhdx" -Mode Full
如果没有 Hyper-V,用 diskpart:
wsl --shutdown
diskpart
# 在 diskpart 中:
select vdisk file="C:\Users\atxin\AppData\Local\Docker\wsl\disk\docker_data.vhdx"
attach vdisk readonly
compact vdisk
detach vdisk
exit
development
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.
testing
Use when creating new skills, editing existing skills, or verifying skills work before deployment
development
Use when you have a spec or requirements for a multi-step task, before touching code
documentation
Create detailed implementation plan with bite-sized tasks