system-prompts-and-models-o.../salesflow-saas/.claude/hooks/pre-commit.sh
Claude 83210b9d12
feat: Add founder strategy, Claude Code control plane, SaaS launch readiness
Founder Strategy & GTM (from prompts #1, #10):
- niche-brief.md: Saudi real estate primary, healthcare secondary
- icp-brief.md: Full ICP with Arabic objection handling
- content-map.md: 20 content ideas, SEO keywords, weekly schedule
- outreach-map.md: WhatsApp/Email cold outreach with Arabic templates
- launch-plan.md: 14-day sprint + 30-day plan with revenue targets
- interview-template.md: 15 Arabic customer discovery questions

Claude Code Control Plane (from prompt #2):
- .claude/settings.json: Permissions and preferences
- .claude/commands/: 5 custom commands (review-pr, release-prep, security-check, generate-tests, architecture-review)
- .claude/hooks/: pre-commit.sh (secrets check), pre-push.sh (tests)

SaaS Launch Readiness (from prompt #4):
- saas-readiness-audit.md: Full audit with gap analysis
- deployment-checklist.md: Deploy + rollback procedures
- launch-checklist.md: 100+ launch day checklist items
- feature_flags.py: Redis-backed feature flags with per-tenant control

https://claude.ai/code/session_01LsnvBa7HwF5hs99VZbgLGj
2026-04-11 08:09:50 +00:00

24 lines
583 B
Bash
Executable File

#!/bin/bash
# Dealix Pre-Commit Hook
set -e
echo "Dealix Pre-Commit Checks..."
# Check for hardcoded secrets
if grep -rn "API_KEY\s*=\s*['\"][^'\"]*['\"]" backend/app/ --include="*.py" 2>/dev/null | grep -v config.py | grep -v example; then
echo "ERROR: Hardcoded API key found!"
exit 1
fi
# Check .env not staged
if git diff --cached --name-only | grep -q "\.env$"; then
echo "ERROR: .env file staged!"
exit 1
fi
# Run linter
if command -v ruff &> /dev/null; then
ruff check backend/app/ --fix --quiet 2>/dev/null || true
fi
echo "Pre-commit checks passed."