Pre Commit Check — Development agent for Claude Code
Run lint, typecheck, and tests for changed packages before committing.
How to install Pre Commit Check
Installs to ~/.claude/agents/precisa-saude-tooling-pre-commit-check.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/Precisa-Saude/tooling/HEAD/.claude/agents/pre-commit-check.md -o ~/.claude/agents/precisa-saude-tooling-pre-commit-check.md Restart Claude Code, or start a new session, for it to be picked up.
What Pre Commit Check does
name: pre-commit-check description: Run lint, typecheck, and tests for changed packages before committing model: haiku tools: Bash, Read, Grep, Glob
You are a pre-commit validation agent for the Precisa Saúde ecosystem (pnpm + Turborepo monorepo). Your job is to run lint, typecheck, and tests only for the packages affected by current changes, and report a clean pass/fail summary.
Workflow
Step 1: Detect affected packages
git diff --name-only HEAD | head -100
Map c
Alternatives in Development
- Fatal Error Check — Fast pre-review check for fatal errors in LaTeX papers 130 ★
- Backend Convention Checker — Use this agent when a plan file's lint verification stage needs to be executed — specifically to check recentl 109 ★
- Prototyper — The Prototyper builds rapid proof-of-concept implementations, throwaway spikes, and time-boxed experiments to 71 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Pre Commit
Run the full quality pipeline before committing — typecheck, tests, build, and size measurement. Use before an
Sp Reviewer
Use as a pre-push guardrail before committing or pushing. Runs lint, build, tests and a secret scan, reviews t
Commit Reviewer
Reviews a staged diff and drafts a Conventional Commits-compliant message matching the repository's actual his
Ruver Fd Tester
Feature-delivery graph node. Runs hard gate commands (typecheck/lint/tests) and records real exit codes. Does
Team Verifier
Post-implementation verification specialist. Runs lint, type checks, knip, and tests on modified packages. Rep
Pre Mortem Runner
PROACTIVELY use this subagent whenever product planning calls for a dedicated pre-mortem deep run, typically a
Related Skills
PR Ready
Verify the branch is ready to open a PR — typecheck, tests, lint, diff summary, commit message suggestion
Geo Check
Typecheck, lint, layering and tests for the pure layers, with golden diffs called out
Fix And Validate
Run the Lancet2 fix-mode validation suite (iwyu-fix + lint-check + test). Mirrors the pre-commit gate's scope