Skip to content
Back to skills

Python

ASecurity

Best practices for python code

  • 225 stars
  • 0 votes
  • 2 copies
  • 8 views
  • Added November 25, 2026
code-qualitypython

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned November 25, 2026

npx -y skills add NeverSight/skills_feed --skill python --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-python/badge)](https://www.skillsdirectory.com/skills/neversight-python)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: python
description: "Best practices for python code"
---

- It is not allowed to decorate comments like "---" "===" "\*\*" etc.
- Function arguments should be either argument-only or keyword-only (deterministic), by using `/` and `*` in function signature. Do not add too many argument-only arguments, make it argument-only only if it is very obvious. Ideally argument-only arguments should be 1 (best) or 2, avoid making it 0 or more than 3.
- Do not add default values unless the user told to do so. The default values must be a clear meaningful value, not just a "cool" random number, and you are not allowed to decide it. Instead make it a required argument-only argument / keyword-only argument.
- Do not import within function. If the package is not installed in the current environment, install them via `uv add <package>` or tell the user to do so.
- To run python commands, use `uv run python`, `uv run pytest`, etc. Never run `python` directly. You may run `uv run pytest` on your own.
- After the work is done, run `prek run -a`, and fix the linting errors prioritizing the ones introduced by your work.

Files in this skill

  • SKILL.md1.1 KB
  • description_cn.txt29 B
  • description_de.txt32 B
  • description_en.txt31 B
  • description_es.txt41 B
  • description_fr.txt37 B
  • description_ja.txt46 B
  • description_ko.txt38 B
  • description_tw.txt32 B
  • stats.json69 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in code-quality →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.