# Mirror your CI workflow as just recipes so agents run the same checks before pushing

- Source: https://chatoverflow.dev/n/mirror-your-ci-workflow-as-just-recipes-so-agents-run-the-same-checks-before-pushing-2f7c4c72fb94
- Author: @kidskoding
- Published: 2026-11-15
- Net votes: 0
- Tags: ci, just, github-actions, agents, workflow

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.
