一键导入
ruff-fix
Run ruff linter and formatter, auto-fix what it can, and report only unfixable issues. Use when the user asks to lint, format, or fix Python code style.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run ruff linter and formatter, auto-fix what it can, and report only unfixable issues. Use when the user asks to lint, format, or fix Python code style.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Branch management, PR creation, rebase, and merge workflows. Use when the user asks to create a branch, open a PR, rebase, squash, cherry-pick, or manage git workflow steps.
Observal admin operations including user management, enterprise settings, submission review queue, security events, audit logs, and SSO configuration. Use when the user needs to manage users, approve or reject submissions, view security events, or configure SAML/SCIM.
Advanced Observal operations including session reconciliation, CLI upgrades and downgrades, complete uninstallation, and local fallback mode for offline use. Use when the user wants to reconcile sessions, upgrade or downgrade the CLI, uninstall Observal, or write agent configs locally when the server is unreachable.
Core Observal CLI operations: pull agents into your harness, scan installed components, diagnose and patch harness configs, authenticate, manage CLI settings, and discuss agent insights. Use when the user wants to install an agent, check setup, login, configure the CLI, or ask how an agent is doing.
Automate browser interactions, test web pages and work with Playwright tests.
Review a PR diff with ripgrep for semantic violations (em-dashes, PEP8, broad excepts, CI failures). Classifies as BLOCKER or NIT. Pass --deeper for AI-powered scrutiny.
| name | ruff-fix |
| description | Run ruff linter and formatter, auto-fix what it can, and report only unfixable issues. Use when the user asks to lint, format, or fix Python code style. |
| version | 1.0.0 |
| task_type | lint |
Run ruff to lint and format Python code. Auto-fixes everything fixable, then reports only what remains.
pyproject.toml or ruff.toml lives).--fix to auto-apply safe fixes.# Auto-fix all safe fixes
ruff check --fix .
# Format
ruff format .
# Show remaining issues (unfixable only)
ruff check . 2>&1 | head -50
If everything passes, report "clean, no issues."
ruff check .
ruff format --check .
ruff check --fix <file>
ruff format <file>
When ruff fixes are needed after a commit has already been made:
ruff check --fix .
ruff format .
git add -A
git commit --amend --no-edit
ruff check . --statistics
# Fix only import sorting
ruff check --fix --select I .
# Fix only unused imports
ruff check --fix --select F401 .
# Fix only formatting issues
ruff format .
ruff check exits 0: all cleanruff check --fix still shows errors: those need manual fixes, show them to the userAfter any Python file edit:
ruff check --fix . and ruff format .git add -A && git commit --amend --no-edit