/quality-tools:python-code-review-and-lintingfrom quality-tools
Ruff linting rules, security patterns, mypy type checking, and Python code review best practices. PROACTIVELY activate for: (1) Setting up Ruff linting, (2) Fixing security vulnerabilities, (3) Resolving mypy type errors, (4) Code review for anti-patterns, (5) Python best practices enforcement. Triggers: "ruff", "lint", "refactor", "security", "anti-pattern", "python review", "mypy", "type error"
Ships in quality-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Keywords: ruff, lint, refactor, security, anti-pattern, python review, mypy
File Patterns: *.py
Modes: code_review
# pyproject.toml
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "B", "S", "I"]
ignore = ["E501"] # Line too long (handled by formatter)
[tool.ruff.format]
quote-style = "double"
S101: Assert used (disabled in production)
# Insecure
assert user.is_admin, "Not admin" # Can be disabled with -O flag
# Secure
if not user.is_admin:
raise PermissionError("Not admin")
S105/S106: Hardcoded secrets
# Violation
password = "admin123"
# Fix
import os
password = os.getenv("PASSWORD")
S301: Unsafe pickle
# Code execution risk
data = pickle.loads(user_input)
# Safe
import json
data = json.loads(user_input)
S307: Use of eval
# Arbitrary code execution
result = eval(user_input)
# Safe
import ast
result = ast.literal_eval(user_input) # Only literals
B006: Mutable default argument
# Shared state bug
def add_item(item, items=[]):
items.append(item)
return items
# Fix
def add_item(item, items=None):
if items is None:
items = []
items.append(item)
return items
B007: Unused loop variable
# Confusing
for i in range(10):
do_something() # 'i' not used
# Clear
for _ in range(10):
do_something()
# error: Argument 1 has incompatible type "str"; expected "int"
def process(x: int) -> int:
return x * 2
process("5") # Type error
# Fix
process(int("5"))
What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/advanced-js-mocking-patternsAdvanced mocking patterns for Jest and Vitest including module mocking, spies, and fake timers. PROACTIVELY activate for: (1) Module mocking, (2) Partial mocking with spies, (3) Mock lifecycle management, (4) Fake timers for time-dependent code, (5) Complex mock implementations. Triggers: "jest.mock", "vi.mock", "spyOn", "fakeTimers", "mockImplementation", "mockReturnValue", "mock lifecycle"
/python-testing-patternsPytest fixtures, parametrization, mocking, and test organization patterns. PROACTIVELY activate for: (1) Writing pytest test suites, (2) Creating fixtures, (3) Implementing parametrized tests, (4) Mocking external dependencies, (5) Organizing test directories. Triggers: "pytest", "fixture", "parametrize", "mock", "python test", "unittest", "conftest"
/qa-strategy-and-metricsTesting pyramid, quality metrics, and technical debt management strategies. PROACTIVELY activate for: (1) Designing testing strategy, (2) Evaluating code quality metrics, (3) Managing technical debt, (4) Analyzing test coverage approaches, (5) Calculating complexity. Triggers: "testing strategy", "testing pyramid", "quality metrics", "technical debt", "cyclomatic complexity", "maintainability", "coverage principles"
/test-coverage-analysisTest coverage analysis, gap identification, and coverage configuration for Python and JavaScript. PROACTIVELY activate for: (1) Analyzing coverage reports, (2) Identifying critical coverage gaps, (3) Configuring coverage tools, (4) Setting up CI/CD coverage checks, (5) Branch coverage analysis. Triggers: "coverage", "uncovered", "pytest-cov", "istanbul", "c8", "coverage report", "coverage gap"
/typescript-code-review-and-lintingESLint configuration, TypeScript type safety rules, and React-specific linting patterns. PROACTIVELY activate for: (1) Setting up ESLint for TypeScript, (2) Fixing type safety issues, (3) React-specific linting rules, (4) Resolving TypeScript compiler errors, (5) Code review for anti-patterns. Triggers: "eslint", "typescript", "type checking", "refactor", "ts review", "no-explicit-any", "ts-ignore"
/typescript-component-testingJest, Vitest, and React Testing Library patterns for component testing. PROACTIVELY activate for: (1) Writing React component tests, (2) Using Testing Library queries, (3) Testing user interactions, (4) Async component testing, (5) Accessibility-focused testing. Triggers: "jest", "vitest", "testing-library", "react test", "component test", "render", "screen", "userEvent"
npx claudepluginhub agentient/vibekit --plugin quality-toolsOther plugins' skills for the same job