docs/zh-CN/skills/laravel-plugin-discovery/SKILL.md
通过LaraPlugins.io MCP发现和评估Laravel包。当用户想要查找插件、检查包的健康状况或评估Laravel/PHP兼容性时使用。
npx skillsauth add affaan-m/everything-claude-code laravel-plugin-discoveryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
使用 LaraPlugins.io MCP 服务器查找、评估并选择健康的 Laravel 包。
必须配置 LaraPlugins MCP 服务器。将其添加到您的 ~/.claude.json mcpServers 中:
"laraplugins": {
"type": "http",
"url": "https://laraplugins.io/mcp/plugins"
}
无需 API 密钥——该服务器对 Laravel 社区免费开放。
LaraPlugins MCP 提供两个主要工具:
通过关键词、健康评分、供应商和版本兼容性搜索包。
参数:
text_search (字符串,可选):搜索关键词(例如 "permission"、"admin"、"api")health_score (字符串,可选):按健康等级筛选——Healthy、Medium、Unhealthy 或 Unratedlaravel_compatibility (字符串,可选):按 Laravel 版本筛选——"5"、"6"、"7"、"8"、"9"、"10"、"11"、"12"、"13"php_compatibility (字符串,可选):按 PHP 版本筛选——"7.4"、"8.0"、"8.1"、"8.2"、"8.3"、"8.4"、"8.5"vendor_filter (字符串,可选):按供应商名称筛选(例如 "spatie"、"laravel")page (数字,可选):分页页码获取特定包的详细指标、README 内容和版本历史。
参数:
package (字符串,必填):完整的 Composer 包名(例如 "spatie/laravel-permission")include_versions (布尔值,可选):是否在响应中包含版本历史当用户想为某个功能发现包时:
SearchPluginTool 并输入相关关键词当用户想评估特定包时:
GetPluginDetailsTool 并输入包名当用户需要 Laravel 或 PHP 版本兼容性信息时:
laravel_compatibility 筛选条件并设置为其版本进行搜索SearchPluginTool({
text_search: "authentication",
health_score: "Healthy"
})
返回匹配 "authentication" 且状态健康的包:
SearchPluginTool({
text_search: "admin panel",
laravel_compatibility: "12"
})
返回兼容 Laravel 12 的包。
GetPluginDetailsTool({
package: "spatie/laravel-permission",
include_versions: true
})
返回:
SearchPluginTool({
vendor_filter: "spatie",
health_score: "Healthy"
})
返回来自供应商 "spatie" 的所有健康包。
| 健康等级 | 含义 |
|-------------|---------|
| Healthy | 积极维护,近期有更新 |
| Medium | 偶尔更新,可能需要关注 |
| Unhealthy | 已废弃或维护不频繁 |
| Unrated | 尚未评估 |
建议:生产环境应用优先选择 Healthy 包。
| 版本 | 备注 |
|---------|-------|
| 13 | 最新 Laravel |
| 12 | 当前稳定版 |
| 11 | 仍被广泛使用 |
| 10 | 旧版但常见 |
| 5-9 | 已弃用 |
建议:匹配目标项目的 Laravel 版本。
// Find healthy, Laravel 12 compatible packages for permissions
SearchPluginTool({
text_search: "permission",
health_score: "Healthy",
laravel_compatibility: "12"
})
每个结果包含:
spatie/laravel-permission)详细响应包括:
| 场景 | 推荐方法 | |----------|---------------------| | "有什么用于认证的包?" | 搜索 "auth" 并应用健康筛选 | | "spatie/package 还在维护吗?" | 获取详情,检查健康评分 | | "需要 Laravel 12 的包" | 使用 laravel_compatibility: "12" 搜索 | | "查找管理面板包" | 搜索 "admin panel",查看结果 | | "检查供应商声誉" | 按供应商搜索,查看详情 |
health_score: "Healthy"laravel_compatibility 是否与目标项目匹配laravel-patterns——Laravel 架构与模式laravel-tdd——Laravel 测试驱动开发laravel-security——Laravel 安全最佳实践documentation-lookup——通用库文档查询(Context7)data-ai
Design task-local harnesses, eval gates, and reusable skill extraction for Claude dynamic workflow mode and other adaptive agent harnesses.
development
React component testing with React Testing Library, Vitest/Jest, MSW for network mocking, accessibility assertions with axe, and the decision boundary between component tests and Playwright/Cypress end-to-end runs. Use when writing or fixing tests for React components, hooks, or pages.
tools
React and Next.js performance optimization patterns adapted from Vercel Engineering's React Best Practices (https://github.com/vercel-labs/agent-skills). Organizes 70+ rules across 8 priority categories — waterfalls, bundle size, server-side, client fetching, re-render, rendering, JS micro-perf, advanced. Use when writing, reviewing, or refactoring React/Next.js code for performance.
tools
React 18/19 patterns including hooks discipline, server/client component boundaries, Suspense + error boundaries, form actions, data fetching, state management decision trees, and accessibility-first composition. Use when writing or reviewing React components.