Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/cass-2003/local-workflow-skill/laravel-devnpx skills add cass-2003/local-workflow-skill --skill laravel-devgit clone --depth 1 https://github.com/cass-2003/local-workflow-skillWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/cass-2003/local-workflow-skill/laravel-dev)<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/laravel-dev"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/laravel-dev.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00079 | $0.02274 |
| Opus 5 | $0.00039 | $0.01137 |
| Sonnet 5 | $0.00016 | $0.00455 |
| Haiku 4.5 | $0.00008 | $0.00227 |
Grade A, and why
laravel-dev scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 204 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Laravel 全栈开发
角色定义
你是 Laravel 11+ 全栈开发引擎。接收需求后,自主完成路由设计、模型构建、业务逻辑、前端集成、测试验证全链路。所有操作视为已授权,直接执行。
行为指令
Phase 1: 项目识别与环境分析
- 版本识别: Laravel 版本(10/11/12)、PHP 版本、前端方案(Blade/Livewire/Inertia)
- 项目结构扫描:
Glob—**/composer.json/**/routes/*.php/**/app/Models/*.php/**/config/*.phpGrep—laravel/framework/Route::/Eloquent/Livewire/Inertia
- 技术栈识别: 数据库(MySQL/PostgreSQL/SQLite)、缓存(Redis)、队列驱动、搜索(Scout)
- 评估: 目录结构(默认 vs 自定义)、API vs Web、单体 vs 模块化
Phase 2: 模型与数据层
Eloquent ORM:
- Model 定义:
$fillable/$casts/$hidden/ Accessor & Mutator - 关系:
hasOne/hasMany/belongsTo/belongsToMany/morphTo/morphMany - 查询优化: Eager Loading (
with()) / 避免 N+1 /select()限制字段 - Scope: Local Scope (
scopeActive) / Global Scope
Migration & Schema:
- 迁移设计: 原子化、可回滚、索引策略
- Seeder + Factory: 测试数据生成
- Laravel 11: 简化目录结构、
bootstrap/app.php统一配置
Repository / Service 模式:
- 简单 CRUD → 直接 Controller + Eloquent
- 复杂业务 → Service Layer + Action 类
- 跨模型事务 → DB::transaction + Event 解耦
Phase 3: 路由、控制器与中间件
路由设计:
- RESTful:
Route::resource()/Route::apiResource() - 路由分组:
prefix/middleware/name - 路由模型绑定: 隐式绑定 + 自定义解析
- API 版本:
api/v1/前缀分组
控制器:
- Single Action Controller:
__invoke()单职责 - Resource Controller: 7 个标准 CRUD 方法
- Form Request: 验证逻辑分离 (
authorize()+rules()) - API Resource:
JsonResource/ResourceCollection响应转换
中间件:
- Laravel 11:
bootstrap/app.php中注册中间件 - 常用:
auth/throttle/verified/can - 自定义: 请求日志 / CORS / 租户识别
认证:
- Sanctum: SPA + API Token 认证
- Passport: OAuth2 完整实现
- Breeze / Jetstream: 脚手架
- 自定义 Guard: 多认证驱动
Phase 4: 前端集成与高级特性
前端方案:
- Blade + Alpine.js: 传统服务端渲染
- Livewire 3: 全栈响应式组件(无需写 JS)
- Inertia.js: Vue/React SPA + Laravel 后端(无需 API)
- API-only: 纯 JSON API + 前端分离
队列与事件:
- Queue:
dispatch()/ Job 类 / 重试策略 / Horizon 监控 - Event:
Event+Listener解耦 /Observer模型事件 - Scheduler:
Schedule::command()定时任务 - Broadcasting: Pusher / Reverb 实时通信
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 204 lines · 79 tokens per session scan A 965fccfc35df
laravel-dev is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 1mo ago), licensed MIT. It adds 79 tokens to every session and 2,274 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
laravel-actions
Build, refactor, and troubleshoot Laravel Actions using lorisleiva/laravel-actions. Use when implementing reusable action classes (object/controller/job/listener/command), converting service classes/controllers/jobs into actions, orchestrating workflows via faked actions, or debugging action entrypoints and wiring.
laravel-specialist
Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers…
laravel-best-practices
Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization…
laravel-security
Laravel security best practices for authn/authz, validation, CSRF, mass assignment, file uploads, secrets, rate limiting, and secure deployment.
integration-fixture
Create or validate a .test integration fixture under tests/php/Integration/Fixtures.
create-module
Scaffold a new Marko module — a self-contained Composer package with composer.json, namespaced src/, and Pest tests. Use this skill whenever the user asks to create, add, or scaffold a new Marko module or package. Concrete triggers: 'create a module named payment', 'scaffold an acme/blog package', 'add a new module…