laravel-php-to-go

laravel-php-to-go is a skill for Claude Code, Codex from AsyrafHussin/agent-skills. It costs 206 tokens per session (3,114 once invoked), scanned A, original, MIT.

A porting guide for moving a Laravel PHP application to Laravel for Go, a web framework built with Go. It maps Laravel features and PHP habits to their Go equivalents, including routes, models, jobs, pages, and tests.

In plain words
What is it for?
Use it when moving Laravel routes, controllers, models, migrations, policies, jobs, events, mail, views, Inertia pages, or Pest tests to Laravel for Go.
Why use it?
It helps developers avoid carrying PHP assumptions into Go code and distinguishes migration work from writing a new feature. It also highlights framework-version differences that need checking.

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 moving Laravel routes, controllers, models, migrations, policies, jobs, events, mail, views, Inertia pages, or Pest tests to Laravel for Go.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/laravel-php-to-go"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/laravel-php-to-go.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 206 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,114 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.00206 $0.03114
Opus 5.5 $0.00082 $0.01246
Sonnet 5.5 $0.00041 $0.00623
Haiku 4.5 $0.00021 $0.00311

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

Security

Grade A, and why

laravel-php-to-go 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-php-to-go/SKILL.md · 168 lines

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 Go

Port a Laravel PHP application, or the habits of a Laravel PHP developer, to Laravel for Go. Contains 32 rules across 9 categories. Every Go example compiles against go.laravel.com v0.2.0 and is a file of a test app, and each "Tested" note records what a test on that version asserted.

Version 1.1.0 (December 2026). Laravel for Go is in beta, and releases before 1.0 may change APIs. The bundled docs are not a porting guide; check every API against the docs bundled with the version you install (.agents/skills/writing-laravel-go-apps/scripts/docs-path.sh prints their path). To move an app to a newer release, use the upgrading-laravel-go skill a new app ships in .agents/skills/; it applies the breaking changes in the release's docs/upgrade.md.

When to Apply

  • Porting a Laravel PHP app, or one feature of it, to Laravel for Go
  • A Laravel PHP developer starting a Laravel for Go app
  • Reviewing Go code that looks like PHP: model.Save after setting fields, r.FormValue, os.Getenv, time.Now(), "Y-m-d", an auth.Authorize result that is not returned

Not for: writing new features without a PHP original (laravel-go-best-practices, and the skills the app ships in .agents/skills/), or testing (laravel-go-testing).

How to Port

  1. Start from laravel new example-app (choose Go), and read the bundled docs for the installed version (port-plan)
  2. Inventory the PHP app, and decide each gap with port-missing-features
  3. Point the Go app at the PHP database only after checking migration names, morph type names and password hashes (data-migrations, data-polymorphic-types, auth-passwords-verification)
  4. Port in layers: models, policies, routes with handlers and form structs, background work, mail and views; list every job, listener, command and migration in its registry, because nothing is discovered
  5. Port each feature's PHP tests with it, and run go vet ./... and go test ./...

Read the full file on GitHub · 168 lines

Files

What ships with it

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

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 Changed 78070b290828
  2. 2d ago First seen · 168 lines · 206 tokens per session scan A 5a5d83d83603

Subscribe to this mod's changes

laravel-php-to-go is a skill published in the GitHub repository AsyrafHussin/agent-skills (118 stars, last pushed yesterday), licensed MIT. It adds 206 tokens to every session and 3,114 once invoked, about $0.0008 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-04.

Related

laravel-php-to-go compared with skills from other repositories

laravel-php-to-go next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
laravel-php-to-goAsyrafHussin/agent-skillsSkill118yesterdayMITA206Claude Code, Codex
go-architectexistential-birds/beagleSkill925d agoApache-2.0A45Claude Code, Codex
ring:verifying-codeLerianStudio/ringSkill2181mo agoApache-2.0A101Cursor
go-coreadonai-labs/agent-runwaySkill29d agoMITA76Claude Code, Codex
golang-clean-archemilioforrer/go-stackSkill629d agononeA75Claude Code
golang-graphqlemilioforrer/go-stackSkill629d agononeA77Claude Code
golang-samber-roemilioforrer/go-stackSkill629d agononeA146Claude Code