git-hooks
# Git Hooks Skill
What this skill does
# Git Hooks Skill Standardized git hooks for security and quality enforcement across all projects. ## Description Provides two-layer security protection: **Layer 1: Local Git Hooks** (runs on developer machine) - **Secret scanning**: Prevents committing API keys, tokens, passwords - **Commit message validation**: Enforces conventional commit format - **Security checks**: Runs dependency audits before pushing **Layer 2: GitHub Actions Workflow** (runs on server) - **Automated security scanning**: Runs on every push/PR - **Weekly scheduled scans**: Mondays at 2 AM - **Cannot be bypassed**: Server-side enforcement - **Comprehensive reporting**: Generates security reports and PR comments ## Components ### Local Hook Templates Located in `templates/` directory: - `pre-commit` - Secret and key scanning - `commit-msg` - Conventional commit format validation - `pre-push` - Security scans (npm audit, safety check) ### GitHub Actions Workflow Located in `templates/`: - `github-security-workflow.yml` - Automated security scanning pipeline ### Security Scripts Integration The GitHub workflow uses security scanning scripts from: **Source:** `plugins/quality/skills/security-patterns/scripts/` The installation script copies these to the project's `scripts/` directory: - `scan-secrets.sh` - Comprehensive secret detection - `scan-dependencies.sh` - Dependency vulnerability scanning - `scan-owasp.sh` - OWASP security pattern detection - `generate-security-report.sh` - Security report generation ## Installation Script Use `scripts/install-hooks.sh` to install hooks into any git repository. ## Usage ```bash # Install all hooks bash ~/.claude/plugins/marketplaces/dev-lifecycle-marketplace/plugins/foundation/skills/git-hooks/scripts/install-hooks.sh # Install to specific project bash ~/.claude/plugins/marketplaces/dev-lifecycle-marketplace/plugins/foundation/skills/git-hooks/scripts/install-hooks.sh /path/to/project ``` ## What Gets Checked ### Secret Scanning (Local Hooks + GitHub Actions) **AI/ML Platform Keys:** - Airtable API Keys (key*, pat*) - Anthropic API Keys (sk-ant-...) - OpenAI API Keys (sk-...) - Context7 API Keys (ctx7-...) **Cloud Provider Keys:** - AWS Access Keys (AKIA..., ASIA...) - Google Cloud API Keys (AIza...) - Azure Connection Strings **Source Control:** - GitHub Personal Access Tokens (ghp_...) - GitHub OAuth Tokens (gho_...) - GitHub App Secrets (ghs_...) **Database:** - PostgreSQL Connection Strings - MySQL Connection Strings - MongoDB Connection Strings - Supabase Keys (supabase_...) **Payment/Communication:** - Stripe API Keys (sk_live_...) - Slack Tokens & Webhooks - Twilio API Keys - SendGrid API Keys - Mailgun API Keys **Other:** - JWT Tokens - Private Keys (RSA, SSH, PGP, EC) - Bearer Tokens - Generic API Keys and Secrets - NPM/PyPI Tokens ### Commit Message (commit-msg) Format: `type(scope): description` Valid types: - feat, fix, docs, style, refactor, test, chore, perf, ci, build, revert ### Security Checks (pre-push) - npm audit (Node.js projects) - safety check (Python projects) - Debug statement detection ## Safe Placeholders The secret scanner intelligently skips safe placeholder patterns: ✅ **Allowed patterns:** ```bash AIRTABLE_API_KEY=your_airtable_key_here OPENAI_API_KEY=your_key_here API_KEY=placeholder SECRET_TOKEN=example DATABASE_URL=TODO ``` ❌ **Blocked patterns (examples of what NOT to commit):** ```bash # Example of blocked pattern - DO NOT use real keys: AIRTABLE_API_KEY=your_airtable_key_here OPENAI_API_KEY=your_openai_key_here ``` Files ending in `.env.example` are treated leniently if they contain placeholder indicators. ## Bypass **Local hooks** can be bypassed when necessary (not recommended): ```bash git commit --no-verify git push --no-verify ``` **GitHub Actions** cannot be bypassed - they run on the server for every push/PR.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.