Index of every page on this site: llms.txt
All skills
webman-php avatar

/webman-development

@de2a23d
by webmanwebman-php/skills23 stars
4
Run it yourself

Develop, modify, review, debug, test, or deploy Webman PHP applications built on Workerman. Use when a project contains workerman/webman-framework or the task explicitly concerns Webman routing, controllers, middleware, configuration, long-lived workers, custom processes, queues, coroutines, databases, or plugins. Do not use for standalone Workerman or ordinary PHP, Laravel, or ThinkPHP projects without Webman.

Use this Skill: https://skilld.dev/gh/webman-php/skills/webman-development

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesmanual-index.md

≈2.9k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Webman 官方手册索引

仅在现有 reference 没有覆盖所需的具体 API、低频组件、插件或运维主题时读取本文件。这里是检索路由,不是手册副本:先读取下方对应的 skill 配方,再打开目标项目锁定版本可用的官方页面或源码。

查询顺序与版本边界

  1. 先从 composer.lock、现有配置和调用点确认该组件已安装、已启用,以及项目的 Webman/Workerman 版本。
  2. 查下方内部 reference;其中的配方优先解决 Webman 特有的生命周期、配置、生效方式和安全边界。
  3. 配方未覆盖的方法,再打开对应的 Webman 官方页面,核对命名空间、签名、配置项和版本说明;当前网页可能比目标项目更新。
  4. 无网络、文档版本不匹配或页面仍无法确定时,检查目标项目 vendor/ 中锁定包的源码、PHPDoc、类型定义与已有调用。仍不能确认时,说明不确定性并请求文档/版本信息,不能把 Laravel、ThinkPHP、Swoole 或网上旧示例当作已验证 API。

不要因为查到一页文档就执行 composer require、迁移、重启、发布、创建端口或修改代理;这些操作仍需用户授权与对应 reference 的边界检查。

先读现有配方

任务关键词 先读 再查官方页
Request、上传、下载、JSON、Cookie、Header、流式响应 http-recipes.md 请求、响应
控制器动作、参数绑定、类型/默认值、HTTP 方法 Attribute、注解路由、注解验证、Request 注入、控制器中间件、CRUD 骨架 controller-recipes.md 控制器、路由、验证器
显式/默认路由、路由组、资源路由、CORS/OPTIONS、404、全局/应用/路由中间件 routing-and-middleware.md 路由、中间件
配置、异常、日志、Session、视图、静态文件 application-services.md 配置、异常、Session
字段校验、参数注解、上传文件校验、校验错误体 validation-recipes.md 验证器
查询、模型、事务、迁移、Redis、Cache、连接池 data-recipes.md 数据库章节
eventLoop、Context、Parallel、Pool、Swoole/Swow/Fiber coroutine-runtime.md 协程
队列、定时任务、自定义进程、后台 worker、慢 I/O process-and-async.md 自定义进程、Redis Queue
启动、Windows、控制器复用、文件监控、生命周期 core-runtime.md 生命周期、启动流程
应用插件、基础插件、插件安装/升级/卸载/打包 plugin-development.md 应用插件、基础插件创建
make:controller、make:model、make:crud、make:validator、make:middleware、make:command、make:bootstrap、make:process console-generators.md 及产物对应 reference 命令行、验证器
PHPUnit/Pest、测试风险、日志/异常/事务排查、文件监控 testing-and-debugging.md 单元测试、日志、异常、事务

高频页面中的长尾 API

这些页面可解决“skill 没列出某个 getter/选项”的问题;先按页面标题和页面内搜索定位,不要凭相似框架名称猜测。

需要的能力 官方章节与可搜索词
特殊请求信息 请求:rawBody、file、getRealIp、expectsJson、controller、action、setGet。代理真实 IP 仍须验证可信代理边界。
特殊响应形式 响应:withHeader、cookie、redirect、file、download、chunk。
多应用、模板与静态资源 多应用、视图、静态文件。
统一错误与记录 异常处理、日志、自定义 404/500。
控制台与自动生成 先读 console-generators.md,再查 命令行插件。仅在项目已安装/决定使用相应插件时,按锁定版本核对生成命令。

数据与消息组件

本 skill 只保留 Webman 接入和安全边界。关联、分页、MongoDB、Medoo、Stomp 或上游 ORM 的完整 API 应先确认组件已安装,再从以下章节继续。

主题 官方章节
数据库配置、查询、模型、关联与分页 配置、查询构造器、模型、关联、分页
迁移、Redis、Cache 迁移、Redis、Cache
ThinkORM、ThinkCache、MongoDB、Medoo ThinkORM、ThinkCache、MongoDB、Medoo
消息队列 Redis Queue、Stomp。不要把应用内 Event 当成持久化队列。

按需组件与基础插件

这些主题通常带独立依赖或配置。只有任务明确涉及、且目标项目已安装或用户批准新增时才打开并采用。

需求 官方章节
限流、分页、多语言、环境变量 限流器、分页组件、多语言、环境变量
Event、Crontab、单元测试 Event、Crontab、单元测试
图片、验证码、Excel、微信、支付、Casbin 图片、验证码、Excel、微信 SDK、支付 SDK、Casbin
基础插件、Push、发布基础插件 基础插件、Push、创建基础插件

应用插件、部署与诊断

应用插件有自己的目录、配置和发布生命周期;普通 Webman 应用不应为了引用一页插件文档而迁移到插件结构。

需求 官方章节
创建/维护应用插件 介绍、规范、创建、目录
插件路由、配置、控制器、视图、静态文件 路由、配置、控制器、视图、静态文件
插件数据与交付 数据库、Redis、日志、打包、发布、安装/卸载
生产代理与安全 Nginx 代理、安全、禁用函数检查
启动问题、内存、脚本、性能 业务初始化、文件监控、内存泄漏、自定义脚本、性能
AOP、二进制/Phar、升级 AOP、二进制打包、Phar、升级方法

离线与旧版本回退

  • 可使用项目自带或用户提供的本地手册搜索相同章节名,但不把某台开发机的文档路径写进可分发 skill。
  • 正在跨版本升级时,先锁定起止版本并读对应升级记录;不要只看当前文档就直接改配置或替换 API。
  • 官方页面、目标源码和项目现有调用冲突时,以目标项目锁定依赖和可运行配置为主,并把差异明确告诉用户。

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill is a professional development assistant for the Webman PHP framework, providing detailed guidelines on routing, controllers, databases, and deployment. It actively promotes security best practices, including robust input validation, secure credential management, and the avoidance of remote code execution. The risk level is low, primarily reflecting the inherent attack surface associated with processing and executing code within a development environment.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at de2a23d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 3 months ago

README badge

README badge for webman-php/skills