[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CZDVB6626H2ZNN4D4TX9DZ":3,"skill-same:01M7CZDVB6626H2ZNN4D4TX9DZ":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":37,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M7CZDVB6626H2ZNN4D4TX9DZ","padosoft-laravel-scaffolding",null,"Use this skill when adding something new to a Laravel application — an endpoint, a controller, a service, a CRUD backend, a queued job, a test — \"make me the API for X\", \"add the CRUD for Y\", \"I need a service that does Z\" — and whenever a piece added earlier is half-wired: a route that answers 404, a policy that is never called, a request class that validates nothing because the controller reads `all()`, a job that is dispatched but has no queue configured. It lists the files each piece touches, in order. Do not use it to review existing code (padosoft-laravel-conventions) or for the security review.","padosoft\u002Fskills","padosoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10467753?v=4","01M7CZ3FRSM851DK225E3KK2VF","01M7CZ3FSY016E21VS6EABM21V",1,"MIT","https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fpadosoft-laravel-scaffolding\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: padosoft-laravel-scaffolding\ndescription: >-\n  Use this skill when adding something new to a Laravel application — an endpoint, a controller, a service, a\n  CRUD backend, a queued job, a test — \"make me the API for X\", \"add the CRUD for Y\", \"I need a service that\n  does Z\" — and whenever a piece added earlier is half-wired: a route that answers 404, a policy that is\n  never called, a request class that validates nothing because the controller reads `all()`, a job that is\n  dispatched but has no queue configured. It lists the files each piece touches, in order. Do not use it to\n  review existing code (padosoft-laravel-conventions) or for the security review.\nlicense: MIT\ncompatibility: >-\n  Any Laravel version: the list is about which pieces have to exist and be wired, which has not changed.\n  Paths are examples — read the repository layout first.\nmetadata:\n  version: 0.1.0\n  author: Padosoft\n  summary: The code is the easy part — what gets forgotten is the wiring.\n  profiles: laravel\n  scope: project\n  repository: https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\n  keywords: laravel, scaffolding, controller, service, crud, api, formrequest, policy, test\n---\n\n# Laravel scaffolding\n\nThe code is the easy part. What gets forgotten is the **wiring**: the route, the policy, the binding, the\ntest — each of which fails in its own quiet way.\n\nThe conventions the generated code must follow are in **`padosoft-laravel-conventions`**; the checks it must\nsurvive are in **`padosoft-laravel-security-review`**.\n\n---\n\n## 0. Ask first, in one batch\n\n- **what**: endpoint, controller, service, CRUD, job, test;\n- **which domain\u002Fmodule** it belongs to — and whether that module exists;\n- **who may call it**: guest, authenticated, a role, an owner. This answer decides the policy, and it is the\n  one most often left implicit;\n- **the shape of input and output**, and whether the response is shared with a frontend that already expects\n  a shape;\n- **synchronous or queued**, and if queued, on which connection and queue.\n\nIf the answer to \"who may call it\" is \"the authenticated user\", ask the follow-up: *any* authenticated user,\nor only the owner of the record? That distinction is the whole of `SEC-IDOR-001`.\n\n## 1. Endpoint \u002F controller — the file list\n\n| # | File | Skipping it means |\n|---|---|---|\n| 1 | The route, in the right route file and group | 404, or worse: the route exists without the group's middleware |\n| 2 | `FormRequest` | Validation lives in the controller, or nowhere |\n| 3 | DTO | An untyped array crosses every boundary |\n| 4 | Controller | — |\n| 5 | Service \u002F action | The logic is in the controller and is not testable without HTTP |\n| 6 | Policy + `authorize()` **called** | A policy that exists and is never invoked is not a control |\n| 7 | `JsonResource` \u002F response shape | The model is serialised whole, including what should not leave |\n| 8 | Feature test, happy **and** failure path | — |\n| 9 | Route list check | The route answers on the verb and path you think |\n\nSteps 1, 6 and 9 are the ones that fail silently: everything compiles, the endpoint answers, and the\nauthorisation was never asked.\n\n```bash\nphp artisan route:list --path=\u003Cfragment>     # verb, path, middleware, action\n```\n\nRead the **middleware column**: that is where you see whether auth actually applies.\n\n## 2. Service\n\n```php\nfinal class DoTheThing\n{\n    public function __construct(private readonly ThingRepository $repo) {}\n\n    public function __invoke(DoTheThingData $data): Thing\n    {\n        \u002F\u002F one responsibility; no HTTP, no request(), no auth() in here\n    }\n}\n```\n\n- **No `request()`, no `auth()`, no `session()` inside a service.** Whatever it needs arrives as an argument,\n  or it cannot be called from a command, a job or a test.\n- Register it in the container only if it needs binding; otherwise let autowiring do it.\n- A service returning `bool` to mean \"it worked\" is usually hiding a failure the caller needs — see\n  **`padosoft-failure-visibility`**.\n\n## 3. CRUD backend\n\nBeyond the endpoint list: for each of index \u002F show \u002F store \u002F update \u002F destroy, decide **who may** — they are\nrarely the same answer — and whether destroy is a soft delete. If it is, every listing and count elsewhere\nneeds to know (`padosoft-laravel-conventions` §4).\n\nFor the listing: pagination from the start, not \"for now it returns everything\". The dataset that makes it a\nproblem arrives in production, not in the fixture.\n\n## 4. Queued job\n\n```bash\nphp artisan queue:work --queue=\u003Cname>    # does the queue you dispatched to actually have a worker?\n```\n\n- The job orchestrates, the service implements.\n- Set `$tries`, `$backoff` and `$timeout` deliberately; the defaults are a decision you did not make.\n- `failed()` handles the permanent failure — and that is a place people leave empty, so the failure becomes\n  a row nobody reads.\n- Dispatch **after commit** if the job reads a row the current transaction is writing.\n- Retryable vs permanent: fail explicitly on a permanent error rather than throwing something the queue\n  retries sixteen times.\n\n## 5. Test\n\nA test written together with the code, not after: see **`padosoft-test-integrity`** for what makes a test\nreal. The minimum here:\n\n- the happy path;\n- **the authorisation path** — a user who must not, gets a 403;\n- **one failure path**, actually provoked;\n- database state restored between tests, and your own teardown before the framework's.\n\n---\n\n## Before declaring it done\n\n```bash\nphp artisan route:list --path=\u003Cfragment>   # route + middleware\ngrep -rn \"authorize(\" app\u002FHttp\u002FControllers\u002F\u003CController>.php\nphp artisan test --filter=\u003CTestClass>\nvendor\u002Fbin\u002Fpint --test && vendor\u002Fbin\u002Fphpstan analyse    # or the project's equivalents\n```\n\n## Gotchas\n\n- **A route outside the right group** loses the group's middleware — auth included — and still answers 200.\n- **A policy is not a control until `authorize()` is called.** Registering it is not enough.\n- **A `FormRequest` that the controller ignores** (reading `all()` instead of `validated()`) validates and\n  then hands over the unvalidated payload anyway.\n- **A job dispatched to a queue with no worker** is a silent hole: everything returns 202, nothing runs.\n- **Do not invent the layout.** Read where the neighbouring modules put their services, requests and routes\n  before creating files: this list is the shape, the repository has the paths.\n\n## Checklist\n\n- [ ] Route in the right file **and group**; `route:list` shows the expected middleware\n- [ ] FormRequest, and the controller reads `validated()` \u002F the DTO — never `all()`\n- [ ] Logic in the service; no `request()`\u002F`auth()` inside it\n- [ ] Policy written **and** `authorize()` called on the path\n- [ ] Response through a resource, not the raw model\n- [ ] Job: tries, backoff, timeout, `failed()`, after-commit dispatch if needed, worker on that queue\n- [ ] Tests: happy, authorisation, one real failure path\n- [ ] Pint and static analysis clean\n\n## Final report\n\n```\nCreated: \u003Cwhat>  ·  module: \u003Cwhere>\nFiles: route · request · dto · controller · service · policy · resource · test\nAuthorisation: \u003Cwho may, and where it is enforced>\nQueue: \u003Cname> · tries\u002Fbackoff\u002Ftimeout · worker verified: yes|no\nroute:list middleware: \u003Cwhat it shows>\nPint \u002F static analysis \u002F tests: PASS | FAIL \u003Cdetail>\n```\n","# Laravel scaffolding\n\nThe code is the easy part. What gets forgotten is the **wiring**: the route, the policy, the binding, the\ntest — each of which fails in its own quiet way.\n\nThe conventions the generated code must follow are in **`padosoft-laravel-conventions`**; the checks it must\nsurvive are in **`padosoft-laravel-security-review`**.\n\n---\n\n## 0. Ask first, in one batch\n\n- **what**: endpoint, controller, service, CRUD, job, test;\n- **which domain\u002Fmodule** it belongs to — and whether that module exists;\n- **who may call it**: guest, authenticated, a role, an owner. This answer decides the policy, and it is the\n  one most often left implicit;\n- **the shape of input and output**, and whether the response is shared with a frontend that already expects\n  a shape;\n- **synchronous or queued**, and if queued, on which connection and queue.\n\nIf the answer to \"who may call it\" is \"the authenticated user\", ask the follow-up: *any* authenticated user,\nor only the owner of the record? That distinction is the whole of `SEC-IDOR-001`.\n\n## 1. Endpoint \u002F controller — the file list\n\n| # | File | Skipping it means |\n|---|---|---|\n| 1 | The route, in the right route file and group | 404, or worse: the route exists without the group's middleware |\n| 2 | `FormRequest` | Validation lives in the controller, or nowhere |\n| 3 | DTO | An untyped array crosses every boundary |\n| 4 | Controller | — |\n| 5 | Service \u002F action | The logic is in the controller and is not testable without HTTP |\n| 6 | Policy + `authorize()` **called** | A policy that exists and is never invoked is not a control |\n| 7 | `JsonResource` \u002F response shape | The model is serialised whole, including what should not leave |\n| 8 | Feature test, happy **and** failure path | — |\n| 9 | Route list check | The route answers on the verb and path you think |\n\nSteps 1, 6 and 9 are the ones that fail silently: everything compiles, the endpoint answers, and the\nauthorisation was never asked.\n\n```bash\nphp artisan route:list --path=\u003Cfragment>     # verb, path, middleware, action\n```\n\nRead the **middleware column**: that is where you see whether auth actually applies.\n\n## 2. Service\n\n```php\nfinal class DoTheThing\n{\n    public function __construct(private readonly ThingRepository $repo) {}\n\n    public function __invoke(DoTheThingData $data): Thing\n    {\n        \u002F\u002F one responsibility; no HTTP, no request(), no auth() in here\n    }\n}\n```\n\n- **No `request()`, no `auth()`, no `session()` inside a service.** Whatever it needs arrives as an argument,\n  or it cannot be called from a command, a job or a test.\n- Register it in the container only if it needs binding; otherwise let autowiring do it.\n- A service returning `bool` to mean \"it worked\" is usually hiding a failure the caller needs — see\n  **`padosoft-failure-visibility`**.\n\n## 3. CRUD backend\n\nBeyond the endpoint list: for each of index \u002F show \u002F store \u002F update \u002F destroy, decide **who may** — they are\nrarely the same answer — and whether destroy is a soft delete. If it is, every listing and count elsewhere\nneeds to know (`padosoft-laravel-conventions` §4).\n\nFor the listing: pagination from the start, not \"for now it returns everything\". The dataset that makes it a\nproblem arrives in production, not in the fixture.\n\n## 4. Queued job\n\n```bash\nphp artisan queue:work --queue=\u003Cname>    # does the queue you dispatched to actually have a worker?\n```\n\n- The job orchestrates, the service implements.\n- Set `$tries`, `$backoff` and `$timeout` deliberately; the defaults are a decision you did not make.\n- `failed()` handles the permanent failure — and that is a place people leave empty, so the failure becomes\n  a row nobody reads.\n- Dispatch **after commit** if the job reads a row the current transaction is writing.\n- Retryable vs permanent: fail explicitly on a permanent error rather than throwing something the queue\n  retries sixteen times.\n\n## 5. Test\n\nA test written together with the code, not after: see **`padosoft-test-integrity`** for what makes a test\nreal. The minimum here:\n\n- the happy path;\n- **the authorisation path** — a user who must not, gets a 403;\n- **one failure path**, actually provoked;\n- database state restored between tests, and your own teardown before the framework's.\n\n---\n\n## Before declaring it done\n\n```bash\nphp artisan route:list --path=\u003Cfragment>   # route + middleware\ngrep -rn \"authorize(\" app\u002FHttp\u002FControllers\u002F\u003CController>.php\nphp artisan test --filter=\u003CTestClass>\nvendor\u002Fbin\u002Fpint --test && vendor\u002Fbin\u002Fphpstan analyse    # or the project's equivalents\n```\n\n## Gotchas\n\n- **A route outside the right group** loses the group's middleware — auth included — and still answers 200.\n- **A policy is not a control until `authorize()` is called.** Registering it is not enough.\n- **A `FormRequest` that the controller ignores** (reading `all()` instead of `validated()`) validates and\n  then hands over the unvalidated payload anyway.\n- **A job dispatched to a queue with no worker** is a silent hole: everything returns 202, nothing runs.\n- **Do not invent the layout.** Read where the neighbouring modules put their services, requests and routes\n  before creating files: this list is the shape, the repository has the paths.\n\n## Checklist\n\n- [ ] Route in the right file **and group**; `route:list` shows the expected middleware\n- [ ] FormRequest, and the controller reads `validated()` \u002F the DTO — never `all()`\n- [ ] Logic in the service; no `request()`\u002F`auth()` inside it\n- [ ] Policy written **and** `authorize()` called on the path\n- [ ] Response through a resource, not the raw model\n- [ ] Job: tries, backoff, timeout, `failed()`, after-commit dispatch if needed, worker on that queue\n- [ ] Tests: happy, authorisation, one real failure path\n- [ ] Pint and static analysis clean\n\n## Final report\n\n```\nCreated: \u003Cwhat>  ·  module: \u003Cwhere>\nFiles: route · request · dto · controller · service · policy · resource · test\nAuthorisation: \u003Cwho may, and where it is enforced>\nQueue: \u003Cname> · tries\u002Fbackoff\u002Ftimeout · worker verified: yes|no\nroute:list middleware: \u003Cwhat it shows>\nPint \u002F static analysis \u002F tests: PASS | FAIL \u003Cdetail>\n```\n",{"name":5,"license":14,"metadata":23,"description":7,"compatibility":31},{"scope":24,"author":25,"summary":26,"version":27,"keywords":28,"profiles":29,"repository":30},"project","Padosoft","The code is the easy part — what gets forgotten is the wiring.","0.1.0","laravel, scaffolding, controller, service, crud, api, formrequest, policy, test","laravel","https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills","Any Laravel version: the list is about which pieces have to exist and be wired, which has not changed. Paths are examples — read the repository layout first.","main","8ff266762b08cab7f5be5551fa221309dc9db48b","skills\u002Fpadosoft-laravel-scaffolding",0,"https:\u002F\u002Fgithub.com\u002Fpadosoft","https:\u002F\u002Fwww.padosoft.com","Software House","2026-10-19 01:02:17",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add padosoft\u002Fskills --skill padosoft-laravel-scaffolding",{"tool":46,"command":47},"bunx","bunx skills add padosoft\u002Fskills --skill padosoft-laravel-scaffolding",{"tool":49,"command":50},"pnpm","pnpm dlx skills add padosoft\u002Fskills --skill padosoft-laravel-scaffolding","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fpadosoft-laravel-scaffolding\u002FSKILL.md",true,[54],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"evals\u002Fqueries.json","REFERENCE","参考文档",1655,"https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fpadosoft-laravel-scaffolding\u002Fevals\u002Fqueries.json",[61,68,74,81,88,94],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7CZNKCTMWK7F2J6KKPAR8YM","report-opus","Writes the weekly status report from the team's tickets. Use when the user asks for the weekly report or a status summary. Do not use it for incident reports.","https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-audit\u002Fproject\u002Fdot-claude\u002Fskills\u002Freport-opus\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7CZNFEN8XK6S8NC6KGREYGS","report-haiku","https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-audit\u002Fproject\u002Fdot-claude\u002Fskills\u002Freport-haiku\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7CZND182TKGGM7R4134ND00","kitt-stub","Builds the guided-tour reference for an admin page. Use when the user asks for the tour reference. Trigger \"tour\", \"reference\", \"guided tour\".","https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-audit\u002Fproject\u002Fdot-claude\u002Fskills\u002Fkitt-stub\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7CZN9F2A6BFTFW5RSRNAGB1","good-skill","Generates the release notes of a project from its merged pull requests. Use this skill when the user asks for release notes, a changelog entry or a summary of what shipped since the last tag. Do not use it to write commit messages, that is the job of a commit skill.","https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-audit\u002Fproject\u002Fdot-claude\u002Fskills\u002Fgood-skill\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M7CZN6BJASPD4DH8DFR63GQF","broken-frontmatter","https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-audit\u002Fproject\u002Fdot-claude\u002Fskills\u002Fbroken-frontmatter\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M7CZN498TRNC30GSYMMAZNXM","Bad_Skill","I can help you with reports.","https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-audit\u002Fproject\u002Fdot-claude\u002Fskills\u002Fbad-skill\u002FSKILL.md",[],[]]