Api conventions
Skill RadKod/claude-agents-kit/laravel/.claude/skills/api-conventions
Laravel API endpoint olusturma pattern'leri. Controller, FormRequest, Resource, Route, Test. API endpoint yazarken kullan.From its SKILL.md
npx -y skills add RadKod/claude-agents-kit --skill api-conventionsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.1 KB, 241 tokens by cl100k_base, as published. Nobody here has run it
Endpoint Olusturma Sirasi
- Migration + Model (php artisan make:model Post -m)
- Factory (php artisan make:factory PostFactory)
- FormRequest (php artisan make:request StorePostRequest)
- Resource (php artisan make:resource PostResource)
- Controller (php artisan make:controller Api/PostController --api)
- Policy (php artisan make:policy PostPolicy --model=Post)
- Route (routes/api.php)
- Feature Test
Controller Template
class PostController extends Controller
{
public function store(StorePostRequest $request): PostResource
{
$post = (new CreatePostAction)->execute($request->validated());
return new PostResource($post);
}
}
FormRequest Template
class StorePostRequest extends FormRequest
{
public function authorize(): bool { return $this->user()->can('create', Post::class); }
public function rules(): array { return ['title' => ['required', 'string', 'max:255'], 'body' => ['required', 'string']]; }
}
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.