Python project template for Claude Code centric development. Enables operations teams to quickly set up Python projects with pre-configured tools and best practices. Integrates with Claude Code for AI-assisted coding and workflow automation.
git clone https://github.com/discus0434/python-template-for-claude-code.gitPython project template for Claude Code centric development. Enables operations teams to quickly set up Python projects with pre-configured tools and best practices. Integrates with Claude Code for AI-assisted coding and workflow automation.
[{"step":"Customize the prompt with your project details (e.g., `[PROJECT_NAME]`, `[PYTHON_VERSION]`, `[AUTHOR_NAME]`).","action":"Replace placeholders in the prompt template with your specific requirements."},{"step":"Run the prompt in Claude Code to generate the project structure.","action":"Paste the customized prompt into Claude Code and execute it. The AI will create the project folder with all pre-configured files."},{"step":"Initialize the project in your local environment.","action":"Open the generated project in your terminal and run `uv sync` to install dependencies. Activate the virtual environment using `source .venv/bin/activate` (or the equivalent for your OS)."},{"step":"Set up pre-commit hooks and configure your IDE.","action":"Install pre-commit hooks with `pre-commit install` and install recommended VS Code extensions (Python, Pylance) from the `.vscode/settings.json` file."},{"step":"Start developing with AI assistance.","action":"Use Claude Code to edit files, run tests (`pytest`), and leverage the pre-configured logging and tooling for your workflow."}]
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/discus0434/python-template-for-claude-codeCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Set up a new Python project using the Claude Code-centric template for [PROJECT_NAME]. Configure it with [PYTHON_VERSION], [PROJECT_DESCRIPTION], and [AUTHOR_NAME]. Ensure the template includes: a virtual environment, pre-commit hooks, pytest configuration, logging setup, and a README template. Generate the project structure and provide instructions for initializing it in Claude Code.
Here’s a newly generated Python project for **`data-pipeline`** using the Claude Code-centric template. The project is configured for **Python 3.11**, authored by **Jane Doe**, and includes the following structure:
```
data-pipeline/
├── .gitignore
├── .pre-commit-config.yaml
├── README.md
├── pyproject.toml
├── src/
│ └── data_pipeline/
│ ├── __init__.py
│ ├── core.py
│ └── utils.py
├── tests/
│ ├── __init__.py
│ └── test_core.py
└── .vscode/
└── settings.json
```
### Key Configurations:
- **Virtual Environment**: Automatically created using `uv` (fast Python package manager). Run `uv sync` to install dependencies.
- **Pre-commit Hooks**: Configured with `black`, `isort`, `flake8`, and `mypy` for code quality. Install hooks with `pre-commit install`.
- **Testing**: `pytest` is pre-configured with coverage reporting. Run tests with `pytest --cov=src`.
- **Logging**: Structured logging is set up in `src/data_pipeline/core.py` with a `get_logger()` function.
- **VS Code Integration**: `.vscode/settings.json` includes recommended extensions (Python, Pylance) and formatting rules.
### Next Steps:
1. Initialize the project in Claude Code: Open the folder and run `uv sync`.
2. Activate the virtual environment: `source .venv/bin/activate` (or `.venv\Scripts\activate` on Windows).
3. Run pre-commit hooks: `pre-commit run --all-files`.
4. Start coding! The `src/data_pipeline/core.py` file is pre-populated with a `DataProcessor` class template.
Would you like me to generate additional boilerplate code for a specific use case (e.g., API client, CLI tool, or data processing)?AI assistant built for thoughtful, nuanced conversation
IronCalc is a spreadsheet engine and ecosystem
ITIL-aligned IT service management platform
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan