dare-laravel-api

dare-laravel-api is a skill for Claude Code, Codex from dewtech-technologies/dare-method. It costs 62 tokens per session (2,422 once invoked), scanned A, original, MIT.

A set of rules for building REST APIs with Laravel 11 and PHP 8.3, including request validation, business services, database models, formatted JSON responses, error handling, tests, and code checks.

In plain words
What is it for?
Use it to start or extend a Laravel API, review whether it follows the DARE structure, or update an older Laravel API to Laravel 11 patterns.
Why use it?
It gives an API project a consistent structure and catches common problems through strict typing, automated tests, static analysis, and formatting.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./vendor/bin/phpstan analyse --level=8.

Good fit Use it to start or extend a Laravel API, review whether it follows the DARE structure, or update an older Laravel API to Laravel 11 patterns.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/dewtech-technologies/dare-method
agentmods
npx agentmods add skills/dewtech-technologies/dare-method/dare-laravel-api

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dare-laravel-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/dewtech-technologies/dare-method/dare-laravel-api/github.svg)](https://agentmods.dev/skills/dewtech-technologies/dare-method/dare-laravel-api)
Your own site
<a href="https://agentmods.dev/skills/dewtech-technologies/dare-method/dare-laravel-api"><img src="https://agentmods.dev/badge/skills/dewtech-technologies/dare-method/dare-laravel-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dare-laravel-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/dewtech-technologies/dare-method/dare-laravel-api"><img src="https://agentmods.dev/badge/skills/dewtech-technologies/dare-method/dare-laravel-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,422 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.02422
Opus 5.5 $0.00025 $0.00969
Sonnet 5.5 $0.00012 $0.00484
Haiku 4.5 $0.00006 $0.00242

Measured 1mo ago against content hash 20c6b54d1644, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dare-laravel-api scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

implementations/antigravity/.agents/skills/dare-laravel-api/SKILL.md · 338 lines

How it starts

The opening of the file, as written. The whole thing — 338 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DARE Laravel API Skill

Você é um desenvolvedor sênior PHP 8.3 / Laravel 11.x especializado em APIs REST. Seu objetivo é gerar código limpo, legível, performático e fortemente tipado, seguindo Layered Design e padrões DARE.

Quando usar

  • Projeto Laravel novo via DARE
  • Adicionar feature em API Laravel existente
  • Auditar projeto Laravel para conformidade DARE
  • Migrar API antiga (Laravel 8/9/10) para padrões 11.x

Stack canônica

  • PHP 8.3 — Strict Types em todos os arquivos (declare(strict_types=1);)
  • Laravel 11.x — modo API (sem views server-side por default)
  • Banco — PostgreSQL (preferido) ou MySQL 8
  • Testes — Pest (preferido) ou PHPUnit 11
  • Análise estática — PHPStan + Larastan (nível 8)
  • Formatação — Laravel Pint (pint)
  • Auth — Laravel Sanctum (tokens) ou Passport (OAuth)

Layered Design em Laravel

Mapeamento DARE → Laravel:

Camada DARE Pasta Laravel
Handler app/Http/Controllers/
Service app/Services/
Repository app/Repositories/
Model app/Models/
Presenter app/Http/Resources/

Controllers (Handlers)

  • Apenas: receber request → chamar Service → retornar Resource
  • NUNCA: lógica de negócio, queries Eloquent, validação inline
<?php declare(strict_types=1);

namespace App\Http\Controllers;

use App\Http\Requests\StoreUserRequest;
use App\Http\Resources\UserResource;
use App\Services\RegisterUser;

final class UserApiController extends Controller
{
    public function __construct(private RegisterUser $service) {}

    public function store(StoreUserRequest $request): UserResource
    {
        $user = $this->service->execute($request->validated());
        return new UserResource($user);
    }
}

FormRequests (Validação)

NUNCA validar inline no Controller. Sempre FormRequest:

<?php declare(strict_types=1);

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

final class StoreUserRequest extends FormRequest
{
    public function authorize(): bool
    {
        return $this->user()->can('create', User::class);
    }

    public function rules(): array
    {
        return [
            'email' => ['required', 'email', 'unique:users,email'],
            'password' => ['required', 'string', 'min:12'],
            'name' => ['required', 'string', 'max:255'],
        ];
    }
}

Read the full file on GitHub · 338 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 338 lines · 62 tokens per session scan A 20c6b54d1644

Subscribe to this mod's changes

dare-laravel-api is a skill published in the GitHub repository dewtech-technologies/dare-method (5 stars, last pushed 3mo ago), licensed MIT. It adds 62 tokens to every session and 2,422 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.