Skip to content
Back to skills

Exec Python

ASecurity

Python execution idioms to embed into Codex prompts when the target project is Python — PEP 8, type hints, error handling, and packaging conventions.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 20, 2026
ai-agentspython

Security analysis

A100/100

Scanned November 20, 2026

npx -y skills add anhnguyen0905/codex-mcp --skill exec-python --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Exec Python?

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

Security grade badge for Exec Python
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anhnguyen0905-exec-python/badge)](https://www.skillsdirectory.com/skills/anhnguyen0905-exec-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: exec-python
description: Python execution idioms to embed into Codex prompts when the target project is Python — PEP 8, type hints, error handling, and packaging conventions.
---

# Python Idioms (embed when project is Python)

```
Python standards:
- PEP 8 naming: snake_case functions/vars, PascalCase classes, UPPER_SNAKE constants.
- Type hints on all public functions (params + return); use modern syntax the project's Python
  version supports (e.g. `list[str]`, `X | None`).
- Errors: raise specific exceptions, never bare `except:`; catch the narrowest type that you can
  actually handle; chain with `raise ... from err` to preserve context.
- No mutable default arguments (def f(x=[]) bug) — use None + assignment.
- Prefer comprehensions/generators over manual loops when clearer; pathlib over os.path;
  f-strings over % or .format; dataclasses (or the project's model library, e.g. pydantic) over
  bare dicts for structured data.
- Context managers (with) for files, locks, connections — never rely on GC for cleanup.
- Respect the project's tooling: existing linter/formatter config (ruff/black), import order,
  and dependency manager (uv/poetry/pip) — add deps only via its manifest.
- Tests: pytest style if the project uses it — plain asserts, fixtures over setUp, parametrize
  for case tables.
```

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 ai-agents →

Comments

Loading comments…

Newsletter

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