laravel-rust-testing

laravel-rust-testing is a skill for Claude Code, Codex from AsyrafHussin/agent-skills. It costs 227 tokens per session (2,904 once invoked), scanned A, original, MIT.

Testing guidance for Laravel for Rust, a Rust web framework based on Laravel concepts. It covers writing, reviewing, and fixing tests for common app behavior.

In plain words
What is it for?
Use it for tests involving logins, permissions, HTTP responses, forms, queues, mail, events, notifications, storage, and validation.
Why use it?
It helps avoid tests that pass even though the application is broken, or tests that are flaky or cause unwanted real side effects.

Skill for Claude CodeCodex

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

Good fit Use it for tests involving logins, permissions, HTTP responses, forms, queues, mail, events, notifications, storage, and validation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asyrafhussin/agent-skills/laravel-rust-testing
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 laravel-rust-testing
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 laravel-rust-testing

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/laravel-rust-testing"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/laravel-rust-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 227 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,904 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.00227 $0.02904
Opus 5.5 $0.00091 $0.01162
Sonnet 5.5 $0.00045 $0.00581
Haiku 4.5 $0.00023 $0.00290

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

Security

Grade A, and why

laravel-rust-testing 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/laravel-rust-testing/SKILL.md · 132 lines

How it starts

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

Laravel for Rust Testing

Testing apps built with Laravel for Rust (laravel-rust 0.1.x) with #[laravel::test]. Contains 20 rules across 6 categories. Every example compiles against laravel-rust 0.1.4, and each "Tested on laravel-rust 0.1.4" note records what a test on that version showed. Examples use the routes, handlers and commands of a typical app (/login, /posts, /orders/{id}/ship, drafts:prune); adapt the names to yours.

Version 1.0.1 (December 2026). Laravel for Rust is in beta; check APIs against the docs bundled with the version you install (.agents/skills/writing-laravel-rust-apps/scripts/docs-path.sh, which needs cargo, rustc, awk and python3 on PATH; otherwise ~/.cargo/registry/src/*/laravel-rust-<version>/docs).

When to Apply

  • Writing tests for a Laravel for Rust app
  • Reviewing a test suite: tests that pass while the app is broken, flaky tests, tests with real side effects
  • A test fails or passes and you are not sure why

How This Skill Fits

A new app ships testing-laravel-rust-apps in .agents/skills/, which lists the testing tools. This skill covers the ways those tools give false confidence, with the test to write instead. Two corrections to the shipped skill on 0.1.4: acting_as is a method on the request (app.post(..).acting_as(&user)), and feature::fake(flag, value) takes two arguments and returns nothing. For the app code itself use laravel-rust-best-practices; for a security audit, laravel-rust-audit.

Rule Categories by Priority

Priority Category Impact Prefix
1 Fakes CRITICAL fake-
2 HTTP CRITICAL http-
3 Setup HIGH setup-
4 Database HIGH db-
5 Background Work HIGH bg-
6 Time MEDIUM time-

Quick Reference

1. Fakes (CRITICAL)

  • fake-bind-before-use - Bind every fake (let _ = drops it); install fakes and swaps before the first request
  • fake-queue-vs-sync - Tests run jobs inline on sync: delays, retries and failures behave differently; fake the queue to test dispatch
  • fake-stacked-fakes - event::fake hides queued work from queue::fake; one layer per assertion
  • fake-http-client-strict - Unmatched requests get an empty 200; prevent_stray_requests, specific patterns first
  • fake-mail-sent-vs-queued - assert_sent versus assert_queued; assert_not_sent counts both
  • fake-storage-and-flags - storage::fake first; feature::fake(flag, value); fake_image for image rules

Read the full file on GitHub · 132 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 · 132 lines · 227 tokens per session scan A b289a525babd

Subscribe to this mod's changes

laravel-rust-testing is a skill published in the GitHub repository AsyrafHussin/agent-skills (116 stars, last pushed today), licensed MIT. It adds 227 tokens to every session and 2,904 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

laravel-rust-testing compared with skills from other repositories

laravel-rust-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
laravel-rust-testingAsyrafHussin/agent-skillsSkill116todayMITA227Claude 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