Objective
The objective of this skill is to automatically check for linting errors, test failures, and other issues in the codebase to ensure code quality and maintainability prior to pushing changes or creating a pull request (PR).
Non-negotiables
- DO NOT fix any failures without first raising them to the user and asking for permission to fix them.
- Exception:
pnpm lint:fixorpnpm lint:format --writecommands can be run as part of the checks
- Exception:
- Run all checks across all directories before presenting failures back to the user
Procedure
- Determine the scope of checks to be run
- Run
git merge-base origin/main HEADandgit log --oneline origin/main..HEADto list commits on this branch - Run
git diff-tree --no-commit-id -r --name-only <sha>for each commit sha to get the files changed in that commit. Combine those file lists — these are the only files in scope.- Do not use
git diff --name-only origin/main..HEAD; that compares the full working-tree againstmainand will include files changed by others onmainsince the branch was cut.
- Do not use
- Check if any of the in-scope files belong to the following directories:- Check if any of the in-scope files belong to the following directories:
packages/componentspackages/flight-iconspackages/mcppackages/tokensshowcasewebsite
- Run apprpopriate checks and generate any fixes based on the changed files or directories
packages/components:./package-components-checks.mdpackages/flight-icons:./package-flight-icons-checks.mdpackages/mcp:./package-mcp-checks.mdpackages/tokens:./package-tokens-checks.mdshowcase:./showcase-checks.mdwebsite:./website-checks.md
- Report any issues found during the checks
- For any checks that fail or generate errors, report the issues found and provide guidance on how to fix them.
- IMPORTANT Run all checks before reporting any issues and then present any remaining isuses in a condense summarized report.