Token导航 LogoToken导航

Agent Skill · 前端设计

laravel-12(Laravel 12 前端)

laravel-12 用于补充前端设计相关能力,适合在 Local Agent 中需要让 Agent 承接前端设计相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

laravel-12 是前端设计类 Agent Skill,可用宿主为 Local Agent,通过unknown获取,权限为接触敏感数据;许可证信息还不明确,暂无第三方扫描结果,按安装量在前端设计类的 10,216 个 Skill 里排第 9,208。

总安装 225周安装 9下载 73核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:laravel-12(Laravel 12 前端)
来源仓库:https://smithery.ai
仓库路径:laravel-12
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

laravel-12 用于补充前端设计相关能力。适合在 Local Agent 中让 Agent 承接前端设计相关任务。安装方式未知,需结合来源仓库和原始 README 核验具体用法。使用前建议确认权限范围、维护状态及是否涉及联网或文件操作。

laravel-12 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:laravel-12

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Local Agent;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    没有现成安装命令,按unknown的说明从来源页面获取,仓库路径是 laravel-12。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

laravel-12 怎么安装?

公开资料没有给出可以直接复制的命令,需要按来源页面说明手动安装,仓库内路径为 laravel-12。

laravel-12 支持哪些 AI 工具?

公开资料标注支持 Local Agent。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

laravel-12 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

laravel-12 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

laravel-12 用的人多吗?

公开数据是累计安装 225 次,近一周安装 9 次,下载 73 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

laravel-12 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 Local Agent 一种宿主,触发方式和使用习惯不用来回切换。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Local Agent,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 要求有安全扫描结论才肯安装的团队。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
laravel-12

Laravel 12 前端 · 本页

225—接触敏感数据未明确未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Laravel 12 Development Skill

This skill provides comprehensive guidance for developing high-quality Laravel 12 applications using modern best practices, proper architecture patterns, and Laravel's streamlined structure.

Purpose

Provide expert-level Laravel 12 development guidance covering:

  • Modern Laravel 12 streamlined architecture and file structure
  • Eloquent ORM patterns with proper type hints and relationships
  • Authentication and authorization using current best practices
  • Form validation with Form Request classes
  • Queue and job management for background processing
  • Database migrations, models, and API development
  • Testing patterns and conventions
  • Configuration and environment management

When to Use

Use this skill when:

  • Creating or working with Laravel 12 applications
  • Building models, controllers, migrations, or any Laravel components
  • Implementing authentication or authorization
  • Creating APIs with Eloquent resources
  • Writing database queries or working with relationships
  • Setting up queues and background jobs
  • Writing form validation
  • Configuring Laravel applications
  • Following Laravel best practices and conventions
  • Ensuring proper Laravel 12 structure compliance

Core Principles

1. Use Artisan Commands

Always create files using php artisan make: commands with appropriate options:

# Models with migrations, factories, seeders
php artisan make:model Post -mfs

# Form Requests for validation
php artisan make:request StorePostRequest

# Controllers
php artisan make:controller PostController --resource

# Jobs
php artisan make:job ProcessPodcast

# Generic PHP classes
php artisan make:class Services/PaymentService

Important: Pass --no-interaction when running commands programmatically.

2. Follow Laravel 12 Streamlined Structure

Laravel 12 uses a simplified structure:

  • No app/Http/Middleware/ directory - register middleware in bootstrap/app.php
  • No app/Console/Kernel.php - use bootstrap/app.php or routes/console.php
  • Commands auto-register from app/Console/Commands/
  • Central configuration in bootstrap/app.php for middleware, routing, exceptions

Read references/structure.md for complete details on Laravel 12 architecture.

3. Authentication: Always Use $request->user()

CRITICAL: Always retrieve authenticated user via $request->user(), never use auth()->user() or Auth::user():

// ✅ CORRECT
public function index(Request $request): Response
{
    $user = $request->user();
    // ...
}

// ❌ WRONG
public function index(): Response
{
    $user = auth()->user();  // Don't do this
}

Read references/authentication.md for complete authentication and authorization guidance.

4. Database: Eloquent Over DB Facade

Prefer Eloquent models and relationships over raw queries:

// ✅ PREFER
$users = User::query()->where('active', true)->get();

// ❌ AVOID
$users = DB::table('users')->where('active', true)->get();

Prevent N+1 queries by eager loading relationships:

// ✅ GOOD - Prevents N+1
$posts = Post::with('user', 'comments')->get();

// ❌ BAD - Causes N+1
$posts = Post::all();
foreach ($posts as $post) {
    echo $post->user->name; // New query each iteration
}

Read references/database.md for Eloquent patterns, relationships, migrations, and query optimization.

5. Validation: Always Use Form Requests

Never use inline validation. Always create Form Request classes:

php artisan make:request StorePostRequest

Form Requests should include:

  • Validation rules (check project conventions for array vs string format)
  • Custom error messages
  • Authorization logic when needed
