@vesviet/agent-skills 5.6.0 → 5.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/INDEX.md +1 -1
  2. package/README.md +1 -1
  3. package/VERSION +1 -1
  4. package/adapters/antigravity/a2a-config.template.yaml +1 -1
  5. package/adapters/antigravity/role-skill-index.json +1 -1
  6. package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
  7. package/adapters/cursor/README.md +185 -185
  8. package/bin/agent-skills.mjs +17 -14
  9. package/core/contracts/schemas/api-contract-spec.json +191 -191
  10. package/core/contracts/schemas/feature-ticket.json +1293 -1293
  11. package/core/contracts/schemas/pull-request-spec.json +338 -338
  12. package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
  13. package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
  14. package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
  15. package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
  16. package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
  17. package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
  18. package/core/contracts/schemas/test-report.json +530 -530
  19. package/core/roles/references/business-analyst-responsibilities.md +207 -207
  20. package/core/roles/references/frontend-developer-responsibilities.md +275 -275
  21. package/core/roles/system-engineer.md +465 -465
  22. package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
  23. package/core/skills/backend/build-mcp-server/SKILL.md +100 -100
  24. package/core/skills/backend/implement-structured-outputs/SKILL.md +94 -94
  25. package/core/skills/business/elicit-requirements/SKILL.md +102 -102
  26. package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
  27. package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
  28. package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
  29. package/core/skills/business/write-use-cases/SKILL.md +106 -106
  30. package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
  31. package/core/skills/document/pptx/scripts/add_slide.py +0 -0
  32. package/core/skills/document/pptx/scripts/clean.py +0 -0
  33. package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
  34. package/core/skills/document/xlsx/scripts/recalc.py +0 -0
  35. package/core/skills/documentation/write-documentation/SKILL.md +143 -143
  36. package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
  37. package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
  38. package/core/skills/foundation/release-notes/SKILL.md +192 -192
  39. package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
  40. package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
  41. package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
  42. package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
  43. package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
  44. package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
  45. package/core/skills/platform/setup-gpu-finops/SKILL.md +107 -107
  46. package/core/skills/platform/setup-llm-gateway/SKILL.md +108 -108
  47. package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
  48. package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
  49. package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
  50. package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
  51. package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
  52. package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
  53. package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
  54. package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
  55. package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
  56. package/core/skills/platform/web-perf/SKILL.md +151 -151
  57. package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
  58. package/core/skills/product/build-story-map/SKILL.md +104 -104
  59. package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
  60. package/core/skills/product/define-product-strategy/SKILL.md +105 -105
  61. package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
  62. package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
  63. package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
  64. package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
  65. package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
  66. package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
  67. package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
  68. package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
  69. package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
  70. package/core/skills/repo-ops/review-service/SKILL.md +186 -186
  71. package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
  72. package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
  73. package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
  74. package/core/skills/security-data/security-audit/SKILL.md +119 -119
  75. package/core/workflows/add-new-feature.md +212 -212
  76. package/core/workflows/agent-a2a-delegation.md +142 -142
  77. package/core/workflows/bug-fix.md +147 -147
  78. package/core/workflows/build-deploy.md +208 -208
  79. package/core/workflows/code-review.md +137 -137
  80. package/core/workflows/dependency-upgrade.md +193 -193
  81. package/core/workflows/feature-delivery.md +149 -149
  82. package/core/workflows/hotfix-production.md +172 -172
  83. package/core/workflows/qa-validation.md +231 -231
  84. package/core/workflows/refactoring.md +154 -154
  85. package/core/workflows/revert-deployment.md +147 -147
  86. package/core/workflows/security-incident-response.md +191 -191
  87. package/core/workflows/seo-content-lifecycle.md +91 -91
  88. package/core/workflows/service-review-release.md +223 -223
  89. package/core/workflows/setup-new-service.md +214 -214
  90. package/core/workflows/tech-repo-review.md +245 -245
  91. package/core/workflows/troubleshooting.md +241 -241
  92. package/overlays/astro-cloudflare/README.md +93 -93
  93. package/overlays/data-analyst-stack/README.md +109 -109
  94. package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
  95. package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
  96. package/overlays/ecommerce-microservices/README.md +65 -65
  97. package/overlays/go-microservices/README.md +78 -78
  98. package/overlays/go-microservices/rules/go-conventions.md +223 -223
  99. package/overlays/laravel-filament/README.md +90 -90
  100. package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
  101. package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
  102. package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
  103. package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
  104. package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
  105. package/overlays/r3f-stack/README.md +89 -89
  106. package/overlays/r3f-stack/rules/stub.md +43 -43
  107. package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
  108. package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
  109. package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
  110. package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
  111. package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
  112. package/package.json +2 -2
  113. package/core/README.md +0 -53
