YAGA
Repository conventions you can check locally and enforce in CI.
YAGA helps teams turn recurring review feedback into repeatable, deterministic checks. Catch
inconsistent commit structure, unfinished pull-request descriptions, missing companion changes,
unwanted committed files, risky workflow settings, and stale agent reviews before they become
another review conversation. Start with one check and adopt more as your project needs them.
What can YAGA help with?
| Problem |
What YAGA checks |
| Commit messages and branch names follow inconsistent conventions |
Commit policy and branch naming defined by your team |
| Pull requests omit useful context or leave template sections unfinished |
Description checks for required content, headings, templates, and optional spelling |
| Agent reviews finish asynchronously or leave pull requests waiting for an approval verdict |
Pull-request review checks with codex, copilot, and claude presets, active-review polling, and opt-in APPROVE / REQUEST_CHANGES verdicts |
| A change lands without the related files your project expects |
Changed-path rules, such as source changes accompanied by tests |
| Unwanted files, oversized blobs, or incompatible paths enter the repository |
Committed-file checks for contents, sizes, names, and entry modes |
| GitHub Actions workflows drift from your security and maintenance rules |
Workflow checks for immutable references, permission and checkout rules, and syntax |
| Local checks and CI enforce different policies |
An explicit repository plan used in both places |
| A small change needs a clear test and qualification plan |
Test planning selects suites and required variants from explicit changed paths |
Checks produce actionable text, versioned JSON, and escaped GitHub workflow annotations with stable
exit codes (0 pass, 1 policy finding, 2 input or operational error). You choose the policies
and checks; YAGA does not require adopting the entire CLI at once.
Quick start
Local CLI (yaga-cli)
Install the standalone yaga executable on Linux or macOS:
curl -fsSL https://dariuszpanas.github.io/yaga/install.sh | sh
On Windows, run this command in PowerShell:
irm https://dariuszpanas.github.io/yaga/install.ps1 | iex
The installer verifies the release checksum for your operating system and CPU. Native releases
run without Python or Cargo. You can also install the standalone CLI from crates.io
(cargo install --locked yaga-cli), install the zero-dependency yaga-cli Python 3.12+ launcher
(uv tool install --python 3.12 yaga-cli), build from a checkout with Cargo,
or use yaga-core in a Rust project.
yaga policy init --repo .
yaga policy check --repo .
yaga commit check
Use yaga policy init --repo . interactively (or pass policy names or --all) to scaffold starter
policies under .yaga/, or yaga config init --repo . for a standalone .yaga.toml commit policy.
See Get started for convenience
installers, pipx, virtual environments, and pre-commit setup. The Python package is tested on
Python 3.12 through 3.15.
GitHub Action (YAGA Checks)
Run YAGA in GitHub Actions with uses: dariuszpanas/yaga@<commit-sha> (published on GitHub
Marketplace as YAGA Checks). check defaults to commit and supports policy, pr-review, pr-triage,
pr-description, repo, branch, change, workflow, workflow-security, workflow-lint,
mode, path, size, tree, and gate:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
persist-credentials: false
- uses: dariuszpanas/yaga@<audited-40-character-sha>
See the GitHub Actions guide and
copy-ready workflow examples for commit
policy, repository plans, and trusted check: pr-review verdict workflows.
Documentation
Optional review tools
Beyond deterministic repository checks, YAGA offers:
Project status
YAGA is beta. CLI and configuration contracts may change before 1.0.0. Workflow
security checks cover specific documented rules, not a complete security audit; see the
security model for boundaries and reporting.
Changelog ·
Contributing
Licensed under BSD-3-Clause.