Quick reference for Python code quality tools: ruff (linting & formatting), ty (type checking).
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionpython-code-qualityExecute the skills CLI command in your project's root directory to begin installation:
Fetches python-code-quality from laurigates/claude-plugins and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate python-code-quality. Access via /python-code-quality in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
23
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
23
stars
Quick reference for Python code quality tools: ruff (linting & formatting), ty (type checking).
# Lint code
uv run ruff check .
# Auto-fix issues
uv run ruff check --fix .
# Format code
uv run ruff format .
# Check and format
uv run ruff check --fix . && uv run ruff format .
# Show specific rule
uv run ruff check --select E501 # Line too long
# Ignore specific rule
uv run ruff check --ignore E501
# Type check project
uv run ty check
# Type check specific file
uv run ty check src/module.py
# Check with explicit Python version
uv run ty check --python 3.11
# Verbose output
uv run ty check --verbose
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.ruff.lint.isort]
known-first-party = ["myproject"]
[tool.ty]
python-version = "3.11"
exclude = [
"**/__pycache__",
"**/.venv",
"tests",
]
[tool.ty.rules]
possibly-unbound = "warn"
# Modern type hints (Python 3.10+)
def process_data(
items: list[str], # Not List[str]
config: dict[str, int], # Not Dict[str, int]
optional: str | None = None, # Not Optional[str]
) -> tuple[bool, str]: # Not Tuple[bool, str]
return True, "success"
# Type aliases
from typing import TypeAlias
UserId: TypeAlias = int
UserDict: TypeAlias = dict[str, str | int]
def get_user(user_id: UserId) -> UserDict:
return {"id": user_id, "name": "Alice"}
# .pre-commit-config.yaml
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/astral-sh/ty
rev: v0.0.10
hooks:
- id: ty
python-testing - Testing code qualityuv-project-management - Adding quality tools to projectspython-development - Core Python patternsPrerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
wispbit-ai/skills
mindrally/skills
shubhamsaboo/awesome-llm-apps
asyrafhussin/agent-skills
shadcn/improve
kunchenguid/no-mistakes
Useful defaults in python-code-quality — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
python-code-quality fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
python-code-quality has been reliable in day-to-day use. Documentation quality is above average for community skills.
We added python-code-quality from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Keeps context tight: python-code-quality is the kind of skill you can hand to a new teammate without a long onboarding doc.
We added python-code-quality from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
python-code-quality reduced setup friction for our internal harness; good balance of opinion and flexibility.
python-code-quality is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
python-code-quality fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Useful defaults in python-code-quality — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
showing 1-10 of 67