Git workflow, code quality, context management and testing commands: - commit, push, pr, issue - git operations - simplify, refactor, verify, check - code quality - catchup, onboard, save, cleanup - context management - test, format, sync - development utilities Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2.5 KiB
Full Check
Pre-computed Context
Package Scripts:
!cat package.json 2>/dev/null | grep -E '"(check|typecheck|lint|test|validate)"' | head -8 || echo "No package.json"
TypeScript Config:
!test -f tsconfig.json && echo "tsconfig.json found" || echo "No tsconfig.json"
ESLint Config:
!ls .eslintrc* eslint.config.* 2>/dev/null | head -1 || echo "No ESLint config"
Python Tools:
!cat pyproject.toml 2>/dev/null | grep -E '\[(tool\.)?(mypy|ruff|flake8|pylint)\]' | head -3 || echo "No Python lint config"
Instructions
You are running a comprehensive check: typecheck, lint, and test in sequence.
Execution Order
Run checks in this order (stop on first failure unless --continue specified):
1. Type Checking
TypeScript:
npx tsc --noEmit
Python (mypy):
python -m mypy . 2>/dev/null || echo "mypy not configured"
Python (pyright):
npx pyright 2>/dev/null || echo "pyright not configured"
2. Linting
ESLint:
npx eslint . --ext .ts,.tsx,.js,.jsx
With --fix argument:
npx eslint . --ext .ts,.tsx,.js,.jsx --fix
Python (ruff):
ruff check .
With fix:
ruff check --fix .
Python (flake8):
flake8 .
3. Tests
npm test
# or
pytest
Using npm Scripts
If the project has a check or validate script, prefer that:
npm run check 2>/dev/null || npm run validate 2>/dev/null
Common patterns:
npm run typecheck && npm run lint && npm test
Report Format
## Check Results
### TypeScript
[PASS] No type errors
### ESLint
[PASS] No lint errors
# or
[FAIL] 3 errors, 5 warnings
- src/api.ts:15 - @typescript-eslint/no-explicit-any
- src/utils.ts:42 - no-unused-vars
### Tests
[PASS] 45 tests passed
# or
[FAIL] 2 tests failed
- UserService.test.ts > should handle null input
- ApiClient.test.ts > should retry on failure
### Summary
2/3 checks passed
On Failure
If any check fails:
- Show the specific errors
- If
--fixwas provided, attempt auto-fixes - Re-run the failing check after fixes
- Report remaining issues
Quick Commands
Check everything:
/workflow:check
Check and auto-fix:
/workflow:check --fix
Check specific phase:
npx tsc --noEmit # just typecheck
npx eslint . # just lint
npm test # just test