Generated: 2026-01-04
Analyzed prefrontal-cortex Laravel project:
- 54 feature/refactor commits in last month
- 11 models total
- 86 feature tests
- 5 API controllers
- 5 Filament widgets
Frequency: 16+ instances in last month Manual effort: 30-45 minutes per endpoint
What you do manually:
- Create controller in
app/Http/Controllers/Api/ - Add route to
routes/api.php - Create Pest test in
tests/Feature/Api/ - Add middleware if needed
- Test manually, iterate
Should be a skill:
/scaffold:api-endpoint session-recovery
# OR via voice: "create an API endpoint for session recovery"Generated:
- ✅ Controller with index/show/store/update/destroy methods
- ✅ Route registration with middleware
- ✅ Pest test with describe/it blocks
- ✅ Factory data if needed
- ✅ Follows your standards (declare strict_types, JsonResponse, etc.)
Frequency: 5+ widgets in last month Manual effort: 20-30 minutes per widget
What you do manually:
- Create widget in
app/Filament/Widgets/ - Create test in
tests/Feature/Filament/Widgets/ - Register in dashboard
- Write query logic
Should be a skill:
/scaffold:filament-widget dashboard-stats
# OR: "create a Filament dashboard widget for stats"Generated:
- ✅ Widget class with chart/stat card setup
- ✅ Test file with widget rendering tests
- ✅ Auto-registers in AdminPanelProvider
Frequency: Moderate (models added less frequently but with full stack) Manual effort: 45-60 minutes
What you do manually:
- Create model
- Create migration
- Create factory
- Create model test
- Add relationships
- Add casts/attributes
Should be a skill:
/scaffold:model Node --belongs-to=Repository --has-many=Events
# OR: "create a Node model that belongs to Repository"Generated:
- ✅ Model with relationships, casts, fillable
- ✅ Migration with proper schema
- ✅ Factory with realistic data
- ✅ Model test with relationship tests
Frequency: Lower but HIGH complexity (6-10 files) Manual effort: 1-2 hours
What you do manually:
- Resource class
- List/Create/Edit pages
- Form schema
- Table schema
- Tests for all pages
- Navigation setup
Should be a skill:
/scaffold:filament-resource PullRequest
# OR: "create a Filament resource for PullRequests"Generated:
- ✅ Resource class
- ✅ All page classes
- ✅ Form and Table schemas
- ✅ Tests for CRUD operations
Frequency: Continuous need Manual effort: 15-30 minutes per class
Current state: You have 86 tests but coverage gaps exist
Should be a skill:
/generate:tests app/Services/GitRebaseService.php
# OR: "write tests for GitRebaseService"Generated:
- ✅ Pest test file with full coverage
- ✅ Mocks for dependencies
- ✅ Edge cases and error handling
- ✅ Follows your test patterns (describe/it, factories)
- ✅
/scaffold:api-endpoint {name}- API controller + route + test - ✅
/scaffold:model {name}- Model + migration + factory + test - ✅
/generate:tests {file}- Generate tests for existing code
- ✅
/scaffold:filament-widget {name}- Widget + test - ✅
/scaffold:filament-resource {name}- Full CRUD resource
- ✅
/scaffold:service {name}- Service class + test + interface - ✅
/scaffold:event-listener {event} {listener}- Event + Listener + test - ✅
/scaffold:job {name}- Queue job + test
User (voice): "I need an API endpoint for retrieving dashboard stats"
↓
AI analyzes: "This is an API endpoint pattern"
↓
AI decides: Use /scaffold:api-endpoint skill
↓
AI executes: /scaffold:api-endpoint dashboard-stats --read-only
# Skill runs standardized generation:
1. Create app/Http/Controllers/Api/DashboardStatsController.php
- Uses your template (declare strict_types, JsonResponse, etc.)
- Includes index() method with query logic placeholder
2. Add route to routes/api.php
- Follows your middleware pattern (ValidateKnowledgeApiToken)
- Uses Route::get with proper naming
3. Create tests/Feature/Api/DashboardStatsTest.php
- Uses your Pest pattern (describe/it blocks)
- Includes factory setup, authentication, assertions
4. Run tests to verify
5. Report what was created- API endpoint: 30-45 min
- Filament widget: 20-30 min
- Model stack: 45-60 min
- Total monthly: ~54 features × 30min avg = 27 hours/month
- API endpoint: 2-3 min (AI decides + skill executes)
- Filament widget: 2-3 min
- Model stack: 3-5 min
- Total monthly: ~54 features × 3min avg = 2.7 hours/month
- ✅ Build
/scaffold:api-endpointskill (highest ROI) - ✅ Build
/scaffold:modelskill - ✅ Build
/generate:testsskill - Test with voice interface integration
- Iterate based on actual usage
From ~/.claude/commands/:
- analyze, book, brand, build, ceo, cleanup, coderabbit
- commit, conduit, deploy, design, dev-setup, document
- engineer, estimate, explain, git, improve, index
- kb, load, migrate, scan, sentinel, spawn, task
- test, theshit, troubleshoot
Gap: None of these generate Laravel code following your patterns Need: Laravel-specific scaffolding skills that know your conventions