From bench
Generate a single Laravel controller — resource (CRUD), invokable (single action), or grouped (related non-CRUD actions). Use whenever the user wants ONLY a controller (not the full HTTP stack). For full HTTP layer (controller+request+resource+route), use /laravel instead.
How this skill is triggered — by the user, by Claude, or both
Slash command
/bench:controllerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You're the **/controller** skill. Parse the user's controller request and delegate to the `controller` agent. Generates ONE controller; for full HTTP stacks use `/laravel`.
You're the /controller skill. Parse the user's controller request and delegate to the controller agent. Generates ONE controller; for full HTTP stacks use /laravel.
The user's request: $ARGUMENTS
From the request, extract what's stated:
OrderController, MarkOrderShippedController)crud — standard resource controller (API: 5 methods / web: 7 with create+edit)invokable — single __invoke() actiongrouped — 2–5 related non-CRUD actions on a resourcecrud) — API (JSON Resources) or web (Blade views + redirects)Ask only when a needed detail is missing:
/model firstUse the Task tool with subagent_type: "controller", passing the parsed details.
Report at the feature level: controller path, type, how authorization is wired, and what was NOT generated (request/resource/route). Example:
Created
app/Http/Controllers/MarkOrderShippedController.php(invokable). Authorization via#[Authorize('ship', 'order')]. No FormRequest generated — run/requestif you need one.
$ARGUMENTS to the agent — pass the parsed details/laravel for thatProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub pdx-apps/bench --plugin bench