用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill polish命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | polish |
| description | Remove AI slop, comments, and lint errors from the current branch. Use when this capability is needed. |
| metadata | {"author":"emirrtopaloglu"} |
Remove AI slop and lint errors from the current branch. Autonomous Mode: No confirmation required for cleanup tasks.
All technical agents can invoke this skill:
@backend-architect@frontend-architect@mobile-architect@qa-engineergit diff main...HEAD.// ... existing code ... markersas any type bypasses (unless absolutely necessary)console.log (unless for intentional logging)git status
Error Handling:
git init first."git diff --name-only main...HEAD
Error Handling:
main branch doesn't exist: Try master or developGroup files by type:
.js, .ts, .jsx, .tsx.pyFor each file:
Process files in batches of 5 to avoid overwhelming the system.
JavaScript/TypeScript:
# Get changed JS/TS files
CHANGED_JS_FILES=$(git diff --name-only main...HEAD 2>/dev/null | grep -E '\.(js|ts|jsx|tsx)$' | tr '\n' ' ')
if [ -n "$CHANGED_JS_FILES" ] && [ -f "package.json" ]; then
# Try ESLint
if npm list eslint >/dev/null 2>&1; then
npx eslint --fix $CHANGED_JS_FILES
fi
# Try TypeScript
if [ -f "tsconfig.json" ]; then
npx tsc --noEmit
fi
fi
Python:
# Get changed Python files
CHANGED_PY_FILES=$(git diff --name-only main...HEAD 2>/dev/null | grep -E '\.py$' | tr '\n' ' ')
if [ -n "$CHANGED_PY_FILES" ]; then
# Try Black (formatter)
if command -v black >/dev/null 2>&1; then
black $CHANGED_PY_FILES
fi
# Try Ruff (linter)
if command -v ruff >/dev/null 2>&1; then
ruff check --fix $CHANGED_PY_FILES
fi
fi
Error Handling:
# Get all changed files for formatting
CHANGED_FILES=$(git diff --name-only main...HEAD 2>/dev/null | tr '\n' ' ')
if [ -n "$CHANGED_FILES" ] && npm list prettier >/dev/null 2>&1; then
npx prettier --write $CHANGED_FILES
fi
Success:
✅ Polish Complete!
📊 Summary:
- Files processed: 12
- Slop removed: 23 instances
- Lint errors fixed: 7
- Type errors: 0
✨ Branch is clean and ready for review!
➡️ Next Steps:
1. Review changes: git diff
2. Commit: git add . && git commit -m "Polish: Remove slop and fix lint"
3. Ship it: /ship-it
With Warnings:
⚠️ Polish Complete (with warnings)
📊 Summary:
- Files processed: 12
- Slop removed: 23 instances
- Lint errors fixed: 7
- Type errors: 3 remaining
❌ Type Errors:
1. src/utils.ts:45 - Type 'string | undefined' is not assignable to type 'string'
2. src/api.ts:78 - Property 'id' does not exist on type 'User'
3. src/components/Form.tsx:120 - 'onClick' is missing in type 'ButtonProps'
➡️ Action Required:
Fix type errors manually before committing.
Not a git repo:
No changes detected:
Base branch not found:
Linter/Formatter not installed:
Linter fails:
File read/write errors:
No slop found:
Converted and distributed by TomeVault — claim your Tome and manage your conversions.