project-structure-python

project-structure-python is a skill for Claude Code from VersoXBT/claude-initial-setup. It costs 78 tokens per session (1,718 once invoked), scanned A, original, MIT.

A guide to arranging Python projects with pyproject.toml, a src folder, virtual environments, package managers, and package files.

In plain words
What is it for?
Use it to start or reorganize Python projects, configure dependencies, package code, and fix import issues.
Why use it?
It reduces import problems and gives applications and libraries a consistent structure as they grow.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-initial-setup plugin — 75 skills, 15 commands, 14 agents, 2 hooks shipped together

Good fit Use it to start or reorganize Python projects, configure dependencies, package code, and fix import issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/versoxbt/claude-initial-setup/project-structure-python
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 VersoXBT/claude-initial-setup --skill project-structure-python
Clone the repo
git clone --depth 1 https://github.com/VersoXBT/claude-initial-setup

Made for: Claude Code.

Or install claude-initial-setup, the plugin that ships this one along with the rest of its 75 skills, 15 commands, 14 agents, 2 hooks.

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 project-structure-python

README.md
[![agentmods](https://agentmods.dev/badge/skills/versoxbt/claude-initial-setup/project-structure-python/github.svg)](https://agentmods.dev/skills/versoxbt/claude-initial-setup/project-structure-python)
Your own site
<a href="https://agentmods.dev/skills/versoxbt/claude-initial-setup/project-structure-python"><img src="https://agentmods.dev/badge/skills/versoxbt/claude-initial-setup/project-structure-python/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 project-structure-python

Your own site · 80×15
<a href="https://agentmods.dev/skills/versoxbt/claude-initial-setup/project-structure-python"><img src="https://agentmods.dev/badge/skills/versoxbt/claude-initial-setup/project-structure-python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,718 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.00078 $0.01718
Opus 5.5 $0.00031 $0.00687
Sonnet 5.5 $0.00016 $0.00344
Haiku 4.5 $0.00008 $0.00172

Measured 2mo ago against content hash bae9de80747e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

project-structure-python 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 2mo ago.

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.

skills/python/project-structure-python/SKILL.md · 280 lines

How it starts

The opening of the file, as written. The whole thing — 280 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python Project Structure

Set up Python projects with modern tooling and clear layout conventions. A well-structured project prevents import headaches, simplifies packaging, and scales cleanly.

When to Use

  • User creates a new Python project or package
  • User asks about project layout or packaging
  • User encounters import errors or circular imports
  • User sets up dependency management
  • User configures linting, testing, or build tools

Core Patterns

Standard src Layout

The src layout prevents accidental imports of the uninstalled package and is the recommended structure for libraries and applications.

my-project/
  pyproject.toml
  README.md
  src/
    my_project/
      __init__.py
      core/
        __init__.py
        models.py
        services.py
      api/
        __init__.py
        routes.py
        middleware.py
      utils/
        __init__.py
        helpers.py
  tests/
    __init__.py
    conftest.py
    test_models.py
    test_services.py
    test_routes.py

pyproject.toml (Single Source of Truth)

pyproject.toml replaces setup.py, setup.cfg, requirements.txt, and tool-specific config files. Everything in one place.

[project]
name = "my-project"
version = "0.1.0"
description = "A well-structured Python project"
requires-python = ">=3.11"
dependencies = [
    "httpx>=0.27",
    "pydantic>=2.0",
]

[project.optional-dependencies]
dev = [
    "pytest>=8.0",
    "pytest-cov>=5.0",
    "mypy>=1.10",
    "ruff>=0.5",
]

[project.scripts]
my-cli = "my_project.cli:main"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

# Tool configuration -- all in one file
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra --strict-markers --cov=my_project"

[tool.ruff]
target-version = "py311"
line-length = 88

[tool.ruff.lint]
select = ["E", "F", "I", "N", "UP", "B", "SIM", "TCH"]

[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true

[tool.coverage.run]
source = ["src/my_project"]
branch = true

[tool.coverage.report]
fail_under = 80

Read the full file on GitHub · 280 lines

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. 2mo ago First seen · 280 lines · 78 tokens per session scan A bae9de80747e

Subscribe to this mod's changes

project-structure-python is a skill published in the GitHub repository VersoXBT/claude-initial-setup (4 stars, last pushed 6mo ago), licensed MIT. It adds 78 tokens to every session and 1,718 once invoked, about $0.0003 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-09-03.

Related

project-structure-python compared with skills from other repositories

project-structure-python next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
project-structure-pythonVersoXBT/claude-initial-setupSkill46mo agoMITA78Claude Code
fastapi-templateswshobson/agentsSkill43k6d agoMITA37Claude Code
temporal-python-testingwshobson/agentsSkill43k6d agoMITA45Claude Code
py-debugberekvolgyipeter/dotclaudeSkill2yesterdayMITA54Claude Code, Codex
python-conventionstmj-90/gafferSkill1yesterdayApache-2.0A120Claude Code, Codex
sota-pythonmartinholovsky/SOTA-skillsSkill31yesterdayCC-BY-4.0A141Claude Code
python-expertApexIQ/skillsmithSkill58mo agoMITA47Claude Code, Codex