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 skills add AsyrafHussin/agent-skills --skill laravel-php-to-rustgit clone --depth 1 https://github.com/AsyrafHussin/agent-skillsWrote 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/asyrafhussin/agent-skills/laravel-php-to-rust)<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/laravel-php-to-rust"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/laravel-php-to-rust/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/laravel-php-to-rust"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/laravel-php-to-rust.svg" alt="Reviewed on agentmods" width="80" 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.00185 | $0.02884 |
| Opus 5.5 | $0.00074 | $0.01154 |
| Sonnet 5.5 | $0.00037 | $0.00577 |
| Haiku 4.5 | $0.00018 | $0.00288 |
Grade A, and why
laravel-php-to-rust 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 today.
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 — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Laravel PHP to Laravel for Rust
Port a Laravel PHP application, or the habits of a Laravel PHP developer, to Laravel for Rust. Contains 28 rules across 9 categories. Every Rust example compiles against laravel-rust 0.2.0, and each "Tested" note records what a test or command run on that version showed.
Version 1.1.0 (December 2026). Laravel for Rust is in beta, and releases before 1.0 may change APIs. The bundled docs never mention PHP, so there is no official porting guide; check every API against the docs bundled with the version you install. To move an app to a newer release, use the upgrading-laravel-rust skill that new apps ship in .agents/skills/.
When to Apply
- Porting a Laravel PHP app, or one feature of it, to Laravel for Rust
- A Laravel PHP developer starting a Laravel for Rust app
- Reviewing Rust code that looks like PHP: facades, route names,
$fillable,save(),down(),Inertia::lazy,'Y-m-d'
Not for: auditing a Laravel for Rust app (laravel-rust-audit), or writing new features without a PHP original (the app's own .agents/skills/, and laravel-rust-best-practices).
How to Port
- Start from
laravel new example-app --rust, and read the bundled docs for the installed version (port-plan) - Inventory the PHP app, and decide each gap with
port-missing-features - Port in layers: migrations and models, policies, routes with handlers and input structs, background work, mail and views
- Port each feature's PHP tests with it, and run
cargo test,cargo clippy --all-targets,npm run types:checkandnpm run check
Quick Map
| Laravel PHP | Laravel for Rust | Rule |
|---|---|---|
Route::resource, controllers |
resource!(posts) over a module of handler functions |
http-routes-and-handlers |
route('posts.show', $post) |
route!(posts::show, &post)? |
http-routes-and-handlers |
FormRequest |
#[laravel::input] with #[validate(..)]; authorization required |
http-form-requests |
max:255, in:a,b, nullable, sometimes |
max_length(255), one_of("a", "b"), Option<T>, Sometimes<T> |
http-form-requests |
$request->input('x') |
A typed struct: Valid<T> (body, last argument), Query<T> |
http-handler-arguments |
abort(404), response()->json($x, 201) |
laravel::abort!(404), Created(x) |
http-responses-errors |
| Middleware class + alias | #[middleware] async fn, referenced by name |
http-middleware-session |
Eloquent model, casts, $hidden |
#[model] struct, typed fields, #[serde(skip)] |
data-models |
$fillable, create(), update(), save() |
Fill struct, create!, update!; Sometimes<T> for PATCH |
data-writes |
where, orWhere, scopes |
.filter(a | b), scope functions returning db::Condition |
data-queries |
Lazy loading, ->pivot, withCount |
.with(..) or a panic, .join, .count() |
data-relationships |
up() / down(), migrate:rollback |
Forward-only migrate functions |
data-migrations |
| Factories, seeders | #[factory(Post)] structs, #[seeder] functions |
data-factories-seeders |
SoftDeletes, global scopes, observers |
deleted_at + scope, explicit scopes, model event listeners |
data-soft-deletes-scopes-observers |
Auth::attempt, guards |
Auth<User>, one session guard, #[laravel::auth::page(..)] |
auth-guards-and-login |
| Sanctum | A RequestGuard over hashed tokens |
auth-api-tokens |
Gate, policies, @can |
#[policy] methods passed by name; booleans to the view |
auth-policies |
Password::sendResetLink, Hash::make, MustVerifyEmail |
Passwords<User>, automatic hashing, the derive plus marked pages |
auth-passwords-verification |
config(), env(), app(), facades |
Section<T>, #[env(..)], Inject<T>, module functions |
app-config-env-container |
Cache, Storage, Http::..->throw() |
cache::, storage::, client::..ensure_successful() |
app-cache-storage-http |
Artisan commands, Log, Carbon |
#[command] functions, tracing, laravel::now() in UTC with strftime |
app-console-logging-time |
ShouldQueue jobs, Horizon |
#[derive(Queueable)] + #[job], queue:work |
async-jobs-and-queues |
Events, listeners, Schedule |
#[listener] functions, #[schedule::tasks] in UTC |
async-events-and-scheduling |
| Mailables, notifications, Echo | #[derive(Mailable)], #[notification], namespace: false |
async-mail-notifications-broadcasting |
| Blade | MiniJinja templates | view-blade-to-templates |
Inertia::render, Inertia::optional (older apps: Inertia::lazy) |
inertia::render, inertia::optional; not inertia::lazy |
view-inertia |
Pest, actingAs, fakes |
#[laravel::test], .acting_as(&user) on the request, bound fakes |
test-pest-to-laravel-test |
artisan optimize, storage:link |
A release binary with public/, resources/views/, storage/ |
deploy-release-binary |
What ships with it
33 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- AGENTS.md 112 KB
- metadata.json 3.8 KB
- README.md 4.3 KB
- rules/_sections.md 1.9 KB
- rules/_template.md 694 B
- rules/app-cache-storage-http.md 3.2 KB
- rules/app-config-env-container.md 3.3 KB
- rules/app-console-logging-time.md 2.8 KB
- rules/async-events-and-scheduling.md 3.9 KB
- rules/async-jobs-and-queues.md 5.5 KB
- rules/async-mail-notifications-broadcasting.md 3.5 KB
- rules/auth-api-tokens.md 3.9 KB
- rules/auth-guards-and-login.md 6.2 KB
- rules/auth-passwords-verification.md 6.6 KB
- rules/auth-policies.md 3.6 KB
- rules/data-factories-seeders.md 3.3 KB
- rules/data-migrations.md 3.9 KB
- rules/data-models.md 4.0 KB
- rules/data-queries.md 4.7 KB
- rules/data-relationships.md 3.8 KB
- rules/data-soft-deletes-scopes-observers.md 5.2 KB
- rules/data-writes.md 4.0 KB
- rules/deploy-release-binary.md 4.3 KB
- rules/http-form-requests.md 4.7 KB
- rules/http-handler-arguments.md 3.4 KB
- rules/http-middleware-session.md 3.6 KB
- rules/http-responses-errors.md 3.5 KB
- rules/http-routes-and-handlers.md 4.3 KB
- rules/port-missing-features.md 5.1 KB
- rules/port-plan.md 4.5 KB
- rules/test-pest-to-laravel-test.md 5.0 KB
- rules/view-blade-to-templates.md 3.0 KB
- rules/view-inertia.md 4.6 KB
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.
- today Changed 21c2c80e1b15
- 2d ago First seen · 168 lines · 185 tokens per session scan A 2fb8a52d3280
laravel-php-to-rust is a skill published in the GitHub repository AsyrafHussin/agent-skills (116 stars, last pushed today), licensed MIT. It adds 185 tokens to every session and 2,884 once invoked, about $0.0007 per session on Opus 5.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-12-03.
laravel-php-to-rust compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| laravel-php-to-rustAsyrafHussin/agent-skills | Skill | 116 | today | MIT | A | 185 | Claude Code, Codex |
| rust-skillsleonardomso/rust-skills | Skill | 796 | 8d ago | MIT | A | 56 | Claude Code, Codex |
| rustolehsvyrydov/AI-development-team | Skill | 18 | 15d ago | MIT | A | 105 | Claude Code |
| standardssamibs/skillfoundry | Skill | 13 | 2mo ago | MIT | A | 29 | Claude Code, Codex |
| rust-coreadonai-labs/agent-runway | Skill | 2 | 8d ago | MIT | A | 82 | Claude Code, Codex |
| rust-reviewcamilooscargbaptista/cto-toolkit | Skill | 9 | 8mo ago | MIT | A | 100 | Claude Code |
| ia-rust-systemsiliaal/whetstone | Skill | 37 | today | MIT | A | 61 | Claude Code |