Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

add commit hooks

Rahul Tarakefb18b84f344
diff --git a/.husky/post-commit b/.husky/post-commit
new file mode 100644
index 000000000..e955fd977
--- /dev/null
+++ b/.husky/post-commit
@@ -0,0 +1,5 @@
+#!/usr/bin/env sh
+
+# Re-comment tools in docs.yml after commit for development
+echo "Re-commenting tools in docs.yml for development..."
+(cd fern && python scripts/manage-tool-docs.py comment --file docs.yml)
diff --git a/.husky/pre-commit b/.husky/pre-commit
index cb2c84d5c..214cd86f3 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1 +1,8 @@
+#!/usr/bin/env sh
+
+# Uncomment tools in docs.yml before commit to avoid issues
+echo "Uncommenting tools in docs.yml before commit..."
+(cd fern && python scripts/manage-tool-docs.py uncomment --file docs.yml)
+
+# Run existing lint-staged
pnpm lint-staged