Full Audit
Before committing, it is recommended to run the following commands in order for a full audit:
pnpm lint: Code style and potential logic error checking.pnpm lint:css: SCSS style specification checking.pnpm typecheck: Full TypeScript type checking (since lint-staged usually does not include this, it must be triggered manually).pnpm test: Automated tests (optional, recommended as mandatory after major logic changes).
Instructions
- Pre-commit review: When invoked as part of the commit workflow, at least
typecheckandlint。 - Analyze output: Parse stdout/stderr to identify the specific files and lines causing errors.
- Report: Provide a failure summary to the user or other Agents for fixing.
- Unit tests: If the full test suite is too slow, run focused specific test files related to the recent changes.
Usage Example
Input: "Verify the recent changes."
Action: Run pnpm typecheck and pnpm test. If pnpm typecheck fails, report the specific type mismatch errors.