TypeScript 类型检查流程。当用户说"类型检查"、"type-check"、"tsc"或需要检查 TypeScript 类型错误时触发。
From open-skillsnpx claudepluginhub fudesign2008/open-skills --plugin open-skillsThis skill uses the workspace's default tool permissions.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Details PluginEval's skill quality evaluation: 3 layers (static, LLM judge), 10 dimensions, rubrics, formulas, anti-patterns, badges. Use to interpret scores, improve triggering, calibrate thresholds.
按优先级尝试以下命令:
# 优先使用项目配置的脚本
if grep -q '"type-check"' package.json; then
npm run type-check
elif grep -q '"check"' package.json; then
npm run check
elif [ -f "tsconfig.json" ]; then
npx tsc --noEmit
else
echo "⚠️ 未找到 TypeScript 配置"
fi
如果检查通过:
✅ TypeScript 类型检查通过
如果检查失败:
❌ 发现 TypeScript 类型错误:
文件:xxx.ts:行号:列号 - 错误描述
文件:yyy.tsx:行号:列号 - 错误描述
共发现 N 个错误
对于每个错误,按以下格式提供修复方案:
### 错误 N: [简要描述]
📍 位置: 文件:行号
🔧 修复方案:
[说明修复思路]
是否应用此修复?(等待用户同意)
重要:必须等待用户明确同意后才能执行修复。
如果用户同意,可以逐个或批量修复,每修复一个后重新检查,直到所有错误解决。