一键导入
github-hooks
Set up local Git hooks for pre-commit validation (lint, format, tests, secrets). Integrates with mern-scaffold, nean-scaffold, and iOS projects.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Set up local Git hooks for pre-commit validation (lint, format, tests, secrets). Integrates with mern-scaffold, nean-scaffold, and iOS projects.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | github-hooks |
| description | Set up local Git hooks for pre-commit validation (lint, format, tests, secrets). Integrates with mern-scaffold, nean-scaffold, and iOS projects. |
| argument-hint | [--platform mern|nean|ios] [--no-secrets] [--no-tests] |
| allowed-tools | Bash, Write, Read, Glob, Grep |
Install local Git hooks to catch issues before commits reach the remote. Complements github-secure by shifting checks left.
Designed to work with: /mern-scaffold, /mern-kit, /nean-scaffold, /nean-kit, and iOS projects.
--platform <p> — Target platform: mern, nean, or ios (auto-detected if not specified)--no-secrets — Skip secret scanning hook--no-tests — Skip pre-push test hookIf --platform not specified:
nx.json → NEANpnpm-workspace.yaml or turbo.json → MERNproject.yml (XcodeGen) or Package.swift or *.xcodeproj → iOS.husky/
├── pre-commit # Lint + format staged files
├── commit-msg # Validate commit message format
└── pre-push # Run tests before push
.lintstagedrc.json # Lint-staged configuration
.commitlintrc.json # Commit message rules
.gitleaks.toml # Secret scanning config
package.json # Updated with husky + lint-staged + commitlint
.husky/
├── pre-commit # Lint + format staged files (via Nx)
├── commit-msg # Validate commit message format
└── pre-push # Run affected tests before push
.lintstagedrc.json # Lint-staged configuration (Nx-aware)
.commitlintrc.json # Commit message rules
.gitleaks.toml # Secret scanning config
package.json # Updated with husky + lint-staged + commitlint
.githooks/
├── pre-commit # SwiftLint + SwiftFormat on staged files
├── commit-msg # Validate commit message format
└── pre-push # Run tests before push
scripts/
└── install-hooks.sh # Hook installation script
Uses gitleaks to detect:
When used after /mern-scaffold:
When used after /nean-scaffold:
nx.json)npx nx affected --target=lint on staged filesnpx nx affected --target=testWhen used after /ios-scaffold:
.githooks/ directory with shell scriptsscripts/install-hooks.sh for team onboarding/github-secure for repository-level securityFor hook configurations and customization, see reference/github-hooks-reference.md
Scaffold a pnpm + Turborepo MERN monorepo with Next.js, tooling, tests, CI, and optional GitHub repo creation.
Configure GitHub repository security with branch protection, Dependabot, security scanning, and CI workflows. Integrates with mern-scaffold, nean-scaffold, and iOS projects.
Harden a Vercel deployment with security headers, CSP, bot protection, and deployment configuration
Add authentication to an iOS app with Sign in with Apple, biometrics, and Keychain storage.
Scaffold a new feature with View, ViewModel, and tests following ios-std conventions.
Review iOS code for compliance with standards, NFRs, and security policy.