module-per-menu
Skill4 starsChanged 5 months agoMITView on GitHub
Build Laravel projects with one menu or page per module, using small controllers, per-page views, shared layouts/components, and dynamic DB-backed data.
In this repository75 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- actions-and-servicesSkill
- ai-sdkSkill
- api-resources-and-paginationSkill
- api-surface-evolutionSkill
- architectureSkill
- blade-components-and-layoutsSkill
- brainstormingSkill
- code-review-requestsSkill
- complexity-guardrailsSkill
- config-env-storageSkill
- constants-and-configurationSkill
- controller-cleanupSkill
- controller-testsSkill
- custom-helpersSkill
- daily-workflowSkill
- database-transactionsSkill
- data-chunking-large-datasetsSkill
- debugging-promptsSkill
- dependencies-trim-packagesSkill
- documentation-best-practicesSkill
- e2e-playwrightSkill
- effective-contextSkill
- eloquent-patternsSkill
- eloquent-relationshipsSkill
- exception-handling-and-loggingSkill
- executing-plansSkill
- extract-laravel-standardsSkill
- filesystem-uploadsSkill
- form-requestsSkill
- horizon-metrics-and-dashboardsSkill
- http-client-resilienceSkill
- integrate-whatsapp-baileys-laravelSkill
- interfaces-and-diSkill
- internationalization-and-translationSkill
- iterating-on-codeSkill
- laravel-11-12-app-guidelinesSkill
- laravel-database-optimizationSkill
- laravel-prompting-patternsSkill
- laravel-specialistSkill
- least-codeSkill
- livewire-developmentSkill
- memory-managementSkill
- migrations-and-factoriesSkill
- nova-resource-patternsSkill
- performance-cachingSkill
- performance-eager-loadingSkill
- performance-select-columnsSkill
- php-attributesSkill
- policies-and-authorizationSkill
- ports-and-adaptersSkill
- prompt-structureSkill
- quality-checksSkill
- queues-and-jobsSkill
- rate-limitingSkill
- request-forgery-protectionSkill
- responsive-ui-testingSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 19 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use this skill whenever creating, copying, refactoring, or expanding a Laravel web application with multiple menus, pages, dashboards, …
- Distinctive: line 13
Default to a module-per-menu structure unless the existing project already has a stronger convention.
- Distinctive: line 17
Use this shape for Laravel apps with menus or pages:
- Distinctive: line 52
Keep controllers small and readable.
- Distinctive: line 53
Create one controller per menu, page group, or resource boundary.
- Distinctive: line 57
Do not put unrelated menus into one controller just because they share a layout.
- Very specific: line 58
Do not use one giant PageController or one giant DepoWebController for a full admin system.
- Distinctive: line 62
Use one Blade view per page or page state.
- Distinctive: line 63
Use a shared layout for sidebar, topbar, shell, asset loading, and page header.
- Distinctive: line 64
Use Blade components or partials for repeated filters, tables, badges, stats, modals, and form controls.
- Distinctive: line 65
Keep page Blade files focused on rendering one menu/page.
- Very specific: line 66
Do not put all menus into one Blade file with large @if ($active === ...) blocks.
- Distinctive: line 67
Keep display data dynamic from Eloquent/model-backed services.
- Distinctive: line 71
Keep route files as mappings only.
- Distinctive: line 72
Use route groups for middleware, prefixes, and shared names.
- Distinctive: line 73
Place static routes before broad parameter routes.
- Distinctive: line 74
Prefer invokable controllers for single-page modules and normal controllers for page groups.
- Distinctive: line 75
Add route/render tests for every important menu or page.
- Distinctive: line 81
Use Services for dashboards, financial reports, daily reports, billing quotes, sync contracts, or other reusable calculations.
- Distinctive: line 82
Keep seeded/demo data in seeders and factories, not embedded in views.
- Distinctive: line 86
Before handoff, run the smallest meaningful checks available:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Module Per Menu
Use this skill whenever creating, copying, refactoring, or expanding a Laravel web application with multiple menus, pages, dashboards, reports, or admin screens.
Default to a module-per-menu structure unless the existing project already has a stronger convention.
Standard Pattern
Use this shape for Laravel apps with menus or pages:
Route -> Small Page/Resource Controller -> Action/Service/Query Service when needed -> Eloquent -> View/API ResponseOrganize UI work so one menu or page maps to one clear module:
app/Http/Controllers/<Domain>/
AuthController.php
DashboardController.php
GateInController.php
GateOutController.php
CustomerController.php
ReportController.php
app/Services/<Domain>/
DashboardReportService.php
BillingService.php
DailyReportService.php
resources/views/<domain>/
layouts/app.blade.php
pages/dashboard.blade.php
pages/gate-in/index.blade.php
pages/gate-in/create.blade.php
pages/gate-out/index.blade.php
pages/gate-out/process.blade.php
components/filters.blade.php
components/table.blade.phpController Rules
- Keep controllers small and readable.
- Create one controller per menu, page group, or resource boundary.
- Let controllers orchestrate HTTP only: receive request, call validation/authorization, call service/action/query, return view/redirect/JSON.
- Move repeated query/report calculations to a Service or query object.
- Move multi-step writes to Actions or Services with explicit transactions when needed.
- Do not put unrelated menus into one controller just because they share a layout.
- Do not use one giant
PageControlleror one giantDepoWebControllerfor a full admin system.
View Rules
- Use one Blade view per page or page state.
- Use a shared layout for sidebar, topbar, shell, asset loading, and page header.
- Use Blade components or partials for repeated filters, tables, badges, stats, modals, and form controls.
- Keep page Blade files focused on rendering one menu/page.
- Do not put all menus into one Blade file with large
@if ($active === ...)blocks. - Keep display data dynamic from Eloquent/model-backed services. Avoid hardcoded metrics except placeholders explicitly marked as prototype/demo.
Route Rules
- Keep route files as mappings only.
- Use route groups for middleware, prefixes, and shared names.
- Place static routes before broad parameter routes.
- Prefer invokable controllers for single-page modules and normal controllers for page groups.
- Add route/render tests for every important menu or page.
Dynamic Data Rules
- Build page metrics, summaries, charts, tables, and select options from database queries or model-backed services.
- Derive counts and totals from Eloquent collections or queries instead of duplicating numbers in Blade.
- Use Services for dashboards, financial reports, daily reports, billing quotes, sync contracts, or other reusable calculations.
- Keep seeded/demo data in seeders and factories, not embedded in views.
Verification
Before handoff, run the smallest meaningful checks available:
- route list for changed route groups;
- feature tests that open each authenticated menu/page;
- API contract tests for new endpoints;
php artisan test;- Blade compile check such as
php artisan view:cachefollowed byphp artisan view:clear; - frontend build when assets changed.
Report any checks that cannot run and why.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

