Python Project Layout

Python Project Layout is a skill for Claude Code, Codex from niels-emmer/myace. It costs 28 tokens per session (361 once invoked), scanned A, original, MIT.

A layout and packaging guide for Python projects, including dependency groups, supported interpreter versions, entry points, and lockfiles. A lockfile records exact dependency versions so an application can be recreated consistently.

In plain words
What is it for?
Use it when starting a Python project, changing its build or dependencies, or fixing inconsistent development and continuous-integration environments.
Why use it?
It reduces 'works on my machine' problems and makes a clean checkout installable, testable, and reviewable after dependency changes.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for aider. Also seen: mentions Codex; built for aider; mentions OpenCode.

Good fit Use it when starting a Python project, changing its build or dependencies, or fixing inconsistent development and continuous-integration environments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/niels-emmer/myace/python-project-layout
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add niels-emmer/myace --skill python-project-layout
Clone the repo
git clone --depth 1 https://github.com/niels-emmer/myace

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Python Project Layout

README.md
[![agentmods](https://agentmods.dev/badge/skills/niels-emmer/myace/python-project-layout/github.svg)](https://agentmods.dev/skills/niels-emmer/myace/python-project-layout)
Your own site
<a href="https://agentmods.dev/skills/niels-emmer/myace/python-project-layout"><img src="https://agentmods.dev/badge/skills/niels-emmer/myace/python-project-layout/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Python Project Layout

Your own site · 80×15
<a href="https://agentmods.dev/skills/niels-emmer/myace/python-project-layout"><img src="https://agentmods.dev/badge/skills/niels-emmer/myace/python-project-layout.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 361 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00361
Opus 5.5 $0.00011 $0.00144
Sonnet 5.5 $0.00006 $0.00072
Haiku 4.5 $0.00003 $0.00036

Measured today against content hash 32cc391021e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Python Project Layout scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

collections/additional/python-developer/skills/python-project-layout/SKILL.md · 30 lines

What it actually says

Purpose

Make a Python project installable and reproducible from a clean checkout with one command.

When to use it

When creating a project, adding or upgrading dependencies, or fixing 'works on my machine' environment drift.

Checklist

  • Layout: src/<package>/ for libraries and services, tests/ beside it; one pyproject.toml as the single source of metadata and tool config.
  • Lock: a committed lockfile for applications; libraries declare compatible ranges and test against the lowest and highest supported versions.
  • Groups: separate runtime, dev, test and docs dependencies (dependency groups or extras).
  • Interpreter: pin the supported Python range in requires-python and make CI run at least the floor.
  • Entry points: expose commands through [project.scripts], not python path/to/file.py.
  • CI: install strictly from the lockfile and fail if it is out of date.
  • Hygiene: no requirements.txt that duplicates pyproject.toml unless it is generated from it.

Expected output

A repository where clone, one install command and one test command give a working environment, and a dependency bump is a reviewable lockfile diff.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 30 lines · 28 tokens per session scan A 32cc391021e9

Subscribe to this mod's changes

Python Project Layout is a skill published in the GitHub repository niels-emmer/myace (1 stars, last pushed yesterday), licensed MIT. It adds 28 tokens to every session and 361 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-29.

Related

Python Project Layout compared with skills from other repositories

Python Project Layout next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Python Project Layoutniels-emmer/myaceSkill1yesterdayMITA28Claude Code, Codex
loom-pythoncosmix/loomSkill66todayMITA14Claude Code, Codex
idiomatic-goTypeFox/agent-skillsSkill51mo agoMITA137Claude Code
go-documentationTypeFox/agent-skillsSkill51mo agoMITA98Claude Code
python-project-workflowCodeSigils/python-project-workflow-skillSkill16d agoMITA90Claude Code, Codex
developing-genkit-pythongoogle/skillsSkill25ktodayApache-2.0A96Claude Code, Codex
pythonericrisco/rsc-harnessSkill6824d agoMITA94Claude Code, Codex