- name
SKILL.md
技能檔案保留在發布者的儲存庫中。
在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add omagents/omagents --skill remove-ai-slops -a cursor -y在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add omagents/omagents --skill remove-ai-slops -a claude-code -y在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add omagents/omagents --skill remove-ai-slops -a codex -y在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add omagents/omagents --skill remove-ai-slops -a grok -y在 Grok Bot 聊天中傳送複製的訊息。Bot 會從 GitHub 取得這個 SKILL.md,並加入你所有 Bot 共用的技能中。
Install this skill: https://github.com/omagents/omagents/tree/HEAD/packages/core/skills/remove-ai-slops來自發布者
Clean up common AI-generated code artifacts using a durable task queue. Each file is processed, verified, and marked complete before moving to the next.
Keep comments that explain why, not what.
Scan the codebase for files to process:
# Find all source files in the changed area (adjust extensions as needed)
glob "**/*.{py,ts,js,go,rs,java}"
Initialize the loop:
loop_engine.py init remove-ai-slops '[
{"file": "src/auth.py", "description": "Clean AI slops in auth module"},
{"file": "src/cache.py", "description": "Clean AI slops in cache module"},
{"file": "src/utils.ts", "description": "Clean AI slops in utils"}
]'
Repeat until next returns null:
Step 1: Get next task
loop_engine.py next remove-ai-slops
If output is null, go to Phase 3.
Step 2: Read the file and identify slops
Read the file, scan for the 7 patterns listed above. For each found slop, note the line number and what to change.
Step 3: Apply fixes
Edit the file to remove the identified slops.
Step 4: Verify
# Run linter (adjust for project)
ruff check <file> # Python
npx eslint <file> # JS/TS
# Run tests if available
npm test 2>/dev/null || pytest tests/ 2>/dev/null || true
Step 5: Record result
If verification passes:
loop_engine.py complete remove-ai-slops <id> "Removed N slops: 2 comments, 1 unused import"
If verification fails (tests broke):
loop_engine.py fail remove-ai-slops <id> "Test failure in test_auth.py"
The engine will allow up to 3 retries before marking the task as blocked.
loop_engine.py summary remove-ai-slops
Present the summary to the user. For any blocked tasks, show the error and suggest manual review.
Clean up AI-generated code artifacts using a durable loop workflow. Trigger when the user says 'clean AI code', 'remove slops', 'remove AI artifacts', or notices low-quality AI-generated code. Process
---name: remove-ai-slopsdescription: Clean up AI-generated code artifacts using a durable loop workflow. Trigger when the user says 'clean AI…---# packages/core/skills/remove-ai-slops/SKILL.md總覽
Clean up AI-generated code artifacts using a durable loop workflow. Trigger when the user says 'clean AI code', 'remove slops', 'remove AI artifacts', or notices low-quality AI-generated code. Processes files one by one with verification.
常見問題
從發布者下載 packages/core/skills/remove-ai-slops/SKILL.md,或複製路徑後開啟儲存庫。PlugMCP 只收錄這項技能,不代管檔案。
發布者將它存放在 https://github.com/omagents/omagents。
Claude、Cursor、Codex 和 Grok Build 可以讀取你從發布者儲存庫加入的 SKILL.md。在聊天中傳送技能的 GitHub 資料夾連結,Grok Bot 就會安裝它。