بنقرة واحدة
code-quality
Use for linting, formatting, and type checking with ruff, black, flake8, mypy.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use for linting, formatting, and type checking with ruff, black, flake8, mypy.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Enhance session checkpoints with git context and diff summaries. Use after completing significant work to enrich checkpoint.md files with repository state, recent commits, and code change summaries. Triggers include "enhance checkpoint", "update checkpoint with git", "add git context to checkpoint", or when finishing a multi-file change session.
Use for model training, hyperparameter tuning, and Modal GPU training.
Use when invoking training, evaluation, and dataset preparation via CLI. Provides all standard commands for this project.
Multi-perspective code analysis using three AI personas (RYAN, FLASH, SOCRATES) for comprehensive decision-making. Use when complex code decisions need analysis from multiple viewpoints, or when avoiding single-perspective blind spots is critical.
Use for authentication management, token validation, and credential troubleshooting.
Use for secrets management, credentials handling, and security best practices.
| name | code-quality |
| description | Use for linting, formatting, and type checking with ruff, black, flake8, mypy. |
This skill covers all code quality tools for Python projects.
# Check for issues
ruff check .
# Auto-fix issues
ruff check . --fix
# Fix specific rules
ruff check . --fix --select F,E
# Show rule explanations
ruff rule E501
# Format code
black .
# Check without modifying
black --check .
# Set line length
black --line-length=88 .
# Exclude directories
black --exclude "tests/" .
# Run flake8
flake8 . --max-line-length=88
# Ignore specific rules
flake8 . --extend-ignore=E203,W503
# Exclude files
flake8 . --exclude=__pycache__,.git
# Run mypy
mypy .
# Ignore missing imports
mypy . --ignore-missing-imports
# Exclude directories
mypy . --exclude tests/
# Strict mode
mypy . --strict
# Check import order
isort --check-only .
# Fix imports
isort .
# Run all checks in order
ruff check . --fix
black .
flake8 . --max-line-length=88
mypy . --ignore-missing-imports
isort --check-only .
| Issue | Fix |
|---|---|
| E501 line too long | Wrap lines or use black . |
| F401 imported but unused | ruff check . --fix |
| F811 redefinition | Remove duplicate imports |
| I001 isort order | isort . |
| mypy: no type hints | Add type hints to functions |
pyproject.toml - ruff, black, isort settings.ruff.toml - ruff-specific configmypy.ini - mypy configuration.flake8 - flake8 settings.pre-commit-config.yaml