一键导入
cmd-refactor-clean
Remove dead code, unused exports, and stale dependencies via the refactor-cleaner agent.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Remove dead code, unused exports, and stale dependencies via the refactor-cleaner agent.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Scan installed skills to extract cross-cutting principles and distill them into rules — append, revise, or create new rule files.
Audit all installed OpenClaw skills for quality: content overlap, freshness, and uniqueness. Supports Quick Scan (changed only) and Full Stocktake modes.
Cluster MEMORY.md entries by theme and optionally generate SKILL.md drafts.
Export MEMORY.md to a timestamped markdown file for sharing or backup.
Import memory entries from a markdown export file, merging with MEMORY.md without duplicating.
Show current workspace memory: MEMORY.md contents, pending recalls, and index status.
| name | cmd_refactor_clean |
| description | Remove dead code, unused exports, and stale dependencies via the refactor-cleaner agent. |
| user-invocable | true |
| origin | openclaw-mas |
| argument-hint | <project-path> [scope] |
Delegate to the refactor-cleaner agent.
Include in the task payload:
First, reply to the user briefly to confirm you are delegating to refactor-cleaner.
Then call sessions_spawn:
{
"agentId": "refactor-cleaner",
"sessionKey": "refactor-cleaner",
"task": "<user's full request and all relevant context — the agent cannot see this conversation>",
"runTimeoutSeconds": 0
}
After sessions_spawn returns, relay the result to the user. Do not output anything after the spawn call until the result arrives.