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.

13 stars

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

$curl -o ~/.claude/skills/auto-fix/SKILL.md --create-dirs "https://raw.githubusercontent.com/tae0y/python-project-template/main/.claude/skills/auto-fix/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/auto-fix/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How auto-fix Compares

Feature / Agentauto-fixStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/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

Related Skills

We are still matching the closest adjacent skills for this page. In the meantime, continue through the full directory.