Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

laravel-docs-readerLaravel 文档 reader

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

2,845

周安装

114

GitHub Stars

公开资料未说明

下载量

921
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install laravel-docs-reader

简介

即时 Laravel 文档查询与 PSR-12 代码生成辅助工具。

  • 适合在 OpenClaw 中快速获取框架用法与版本差异说明。
  • 通过 clawhub 安装,自动检测项目版本并高亮变更点。
  • 使用前请确认项目是否为 Laravel 10+ 版本。laravel-docs-reader 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 建议结合官方 Changelog 验证差异描述准确性。

SKILL.md

Laravel Docs Reader — Skill Specification

Overview

Skill Name: Laravel Docs Reader Type: Development Reference Skill Target: OpenClaw Agent and Laravel developers Version: 1.0.0


Core Objectives

  1. Provide instant, accurate access to official Laravel documentation during coding
  2. Auto-detect the local Laravel version and serve the correct docs
  3. Generate standard Laravel code that conforms to Laravel best practices and PSR-12
  4. Highlight version differences across Laravel 10 / 11 / 12
  5. Keep references up to date via GitHub Actions auto-PR

Version Support

VersionStatusNotes
Laravel 12✅ DefaultLatest stable
Laravel 11✅ SupportedFull reference
Laravel 10✅ SupportedFull reference

Version Detection (Auto-Switch)

When the agent runs on a project, it auto-detects Laravel version:

  1. composer.json"laravel/framework": "^12.x"
  2. artisan --version
  3. vendor/laravel/framework/src/Illuminate/Foundation/Application.phpVERSION constant

Detection path: references/version-detection.md


CLI Tool

php laradoc.php <command> [args]
CommandArgsDescription
search<query>Natural language search (with Package Search cross-link)
version[path]Detect local Laravel version
currentShow default version
config<file>Config reference (database/cache/mail/...)
facade<name>Facade method signatures
artisan<cmd>Artisan command help
diff<feature>Version diff (auth/routing/middleware/exception)
generate<type> <name>Code skeleton (controller/model/job/middleware)
lang<query>Blade directive lookup
psr[topic]PSR-12 quick reference (full/arrays/naming/methods)
cacheShow local cache status
updateForce-refresh cache from GitHub
subscribeShow subscription / auto-update status

Search Coverage

CategoryTopics
RoutingBasic routes, route groups, resource routes, named routes, middleware
ControllersCRUD, REST, API, single-action, dependency injection
ModelsEloquent, relationships (12 types), mutators, scopes
MigrationsSchema builder, foreign keys, indexes, modifiers
ValidationForm requests, inline validation, custom rules
AuthBreeze, Sanctum, Gates, Policies, JWT
QueuesJobs, dispatching, failed job handling, Laravel Horizon
CacheStore API, tags, atomic locks
MailMarkdown, attachments, queuing
NotificationsMulti-channel, database notifications
TestingFeature tests, unit tests, Pest, factories
EventsListeners, broadcasting, queueable events
StorageLocal/S3/FTP, temporary URLs, uploads
SchedulingCron, recurring jobs, prevention of overlap
Service ContainerBinding, singletons, contextual binding
FacadesAll 30+ facades with method signatures
BroadcastingPrivate/public channels, presence channels
Configurationdatabase, cache, mail, queue, auth, session

Code Generation

The generate command outputs standard Laravel code for:

  • controller — RESTful API controller
  • model — Eloquent model with fillable/casts/relationships
  • job — Queueable job with failed handler
  • middleware — HTTP middleware
  • request — Form Request validation
  • notification — Multi-channel notification
  • factory — Model factory for testing

All output follows PSR-12 and Laravel conventions.


Version Diff

FeatureLaravel 10Laravel 11Laravel 12
Auth scaffoldinglaravel new --authBreezeBreeze (minimal)
Middleware registrationKernel.phpbootstrap/app.phpbootstrap/app.php
Route registrationRouteServiceProviderbootstrap/app.phpbootstrap/app.php
Exception handlingapp/Exceptions/Handlerbootstrap/app.phpbootstrap/app.php
Cycle tasksapp/Console/Kernel.phproutes/console.phproutes/console.php
Broadcast channelsroutes/channels.phproutes/channels.phproutes/channels.php

Auto-Update Mechanism

A GitHub Actions workflow runs weekly to:

  1. Fetch latest laravel/framework version from Packagist
  2. Compare against the skill's default version
  3. If new version detected → auto-create a PR with updated references
.github/workflows/update-docs.yml
  ├── Schedule: Every Sunday 00:00 UTC
  └── Creates PR: updates SKILL.md + version-detection.md

Anyone using this skill can review the auto-PR and merge after verification.


File Structure

laravel-docs-reader/
├── SKILL.md                          # This file
├── README.md                          # English (default)
├── README.zh-CN.md                    # Chinese
├── .github/
│   └── workflows/
│       └── update-docs.yml            # Auto-update PR workflow
├── .cache/                          # Local doc cache (auto-created)
├── references/
│   ├── version-detection.md           # Version detection logic
│   ├── version-diff.md                # Version diff table (10/11/12)
│   ├── psr-12.md                    # PSR-12 quick reference
│   ├── api-index.md                  # Full API index
│   ├── artisan-commands.md           # All artisan commands
│   ├── facades.md                   # Facade method signatures
│   ├── blade-directives.md           # All Blade directives
│   ├── config-ref.md               # Config file reference
│   └── examples/
│       ├── controller.md
│       ├── model.md
│       ├── migration.md
│       ├── middleware.md
│       ├── queue-job.md
│       ├── notification.md
│       └── testing.md
└── scripts/
    └── laradoc.php                  # CLI tool (14 commands)

PSR-12 Quick Reference

Built-in PSR-12 standard reference — no external formatter needed:

php laradoc.php psr                  # Full PSR-12 table (rules + examples)
php laradoc.php psr arrays          # Arrays rule
php laradoc.php psr naming          # Naming conventions (class/method/var/const)
php laradoc.php psr methods         # Visibility + method rules
php laradoc.php psr namespace       # use statements
php laradoc.php psr operators       # Operator spacing

Topics: arrays, naming, methods, control, namespace, operators

Local Cache (Offline Mode)

The skill stores docs in .cache/ for fast, offline access:

php laradoc.php cache  # Show cache status, size, age, offline availability
php laradoc.php update  # Force-refresh from GitHub

Cache is created automatically on first search. All bundled reference files work without internet.

Auto-Update & Subscription

GitHub Actions runs weekly (Sunday 00:00 UTC):

  • Detects new laravel/framework version from Packagist
  • Auto-creates PR updating SKILL.md, version-detection.md, version-diff.md
  • User reviews PR → merges when ready
php laradoc.php subscribe  # Show current subscription / update status

Laravel Package Search Cross-Link

After every search result, the agent suggests laravel-package-search for third-party package discovery.


Usage in OpenClaw

When the agent needs to write Laravel code:

  1. Auto-detect project Laravel version
  2. Map the request to the correct doc section
  3. Return:

- Official documentation summary - Code example (PSR-12, Laravel best practice) - Version differences (if applicable) - Notes / caveats


Evaluation Criteria

Each doc entry is rated on:

CriterionDescription
AccuracyMatches official Laravel docs exactly
CompletenessCovers all common use cases
FreshnessUpdated for latest Laravel version
Code QualityPSR-12 compliant, idiomatic Laravel
Version CoverageCovers 10 / 11 / 12 differences

Publishing

clawhub login --token <TOKEN>
clawhub publish laravel-docs-reader

Or submit at https://clawhub.com

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

81.36%
按下载量换算749

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills