haonguyen1915/flex-kit/python-project
Claude Code and agent skill by haonguyen1915/flex-kit
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Standard Python project setup - src/ layout, pyproject.toml (PEP 621) metadata + dependencies, a build backend, a pinned venv, console entry points, and ruff/mypy/pytest config. Use when starting a Python package, fixing imports/packaging, or wiring tooling. Not for runtime app structure (see python-architecture) or runtime logging/metrics (see python-observability).
Install
npx vskill@latest install haonguyen1915/flex-kit/python-projectSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as haonguyen1915/flex-kit/python-project.
Python Project
How a Python package is laid out and built - the build-time surface: directory shape, pyproject.toml, dependencies, and the tool config that gates every commit.
src/ layout
Put importable code under src/, tests as a sibling:
Prefer src/ layout over a top-level package: it forces you to import the installed package, not the working dir, so tests run against what users actually get and "works on my machine" import bugs surface immediately. Develop with an editable install: pip install -e . (or uv sync). Every package directory needs __init__.py; a CLI entry module is __main__.py (enables python -m my_pkg).
pyproject.toml
One file, PEP 621 [project] table - never setup.py/setup.cfg for new work. Declare a build backend so the package is installable. Skeleton (full annotated version in references/pyproject.md):
- Pin the floor of runtime deps (
>=), not an exact==; let a lockfile pin exacts. - Dev/test deps go in
optional-dependencies, not runtimedependencies. - A lock (
uv.lock,requirements.txtvia pip-tools) pins the full graph for
reproducible installs - commit it for apps, omit for libraries.
Tooling (config lives in pyproject)
Co-locate tool config in pyproject.toml so one file governs the project. Run all three in CI and a pre-commit gate. See references/tooling.md.
- ruff - lint + format (replaces flake8/isort/black);
ruff check+ruff format. - mypy - static types; start
strict = trueonsrc/, loosen per-module if needed. - pytest - tests; set
testpaths,pythonpath/addoptssopytestjust works.
Review checklist
- [ ] importable code under
src/<pkg>/, tests in a siblingtests/ - [ ]
pyproject.tomlwith a[build-system]backend + PEP 621[project]table - [ ] runtime deps pinned to a floor; dev deps in
optional-dependencies - [ ] console commands declared via
[project.scripts], not ad-hoc shell wrappers - [ ] ruff + mypy + pytest configured in
pyprojectand run in CI - [ ] developed via an editable install (
pip install -e ./uv sync)
Red Flags
- a top-level package (flat layout) importing itself from the working dir, masking
packaging bugs until release
setup.py/setup.cfgfor a brand-new project instead ofpyproject.toml- runtime
dependenciesswollen withpytest/ruff(dev tools shipped to users) - exact
==pins independencies(that's a lockfile's job; here it blocks resolution) - a
bin/shell script doing what[project.scripts]should declare
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingflex_kit/packs/languages/python/skills/build-time/python-project/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/haonguyen1915/flex-kit/python-project)