laravel:routes-best-practices
Published by soden46 in syarif-laravel-ai-skills
What this skill does
Keep routes clean and focused on mapping requests to controllers; avoid business logic, validation, or database operations in route files
Add laravel:routes-best-practices to your agent
Review the source and files first. When you are ready, copy the prompt instruction or use the CLI command supported by your environment.
Install with a prompt
Paste this into a compatible coding agent:
add this skill "laravelroutes-best-practices" from https://github.com/soden46/syarif-laravel-ai-skillsInstall with the CLI
Run this command in a controlled environment after reviewing the repository:
npx skills add https://github.com/soden46/syarif-laravel-ai-skills --skill laravelroutes-best-practicesSkill instructions
Routes Best Practices
Use this skill when a Laravel task involves routes best practices.
This skill is adapted to the personal Laravel standards in this repository. It maps the public laravel:routes-best-practices topic from jpcaparas/superpowers-laravel into the local laravel:routes-best-practices catalog without copying third-party skill body text.
Syarif Defaults
- Follow Laravel conventions before introducing custom abstractions.
- Prefer project-local patterns when they are explicit and tested.
- Keep controllers focused on HTTP orchestration.
- Put validation, authorization, transactions, side effects, and integrations at clear boundaries.
- Keep client names, credentials, internal URLs, provider secrets, and project-specific business rules out of reusable standards.
- Verify important behavior with the smallest meaningful tests and quality checks.
Workflow
- Detect the Laravel version, PHP version, runner, package manager, and existing project conventions.
- Identify the smallest local skill set that overlaps this topic.
- Implement or review the change using Laravel-native APIs first.
- Add abstractions only when they reduce real complexity or protect a meaningful boundary.
- Run targeted tests and available quality checks before handoff.
Checkpoints
- Authorization and validation boundaries are explicit.
- Query shape, transactions, queues, cache, files, and external calls are intentional when touched.
- User-facing behavior has feature, unit, browser, or integration tests at the right level.
- Logs and errors are useful without exposing secrets or unnecessary personal data.
- Documentation or proposals avoid importing source-project names or one-off business rules.
Related Skills
laravel:using-laravel-standardslaravel:architecturelaravel:testinglaravel:security
Files included
- SKILL.md
More skills
Laravelroutes Best Practices
jpcaparas/superpowers-laravel
No summary provided.
Audit unavailable167 installsLaravel Routes Best Practices
noartem/skills
No summary provided.
Audit unavailable57 installsLaravelroutes Best Practices
patkik/multi-tenant-saas-catering-v2
No summary provided.
Audit unavailable1 installs

