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 Phaedra-Solutions/cursor-rules --skill upgrade-laravelgit clone --depth 1 https://github.com/Phaedra-Solutions/cursor-rulesWrote 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/phaedra-solutions/cursor-rules/upgrade-laravel)<a href="https://agentmods.dev/skills/phaedra-solutions/cursor-rules/upgrade-laravel"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/upgrade-laravel/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/phaedra-solutions/cursor-rules/upgrade-laravel"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/upgrade-laravel.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.00132 | $0.01314 |
| Opus 5.5 | $0.00053 | $0.00526 |
| Sonnet 5.5 | $0.00026 | $0.00263 |
| Haiku 4.5 | $0.00013 | $0.00131 |
Grade A, and why
upgrade-laravel 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 3d 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 — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Upgrade Laravel
When to use
- The user asks to upgrade Laravel, or the app is on Laravel 11 or older (see
legacy/php-legacy). - A fix exists only in Laravel 12 or 13 (for example the 2026 TokenGuard bypass and debug-page XSS).
For a minor or patch update within a major, run composer update laravel/framework --with-all-dependencies and Verify.
Before you start
- Read
laravel/framework, PHP, and every Laravel-related package with its supported Laravel range: Livewire, Filament, Sanctum, Fortify, Horizon, Telescope, Cashier, Scout, Inertia, Spatie packages, and anything with a service provider. - PHP minimum per target: Laravel 12 needs PHP 8.2+, Laravel 13 needs 8.3+. Run
upgrade-phpfirst if needed. - Working tree clean; new branch (
chore/laravel-13). - Ask the user:
- the target (default: 13, security support to 17 Mar 2028);
- whether to stop for review after each major;
- whether they want to use Laravel Shift (a paid service that opens an upgrade PR per major) instead of or alongside the manual steps;
- whether network installs are approved (
core/supply-chaincooldown applies).
- Plan the hops: one major at a time. Upgrade blockers (an abandoned package without support for the next major) must be resolved before that hop.
Steps
- Baseline:
composer install,php artisan test, PHPStan/Larastan,php artisan about, and a manual check of key flows. Record failures. - Patch the current major to its latest release and fix deprecation warnings in logs and tests.
- Read the official upgrade guide for the next major (
laravel.com/docs/<next>.x/upgrade) and list the items marked high and medium impact that apply to this app. - Update dependencies: in
composer.json, setlaravel/frameworkto the next major (^12.0), update first-party packages and dev tools (phpunit/phpunit,nunomaduro/collision,larastan/larastan) to the versions the guide lists, and third-party packages to versions that support it. Runcomposer update --with-all-dependenciesand resolve conflicts by upgrading packages, not by--ignore-platform-reqs. - Optional Rector:
composer require --dev driftingly/rector-laraveland run the matching set (LaravelSetList::LARAVEL_120,LARAVEL_130) with--dry-runfirst; review every change. - Apply the guide's code and config changes that Rector didn't, for example:
- 10 → 11: PHP 8.2+, optional slim application structure (keep the existing structure unless asked), per-second rate limiting;
- 11 → 12: PHP 8.2+, new starter kits (no need to change an existing app), dependency bumps;
- 12 → 13: PHP 8.3+, the CSRF middleware renamed to
PreventRequestForgerywithSec-Fetch-Sitechecks, and the other high-impact items in the guide. Check published config files against the framework's defaults for new options.
- Packages with their own upgrade guides: follow them in the same hop (Livewire 2 → 3 → 4, Filament majors, Inertia, Horizon).
- Verify (next section), show the diff and results, and wait for approval before the next hop. Commit only when asked (
git-commitskill). At the target, switch tobackend/laravel.
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.
- 3d ago First seen · 69 lines · 132 tokens per session scan A 56135440805c
upgrade-laravel is a skill published in the GitHub repository Phaedra-Solutions/cursor-rules (4 stars, last pushed 2d ago), licensed MIT. It adds 132 tokens to every session and 1,314 once invoked, about $0.0005 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-11-01.
Other skills, from other repositories
x-api
X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.
nextjs-fullstack
Use for Next.js App Router, React Server Components, server actions, API routes, auth, database integration, caching, deployment, or full-stack product features.
flask
Skill "flask" from rishapgandhi/python-skills, covering flask skill, stack, project structure, app factory and app/init.py.
django
Skill "django" from rishapgandhi/python-skills, covering django skill, stack, project structure, settings pattern (split by environment) and config/settings/base.py.
drf
Skill "drf" from rishapgandhi/python-skills, covering django rest framework (drf) skill, stack additions (on top of django), settings, config/settings/base.py and serializer standards.
fastapi
Skill "fastapi" from rishapgandhi/python-skills, covering fastapi skill, stack, project structure (fastapi-specific additions), app factory pattern and app/main.py.