skills-check-remove
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "skills-check-remove" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-841ab154cb32a53f1831f8c15d1804a739ab36b723e629cae347371c363a094f. Verify the upstream source and version against https://skillhub.cn/skills/user_70775cd1/skills-check-remove before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
A local Skill audit and cleanup tool: scans and inventories installed skills, shows usage details (install time, source, last used time, days unused), provides color-coded deletion recommendations and analyzes skill dependencies; deletion actions are performed only on explicit user command, move items to the recycle bin, and require a second confirmation if dependencies exist.
Introduction source: third_party · user_70775cd1 · 2.0.3 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: skill-audit
description: 本地 Skill 审计与清理工具。当用户要求扫描、盘点、整理、审计本地已安装的 skill,查看 skill 使用情况(安装时间、安装来源、最后使用时间、已多少天未使用),获取带颜色状态的删除建议(🟢保留 / 🟠可删除 / 🔴建议删除),分析 skill 之间的依赖关系,或删除、卸载、清理不需要的 skill 时使用。触发词包括"扫描skill""skill使用情况""清理skill""删除不用的skill""卸载skill""整理我的skill""skill审计""哪些skill很久没用""skill依赖分析""audit my skills""clean up skills"等。用户触发本技能后立即执行本地全量扫描并输出审计表格;未经用户明确下发的删除指令,绝不执行任何删除操作;所有删除一律移入 Windows 回收站,且存在依赖关联时必须二次确认。
agent_created: trueSkill Audit — 本地 Skill 审计与清理
对本地已安装的 WorkBuddy skill 做全量盘点:名称、主要功能、安装时间、安装来源、最后使用时间、未使用天数、删除建议(彩色状态)、skill 间依赖关系。扫描只读;删除必须经用户明确指令并确认,且一律移入回收站。
流程一:触发即扫描(默认动作)
用户触发本技能后,立即执行扫描,不要先寒暄或反问。
-
打印开始横幅:
🔍 开始本地 Skill 审计扫描...,并告知将依次执行:目录扫描 → 元数据解析 → 使用记录匹配 → 依赖分析 → 生成报告。 -
确定本 skill 所在目录(即加载本技能时显示的 Base directory,记为
<SKILL_DIR>)。 -
使用环境中列出的 managed Python 运行扫描脚本(若无则回退
python):"<managed-python>" "<SKILL_DIR>\scripts\scan.py" --project-dir "<当前工作区根目录>"脚本自带实时进度输出(
[1/5]...[5/5]及每个 skill 的检查行),将输出原样呈现给用户,让用户看到检查动作。 -
脚本会输出 Markdown 审计表格。完整转发表格,并在表格后附上:
- 图例与两轨判定规则(见「状态判定规则」)
- 数据口径说明(见「数据源与限制」)
- 一句引导:如需删除,请明确点名 skill 或说"删除所有🔴/🟠"。
-
脚本同时在
~/.workbuddy/skills-audit-history/保存了 JSON 快照,后续删除流程用最新快照做依赖核查。
流程二:删除(必须严格按序执行)
触发条件:用户明确指令,如"删除 xxx""删掉 a 和 b""删除所有🔴"。扫描表格本身不构成删除授权。
-
列出待删清单:从最新快照(
~/.workbuddy/skills-audit-history/中时间最新的 JSON)取每个待删 skill 的名称、路径、大小、状态、依赖,以表格展示。 -
依赖核查(三种情形之一命中即视为"有关联"):
- 该 skill 的
deps非空(它依赖别的 skill); - 快照中任何其他 skill 的
deps包含该 skill 名(它被别的 skill 依赖); - 该 skill 内含子 skill(
nested非空,删除会连带删除子 skill)。
- 该 skill 的
-
确认:
- 无关联:向用户确认一次(明确列出名称与路径)。
- 有关联:第一次确认后,必须再次明确警告——列出受影响的关联 skill 名称及影响方向("X 被 Y 依赖"/"删除 X 将连带删除 N 个子 skill"),要求用户第二次确认(如"确认删除")。两次确认都收到后才执行。
-
硬性保护(无论用户如何指令都拒绝,并说明原因):
skill-audit自身;- 内置 skill(路径含
builtin-skills或位于应用安装目录); - 不在扫描结果中的路径。
-
执行删除:每批最多 10 个,使用 PowerShell 工具调用回收站脚本(不要从 bash/Git Bash 转调
powershell.exe,会被安全策略拦截;不要在 PowerShell 工具中直接&调用 .ps1,系统执行策略禁止运行脚本文件,必须加-ExecutionPolicy Bypass):powershell -NoProfile -ExecutionPolicy Bypass -File "<SKILL_DIR>\scripts\remove-skills.ps1" -Paths "路径1;路径2"多个路径用英文分号连接为一个字符串传入。脚本对每个路径输出
OK/REFUSED/MISSING/FAIL。脚本内置路径护栏,只允许删除.workbuddy\skills\下的目录。 -
输出完整删除列表:表格列出每个 skill 的名称、原路径、释放空间、结果(成功/失败及原因),并提示:已移入回收站,误删可从回收站恢复。
-
建议用户可再次触发本技能重新扫描验证。
状态判定规则(两轨制)
使用过的 skill(usage-log 有记录,按最后使用日期起算):
| 未使用天数 | 状态 | 含义 |
|---|---|---|
| < 30 天 | 🟢 | 保留 |
| 30 ~ 89 天 | 🟠 | 可以删除 |
| ≥ 90 天 | 🔴 | 建议删除 |
从未使用的 skill(usage-log 无记录,按安装日期起算,阈值更严格):
| 未使用天数 | 状态 | 含义 |
|---|---|---|
| < 14 天 | 🟢 | 保留(新装观察期) |
| ≥ 14 天 | 🔴 | 建议删除(状态显示为"建议删除·未使用") |
表格中的「使用次数」列取自 usage-log 的 recentDates 长度,0 即从未使用——它是区分某行适用哪条判定轨道的直观指示器。
数据源与限制(回答用户疑问时如实说明)
- 最后使用时间:来自官方
~/.workbuddy/usage-log.json(该日志约自 2026-07-03 起记录);无记录的 skill 显示"从未使用"。 - 安装时间:取目录的文件系统创建时间;skill 若被整体重装/迁移,该时间会被刷新。
- 安装来源:启发式推断(
__skillhub后缀或_skillhub_meta.json→ SkillHub 市场;_knot_meta.json→ Knot 市场;frontmatter 含agent_created: true→ 本机自建;其余 → 手动/第三方安装),可能有偏差。 - 依赖列:启发式文本匹配(扫描 skill 目录内文本是否提及其他已安装 skill 的名字),可能误报或漏报,标注为"疑似"。
- 扫描范围:用户级
~/.workbuddy/skills/+ 当前工作区.workbuddy/skills/;内置 skill 不在范围内。
Current listing version
2.0.3
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供本地 Skill 全量扫描、使用情况统计、依赖分析与安全清理功能
- 解决用户管理大量 Skill 时的实际痛点,具有明确实用价值
Highlights
- 触发词覆盖全面,包含中英文多种变体,边界清晰
- 能有效区分于其他 Skill,降低误触风险
Highlights
- 文档结构清晰,分扫描与删除两大流程,步骤明确
- 包含端到端示例与完整 frontmatter,符合规范要求
Highlights
- 工具来源明确,参数正确,覆盖主要异常场景
- 删除操作有双重确认机制,内置路径护栏与回收站保护
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Administrator or elevated privileges
Elevate only when necessary. Keep protection and certificate validation enabled and avoid broad system access.
Mentioned in main document · lines 46, 49
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.