git_precommit_check
git_precommit_checkValidates staged TS/TSX files for auth guard completeness and correct server/client separation, then provides a clear continue or stop reason to enforce code quality before commit.
Instructions
Git pre-commit guard for staged TS/TSX files: reads staged blobs, checks API route auth guards and Next.js server/client boundary mistakes, persists staged Reef findings unless MAKO_REEF_BACKED disables the migration, and returns hook-friendly continue/stopReason output. Uses discovered project-profile auth guards/server-only modules plus optional .mako/git-guard.json/input allowlists. Never edits the index or worktree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | ||
| projectRef | No | ||
| publicRouteGlobs | No | ||
| authGuardSymbols | No | ||
| serverOnlyModules | No | ||
| includeExtensions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toolName | Yes | ||
| projectId | Yes | ||
| projectRoot | Yes | ||
| gitRoot | Yes | ||
| stagedChanges | Yes | ||
| stagedFiles | Yes | ||
| checkedFiles | Yes | ||
| skippedFiles | Yes | ||
| findings | Yes | ||
| warnings | Yes | ||
| policy | Yes | ||
| continue | Yes | ||
| stopReason | No | ||
| _hints | Yes |