返回 Skill 列表
extension
分类: 开发与工程无需 API Key

dev-checker

运行预提交检查并验证代码质量。在准备提交、运行预部署检查或在部署前验证代码时使用。

person作者: jakexiaohubgithub

Dev Checker Skill

Purpose

Quick validation before commits/deploys. Run these checks automatically.

Quick Commands

1. Type Check

pnpm tsc --noEmit

✅ Must pass with 0 errors

2. Build Check

pnpm build

✅ Should complete in < 5 seconds

3. Lint Check

pnpm lint

✅ Fix any warnings

Pre-Commit Checklist

Before committing:
[ ] pnpm tsc --noEmit (0 errors)
[ ] No console.log in code
[ ] No API keys in files
[ ] .env not staged (git status)

Pre-Deploy Checklist

Before deploying:
[ ] All tests pass
[ ] Build succeeds
[ ] Edge Functions deployed
[ ] Environment vars set
[ ] Database migrations applied

Common Issues

TypeScript Errors

# Find all TS errors
pnpm tsc --noEmit | grep "error TS"

# Common fixes:
# - Add missing imports
# - Fix type definitions
# - Update function signatures

Build Failures

# Clear cache and rebuild
rm -rf node_modules/.vite
pnpm build

Usage

Just ask: "Run dev checks" or "Check if ready to commit"

I'll automatically run through the checklist and report results.