بنقرة واحدة
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.