phobologic/claude_code/setup-python-project
Claude Code and agent skill by phobologic/claude_code
- community
Checking that the SKILL.md file is still in the repository.
Scaffold a new Python project with uv, ruff, pytest, and GitHub Actions CI. Use when the user says "set up a new Python project", "scaffold a project", "create a new Python app", or similar.
Install
npx vskill@latest install phobologic/claude_code/setup-python-projectSKILL.md
The same SKILL.md was published earlier as phobologic/claude_code/setup-python-project.
Setup Python Project
Scaffold a new Python project with opinionated defaults: uv for package management, ruff for linting/formatting, pytest for testing, and GitHub Actions for CI.
Phase 1 — Determine project name
- If
$ARGUMENTSis non-empty, use it as the project name - Otherwise, infer from
basename $PWD - Derive the Python package name by replacing hyphens with underscores (e.g.
my-app→my_app)
Present a brief summary to the user of what will be created, then ask for confirmation:
Phase 2 — Preflight checks
Before writing anything:
- Check if any of the target files already exist. If conflicts exist, list them and ask
whether to overwrite. Do not overwrite silently.
- Check if git is initialized (
git rev-parse --git-dir 2>/dev/null). If not, note it
in the final report — don't run git init yourself.
Phase 3 — Scaffold files
Write each file in order:
pyproject.toml
.python-version
.gitignore
README.md
<package_name>/__init__.py
tests/__init__.py
Empty file.
.github/workflows/test.yml
Note for published libraries: Add astrategy.matrixwith multiple Python versions(e.g. 3.11, 3.12, 3.13) and apublish.ymlworkflow for PyPI trusted publishing.
Phase 4 — Install
Run these commands in sequence, narrating each step:
uv sync reads [dependency-groups] from pyproject.toml and creates the lockfile + virtual environment in .venv/.
Phase 5 — Report
Print a summary of what was created. Then suggest next steps:
- If git was not initialized:
git init && git add -A && git commit -m "Initial project scaffold" - To enable auto-formatting hooks in this project:
`` /plugin install claude-python@claude-languages ``
- See the Python rules (
~/.claude/rules/python.md) for preferred libraries to reach for
when adding dependencies.
Security
- Security scanPassed, 90 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 repositoryCheckingskills/setup-python-project/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/phobologic/claude_code/setup-python-project)