create-domain-feature
Skill1 starsChanged 5 months agoMITView on GitHub
Use when building a general Laravel domain feature that spans routes, UI, API, actions, policies, DTOs, events, jobs, or tests.
In this repository64 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- audit-ai-agent-instructionsSkill
- audit-package-versionSkill
- configure-local-environmentSkill
- configure-secure-storageSkill
- create-actionSkill
- create-api-endpointSkill
- create-api-integrationSkill
- create-architecture-testSkill
- create-console-commandSkill
- create-database-migrationSkill
- create-dtoSkill
- create-eloquent-builderSkill
- create-event-listenerSkill
- create-inertia-pageSkill
- create-jobSkill
- create-laravel-boost-guidelinesSkill
- create-laravel-packageSkill
- create-livewire-componentSkill
- create-php-attributeSkill
- create-policySkill
- create-requestSkill
- create-serviceSkill
- debug-composer-conflictsSkill
- debug-failing-testsSkill
- debug-phpstanSkill
- decompose-modelSkill
- deploying-laravel-cloudSkill
- design-blade-componentSkill
- design-multi-tenant-featureSkill
- filament-developmentSkill
- filament-shieldSkill
- fix-github-actionsSkill
- format-codebase-pintSkill
- implement-api-rate-limitingSkill
- implement-import-exportSkill
- implement-notificationsSkill
- implement-observabilitySkill
- implement-permissionsSkill
- implement-subscription-billingSkill
- implement-webhooksSkill
- laravel-pennant-feature-flagsSkill
- laravel-pulse-monitoringSkill
- laravel-reverb-websocketsSkill
- manage-frontend-stylingSkill
- manage-localizationSkill
- prepare-package-releaseSkill
- refactor-business-logicSkill
- reuse-filament-resourcesSkill
- review-accessibilitySkill
- review-ai-generated-codeSkill
- review-featureSkill
- review-open-source-packageSkill
- review-package-readmeSkill
- review-performanceSkill
- review-securitySkill
- review-static-analysisSkill
- review-tailwind-fluxSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 14 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Use this skill for cohesive behavior that touches multiple layers.
- Distinctive: line 23
Create DTOs for meaningful input or output contracts.
- Distinctive: line 24
Create Actions for business operations.
- Distinctive: line 25
Create Policies for protected resources.
- Distinctive: line 26
Create Filament resources, relation managers, pages, and widgets when the feature has admin-facing UX.
- Distinctive: line 28
Use Laravel 13 attributes for controller middleware/authorization, container injection, model metadata, Form Requests, resources, jobs, and …
- Distinctive: line 29
Create Events for useful completed facts.
- Distinctive: line 30
Create Jobs only for asynchronous work.
- Distinctive: line 31
Add controllers, Livewire components, commands, or API endpoints as thin clients.
- Distinctive: line 32
Add tests across behavior, authorization, validation, API, Livewire, events, jobs, and failure paths as needed.
- Distinctive: line 33
Add documentation only when behavior is important or requested.
- Distinctive: line 46
Keep web, API, Livewire, mobile, desktop, command, and third-party reuse in mind.
- Distinctive: line 48
Use Filament resource, relation manager, and page reuse patterns when the feature is admin-facing.
- Distinctive: line 52
Test meaningful behavior, protected access, invalid input, failures, and client contracts.
≈ “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
Create Domain Feature
When To Use
Use this skill for cohesive behavior that touches multiple layers.
Inputs Needed
- Boundary, actor, resource, use cases, clients, data contracts, authorization, validation, side effects, async needs, and tests.
Workflow
- Define the feature boundary and responsibility first.
- Inspect existing conventions and related code.
- Create DTOs for meaningful input or output contracts.
- Create Actions for business operations.
- Create Policies for protected resources.
- Create Filament resources, relation managers, pages, and widgets when the feature has admin-facing UX.
- Inject dependencies into Actions, Services, Jobs, commands, and controllers instead of resolving them with
app(). - Use Laravel 13 attributes for controller middleware/authorization, container injection, model metadata, Form Requests, resources, jobs, and Livewire when they clarify framework metadata.
- Create Events for useful completed facts.
- Create Jobs only for asynchronous work.
- Add controllers, Livewire components, commands, or API endpoints as thin clients.
- Add tests across behavior, authorization, validation, API, Livewire, events, jobs, and failure paths as needed.
- Add documentation only when behavior is important or requested.
Files That May Be Created
- DTOs, Actions, Policies, Events, Jobs, Resources, Requests, Controllers, Livewire components, migrations, and tests.
Files That May Be Modified
- Routes, providers, models, views, config, and tests.
Architecture Rules
- Client layers orchestrate; reusable layers own behavior.
- Keep web, API, Livewire, mobile, desktop, command, and third-party reuse in mind.
- Dependency injection is preferred over
app()throughout reusable code. - Use Filament resource, relation manager, and page reuse patterns when the feature is admin-facing.
Testing Requirements
- Test meaningful behavior, protected access, invalid input, failures, and client contracts.
Security Requirements
- Validate input, authorize behavior, protect sensitive output, and use safe queue and event payloads.
Review Checklist
- Is the boundary clear?
- Is logic reusable?
- Are protected paths denied by default?
- Are tests proportional to risk?
Common Mistakes
- Starting with UI before defining reusable behavior.
- Creating jobs for synchronous work.
- Duplicating logic for API and web clients.
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.

