Skip to content
Agentmart
Submit a tool

ask-laravel-mechanic

Laravel maintenance with Zero Data Loss policy, Mongo/SQL debugging.

Skill by NavanithanS

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/navanithans-ask-laravel-mechanic

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Laravel maintenance with Zero Data Loss policy, Mongo/SQL debugging.

Use cases: backend, data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ask-laravel-mechanic

What's inside

Skill name
ask-laravel-mechanic
Description
Laravel maintenance with Zero Data Loss policy, Mongo/SQL debugging.
License
MIT
Instructions
62 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (6)

  • README.md
  • SKILL.md
  • validate.py · scripts/
  • skill.yaml
  • case1_placeholder.md · tests/
  • evals.yaml · tests/

SKILL.md (first lines)

<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>
```php
User::withTrashed()->find($id)->restore();
```
</soft_delete_restore>

<debugging>
## Database Inspection
- SQL: `php artisan model:show User`
- Mongo: `php artisan tinker --execute="dump(App\Models\User::first()->getAttributes())"`

## N+1 Prevention
```php
// In AppServiceProvider::boot()
Model::preventLazyLoading(!app()->isProduction());
```

## Common Errors
- "member function on null" → Mongo relation with SQL syntax, check `with()`
- "MongoDB\... not found" → wrong namespace, check composer.json
</debugging>

<log_analysis>
```bash
# 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>
- Status: `queue:monitor default`
- Failed: `queue:failed`
- Retry one: `queue:retry <UUID>`
- Flush all: `queue:flush` (careful!)
</queue_forensics>

From NavanithanS/Agent-Skill-Kit, MIT.

More from NavanithanS/Agent-Skill-Kit

Signals

Stars
1
Forks
1
Open issues
0
Last commit (this folder)
Sep 5, 2026 (1 month ago)
Last release
Oct 4, 2026 (24 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from NavanithanS

Cite this page

ask-laravel-mechanic skill. Agent Mart. https://agentmart.dev/skills/navanithans-ask-laravel-mechanic (last updated 2026-10-24)