Helps you write cleaner, safer, more maintainable Python code.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "python-foundational" skill from askskill: 1. Download https://raw.githubusercontent.com/microsoft/hve-core/main/.github/skills/coding-standards/python-foundational/SKILL.md 2. Save it as ~/.claude/skills/python-foundational/SKILL.md 3. Reload skills and tell me it's ready
Review this Python code against foundational best practices. Point out issues in naming, import order, type hints, exception handling, and maintainability, and suggest fixes.
A list of concrete issues with Pythonic rewrite suggestions.
Refactor the following Python code to be cleaner and more readable: prefer context managers, appropriate built-in types/dataclasses, avoid mutable defaults, and preserve behavior.
Refactored code plus brief explanation of key changes.
Review this Python code for eval/exec/pickle usage, hard-coded secrets, bare excepts, silent failures, and explain how to fix them.
Identify security and error-handling flaws and suggest safer alternatives.
Python developers can use it in code review to check naming, imports, type hints, exception handling, and function design. It helps enforce readable, maintainable, and testable code.
When a project has bloated functions, duplicated logic, or inconsistent style, this skill guides refactoring. It emphasizes minimal necessary changes, shared helpers, and fitting existing architecture.
Useful for turning ad hoc scripts into sturdier Python code: context managers, better data structures, clear exceptions, and type hints reduce maintenance cost.
This document defines a foundational Python coding standards skill used when reviewing Python changes. It checks readability, Pythonic idioms, function design, type safety, error handling, maintainability, and architectural fit, while also calling out anti-patterns to avoid.
Foundational Python excellence that every diff must satisfy. This skill is loaded first for any .py change. All higher-order skills build on it.
This content is a skill rather than an instructions file for three reasons: skills are distributed through the CLI plugin and VS Code extension without requiring consumers to copy files into their repo; new language skills can be added without modifying the review agent itself; and skills are loaded on demand, keeping the context window small when the diff contains no Python.
PascalCase classes, snake_case functions/variables, UPPER_SNAKE_CASE constants, _ private members.with for files, locks, DB connections.dataclass / NamedTuple / Enum for data holders.pathlib over os.path; timezone-aware datetime when relevant.* keyword-only arguments for multi-optional functions.global/nonlocal unless strictly required.TypeVar for generics.Any except in thin wrappers.except: (broad except Exception: only at app boundaries with logging).eval, exec, or pickle on untrusted data.print.| File | Covers | Purpose |
|---|---|---|
| design-principles.md | Section 9 | Rationale and examples for the design principles |
| code-style-patterns.md | Sections 1–5 | Concrete code examples for style, idioms, type safety, class design, and error handling |
| Severity | Definition |
…
It focuses on Python best practices, style, type safety, error handling, maintainability, and architectural fit. The goal is cleaner, safer, easier-to-maintain code.
No setup details are provided in the supplied materials. It is a skill for Python changes rather than a standalone runtime library.
It emphasizes foundational standards: readability, type hints, error handling, avoiding anti-patterns, and consistency with the existing codebase. No more advanced specialized capabilities are stated in the materials.
Provides the foundational rules and workflow for Design Thinking coaching.
Turns Design Thinking outputs into RPI-ready handoff context.
Compress replies to terse, accurate output with selectable intensity levels.
Use a Python CLI to automate reading and writing Mural content.
Generate, update, and manage PowerPoint decks with YAML-driven Python scripts.
Review code changes across perspectives and produce structured findings.
Learn Pythonic patterns, type hints, and best practices for maintainable code.
Analyze Python code and get guided refactoring suggestions to improve maintainability.
Generate, detect, validate, and refactor Python design patterns in codebases.