public function rules(): array
{
    return [
        'title' => ['required', 'string', 'max:255'],
        'body' => ['required', 'string'],
    ];
}

Read references/validation.md for complete validation patterns and examples.

6. Configuration: Never Use env() Outside Config Files

// ❌ WRONG
$apiKey = env('API_KEY');

// ✅ CORRECT
$apiKey = config('services.api.key');

Environment variables should only be accessed in config/*.php files, then accessed via config() helper throughout the application.

7. Background Processing: Use Queues

Use queued jobs with ShouldQueue interface for time-consuming operations:

php artisan make:job ProcessPodcast
class ProcessPodcast implements ShouldQueue
{
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

    public int $tries = 3;
    public int $timeout = 120;

    public function __construct(public Podcast $podcast) {}

    public function handle(): void
    {
        $this->podcast->process();
    }
}

Read references/queues.md for queue patterns, job chains, batches, and worker management.

Working with Models

Model Creation

When creating models, use appropriate flags:

# Model with migration, factory, seeder
php artisan make:model Post -mfs

# Model with migration, factory, seeder, policy, controller
php artisan make:model Post -mfsc --policy

Model Conventions

  1. Use return type hints on relationships:
public function posts(): HasMany
{
    return $this->hasMany(Post::class);
}
  1. Use casts() method for type casting:
protected function casts(): array
{
    return [
        'published_at' => 'datetime',
        'is_featured' => 'boolean',
        'metadata' => 'array',
    ];
}
  1. Use constructor property promotion:
public function __construct(
    public string $name,
    public int $age,
) {}

Working with Controllers

  1. Type-hint Request in controller methods
  2. Use resource controllers for CRUD operations
  3. Return proper response types with type hints
  4. Use Form Requests for validation
  5. Keep controllers thin - move business logic to services/actions
public function store(StorePostRequest $request): RedirectResponse
{
    $post = Post::create($request->validated());

    return redirect()->route('posts.show', $post);
}

API Development

Use Eloquent API Resources for consistent API responses:

php artisan make:resource PostResource
class PostResource extends JsonResource
{
    public function toArray($request): array
    {
        return [
            'id' => $this->id,
            'title' => $this->title,
            'author' => new UserResource($this->whenLoaded('user')),
        ];
    }
}

Migrations

CRITICAL: When modifying columns, include ALL previous attributes or they will be lost:

// ❌ WRONG - Loses 'nullable' attribute
$table->string('email')->unique()->change();

// ✅ CORRECT - Preserves all attributes
$table->string('email')->nullable()->unique()->change();

Reference Files

This skill includes detailed reference files for specific topics:

  • references/structure.md - Laravel 12 file structure, Artisan commands, configuration
  • references/authentication.md - Authentication, authorization, policies, gates
  • references/database.md - Eloquent, relationships, migrations, queries, API resources
  • references/validation.md - Form Requests, validation rules, custom messages
  • references/queues.md - Jobs, queues, workers, chains, batches

Read the appropriate reference file(s) when working on related tasks to ensure following best practices.

PHP Conventions

  1. Always use curly braces for control structures, even single-line
  2. Use explicit return type declarations for all methods
  3. Use PHP 8+ constructor property promotion
  4. Use type hints for method parameters
  5. Prefer PHPDoc blocks over inline comments
protected function isAccessible(User $user, ?string $path = null): bool
{
    // Implementation
}

Best Practices Summary

  1. ✅ Use php artisan make: commands to create files
  2. ✅ Follow Laravel 12 streamlined structure
  3. ✅ Always use $request->user() for authentication
  4. ✅ Prefer Eloquent over DB facade
  5. ✅ Always create Form Request classes for validation
  6. ✅ Never use env() outside config files
  7. ✅ Use queues for time-consuming operations
  8. ✅ Add return type hints on relationships
  9. ✅ Eager load to prevent N+1 queries
  10. ✅ Include all attributes when modifying columns
  11. ✅ Use named routes with route() helper
  12. ✅ Use API Resources for APIs
  13. ✅ Keep controllers thin
  14. ✅ Write descriptive, type-safe code

Common Tasks Workflow

Creating a New Resource

  1. Create model with migrations and factory: php artisan make:model Post -mf
  2. Create Form Requests: php artisan make:request StorePostRequest
  3. Create controller: php artisan make:controller PostController --resource
  4. Create API resource (if needed): php artisan make:resource PostResource
  5. Define routes in appropriate routes file with named routes
  6. Write tests for all functionality

Adding Authentication to Routes

  1. Use middleware in route definition or bootstrap/app.php
  2. Access user via $request->user()
  3. Use policies for authorization
  4. Return appropriate responses for unauthorized access

This skill ensures Laravel applications follow modern best practices, maintain clean architecture, and leverage Laravel 12's streamlined structure effectively.

平台分布

Local Agent

88.58%
按下载量换算65

安全审计

暂无安全审计结果可展示。

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills