rust-for-laravel-developers

rust-for-laravel-developers is a skill for Claude Code, Codex from AsyrafHussin/agent-skills. It costs 229 tokens per session (4,037 once invoked), scanned A, original, MIT.

A guide for writing and reviewing Rust code for developers who know PHP or Laravel. It explains Rust behavior by comparing it with familiar PHP patterns and errors.

In plain words
What is it for?
Use it when writing Rust, reviewing PHP-like Rust code, or explaining compiler errors to a Laravel developer.
Why use it?
It reduces mistakes caused by carrying PHP assumptions into Rust, such as how missing values, copied data, errors, and default arguments work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it when writing Rust, reviewing PHP-like Rust code, or explaining compiler errors to a Laravel developer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asyrafhussin/agent-skills/rust-for-laravel-developers
Install

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.

Any agent
npx skills add AsyrafHussin/agent-skills --skill rust-for-laravel-developers
Clone the repo
git clone --depth 1 https://github.com/AsyrafHussin/agent-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for rust-for-laravel-developers

README.md
[![agentmods](https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/rust-for-laravel-developers/github.svg)](https://agentmods.dev/skills/asyrafhussin/agent-skills/rust-for-laravel-developers)
Your own site
<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/rust-for-laravel-developers"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/rust-for-laravel-developers/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.

agentmods 80×15 button for rust-for-laravel-developers

Your own site · 80×15
<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/rust-for-laravel-developers"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/rust-for-laravel-developers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 229 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,037 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00229 $0.04037
Opus 5.5 $0.00092 $0.01615
Sonnet 5.5 $0.00046 $0.00807
Haiku 4.5 $0.00023 $0.00404

Measured yesterday against content hash 877bc8384206, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rust-for-laravel-developers 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 yesterday.

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.

skills/rust-for-laravel-developers/SKILL.md · 195 lines

How it starts

The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rust for Laravel Developers

Write Rust for Laravel and PHP developers, review existing Rust for PHP habits, and explain Rust in terms of the PHP they already know. Contains 25 rules across 9 categories. Every Rust code block compiles with rustc 1.100 (edition 2024; the examples use serde, thiserror and tokio). Rust 1.85 is the edition 2024 floor for the language examples; a Laravel for Rust 0.1.4 app needs Rust 1.99 or later. The PHP examples were checked on PHP 8.4, and the Collection examples on Laravel 13 (illuminate/collections 13.45). Claims that something panics, returns a value or fails to compile were checked with a test or the compiler.

Version 1.1.3 (December 2026). This skill is about the language. For the framework (routes, Eloquent, queues, Blade) in Laravel for Rust, use laravel-php-to-rust (porting) and laravel-rust-best-practices (writing new code); for auditing a Laravel for Rust app, use laravel-rust-audit.

When to Apply

  • Writing Rust for a PHP or Laravel developer, in Laravel for Rust or any other Rust project: follow the rules so the code does not repeat the PHP habits they describe
  • Reviewing Rust for PHP habits: .clone() everywhere, .unwrap() on input, unchecked as casts, HashMap for records, panic! as throw, dedup() for unique(), unawaited futures, per-user statics. Name the rule for each finding
  • Explaining a compiler error (moved value, borrow, lifetime, type annotations needed) to someone who knows PHP

How to Use It

  • Writing: before writing code that PHP handles differently (null checks, arrays, strings, numbers, errors, collections, async), read the relevant rules in the Quick Map below and follow their Correct examples
  • Reviewing: follow "Reviewing Rust for PHP Habits" below
  • Explaining: find the PHP habit in the Quick Map and answer from its rule. When the compiler rejects code, start with mind-compiler-errors: the error often marks a bug PHP would only have shown at runtime

Read the full file on GitHub · 195 lines

Changes

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.

  1. yesterday First seen · 195 lines · 229 tokens per session scan A 877bc8384206

Subscribe to this mod's changes

rust-for-laravel-developers is a skill published in the GitHub repository AsyrafHussin/agent-skills (116 stars, last pushed today), licensed MIT. It adds 229 tokens to every session and 4,037 once invoked, about $0.0009 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.

Related

rust-for-laravel-developers compared with skills from other repositories

rust-for-laravel-developers next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rust-for-laravel-developersAsyrafHussin/agent-skillsSkill116todayMITA229Claude Code, Codex
rust-skillsleonardomso/rust-skillsSkill7927d agoMITA56Claude Code, Codex
standardssamibs/skillfoundrySkill132mo agoMITA29Claude Code, Codex
rust-reviewcamilooscargbaptista/cto-toolkitSkill98mo agoMITA100Claude Code
rust-patternsNmor/the-claude-councilSkill122mo agononeA144Claude Code
rust-best-practicesbgauryy/octocodeSkill974yesterdayMITA47Claude Code, Codex
ring:adopting-lib-commons-huma-wrapperLerianStudio/ringSkill2181mo agoApache-2.0A142Cursor