SuperAPI AI Directory

quality-guardian

Testing & quality

View repository

Updated 10-15 20:10

About this skill

Quality Guardian Skill

Full Audit

Before committing, it is recommended to run the following commands in order for a full audit:

  1. pnpm lint: Code style and potential logic error checking.
  2. pnpm lint:css: SCSS style specification checking.
  3. pnpm typecheck: Full TypeScript type checking (since lint-staged usually does not include this, it must be triggered manually).
  4. pnpm test: Automated tests (optional, recommended as mandatory after major logic changes).

Instructions

  1. Pre-commit review: When invoked as part of the commit workflow, at least typecheck and lint。
  2. Analyze output: Parse stdout/stderr to identify the specific files and lines causing errors.
  3. Report: Provide a failure summary to the user or other Agents for fixing.
  4. 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.