スキル一覧に戻る
ramtinJ95

python-lint

by ramtinJ95

Manually managed dotfiles

0🍴 0📅 2026年1月18日
GitHubで見るManusで実行

SKILL.md


name: python-lint description: Validate and auto-fix Python linting, formatting, and type issues using ruff and ty

Python Lint Skill

Use this skill to validate and fix Python code quality issues using ruff (linting/formatting) and ty (type checking).

Scope

Only operate on Python files that have been changed. Get the list of changed files with:

# Get both staged and unstaged changed Python files
git diff --name-only --diff-filter=d HEAD -- '*.py'

If there are no changed Python files, report that and stop.

Step 1: Run Ruff Check (Linting)

First, check for linting issues on the changed files:

ruff check <files>

If issues are found:

  1. Report the issues to the user
  2. Ask if they want to auto-fix with ruff check --fix <files>
  3. If approved, run the fix command

Step 2: Run Ruff Format (Formatting)

Check formatting issues:

ruff format --check <files>

If formatting issues are found:

  1. Report which files need formatting
  2. Ask if they want to auto-fix with ruff format <files>
  3. If approved, run the format command

Step 3: Run ty (Type Checking)

Run type checking on the changed files:

ty check <files>

If type errors are found:

  1. Report all type errors to the user
  2. Ask if they want you to attempt manual fixes
  3. If approved, analyze and fix the type errors

Output Format

After each step, provide a summary:

## Linting (ruff check)
- Files checked: X
- Issues found: Y
- Issues fixed: Z

## Formatting (ruff format)
- Files checked: X
- Files reformatted: Y

## Type Checking (ty)
- Files checked: X
- Errors found: Y
- Errors fixed: Z

Important Notes

  • Always run checks before fixes to show the user what will change
  • Ask for confirmation before each auto-fix operation
  • If a tool is not installed, report it and skip that step
  • Do not commit changes - let the user decide when to commit

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です