auto-fix
Auto-fix lint and formatting issues in Python code using ruff. Use when you want to apply automatic code fixes. Does not fix type errors or security issues.
Best use case
auto-fix is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Auto-fix lint and formatting issues in Python code using ruff. Use when you want to apply automatic code fixes. Does not fix type errors or security issues.
Teams using auto-fix should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/auto-fix/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How auto-fix Compares
| Feature / Agent | auto-fix | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Auto-fix lint and formatting issues in Python code using ruff. Use when you want to apply automatic code fixes. Does not fix type errors or security issues.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Auto-Fix Lint and Format Apply automatic fixes for lint and formatting issues only. Type errors and security issues require manual review. ## Execution Run in order: ```bash # 1. Fix lint issues uv run ruff check --fix src/ tests/ # 2. Apply formatting uv run ruff format src/ tests/ ``` ## Output Format ``` ## Auto-Fix Results ### Ruff Lint - Issues fixed: [count] - Files modified: [file list] - Remaining issues: [count] (require manual fix) ### Ruff Format - Files reformatted: [count] - Key files changed: [file list] ``` After fixing: - If files were modified → "Review changes, then `git add` and record with `worklog done [description]`" - If issues remain → "Run `check` skill to see remaining details" - If all resolved → `All auto-fixes applied ✓` ## Notes - Fixes **lint and format only** — not type errors or security issues - Run `git status` first to confirm baseline before applying changes