source-command-scan-errors
БесплатноБез исполняемых скриптовНе проверенMigrated source command `scan-errors`
от databayt★ 19 звёзд на GitHubОб этом скилле
source-command-scan-errors
Use this skill when the user asks to run the migrated source command scan-errors.
Command Template
Scan Errors Command
Command: /scan-errors Purpose: Pattern-based error detection across the entire codebase with bulk auto-fix capabilities
Description
Scans the entire codebase for common error patterns that cause TypeScript build failures. Combines multiple validation skills to detect all error types from docs/build-fixes-2025-10-29.md.
Detects:
- Dictionary property errors (173+ patterns)
- Prisma field type errors (13+ patterns)
- Enum completeness issues (2+ patterns)
- Multi-tenant safety violations
- Type safety issues
Usage
# Scan entire codebase
/scan-errors
# Scan specific pattern type
/scan-errors dictionary
/scan-errors prisma
/scan-errors enum
/scan-errors all
# Scan specific directory
/scan-errors --path=src/components/school-dashboard/finance/
# Scan with auto-fix
/scan-errors --fix
# Dry run (show issues without fixing)
/scan-errors --dry-run
# Generate report
/scan-errors --report=errors-report.md
Error Pattern Categories
1. Dictionary Errors (Pattern: d?.stats, d?.blocks)
// Detects: 173+ invalid property accesses
❌ d?.stats?.totalBudget
❌ d?.blocks?.invoice?.title
❌ d?.sections?.overview?.description
❌ d?.actions?.viewAll
❌ d?.workflow?.step1?.title
Skill Used: dictionary-validator
2. Prisma Field Errors (Pattern: connect on ID fields)
// Detects: 13+ field type issues
❌ submittedBy: { connect: { id: userId } }
❌ include: { submittedBy: true }
❌ Missing expenseNumber, submittedAt
Skill Used: prisma-optimizer
3. Enum Completeness (Pattern: Record<Enum, T>)
// Detects: 2+ incomplete enum mappings
❌ ExpenseStatusLabels missing CANCELLED
❌ ExpenseStatusColors missing CANCELLED
Agent Used: type-safety
4. Multi-Tenant Safety (Pattern: missing schoolId)
// Detects: schoolId violations
❌ db.student.findMany({ where: { yearLevel: 'GRADE_10' } })
Skill Used: multi-tenant-validator
Output Format
Full Scan Output
$ /scan-errors
🔍 Scanning codebase for error patterns...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 SCAN PROGRESS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[████████████████████████████████] 100%
Scanned: 1,247 files
Duration: 12.3s
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 RESULTS BY CATEGORY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Dictionary Errors 189 issues 🔴 CRITICAL
2. Prisma Field Type Errors 13 issues 🔴 CRITICAL
3. Enum Completeness Issues 2 issues 🔴 CRITICAL
4. Multi-Tenant Violations 0 issues ✅ OK
5. Type Safety Issues 3 issues ⚠️ WARNING
Total Critical Issues: 204
Total Warnings: 3
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 DICTIONARY ERRORS (189 issues)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 src/components/school-dashboard/finance/content.tsx
❌ 102 invalid dictionary property accesses
Patterns found:
- d?.stats?.* (16 occurrences)
- d?.blocks?.* (72 occurrences)
- d?.workflow?.* (14 occurrences)
Examples:
Line 162: d?.stats?.totalRevenue || 'Total Revenue'
Line 302: d?.blocks?.invoice?.title || 'Invoicing'
Line 677: d?.workflow?.step1?.title || 'Step 1'
📁 src/components/school-dashboard/finance/budget/content.tsx
❌ 16 invalid dictionary property accesses
Pattern: d?.stats?.* (16 occurrences)
📁 src/components/school-dashboard/finance/expenses/content.tsx
❌ 29 invalid dictionary property accesses
Patterns found:
- d?.description (1 occurrence)
- d?.stats?.* (8 occurrences)
- d?.sections?.* (10 occurrences)
- d?.actions?.* (10 occurrences)
📁 src/components/school-dashboard/finance/fees/content.tsx
❌ 42 invalid dictionary property accesses
Same patterns as expenses
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 PRISMA FIELD TYPE ERRORS (13 issues)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 src/components/school-dashboard/finance/expenses/actions.ts
❌ 8 field type errors
Issues:
- Line 35: connect pattern on ID field 'submittedBy'
- Line 40: connect pattern on ID field 'approvedBy'
- Line 86: invalid include 'submittedBy'
- Line 184: invalid include 'submittedBy'
- Line 32: missing required field 'expenseNumber'
- Line 32: missing required field 'submittedAt'
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 ENUM COMPLETENESS ISSUES (2 issues)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 src/components/school-dashboard/finance/expenses/config.ts
❌ 2 incomplete enum mappings
ExpenseStatus enum has 5 values:
PENDING, APPROVED, REJECTED, PAID, CANCELLED
Line 7: ExpenseStatusLabels
- Missing: CANCELLED
Line 15: ExpenseStatusColors
- Missing: CANCELLED
━━━━━━━━━━━
Установить source-command-scan-errors в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл source-command-scan-errors?
Migrated source command `scan-errors`
Как установить скилл source-command-scan-errors?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл source-command-scan-errors запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic