·controller-testing
</>

controller-testing

使用 Web/会话和 API/JSON 流的可重复模式为 Laravel HTTP 控制器编写 Pest 功能测试。激活以控制器为中心的功能测试(特别是在tests/Feature/Http/Controllers/**下)、CRUD 操作矩阵、嵌套路由绑定检查、授权结果(403 与 404)、验证数据集和持久性断言。

22安装·1热度·@hosmelq

安装

$npx skills add https://github.com/hosmelq/agent-skills --skill controller-testing

如何安装 controller-testing

通过命令行快速安装 controller-testing AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/hosmelq/agent-skills --skill controller-testing
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:hosmelq/agent-skills。

SKILL.md

查看原文

Activate this skill when the task is about Laravel controller feature tests and includes signals like:

Do not use this skill for model/unit tests, service-layer tests, console commands, or non-HTTP behavior.

Action references are web/session-first templates. For API/JSON controllers, keep the same action structure and adapt assertions with references/modes/api-json.md plus sibling API tests.

使用 Web/会话和 API/JSON 流的可重复模式为 Laravel HTTP 控制器编写 Pest 功能测试。激活以控制器为中心的功能测试(特别是在tests/Feature/Http/Controllers/**下)、CRUD 操作矩阵、嵌套路由绑定检查、授权结果(403 与 404)、验证数据集和持久性断言。 来源:hosmelq/agent-skills。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/hosmelq/agent-skills --skill controller-testing
分类
</>开发工具
认证
收录时间
2026-02-22
更新时间
2026-03-10

Browse more skills from hosmelq/agent-skills

快速解答

什么是 controller-testing?

使用 Web/会话和 API/JSON 流的可重复模式为 Laravel HTTP 控制器编写 Pest 功能测试。激活以控制器为中心的功能测试(特别是在tests/Feature/Http/Controllers/**下)、CRUD 操作矩阵、嵌套路由绑定检查、授权结果(403 与 404)、验证数据集和持久性断言。 来源:hosmelq/agent-skills。

如何安装 controller-testing?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/hosmelq/agent-skills --skill controller-testing 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/hosmelq/agent-skills

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-22

相关 Skills

暂无