Getting Started¶
This guide covers setting up a consuming repository to use standard-tooling.
Prerequisites¶
- Git
- Bash (macOS or Linux)
- uv: Python package manager
- markdownlint-cli:
npm install --global markdownlint-cli - shellcheck:
brew install shellcheck
Initial Setup¶
1. Clone standard-tooling¶
Clone standard-tooling as a sibling directory alongside your repository:
2. Install the Python package¶
This installs the st-* CLI tools into .venv/bin/.
3. Add standard-tooling to PATH¶
From your consuming repository:
This makes both the Python CLI tools (st-commit, st-submit-pr, etc.)
and bash validators (repo-profile, markdown-standards, etc.) available
by bare name.
4. Configure git hooks¶
This tells git to use the standard-tooling hooks for branch naming and commit message validation.
5. Create a repository profile¶
Create docs/repository-standards.md with the required attributes:
# Repository Standards
## Table of Contents
- [Repository profile](#repository-profile)
## Repository profile
- repository_type: <application|library|tooling|documentation>
- versioning_scheme: <semver|calver|none>
- branching_model: <library-release|application-promotion|docs-single-branch>
- release_model: <tagged-release|continuous-deploy|none>
- supported_release_lines: <number>
- primary_language: <python|go|java|shell|none>
6. Verify¶
Run a validator to confirm everything is wired up:
Next Steps¶
- Read the Consuming Repo Setup guide for detailed onboarding instructions including CI configuration
- See the Script Reference for documentation on each tool
- Review the Validation Matrix to understand which checks run where