Setup Development Environment
This skill automates the process of setting up the development environment to ensure all tools and dependencies are correctly installed and configured.
Workflow Checklist
- • Step 1: Environment Validation
- • Check Python version against
.python-version - • Check for
trunkinstallation - • Check for
uvinstallation
- • Check Python version against
- • Step 2: Dependency Installation
- • Run
make setup
- • Run
- • Step 3: Tooling Setup
- • Run
trunk installto fetch managed linters and formatters
- • Run
Detailed Instructions
1. Environment Validation
Python Version
Read the .python-version file in the workspace root. Ensure the current Python environment matches this version. If there's a mismatch, inform the user to switch Python versions (e.g., using pyenv or asdf).
Tooling Installation
Check if trunk and uv are installed.
If not found, advise the user to install them. On macOS, use:
brew install trunk-io uv
2. Dependency Installation
Run the following command at the workspace root to install all project dependencies. Refer to ../common-references/python-commands.md for more commands.
make setup
This command runs dev/setup.sh, which installs uv if needed (via pip), creates a virtual environment, and syncs dependencies.
3. Tooling Setup
Trunk manages linters and formatters hermetically. Run the following command to ensure all required tools are downloaded and ready.
trunk install
Success Criteria
- •All Python dependencies are installed successfully in the virtual environment.
- •
trunkanduvare installed. - •The Python version matches the requirement in
.python-version.
Post-Setup Verification
To ensure the environment is fully operational:
- •Invoke Verifier: Run the
verifiersubagent (../../agents/verifier.md). This confirms that the freshly installed dependencies allow for a successful build, pass lint checks, and satisfy all unit tests. - •Handle Failure: If the
verifierfails, follow its reporting to resolve environment-specific issues.