← 返回 Skills 市场
1338
总下载
4
收藏
3
当前安装
2
版本数
在 OpenClaw 中安装
/install laravel
功能描述
Avoid common Laravel mistakes — N+1 queries, mass assignment, cache gotchas, and queue serialization traps.
使用说明 (SKILL.md)
Quick Reference
| Topic | File |
|---|---|
| N+1 queries, eager loading, accessors, observers | eloquent.md |
| Validation, middleware order, dependency injection | controllers.md |
| Job serialization, retries, failed jobs | queues.md |
| Guards, policies, gates, Sanctum tokens | auth.md |
| XSS escaping, components, slots | blade.md |
| Commands, scheduling, tinker | artisan.md |
Critical Rules
- Eager load relationships —
with('posts')not lazy->postsin loop (N+1) preventLazyLoading()in dev AppServiceProvider — crashes on N+1, catches earlyenv()only in config files — returns null afterconfig:cache$fillablewhitelist fields —$guarded = []allows mass assignment attacksfind()returns null — usefindOrFail()to avoid null checks- Job properties serialize models as ID — re-fetched on process, may be stale/deleted
route:cacherequires controller routes — closures break cached routesDB::transaction()doesn't catchexit/timeout — only exceptions roll backRefreshDatabaseuses transactions — faster thanDatabaseMigrations{!! $html !!}skips escaping — XSS vector, use{{ }}by default- Middleware order matters — earlier middleware wraps later execution
requiredvalidation passes empty string — userequired|filledfor contentfirstOrCreatepersists immediately —firstOrNewreturns unsaved model- Route model binding uses
id— overridegetRouteKeyName()for slug
安全使用建议
This skill is documentation-only and coherent with its stated purpose. It does not request credentials or install code. Before installing: (1) confirm you trust the publisher (source/homepage not provided), (2) ensure php and composer are available if you want to follow its advice locally, and (3) exercise normal caution if you let an agent act on its recommendations — never paste secrets into chat or run suggested CLI commands without reviewing them first.
功能分析
Type: OpenClaw Skill
Name: laravel
Version: 1.0.1
The skill bundle contains metadata and documentation files (`.md`) detailing common pitfalls and best practices in Laravel development. The `SKILL.md` and other markdown files provide educational content on how to avoid vulnerabilities like N+1 queries, mass assignment, and XSS, rather than exploiting or instructing the agent to perform malicious actions. There is no executable code, no instructions for data exfiltration, persistence, or any form of prompt injection against the agent with harmful intent. The content is purely informational and aligned with the stated purpose of helping to build robust Laravel applications.
能力评估
Purpose & Capability
Name/description (Laravel Eloquent, queues, auth, blade, artisan advice) align with the declared requirements (php and composer). Requiring PHP tooling is proportionate for a Laravel guidance skill.
Instruction Scope
SKILL.md and the included .md files are documentation and checklists. They do reference Artisan commands and Laravel behaviors as warnings, but do not instruct the agent to read unrelated files, exfiltrate data, or call external endpoints. There are no instructions that access environment variables, credentials, or system paths beyond expected Laravel discussion (e.g., note about env() usage).
Install Mechanism
No install spec and no code files — the skill is instruction-only which minimizes disk or network risk.
Credentials
The skill requests no environment variables, credentials, or config paths. The few mentions of env() in the docs are guidance about Laravel behavior, not a request to read secrets.
Persistence & Privilege
always is false and the skill does not request persistent presence or modify other skills or system settings. User-invocable/autonomous invocation are defaults and acceptable here.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install laravel - 安装完成后,直接呼叫该 Skill 的名称或使用
/laravel触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Initial release
v1.0.0
Initial release
元数据
常见问题
Laravel 是什么?
Avoid common Laravel mistakes — N+1 queries, mass assignment, cache gotchas, and queue serialization traps. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1338 次。
如何安装 Laravel?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install laravel」即可一键安装,无需额外配置。
Laravel 是免费的吗?
是的,Laravel 完全免费(开源免费),可自由下载、安装和使用。
Laravel 支持哪些平台?
Laravel 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。
谁开发了 Laravel?
由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.1。
推荐 Skills