semitexa

Laravel AI Verify — AI skill for Claude Code

AI community

Stop Claude Code, Cursor & Codex from faking "done" in Laravel.

How to install Laravel AI Verify

This entry records only its repository, not the path inside it, so there is no exact command to give. Open semitexa/laravel-ai-verify and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Laravel AI Verify does

Stop Claude Code, Cursor & Codex from faking "done" in Laravel. ai:verify runs only the tests, Larastan, Pint & Laravel checks your diff needs, fails on deleted/skipped tests and stamps verified commits for CI. ai:graph: a code graph of routes, controllers, models & tests with impact analysis.

Alternatives in AI

  • UnityMCP — Drive the Unity Editor from an AI agent or the terminal 346 ★
  • Laravel Claude Code Setup — One-command setup for AI-powered Laravel development with Claude Code and MCP servers 279 ★
  • Laravel AI Translator — High quality automatic translate your language files into many languages using AI like Claude, GPT and etc 250 ★

README

Laravel AI Verify: stop AI agents from faking "done"

[![Tests](https://github.com/semitexa/laravel-ai-verify/actions/workflows/tests.yml/badge.svg)](https://github.com/semitexa/laravel-ai-verify/actions/workflows/tests.yml) [![Latest Version](https://img.shields.io/packagist/v/semitexa/laravel-ai-verify.svg)](https://packagist.org/packages/semitexa/laravel-ai-verify) [![PHP](https://img.shields.io/packagist/php-v/semitexa/laravel-ai-verify.svg)](https://packagist.org/packages/semitexa/laravel-ai-verify) [![License](https://img.shields.io/packagist/l/semitexa/laravel-ai-verify.svg)](LICENSE)

**AI code verification for Laravel.** Claude Code, Cursor, Codex, Copilot or Gemini says the change is done. `php artisan ai:verify` checks whether it is.

It runs only the tests, Larastan, code style and Laravel boot checks the diff actually needs, with your project's own tools: Pint, PHP-CS-Fixer, PHP_CodeSniffer or ECS, plus any command you add. It fails the change if the agent deleted, skipped or weakened a test to get green. It returns one verdict the agent must act on: `pass`, `fail` or `incomplete`. One more command writes the instructions into `AGENTS.md` and `CLAUDE.md`. For Claude Code it also adds a Stop hook, so the agent cannot finish while verification fails. Verified commits get a trailer that CI can check.

Before the agent edits anything, **`php artisan ai:graph`** gives it a **code graph of the Laravel app**. It covers routes → controllers → form requests → models → tables → policies → views → tests, and events → listeners. It also does impact analysis: what a change affects and which tests cover it.

For PHP 8.3+ and Laravel 12 or 13:

composer require --dev semitexa/laravel-ai-verify
php artisan ai:verify:install --hook --git-hook

`--hook` keeps Claude Code from finishing while `ai:verify` fails. `--git-hook` stamps verified commits and warns when a commit message doesn't match its diff ([message vs diff](#message-vs-diff)).

![Tests pass and