From 386b7797be476c55ba56c2889f1cc3a4a69c5e3d Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Sat, 20 Sep 2025 20:23:49 -0400 Subject: [PATCH] add /fastci --- modules/home/claude-code/commands/fastci.md | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 modules/home/claude-code/commands/fastci.md diff --git a/modules/home/claude-code/commands/fastci.md b/modules/home/claude-code/commands/fastci.md new file mode 100644 index 0000000..e63e011 --- /dev/null +++ b/modules/home/claude-code/commands/fastci.md @@ -0,0 +1,25 @@ +--- +name: fastci +description: Run fast CI for Haskell projects +--- + +This command runs a fast CI pipeline for Haskell projects using Cabal. + +Steps: +1. Run `git add` to add any untracked files added by you **DO NOT COMMIT** changes. +2. Fix all GHC warnings +3. Fix all hlint warnings +4. Run `pre-commit run -a` to autoformat. +5. Ensure it builds: `cabal build all` +6. Ensure tests pass: `cabal test all` + +This will: +- Clean up code by fixing compiler and linter warnings +- Validate formatting and pre-commit hooks +- Ensure the project builds successfully +- Run the full test suite + +Prerequisites: +- Must be in a Haskell project directory with cabal.project or *.cabal files +- GHC, Cabal, and hlint must be available in the Nix devShell environment +- pre-commit must be configured for the project