Always read files before editing. Understand existing patterns.
After editing .clj files: clojure -M -e "(require 'namespace :reload)"
Run clj-kondo --lint src test before commit.
Tests are slow (~8 min). Don't run full suite after every task.
Low-risk changes (compile-check only):
High-risk changes (run selective tests):
*_test.cljclj -X:test :nses '[com.getorcha.foo-test]' 2>&1 | grep -E "(FAIL in|ERROR in|Execution error|failed because)"
Run full test suite only when completing the last task of a phase:
clj -X:test 2>&1 | grep -E "(FAIL in|ERROR in|Execution error|failed because)"
If phase tests fail, fix before proceeding to next phase.
Never git add -A. Stage specific files by name.
Complete one task, commit, output CONTINUE. Don't continue to next.
Never commit .env, credentials, API keys.