# Pre Commit

> Run the repository's quality gate before commit or PR by determining the relevant build, lint, and test commands and fixing obvious issues.

- Skill: `majiayu000/pre-commit-5` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/pre-commit-5`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/pre-commit-5/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/majiayu000/pre-commit-5

---


# Pre-commit

## Workflow

1. Read `AGENTS.md`, `TESTING.md`, and relevant service config.
2. Determine lint, build, and test commands for the changed area.
3. Run targeted checks first, then broader checks if needed.
4. Fix obvious failures and rerun.
5. Report what passed, what failed, and any remaining risk.

