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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

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

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00062 $0.02422
Opus 5 $0.00031 $0.01211
Sonnet 5 $0.00012 $0.00484
Haiku 4.5 $0.00006 $0.00242

Measured 4d ago against content hash 20c6b54d1644, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 1mo ago), licensed MIT. It adds 62 tokens to every session and 2,422 once invoked, about $0.0003 per session on Opus 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.

Related

Other skills, from other repositories

inbound-triage

Maintainer-only. Use when triaging inbound GitHub issues and pull requests on skyf0xx/hedgehog — "triage the issues", "check the PRs", "review inbound", "what's in the queue". Reads each item read-only, judges it for security and for whether it is real, then fixes and closes or comments and closes. Not part of the…

skyf0xx/hedgehog · 102 tokens

setup-background-job

Set up scheduled background jobs using Quartz.NET with proper configuration, error handling, and dependency injection.

andresharpe/dotbot · 22 tokens

conventional-commits

Use when uncommitted changes need to be split into atomic, conventional commits ordered for review. Triggers on "commit this", "make commits", "clean up commits", "commit the changes". In Hedgehog, each Loop step is already meant to be its own commit — this skill matters most when a Correction Protocol fast-forward…

skyf0xx/hedgehog · 88 tokens

pr-writing

Use whenever writing a PR title/description, a commit message body, a code review comment, or an issue — in Hedgehog's own repo or any consuming project. Triggers on "open a PR", "write the PR description", "comment on this PR", "file an issue". Covers writing style (terse, info-dense, Simplified Technical English)…

skyf0xx/hedgehog · 107 tokens

hedgehog-daily

Use when a change request lands on a project that already has .hedgehog/ and no build in flight — a finished build being adjusted, or an adopted repo's next piece of work. Triggers on any "change this", "fix this", "add this" on such a project. Sizes the request against the installed core's own layers and routes it to…

skyf0xx/hedgehog · 0 tokens

hedgehog

Use when the user has agreed to install the Hedgehog build discipline in a project that does not have it yet, or when they mention Hedgehog by name — carries the npx @skyf0xx/hedgehog init install procedure and its core and host flags. The plugin's SessionStart hook decides when to raise the offer.

skyf0xx/hedgehog · 74 tokens