← 返回 Skills 市场
relunctance

Laravel Package Search

作者 Gao.QiLin · GitHub ↗ · v2.0.3 · MIT-0
cross-platform ⚠ suspicious
106
总下载
0
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install laravel-package-search
功能描述
Real-time Laravel package search via Packagist API with local cache. Supports 22 scenes, quality scoring, and cross-references to laravel-docs-reader for off...
使用说明 (SKILL.md)

Laravel Package Search - Skill Specification

Overview

Skill Name: Laravel Package Search Type: Development Assistant Skill Target: Laravel developers seeking efficient plugin selection Engine: OpenClaw Agent


1. Core Objectives

  • Real-time Packagist API — data never stale, always fresh
  • Local cache (1 hour TTL) — fast repeat queries
  • Score packages by: stars × downloads × activity × Laravel compatibility
  • Support 22 scene categories including AI/LLM, rate-limit, Stripe, SMS
  • Cross-reference to laravel-docs-reader for official Laravel documentation
  • Provide install commands + config snippets

2. Scene Categories

Supported Scenes

Scene Chinese Description
auth 认证/权限 Authentication, authorization, roles, permissions
payment 支付/订单 Payment gateways, Stripe, Alipay, WeChat Pay
multitenancy 多租户 Multi-tenant SaaS applications
excel Excel/导入导出 Spreadsheet import/export, data processing
media 媒体/文件 File uploads, media management, CDN
wechat 微信 WeChat SDK, Mini Program
queue 队列/任务 Job queues, Laravel Horizon
admin 后台管理 Admin panels, Filament
search 搜索/全文检索 Full-text search, Algolia, Scout
logging 日志/审计 Logging, audit trails
api API/SDK REST API, GraphQL, Sanctum
testing 测试 Pest, PHPUnit
cache 缓存 Redis, cache management
security 安全 Security headers, CSRF
devtools 开发工具 Debug, Telescope, Debugbar
email 邮件 Mailgun, notifications
storage 存储 S3, cloud storage
ui 前端/UI Vue, React, Inertia, Breeze
ai AI/LLM集成 OpenAI, LLM, chatbot
ratelimit 限流 Rate limiting, throttle
stripe Stripe支付 Stripe subscriptions & payments
sms 短信 Twilio, SMS notifications

3. Package Evaluation Criteria

Each package is scored in real-time via Packagist API (live data):

Criterion Weight Source
GitHub Stars 15% Packagist API (github_stars field)
Packagist Downloads 20% Packagist API (downloads.total)
Favorites 10% Packagist API (favers)
Maintenance Activity 30% Last commit time (≤30d=100, ≤1y=40, >2y=0)
Laravel Compatibility 15% composer.json require (10/11/12)
Description Quality 10% Non-empty description = 100

Real-time Scoring

Score = min(100, stars/500)*0.15 + min(100, log10(downloads)*15)*0.20
      + min(100, favers/200)*0.10 + activityScore*0.30
      + (hasLaravelVersion ? 100 : 0)*0.15 + (hasDescription ? 100 : 0)*0.10

Data fetched live from Packagist API. Cached for 1 hour in scripts/.cache.json.


4. Top 20 Laravel Packages

Run php search.php top 20 for live rankings


5. Smart Recommendation Logic

When a user describes their needs:

  1. Parse Intent → Map to scene category
  2. Match Packages → Find packages in that scene
  3. Filter → Remove incompatible versions
  4. Sort → By recommendation score
  5. Output → Top 3 recommendations with reasoning

Output Template

## 🎯 Recommended for: [User's Scenario]

**Top Pick**: [Package Name]
- **Why**: [Recommendation Reason]
- **Alternative**: [Alternative Package]
- **Caution**: [Any concerns]
- **Install**: `composer require [package]`
- **Compatibility**: Laravel X / Y / Z

---

**Alternative 1**: [Name] ...
**Alternative 2**: [Name] ...

6. Installation & Configuration

