Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/prompts/actions.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write a CreateInvoice Action class. It receives an Order, creates an Invoice, and returns it.
Use execute() method and constructor dependency injection. No HTTP concerns.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 512
16 changes: 16 additions & 0 deletions .github/prompts/albatros.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write an AlbatrosConnector extending Saloon Connector. Use config('albatros.base_url'), Mandant header, Bearer token.
Use Cache for reference data. German domain terms in DTOs are acceptable.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 512
16 changes: 16 additions & 0 deletions .github/prompts/blade.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write a Blade component that displays a user's name and email. Use {{ }} for escaped output.
No inline style or script tags. Use x-component syntax.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 384
16 changes: 16 additions & 0 deletions .github/prompts/commands.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write an Artisan command invoices:send-reminders with required email argument and --dry-run option.
Delegate to SendInvoiceReminderAction. Return self::SUCCESS or self::FAILURE. Validate input.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 512
16 changes: 16 additions & 0 deletions .github/prompts/controllers.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write an invokable StoreInvoiceController that receives StoreInvoiceRequest, calls a CreateInvoice action,
and returns a JsonResponse with InvoiceResource. No business logic in the controller.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 512
16 changes: 16 additions & 0 deletions .github/prompts/design.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write an anonymous Blade button component with @props for variant and size. Merge $attributes with defaults.
Use min-h-[44px] for touch target, focus-visible:ring-2. Mobile-first.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 512
16 changes: 16 additions & 0 deletions .github/prompts/docuware.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write a DocuWareService that wraps the DocuWare connector. Constructor accepts optional connector for testability.
Use config('laravel-docuware.credentials.*') not env(). Include fetchDocument or similar method signature.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 512
16 changes: 16 additions & 0 deletions .github/prompts/dto.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write a readonly CustomerData DTO with id, name, email. Include fromArray() factory that handles
PascalCase and snake_case API field names. Use nullable for optional fields.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 512
16 changes: 16 additions & 0 deletions .github/prompts/dusk.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write a Dusk test that logs in, visits /invoices/create, uses dusk="" selectors, calls assertNoJavaScriptErrors().
Use DatabaseTruncation. Use loginAs(), waitForText, never pause().
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 512
16 changes: 16 additions & 0 deletions .github/prompts/enums.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write a Status enum with Draft, Active, Archived. Include label() and color() methods using match expressions.
Use backed string enum.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 512
16 changes: 16 additions & 0 deletions .github/prompts/events.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write an InvoicePaid event (plain data container with Invoice) and a SendInvoicePaidNotification listener.
Event uses Dispatchable, SerializesModels. Listener has single responsibility. Use past-tense for event name.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 512
16 changes: 16 additions & 0 deletions .github/prompts/exceptions.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write an InvoiceAlreadyPaidException that extends RuntimeException. It receives an Invoice as readonly property
and sets a clear message via parent::__construct(). Use a named failure state.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 384
17 changes: 17 additions & 0 deletions .github/prompts/formrequests.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write a StoreInvoiceRequest with authorize() and rules() returning array-based rules.
Rules: order_id required exists in orders, amount required numeric min 0.
Add PHPDoc @return for rules().
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 512
16 changes: 16 additions & 0 deletions .github/prompts/general.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Add a Stripe API key to the Laravel config and show how to read it in a controller.
Use the correct helper for config access. Show the config file addition and one line of controller code.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 512
16 changes: 16 additions & 0 deletions .github/prompts/helperfunctions.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write PHP code to filter an array of users to only active ones, then get their email addresses as a comma-separated string.
Use Laravel Arr and Str helpers instead of native PHP functions.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 512
16 changes: 16 additions & 0 deletions .github/prompts/helpers.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write a DateHelper class with a static format() method that accepts a date and format string, returns formatted string or null.
Use Carbon. No business logic, no database queries. PascalCase with Helper suffix.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 384
16 changes: 16 additions & 0 deletions .github/prompts/interfaces.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write a PaymentGateway interface in app/Contracts/ with charge(Order, int) and refund(string, int) methods.
Return a PaymentResult. No implementation. Clear noun describing the capability.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 384
16 changes: 16 additions & 0 deletions .github/prompts/jobs.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write a ProcessInvoicePaymentJob that implements ShouldQueue. Delegate to ProcessInvoicePayment action.
Use Dispatchable, InteractsWithQueue, Queueable, SerializesModels. Set tries, backoff, queue. Add failed() method.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 512
16 changes: 16 additions & 0 deletions .github/prompts/livewire.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write a Livewire InvoiceList component with search property, #[Computed] invoices(), and wire:model/wire:click.
Keep logic in PHP, template declarative. Use wire:model for search binding.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 512
16 changes: 16 additions & 0 deletions .github/prompts/middleware.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write an EnsureUserIsSubscribed middleware. If user is not subscribed, return 403 JSON response.
Otherwise call $next($request). Clear descriptive name. No business logic inside.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 384
16 changes: 16 additions & 0 deletions .github/prompts/migrations.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write a migration to create an invoices table with id, order_id (foreign key), status (string default draft), amount (decimal), timestamps.
Use foreignId()->constrained()->cascadeOnDelete(). Include both up() and down() methods.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 512
16 changes: 16 additions & 0 deletions .github/prompts/models.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write a minimal Invoice Eloquent model with guarded, casts as method, and a belongsTo Order relationship.
Use typed return type on the relationship. Include section comment headers.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 512
16 changes: 16 additions & 0 deletions .github/prompts/observers.prompt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
messages:
- role: system
content: |
You are a Laravel developer. Apply these guidelines exactly:

{{skill_content}}

Respond with only the requested code. No explanations unless asked.
- role: user
content: |
Write a UserObserver with created() that sends WelcomeNotification, and updated()/deleted() that clear cache.
Use Observer suffix. Only define methods you need. No business logic.
model: openai/gpt-4o-mini
modelParameters:
temperature: 0.2
maxCompletionTokens: 384
Loading