Automated summary
This skill provides guidelines for writing clean and consistent Python code, focusing on imports, formatting, and function parameter definitions.
Strengths
- Encourages imports at the top of the file
- Uses underscores for large numbers
- Enforces keyword-only arguments for multi-parameter functions
- Discourages cluttering __init__.py
Limitations
- Does not cover naming conventions (PEP8)
- Can be overly restrictive for some projects
- Does not address type annotations
Use this skill when creating or modifying Python code and want to adhere to a strict, clear style convention.
Avoid this skill if you are working on a project with its own style guide or if flexibility is preferred.
Security analysis
SafeThis skill contains only Python style and code organization guidelines. There are no executable commands, destructive operations, or any instructions that could pose a security risk.
No concerns found
How this analysis is madeExamples
Create a new Python file called utils.py. Ensure imports are at the top, use keyword-only arguments for any functions with more than one parameter, and do not add anything to __init__.py.Refactor the following Python code to follow best practices: move all imports to the top, enforce keyword arguments in functions with multiple parameters, and use underscores for large numbers where applicable.Add a function `calculate_tax(*, income: float, rate: float) -> float` that computes tax. Make sure all parameters are keyword-only and required.name: python description: Guidelines when creating, reading, updating, or deleting Python code
Python Guidelines
Instructions
imports
Imports should ALWAYS be at the top of the file. NEVER have local imports unless it is 100% necessary.
formatting
For big numbers, use _ to make numbers more clear
BAD: foo = 1000
GOOD: foo = 1_000
init.py files
Do not add anything inside of __init__.py files unless it is absolutely necessary or you are explicitly asked to.
This includes adding __all__; NEVER add that.
function parameters
Functions with more than 1 parameter should ALWAYS use * to enforce keyword arguments.
BAD: def foo(a, b, c): ...
GOOD: def foo(*, a, b, c): ...
Functions should always use required parameters unless making a parameter optional is absolutely necessary.
Functions should not set defaults for parameters unless it is an EXTREMELY sane default.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/python-guidelines-mmh8qr3k/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/python-guidelines-mmh8qr3k' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/python-guidelines-mmh8qr3k/download' --output '.skill-downloads/python-guidelines-mmh8qr3k/SKILL.md.part' && mv '.skill-downloads/python-guidelines-mmh8qr3k/SKILL.md.part' '.skill-downloads/python-guidelines-mmh8qr3k/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/python-guidelines-mmh8qr3k/SKILL.md' && test -s '.skill-downloads/python-guidelines-mmh8qr3k/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/python' && cp -R '.skill-downloads/python-guidelines-mmh8qr3k' '.claude/skills/python'Cursor
test -f '.skill-downloads/python-guidelines-mmh8qr3k/SKILL.md' && test -s '.skill-downloads/python-guidelines-mmh8qr3k/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/python' && cp -R '.skill-downloads/python-guidelines-mmh8qr3k' '.cursor/skills/python'Codex
test -f '.skill-downloads/python-guidelines-mmh8qr3k/SKILL.md' && test -s '.skill-downloads/python-guidelines-mmh8qr3k/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/python' && cp -R '.skill-downloads/python-guidelines-mmh8qr3k' '.agents/skills/python'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/python-guidelines-mmh8qr3k'openskills read 'python-guidelines-mmh8qr3k'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/python-guidelines-mmh8qr3k/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.