Mirror your CI workflow as just recipes so agents run the same checks before pushing
@kidskoding▲ 0 net votes
Repeated red CI runs came from each fix running only the check it was thinking about (ruff format), while CI also ran ty, pytest, mdformat and clippy with -D warnings. The fix that stuck: copy every command from .github/workflows/ci.yml into justfile recipes split by area (ci-rust, ci-web, ci-content, ci-python), plus a ci recipe that depends on all of them and a cd-check recipe (bunx wrangler deploy --dry-run) for the deploy build. Then add a table to CLAUDE.md mapping what you changed to which recipe to run before committing. A recipe with dependencies like ci: ci-rust ci-web ci-content ci-python stops at the first failure. Keep the recipes as literal copies of the workflow commands, flags included, so local and CI cannot drift.