Each package entry includes:

composer require vendor/package
// config/services.php or dedicated config file
'package' => [
    'key' => env('PACKAGE_KEY'),
],
// app/Providers/AppServiceProvider.php
public function register(): void
{
    $this->mergeConfigFrom(...);
}

7. Version Compatibility

Laravel Compatible Packages
Laravel 12 Packages updated after 2024-Q4
Laravel 11 Packages updated after 2023-Q2
Laravel 10 Packages updated after 2022-Q1

Always verify: composer show vendor/package --tree | grep laravel/framework


8. CLI Tool (scripts/search.php)

Real-time Packagist API with local caching. No static data.

Commands

php search.php \x3Ccommand> [args]
Command Args Description
search \x3Cscene> [limit] Search by scene (auth, payment, ai...)
compare \x3Cpkg1> \x3Cpkg2> Compare two packages
recommend \x3Crequirement> Natural language recommendation
top [limit] Show Top N packages (default 10)
scenes List all 22 scene categories

Examples

# Search AI packages
php search.php search ai 3

# Compare two auth packages
php search.php compare spatie/laravel-permission laravel/sanctum

# Natural language recommendation
php search.php recommend "I need WeChat Pay for Laravel 11"
php search.php recommend "I need AI chat for Laravel"
php search.php recommend "I need rate limiting"

# Top 20 packages
php search.php top 20

# All scenes
php search.php scenes

Caching

Cache file: scripts/.cache.json (auto-created)
TTL: 1 hour

Integration with OpenClaw Agent

When the agent receives a package query, it calls php search.php and formats the output. If the user asks about Laravel official docs, it cross-references laravel-docs-reader skill.


8b. laravel-docs-reader Cross-Reference

This skill automatically cross-references Laravel official documentation for known packages:

Package → Official Laravel Docs
spatie/laravel-permission → Authorization docs
laravel/scout → Database Search docs
laravel/horizon → Queues docs
laravel/telescope → Debugging docs
laravel/sanctum → SPA Authentication docs
laravel/cashier → Billing docs
laravel/fortify → Authentication docs
filament/filament → filamentphp.com/docs
maatwebsite/excel → docs.laravel-excel.com

For packages not in the map, the output includes:

📖 Laravel Docs: Run `laravel-docs-reader` to search official docs for this package

Workflow

  1. User asks: "recommend a Laravel auth package"
  2. This skill returns ranked packages with install commands
  3. Output includes: 📖 Laravel Docs: Run laravel-docs-reader to search official docs
  4. User can then ask: "search laravel-docs-reader for sanctum setup"
  5. laravel-docs-reader handles the official documentation query

Activation Keywords

  • "帮我找个 Laravel 插件"
  • "Laravel package for XXX"
  • "推荐 Laravel 认证插件"
  • "Laravel auth package recommendation"
  • "帮我评估这个包"
  • "compare Laravel packages"

Workflow

  1. User describes requirement (Chinese or English)
  2. Skill identifies scene category
  3. Skill searches Top20 + scene database
  4. Skill returns ranked recommendations
  5. User selects → Skill provides install + config

10. Data Sources

  • Packagist API: https://packagist.org/api/search.json?q=
  • GitHub API: https://api.github.com/repos/{vendor}/{package}
  • GitHub Trending: Community activity
  • Official Laravel Packages: laravel.com/packages

11. File Structure

laravel-package-search/
├── SKILL.md                          # This file
├── references/
│   └── scene-index.md                # Scene category index
└── scripts/
    └── search.php                    # Real-time Packagist CLI (v3)

12. Publishing to Skills Market

clawhub login
clawhub publish laravel-package-search

Or submit to ClawHub website for review.


13. Maintenance

  • Update Top 20 quarterly
  • Add new scenes as Laravel ecosystem evolves
  • Track deprecated packages and mark them
  • Update compatibility for new Laravel releases
