Skip to content

oedokumaci/gale-shapley-algorithm / .agents/skills/fix

Run code formatting and linting with auto-fix using ruff via taskipy. Use when the user asks to fix code style, format code, lint, or clean up their code.

Fix Skill

Auto-format and lint code using ruff via taskipy.

Commands

# Format + lint with auto-fix (recommended)
uvx --from taskipy task fix

# Format only
uvx --from taskipy task format

# Lint with auto-fix only
uvx --from taskipy task lint

# Check formatting without changes (CI mode)
uvx --from taskipy task format_check

# Check linting without changes (CI mode)
uvx --from taskipy task lint_check

What Gets Fixed

Formatting (ruff format):

  • Consistent indentation
  • Line length (120 chars max)
  • Quote style normalization
  • Trailing whitespace

Linting (ruff check --fix):

  • Import sorting and organization
  • Unused imports removal
  • Simple code improvements
  • PEP 8 compliance

Process

  1. Run uvx --from taskipy task fix
  2. Review any remaining issues that couldn't be auto-fixed
  3. Manually address unfixable issues
  4. Run again to verify clean output

Configuration

Ruff configuration is in config/ruff.toml:

  • Line length: 120
  • Target Python version matches project
  • Google-style docstrings
  • Absolute imports only
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 319kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 319kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 319kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 319kUpdated Claude CodeCodexVerifiedInstall