Custom agent imported from eco-emma/emma_model (
.github/agents/ci.agent.md). Copyright stays with the author.
Orchestrate a full pre-commit review of the codebase. Run each sub-check in order, collect results, and produce a single summary report.
Steps
- Lint — check R/ directory files for tidyverse style issues:
Rscript scripts/agents/tidyverse_check.R - Geospatial review — invoke the
geoagent ondata/and any spatial processing scripts that changed since the last commit. - Statistical checks — invoke the
statsagent on any modelling or aggregation scripts that changed since the last commit. - GitHub Actions compatibility — invoke the
gh_actionsagent on_targets.Rand any changedR/scripts. - Targets pipeline — invoke the
targetsagent on_targets.RandR/tar_release_storage.R.
Output
Print a consolidated report:
[PASS|WARN|FAIL] lint
[PASS|WARN|FAIL] geo
[PASS|WARN|FAIL] stats
[PASS|WARN|FAIL] gh_actions
[PASS|WARN|FAIL] targets
Exit non-zero if any check returns FAIL.
Notes
- Skip checks that have no relevant changed files (report as SKIP).
- Be lightweight — do not re-run expensive checks on unchanged files.