一键导入
Laravel maintenance with Zero Data Loss policy, Mongo/SQL debugging.
npx skills add https://github.com/NavanithanS/Agent-Skill-Kit --skill ask-laravel-mechanic复制此命令并粘贴到 Claude Code 中以安装该技能
Laravel maintenance with Zero Data Loss policy, Mongo/SQL debugging.
npx skills add https://github.com/NavanithanS/Agent-Skill-Kit --skill ask-laravel-mechanic复制此命令并粘贴到 Claude Code 中以安装该技能
Laravel scaffolding for SQL or Mongo (Official/Jenssegers), SoftDeletes, API standards.
Vue 3 scaffolding for Laravel Inertia, Nuxt, or Vite. Composition API + TypeScript.
Vue 3 + Inertia maintenance. Fixes navigation reloads, prop mismatches, reactivity loss.
Guidelines for impact analysis, breaking change detection, and strategic database design.
Code review, staging, and Conventional Commit message generation. MUST NOT COMMIT.
Brief description of what the skill does
| name | ask-laravel-mechanic |
| description | Laravel maintenance with Zero Data Loss policy, Mongo/SQL debugging. |
| triggers | ["fix n+1 query","debug laravel queue","check log files","restore soft deleted"] |
<critical_constraints>
❌ NO migrate:fresh on prod/staging → destroys DB
❌ NO db:seed on prod → overwrites data
❌ NO Model::truncate() on prod without backup
❌ NO migrate:reset on prod
✅ MUST run php artisan env before dangerous commands
✅ MUST use migrate --pretend when unsure
✅ MUST restart queue after code deployment
</critical_constraints>
<safety_commands>
✅ Allowed: migrate (forward only)
✅ Safe test: migrate --pretend (shows SQL without running)
✅ Cache clear: optimize:clear
✅ Queue restart: queue:restart (after deploy!)
</safety_commands>
<soft_delete_restore>
User::withTrashed()->find($id)->restore();
</soft_delete_restore>
## Database Inspection - SQL: `php artisan model:show User` - Mongo: `php artisan tinker --execute="dump(App\Models\User::first()->getAttributes())"`// In AppServiceProvider::boot()
Model::preventLazyLoading(!app()->isProduction());
with()<log_analysis>
# Single channel
tail -n 50 storage/logs/laravel.log
# Daily channel
tail -n 50 storage/logs/laravel-$(date +%Y-%m-%d).log
# Search with context
grep -C 5 "User ID 505" storage/logs/laravel.log
Keywords: local.ERROR, QueryException, ModelNotFound, MassAssignmentException </log_analysis>
<queue_forensics>
queue:monitor defaultqueue:failedqueue:retry <UUID>queue:flush (careful!)
</queue_forensics>