重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
laravel%3Acontroller-cleanup by jpcaparas/superpowers-laravel
npx skills add https://github.com/jpcaparas/superpowers-laravel --skill laravel:controller-cleanup保持控制器小巧并专注于编排。
创建一个请求类(例如 StoreUserRequest)并使用 authorize() + rules()
在控制器方法中对请求进行类型提示;Laravel 会在操作前运行它
php artisan make:request StoreUserRequest
为大型工作流创建一个小型 Action(专注于一件事)或 Service
将 DTO 从 Request 传递给 Action,以避免泄露框架细节
final class CreateUserAction { public function __invoke(CreateUserDTO $dto): User { /* ... */ } }
每周安装量
50
代码仓库
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
GitHub 星标数
125
首次出现
2026年1月21日
已安装于
claude-code39
gemini-cli35
opencode34
cursor32
codex31
github-copilot30
Keep controllers small and focused on orchestration.
Create a Request class (e.g., StoreUserRequest) and use authorize() + rules()
Type-hint the Request in your controller method; Laravel runs it before the action
php artisan make:request StoreUserRequest
Create a small Action (one thing well) or a Service for larger workflows
Pass a DTO from the Request to the Action to avoid leaking framework concerns
final class CreateUserAction { public function __invoke(CreateUserDTO $dto): User { /* ... */ } }
Weekly Installs
50
Repository
GitHub Stars
125
First Seen
Jan 21, 2026
Installed on
claude-code39
gemini-cli35
opencode34
cursor32
codex31
github-copilot30
Next.js 15+ 最佳实践指南:文件约定、RSC边界、异步模式与性能优化
1,400 周安装