/ai_dev:format_pythonfrom ai_dev
Applies Python formatting standards, code quality rules, linting prevention, and best practices aligned with flake8, ruff, and pylint when generating or editing .py files.
Ships in ai_dev. 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.
typing module only when a built-in type will not dosnake_case for variables/functions, PascalCase for classes, UPPER_CASE for constantsValueError, FileNotFoundError_ for intentionally unused values, to prevent F841 errorsdict[str, Any] instead of Dict[str, Any], str | None instead of Optional[str]is/is not for None comparisons, use in/not in for membership testinglist, dict, str, id, typewith statements) for all file operations and resource cleanuplogger = logging.getLogger(__name__) for module-level logging@classmethod, @staticmethod) for class methodsis None instead of == None to prevent E711 comparison errorisinstance() for type comparisons instead of type() checkspath.open() instead of open(path) when working with Path objectslogger.exception() in except blocks for better error trackingraise ... from e to preserve stack tracesenumerate() instead of manual index trackingcollections.defaultdict and collections.Counter for common patternsfunctools.lru_cache for expensive pure functionscollections.namedtuple for immutable data structures__str__ and __repr__ methods for custom classes__slots__ for memory-efficient classes with many instancestyping.Protocol for structural subtypingtyping.Literal for fixed value setseval() or exec() with user inputsecrets module for cryptographic operations"""Module docstring."""
import logging
from typing import Any
# Constants
DEFAULT_TIMEOUT = 30
logger = logging.getLogger(__name__)
class ExampleClass:
"""Example class demonstrating proper patterns."""
def __init__(self, name: str, value: int | None = None) -> None:
"""Initialize with name and optional value."""
self.name = name
self.value = value
def process_data(self, data: list[dict[str, Any]]) -> bool:
"""Process data and return success status."""
if not data:
return False
for item in data:
if not isinstance(item, dict):
return False
return True
def get_info(self) -> dict[str, Any]:
"""Get class information."""
return {
"name": self.name,
"value": self.value,
"has_value": self.value is not None,
}
def main() -> None:
"""Execute main function."""
example = ExampleClass("test")
result = example.process_data([{"id": 1, "name": "item"}])
logger.info("Result: %s", result)
if __name__ == "__main__":
main()
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
python-formatting, linting, code-quality, python-best-practices, ruff, flake8
npx claudepluginhub theafh/ai-modules --plugin ai_dev27 skills in this plugin
/agent_spinnerRun helper agents from an orchestrating agent under one quality contract, whatever the host offers. Establishes the capability tier, declares a phase plan, picks an orchestration shape and width, contains each helper to one path, checks work refute-by-default, and merges cited findings into one verdict-first report. Use when deciding how to run helper agents, sub-agents, or subagents: sizing a fan-out over files, spawning parallel helpers, splitting a review into lenses, running a judge or verifier pass, cross-checking agents' work, containing concurrent writers, aggregating helper reports, recovering failed helpers, or running a serial implement-then-audit loop until the task is stamped audited, in sub-agents. Use it for a multi-agent run plan. Route a backlog-only request to task_* and a wiki request to wiki_fix unless the user names agent_spinner or asks for helpers; those families keep their own contracts. Per-harness facts stay with harness_portability.
/ai_instruction_formattingOrganize AI-consumed content (prompts, rules, skills, commands, agents, system instructions) into pseudo-XML by wrapping each semantic concern in a dedicated tag for role, policy, inputs, and output contract. Use when structuring or reorganizing the body of a SKILL.md, agent or sub-agent definition, command file, rules document (.mdc), CLAUDE.md, AGENTS.md, or GEMINI.md configuration, prompt template, or system prompt into semantic tags, when choosing tag boundaries, or when checking whether an instruction file follows the pseudo-XML convention. This is the structure-and-tags skill; its sibling ai_instruction_writing governs the wording./ai_instruction_writingWrite AI-consumed content using positive, action-oriented language as the primary carrier of every instruction. Use when creating or editing any artifact an AI reads at inference time. Those artifacts include SKILL.md files, .mdc rule files, CLAUDE.md/AGENTS.md/GEMINI.md configuration, prompt templates, system prompts, commands, agent and sub-agent definitions, instruction sets, and persona definitions./format_markdownApply markdown linting compliance and best practices when creating or editing markdown files (.md, .mdc). Covers blank-line rules around block elements, consistent bullet style, fenced code blocks with language identifiers, table alignment syntax, header level progression, list indentation and spacing, and link/image conventions./format_rustApply clippy-aligned Rust practices when writing or editing Rust code (.rs). Covers procedural flow, clippy-driven clarity improvements, minimal imports, Result/Option idioms, the error-versus-invariant model with panic discipline and clippy unwrap_used enforcement, fallible builders following the error idiom by consumer, string prefix/suffix handling, borrowing clarity, iteration style, string building, and function signature grouping./git_auto_reviewRun an automated review-and-fix loop over the checked-out branch's change since the default branch plus its working tree, and over the default branch's uncommitted changes: git_review is the only gate, a single writer agent fixes the findings that qualify, each round is verified refute-by-default and re-reviewed on its delta, the cumulative run change from round 2 on, and the loop stops under stated convergence rules. Use when the user asks to auto-review and fix uncommitted changes, auto-review and fix this branch, run the automated review loop, keep reviewing and fixing until the change is clean, loop review and fix over my branch against main, auto-fix what the review finds, or drive an automated review gate to a clean exit. Every fix stays uncommitted.Other plugins' skills for the same job