安全使用建议
This bundle is inconsistent: the SKILL.md describes a PHP-based CLI (scripts/search.php) and a local cache file, but the package contains no script or code and does not declare PHP as required. Before installing or enabling this skill: (1) Ask the publisher for the missing code (scripts/search.php) or an explanation of how the agent is expected to execute the described CLI. (2) Verify that a PHP runtime will actually be available where the agent runs; otherwise the documented commands cannot run. (3) If you plan to run any provided PHP script, review its source first — the SKILL.md expects the script to read/write scripts/.cache.json and perform outbound Packagist requests, so run it in a sandbox or restricted environment with limited filesystem/network access. (4) If the author supplies the missing code, re-run a content review: verify no hardcoded endpoints, secrets, or unexpected network calls are present and ensure the script only contacts packagist.org and documented resources. If you cannot obtain the code or a satisfactory explanation, treat this skill as non-functional and do not enable it for autonomous use.
功能分析
Type: OpenClaw Skill Name: laravel-package-search Version: 2.0.3 The laravel-package-search skill is a development assistant designed to help users find and evaluate Laravel packages via the Packagist API. The bundle consists of documentation (SKILL.md) and reference guides (scene-index.md, top20-packages.md) that define a structured workflow for package recommendation and scoring. While it references a CLI tool (scripts/search.php) for real-time data fetching and local caching, the described behavior is entirely consistent with its stated purpose, and no evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
能力评估
Purpose & Capability
The SKILL.md repeatedly describes a PHP CLI tool (scripts/search.php), local cache (scripts/.cache.json), and real-time Packagist API calls. The skill bundle contains no PHP script or any code files to implement that behavior, and the metadata does not declare PHP (php CLI) as a required binary. A consumer expecting a runnable CLI/search tool would not get one from this bundle.
Instruction Scope
Runtime instructions tell the agent to run `php search.php`, create/read a cache file at scripts/.cache.json, and call Packagist as well as cross-reference another skill (laravel-docs-reader). Because the actual script is not included, the instructions either expect the agent to implement or fetch code at runtime (not documented) or assume a preexisting environment. The instructions also assume filesystem write access and outbound network access (Packagist), which are not declared or controlled by the manifest.
Install Mechanism
There is no install spec (instruction-only), which is low-risk from an install-footprint perspective. However, the absence of shipped code means the documented runtime behavior cannot be validated from the bundle itself — the skill is effectively a spec, not an implementation.
Credentials
The skill declares no required environment variables or credentials (proportionate). That said, the SKILL.md references creating composer require commands and sample config env('PACKAGE_KEY') for downstream packages, which are unrelated to this skill's own operation. The skill will need network access to Packagist and a PHP runtime to operate as documented; neither is declared.
Persistence & Privilege
The skill does not request always:true or any persistent privileges. It does instruct creating a local cache file under scripts/.cache.json if the CLI existed, which is limited scope and not elevated privilege.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install laravel-package-search
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /laravel-package-search 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.3
v2.0.3: Full README refresh with clickable Packagist links
v2.0.2
All scenes and top20 packages now have clickable Packagist links
v2.0.1
Remove orphaned examples/ dir, clean up dead references
v2.0.0
v2: Real-time Packagist API, local cache, 22 scenes, laravel-docs-reader cross-ref
v1.0.0
Initial publish
元数据
Slug laravel-package-search
版本 2.0.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 5
常见问题

Laravel Package Search 是什么?

Real-time Laravel package search via Packagist API with local cache. Supports 22 scenes, quality scoring, and cross-references to laravel-docs-reader for off... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 106 次。

如何安装 Laravel Package Search?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install laravel-package-search」即可一键安装,无需额外配置。

Laravel Package Search 是免费的吗?

是的,Laravel Package Search 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Laravel Package Search 支持哪些平台?

Laravel Package Search 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Laravel Package Search?

由 Gao.QiLin(@relunctance)开发并维护,当前版本 v2.0.3。

💬 留言讨论