@@ -1,220 +1,220 @@
1
- # Laravel Conventions — Filament v4 + Livewire Stack
2
-
3
- Portable Laravel coding standards for projects using Filament v4 admin and Livewire 3 interactive components. These extend `core/rules/code.md`.
4
-
5
- **Stack baseline (2026):** Laravel 13, Filament v4, Livewire 3, PHP 8.3+, TailwindCSS v4, Pest PHP v5.
6
- ⚠️ Laravel 12 bug fix support ended Aug 13, 2026 — migrate to Laravel 13.
7
-
8
- ## Architecture (Thin Controller Pattern)
9
-
10
- - Controllers only validate (`FormRequest`) and return responses.
11
- - Business logic belongs in `app/Actions/` (single-action classes) or `app/Services/`.
12
- - Livewire components handle interactive islands only (drawers, modals, dynamic forms).
13
- - Static pages and listings render with pure Blade — no Livewire overhead on read-only views.
14
- - Never put business logic in Livewire component classes — delegate to Actions/Services.
15
-
16
- ## Database Integrity
17
-
18
- - Multi-table writes MUST be wrapped in `DB::transaction()`.
19
- - Use `SoftDeletes` trait on models referenced by foreign keys.
20
- - Migrations MUST index columns used in WHERE/ORDER: slugs, foreign keys, status fields.
21
- - Use enum casts on models for status columns — never store as raw strings.
22
- - Always define `$fillable` or `$guarded` explicitly on every model.
23
-
24
- ## Filament v4 Admin (2026 — Breaking Changes from v3)
25
-
26
- **Unified `Schema` API** — the biggest v4 breaking change:
27
-
28
- ```php
29
- // ❌ Filament v3 pattern
30
- use Filament\Forms\Form;
31
- public function form(Form $form): Form
32
- {
33
- return $form->schema([
34
- TextInput::make('name'),
35
- ]);
36
- }
37
-
38
- // ✅ Filament v4 pattern
39
- use Filament\Schemas\Schema;
40
- public function form(Schema $schema): Schema
41
- {
42
- return $schema->components([ // .schema() renamed to .components()
43
- TextInput::make('name'),
44
- ]);
45
- }
46
- ```
47
-
48
- Other v4 changes:
49
- - Resources: `app/Filament/Resources/` — structure unchanged
50
- - Resource naming: `{Model}Resource.php` with pages in `{Model}Resource/Pages/`
51
- - **MFA**: built-in (no plugin needed) — enable via `Filament::auth()->mfa()->enabled()`
52
- - **Custom data sources**: Filament v4 supports any data source, not Eloquent-only
53
- - **Table rendering**: 2–3× faster with partial re-renders on action modals
54
- - **New components**: TipTap rich editor, slider, code editor, table repeater
55
- - **Client-side methods**: `hiddenJs()`, `afterStateUpdatedJs()` — reduces server round-trips
56
- - Status fields: `SelectColumn` in tables for inline editing
57
- - Navigation: `NavigationGroup` for logical grouping
58
-
59
- ## Livewire 3 + Alpine.js
60
-
61
- - Livewire for server-side state (cart contents, form submission, real-time data).
62
- - Alpine.js for client-side UI state (toggle visibility, transitions, animations).
63
- - Dispatch browser events from Livewire for cross-component communication.
64
- - Debounce text inputs: `wire:model.live.debounce.300ms` — never bare `wire:model.live`.
65
- - Use `#[Computed]` for derived properties instead of recalculating in render.
66
-
67
- ## Laravel 13 Features
68
-
69
- ```php
70
- // Laravel AI SDK (stable in L13) — provider-agnostic
71
- use Illuminate\Support\Facades\AI;
72
- $response = AI::text('Summarize this product description: ' . $product->description);
73
-
74
- // PHP Attributes for framework components
75
- #[Table('products')]
76
- #[Fillable('name', 'slug', 'price')]
77
- class Product extends Model { }
78
-
79
- // JSON:API Resources built-in
80
- use Illuminate\Http\Resources\Json\JsonApiResource;
81
- ```
82
-
83
- ## PHP 8.4 Features (Use in New Code)
84
-
85
- ```php
86
- // Property Hooks — computed properties without accessors
87
- class Product extends Model {
88
- public string $excerpt {
89
- get => Str::limit($this->description, 150);
90
- }
91
- }
92
-
93
- // Asymmetric Visibility — read-public, write-private
94
- class Order extends Model {
95
- public private(set) string $orderNumber;
96
- }
97
-
98
- // New array functions
99
- $item = array_find($items, fn($i) => $i->status === 'pending');
100
- $hasActive = array_any($items, fn($i) => $i->is_active);
101
- ```
102
-
103
- ## Media Handling (Spatie)
104
-
105
- - Use `spatie/laravel-medialibrary` for file uploads.
106
- - Define media conversions on the model (WebP, responsive sizes).
107
- - Standard conversions: `addMediaConversion('thumb')`, `addMediaConversion('preview')`.
108
- - Use `SpatieMediaLibraryFileUpload` in Filament forms.
109
-
110
- ## Validation
111
-
112
- - Always use `FormRequest` classes for HTTP requests.
113
- - Livewire validation: `#[Validate]` attributes or `$rules` property.
114
- - Shared rules: `app/Rules/` as custom Rule objects.
115
-
116
- ## WebSockets (Laravel Reverb — 2026 Standard)
117
-
118
- ```bash
119
- # Install Reverb (replaces Pusher/Soketi)
120
- php artisan install:broadcasting --reverb
121
- ```
122
-
123
- - Self-hosted on ReactPHP — no external API round-trips.
124
- - Horizontal scaling via Redis pub/sub.
125
- - Monitored via Laravel Pulse (`ReverbConnections` recorder).
126
- - Never use Pusher in new projects when hosting infrastructure allows Reverb.
127
-
128
- ## Monitoring (Laravel Pulse — Standard in L13)
129
-
130
- - Ships with Laravel — zero-config for basic metrics.
131
- - Monitors: queues, slow queries, exceptions, HTTP requests, Reverb connections.
132
- - `php artisan pulse:work` in Supervisor alongside queue workers.
133
-
134
- ## Routing
135
-
136
- - Resourceful route naming: `{resource}.index`, `{resource}.show`, `{resource}.store`.
137
- - Group routes: `Route::prefix()` + `Route::name()`.
138
- - Route model binding with `{slug}` for public-facing URLs.
139
-
140
- ## Queue & Email
141
-
142
- - Never send email synchronously — dispatch via queue.
143
- - `ShouldQueue` on all Mailables and Notifications.
144
- - Log failed jobs; configure retry backoff.
145
- - Use Reverb + queue for real-time notifications.
146
-
147
- ## Testing (Pest PHP v5)
148
-
149
- ```php
150
- // Pest v5 — current standard
151
- test('user can create a product', function () {
152
- $user = User::factory()->admin()->create();
153
- $response = actingAs($user)->post('/api/products', [
154
- 'name' => 'New Product',
155
- 'price' => 99.99,
156
- ]);
157
- $response->assertCreated();
158
- assertDatabaseHas('products', ['name' => 'New Product']);
159
- });
160
-
161
- // AI-based Evals (Pest v5 — grade LLM responses)
162
- test('AI summary is relevant', function () {
163
- $summary = AI::text('Summarize: ' . $product->description);
164
- expect($summary)->toBeRelevantTo($product->description);
165
- })->evals();
166
- ```
167
-
168
- - Tests: `tests/Feature/` (HTTP flows) + `tests/Unit/` (Actions/Services).
169
- - `RefreshDatabase` trait in feature tests.
170
- - Run: `php artisan test` or `./vendor/bin/pest`.
171
- - Minimum coverage: payments, calculations, state transitions.
172
-
173
- ## Project Structure Convention
174
-
175
- ```
176
- app/
177
- ├── Actions/ ← Single-action classes (invokable)
178
- ├── Services/ ← Stateful service classes
179
- ├── Filament/Resources/ ← Admin CRUD resources (Filament v4 Schema API)
180
- ├── Http/
181
- │ ├── Controllers/ ← Thin controllers (validate + return only)
182
- │ └── Requests/ ← FormRequest validation
183
- ├── Livewire/ ← Interactive island components
184
- ├── Models/ ← Eloquent models (PHP 8.4 property hooks)
185
- ├── Rules/ ← Custom validation rules
186
- └── Providers/
187
- ```
188
-
189
- ## Standard 2026 Alignment
190
-
191
- This overlay rule file is part of the agent-skills engineering pack. The 2026
192
- upgrade pass added the following Standard 2026 alignment footer to every
193
- overlay rule file in the pack.
194
-
195
- - **OWASP ASI**: applied as described in the core pack — see
196
- `core/roles/role-standard.md` (ASI01-ASI10) and the per-skill
197
- `## Security Guardrails (OWASP ASI)` section in each skill. The rules in this
198
- file are applied by the role that owns the affected action; the runtime
199
- gate is `core/scripts/hooks/check-policy.py` with
200
- `core/policies/action-boundaries.yaml`.
201
- - **Failure Modes** (overlay-specific): the rules in this file can be violated
202
- by drift, missing context, or untracked exceptions. The owning role is
203
- expected to surface concrete failure scenarios in the workflow's
204
- `### Failure Modes` section and to capture remediations via
205
- `contracts/schemas/incident-report.json` when the rule is bypassed.
206
- - **Output Contracts**: when a rule in this file produces a structured
207
- artifact (brief, plan, config, content handoff, audit event), the artifact
208
- must conform to the corresponding schema in `core/contracts/schemas/`.
209
- See `See `core/skills/backend/scaffold-new-service/SKILL.md` and the `implementation-result.json` schema.` for the related skill output contract reference.
210
- - **Skill Toolbox Lock**: a rule in this file is enforced by the role whose
211
- Skill Toolbox lists the related skill as Primary. Roles that hold the
212
- skill as Supporting must delegate rather than execute directly (per
213
- `core/workflows/README.md`).
214
- - **Commit / publish gate**: rule changes that affect user-visible behavior
215
- must follow the META-RULE in `core/rules/code.md` — no commit, no push,
216
- no publish without explicit user confirmation.
217
-
218
- See `core/skills/backend/scaffold-new-service/SKILL.md` and the `implementation-result.json` schema.
219
-
220
- Last updated: 2026-09-01
1
+ # Laravel Conventions — Filament v4 + Livewire Stack
2
+
3
+ Portable Laravel coding standards for projects using Filament v4 admin and Livewire 3 interactive components. These extend `core/rules/code.md`.
4
+
5
+ **Stack baseline (2026):** Laravel 13, Filament v4, Livewire 3, PHP 8.3+, TailwindCSS v4, Pest PHP v5.
6
+ ⚠️ Laravel 12 bug fix support ended Aug 13, 2026 — migrate to Laravel 13.
7
+
8
+ ## Architecture (Thin Controller Pattern)
9
+
10
+ - Controllers only validate (`FormRequest`) and return responses.
11
+ - Business logic belongs in `app/Actions/` (single-action classes) or `app/Services/`.
12
+ - Livewire components handle interactive islands only (drawers, modals, dynamic forms).
13
+ - Static pages and listings render with pure Blade — no Livewire overhead on read-only views.
14
+ - Never put business logic in Livewire component classes — delegate to Actions/Services.
15
+
16
+ ## Database Integrity
17
+
18
+ - Multi-table writes MUST be wrapped in `DB::transaction()`.
19
+ - Use `SoftDeletes` trait on models referenced by foreign keys.
20
+ - Migrations MUST index columns used in WHERE/ORDER: slugs, foreign keys, status fields.
21
+ - Use enum casts on models for status columns — never store as raw strings.
22
+ - Always define `$fillable` or `$guarded` explicitly on every model.
23
+
24
+ ## Filament v4 Admin (2026 — Breaking Changes from v3)
25
+
26
+ **Unified `Schema` API** — the biggest v4 breaking change:
27
+
28
+ ```php
29
+ // ❌ Filament v3 pattern
30
+ use Filament\Forms\Form;
31
+ public function form(Form $form): Form
32
+ {
33
+ return $form->schema([
34
+ TextInput::make('name'),
35
+ ]);
36
+ }
37
+
38
+ // ✅ Filament v4 pattern
39
+ use Filament\Schemas\Schema;
40
+ public function form(Schema $schema): Schema
41
+ {
42
+ return $schema->components([ // .schema() renamed to .components()
43
+ TextInput::make('name'),
44
+ ]);
45
+ }
46
+ ```
47
+
48
+ Other v4 changes:
49
+ - Resources: `app/Filament/Resources/` — structure unchanged
50
+ - Resource naming: `{Model}Resource.php` with pages in `{Model}Resource/Pages/`
51
+ - **MFA**: built-in (no plugin needed) — enable via `Filament::auth()->mfa()->enabled()`
52
+ - **Custom data sources**: Filament v4 supports any data source, not Eloquent-only
53
+ - **Table rendering**: 2–3× faster with partial re-renders on action modals
54
+ - **New components**: TipTap rich editor, slider, code editor, table repeater
55
+ - **Client-side methods**: `hiddenJs()`, `afterStateUpdatedJs()` — reduces server round-trips
56
+ - Status fields: `SelectColumn` in tables for inline editing
57
+ - Navigation: `NavigationGroup` for logical grouping
58
+
59
+ ## Livewire 3 + Alpine.js
60
+
61
+ - Livewire for server-side state (cart contents, form submission, real-time data).
62
+ - Alpine.js for client-side UI state (toggle visibility, transitions, animations).
63
+ - Dispatch browser events from Livewire for cross-component communication.
64
+ - Debounce text inputs: `wire:model.live.debounce.300ms` — never bare `wire:model.live`.
65
+ - Use `#[Computed]` for derived properties instead of recalculating in render.
66
+
67
+ ## Laravel 13 Features
68
+
69
+ ```php
70
+ // Laravel AI SDK (stable in L13) — provider-agnostic
71
+ use Illuminate\Support\Facades\AI;
72
+ $response = AI::text('Summarize this product description: ' . $product->description);
73
+
74
+ // PHP Attributes for framework components
75
+ #[Table('products')]
76
+ #[Fillable('name', 'slug', 'price')]
77
+ class Product extends Model { }
78
+
79
+ // JSON:API Resources built-in
80
+ use Illuminate\Http\Resources\Json\JsonApiResource;
81
+ ```
82
+
83
+ ## PHP 8.4 Features (Use in New Code)
84
+
85
+ ```php
86
+ // Property Hooks — computed properties without accessors
87
+ class Product extends Model {
88
+ public string $excerpt {
89
+ get => Str::limit($this->description, 150);
90
+ }
91
+ }
92
+
93
+ // Asymmetric Visibility — read-public, write-private
94
+ class Order extends Model {
95
+ public private(set) string $orderNumber;
96
+ }
97
+
98
+ // New array functions
99
+ $item = array_find($items, fn($i) => $i->status === 'pending');
100
+ $hasActive = array_any($items, fn($i) => $i->is_active);
101
+ ```
102
+
103
+ ## Media Handling (Spatie)
104
+
105
+ - Use `spatie/laravel-medialibrary` for file uploads.
106
+ - Define media conversions on the model (WebP, responsive sizes).
107
+ - Standard conversions: `addMediaConversion('thumb')`, `addMediaConversion('preview')`.
108
+ - Use `SpatieMediaLibraryFileUpload` in Filament forms.
109
+
110
+ ## Validation
111
+
112
+ - Always use `FormRequest` classes for HTTP requests.
113
+ - Livewire validation: `#[Validate]` attributes or `$rules` property.
114
+ - Shared rules: `app/Rules/` as custom Rule objects.
115
+
116
+ ## WebSockets (Laravel Reverb — 2026 Standard)
117
+
118
+ ```bash
119
+ # Install Reverb (replaces Pusher/Soketi)
120
+ php artisan install:broadcasting --reverb
121
+ ```
122
+
123
+ - Self-hosted on ReactPHP — no external API round-trips.
124
+ - Horizontal scaling via Redis pub/sub.
125
+ - Monitored via Laravel Pulse (`ReverbConnections` recorder).
126
+ - Never use Pusher in new projects when hosting infrastructure allows Reverb.
127
+
128
+ ## Monitoring (Laravel Pulse — Standard in L13)
129
+
130
+ - Ships with Laravel — zero-config for basic metrics.
131
+ - Monitors: queues, slow queries, exceptions, HTTP requests, Reverb connections.
132
+ - `php artisan pulse:work` in Supervisor alongside queue workers.
133
+
134
+ ## Routing
135
+
136
+ - Resourceful route naming: `{resource}.index`, `{resource}.show`, `{resource}.store`.
137
+ - Group routes: `Route::prefix()` + `Route::name()`.
138
+ - Route model binding with `{slug}` for public-facing URLs.
139
+
140
+ ## Queue & Email
141
+
142
+ - Never send email synchronously — dispatch via queue.
143
+ - `ShouldQueue` on all Mailables and Notifications.
144
+ - Log failed jobs; configure retry backoff.
145
+ - Use Reverb + queue for real-time notifications.
146
+
147
+ ## Testing (Pest PHP v5)
148
+
149
+ ```php
150
+ // Pest v5 — current standard
151
+ test('user can create a product', function () {
152
+ $user = User::factory()->admin()->create();
153
+ $response = actingAs($user)->post('/api/products', [
154
+ 'name' => 'New Product',
155
+ 'price' => 99.99,
156
+ ]);
157
+ $response->assertCreated();
158
+ assertDatabaseHas('products', ['name' => 'New Product']);
159
+ });
160
+
161
+ // AI-based Evals (Pest v5 — grade LLM responses)
162
+ test('AI summary is relevant', function () {
163
+ $summary = AI::text('Summarize: ' . $product->description);
164
+ expect($summary)->toBeRelevantTo($product->description);
165
+ })->evals();
166
+ ```
167
+
168
+ - Tests: `tests/Feature/` (HTTP flows) + `tests/Unit/` (Actions/Services).
169
+ - `RefreshDatabase` trait in feature tests.
170
+ - Run: `php artisan test` or `./vendor/bin/pest`.
171
+ - Minimum coverage: payments, calculations, state transitions.
172
+
173
+ ## Project Structure Convention
174
+
175
+ ```
176
+ app/
177
+ ├── Actions/ ← Single-action classes (invokable)
178
+ ├── Services/ ← Stateful service classes
179
+ ├── Filament/Resources/ ← Admin CRUD resources (Filament v4 Schema API)
180
+ ├── Http/
181
+ │ ├── Controllers/ ← Thin controllers (validate + return only)
182
+ │ └── Requests/ ← FormRequest validation
183
+ ├── Livewire/ ← Interactive island components
184
+ ├── Models/ ← Eloquent models (PHP 8.4 property hooks)
185
+ ├── Rules/ ← Custom validation rules
186
+ └── Providers/
187
+ ```
188
+
189
+ ## Standard 2026 Alignment
190
+
191
+ This overlay rule file is part of the agent-skills engineering pack. The 2026
192
+ upgrade pass added the following Standard 2026 alignment footer to every
193
+ overlay rule file in the pack.
194
+
195
+ - **OWASP ASI**: applied as described in the core pack — see
196
+ `core/roles/role-standard.md` (ASI01-ASI10) and the per-skill
197
+ `## Security Guardrails (OWASP ASI)` section in each skill. The rules in this
198
+ file are applied by the role that owns the affected action; the runtime
199
+ gate is `core/scripts/hooks/check-policy.py` with
200
+ `core/policies/action-boundaries.yaml`.
201
+ - **Failure Modes** (overlay-specific): the rules in this file can be violated
202
+ by drift, missing context, or untracked exceptions. The owning role is
203
+ expected to surface concrete failure scenarios in the workflow's
204
+ `### Failure Modes` section and to capture remediations via
205
+ `contracts/schemas/incident-report.json` when the rule is bypassed.
206
+ - **Output Contracts**: when a rule in this file produces a structured
207
+ artifact (brief, plan, config, content handoff, audit event), the artifact
208
+ must conform to the corresponding schema in `core/contracts/schemas/`.
209
+ See `See `core/skills/backend/scaffold-new-service/SKILL.md` and the `implementation-result.json` schema.` for the related skill output contract reference.
210
+ - **Skill Toolbox Lock**: a rule in this file is enforced by the role whose
211
+ Skill Toolbox lists the related skill as Primary. Roles that hold the
212
+ skill as Supporting must delegate rather than execute directly (per
213
+ `core/workflows/README.md`).
214
+ - **Commit / publish gate**: rule changes that affect user-visible behavior
215
+ must follow the META-RULE in `core/rules/code.md` — no commit, no push,
216
+ no publish without explicit user confirmation.
217
+
218
+ See `core/skills/backend/scaffold-new-service/SKILL.md` and the `implementation-result.json` schema.
219
+
220
+ Last updated: 2026-09-01