diff --git a/utils/hooks/pre-commit b/utils/hooks/pre-commit
new file mode 100755
index 0000000..be2f8b3
--- /dev/null
+++ b/utils/hooks/pre-commit
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# Execute the checkstyle script after committing any code. This allows the
+# commit to succeed, but ensures that the developer is aware of any potential
+# issues immediately, and can resolve them and fix rapidly with:
+#   git commit --amend
+#
+# To utilise this hook, install this file with:
+#   cp utils/hooks/post-commit .git/hooks/post-commit
+
+args="--staged"
+if ps -ocommand= -p $PPID | grep -- "--amend"
+then
+   commit="--amend"
+fi
+
+./utils/checkstyle.py $args
