スキル一覧に戻る
jurabek

python-analyzer

by jurabek

Golang prompts for Claude Code and Cursor

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

SKILL.md


name: python-analyzer description: Format and analyze Python code using ruff (formatting/linting) and ty (static type checking). Use when the user asks to format Python code, run linting, check types, fix code style issues, or analyze Python code quality.

Python Code Analyzer

Format and analyze Python code using ruff and ty.

Tools

  • ruff: Fast Python linter and formatter (replaces black, isort, flake8)
  • ty: Static type checker for Python

Workflow

1. Format Code

Format Python files with ruff:

# Format single file
ruff format path/to/file.py

# Format directory
ruff format .

# Check formatting without applying changes
ruff format --check .

2. Lint Code

Run linter to find issues:

# Lint and show issues
ruff check .

# Auto-fix fixable issues
ruff check --fix .

# Show all fixable issues
ruff check --fix --unsafe-fixes .

3. Type Check

Run static type analysis with ty:

# Check types in current directory
ty check .

# Check specific file
ty check path/to/file.py

Full Analysis Command

Run complete analysis (format + lint + type check):

ruff format . && ruff check --fix . && ty check .

Common Issues and Fixes

Ruff

  • Import sorting: Auto-fixed with ruff check --fix
  • Unused imports: Auto-fixed with ruff check --fix
  • Line length: Configure in pyproject.toml under [tool.ruff]

Ty

  • Missing type annotations: Add type hints to function signatures
  • Type mismatches: Review and correct variable/return types
  • Import errors: Ensure all dependencies are installed

Configuration

Both tools read from pyproject.toml:

[tool.ruff]
line-length = 88
target-version = "py311"

[tool.ruff.lint]
select = ["E", "F", "I", "UP"]

[tool.ty]
python-version = "3.11"

スコア

総合スコア

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

レビュー

💬

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