laravel-audit-database

laravel-audit-database is a skill for Claude Code, Codex from MrPunyapal/laravel-auditor. It costs 33 tokens per session (440 once invoked), scanned A, original, MIT.

A review guide for checking a Laravel application's database design and queries. Laravel is a PHP framework for building web applications.

In plain words
What is it for?
Use it to review tables, indexes, foreign keys, relationships, migrations, and query efficiency in a Laravel application.
Why use it?
It helps find database problems that can cause slow queries, inconsistent data, failed migrations, or broken relationships.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review tables, indexes, foreign keys, relationships, migrations, and query efficiency in a Laravel application.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mrpunyapal/laravel-auditor/laravel-audit-database
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.

Any agent
npx skills add MrPunyapal/laravel-auditor --skill laravel-audit-database
Clone the repo
git clone --depth 1 https://github.com/MrPunyapal/laravel-auditor

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 laravel-audit-database

README.md
[![agentmods](https://agentmods.dev/badge/skills/mrpunyapal/laravel-auditor/laravel-audit-database/github.svg)](https://agentmods.dev/skills/mrpunyapal/laravel-auditor/laravel-audit-database)
Your own site
<a href="https://agentmods.dev/skills/mrpunyapal/laravel-auditor/laravel-audit-database"><img src="https://agentmods.dev/badge/skills/mrpunyapal/laravel-auditor/laravel-audit-database/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 laravel-audit-database

Your own site · 80×15
<a href="https://agentmods.dev/skills/mrpunyapal/laravel-auditor/laravel-audit-database"><img src="https://agentmods.dev/badge/skills/mrpunyapal/laravel-auditor/laravel-audit-database.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 440 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00033 $0.00440
Opus 5 $0.00016 $0.00220
Sonnet 5 $0.00007 $0.00088
Haiku 4.5 $0.00003 $0.00044

Measured 5d ago against content hash f30df053a9b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

laravel-audit-database 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 5d 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.

resources/auditor/skills/laravel-audit-database/SKILL.md · 52 lines

What it actually says

Laravel Database Audit

Audit the database layer of the Laravel application. Where possible, use structured schema information (via the database_schema tool) rather than relying only on migrations.

List applicable rules first:

php artisan auditor:rules --domain=database --applicable

What to look for

  • Missing or suspicious indexes when evidence supports them: frequently filtered/joined columns without indexes.
  • Schema inconsistencies: columns that contradict domain invariants or usage.
  • Inefficient relationships: relationship definitions that force expensive queries.
  • Suspicious migrations: destructive operations, deadlocks, or migrations that drop data without a path back.
  • Duplicate data modeling: the same fact stored in multiple tables/columns.
  • Bad foreign key choices: missing FKs, wrong ON DELETE behavior, or FKs to the wrong tables. Use database_schema foreign_keys (not only migrations) as the source of truth.
  • Nullable/non-nullable mismatches where they create risk.
  • Query inefficiencies: full-table scans on large tables, missing index coverage for common filters.
  • Relationship definitions inconsistent with schema or usage: foreignId that does not match the relationship, missing pivot table indexes, etc.

Evidence requirements

Every database finding needs at least:

  • The specific table/column (or migration file + line).
  • The query pattern or relationship that is affected.
  • Schema facts from the database_schema tool or migrations.

False positives

  • Small tables do not need indexes on every column.
  • An index that already exists (or is covered by a composite index) is not missing.
  • Do not flag nullable columns when the domain allows null.

Severity guidance

  • high: schema/relationship mismatch causing real bugs or data integrity risk.
  • medium: clear inefficiency or inconsistency with real impact.
  • low: minor schema hygiene.
  • info: observations.
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. 5d ago Changed f30df053a9b9
  2. 12d ago First seen · 52 lines · 33 tokens per session scan A 903269a3a2ee

Subscribe to this mod's changes

laravel-audit-database is a skill published in the GitHub repository MrPunyapal/laravel-auditor (47 stars, last pushed 6d ago), licensed MIT. It adds 33 tokens to every session and 440 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

data-model-radar

Audits SwiftData/Core Data model layer for field completeness, serialization gaps, relationship integrity, semantic ambiguity, dead fields, and migration safety. Finds model-layer bugs that manifest as workflow bugs. Triggers: "audit models", "model radar", "/data-model-radar".

Terryc21/radar-suite · 60 tokens

designing-data-intensive-applications

Apply Martin Kleppmann-inspired data-system rules when designing reliability, scalability, consistency, replication, transactions, streams, or schema evolution.

ciembor/agent-rules-books · 34 tokens

implementing-domain-driven-design

Apply Vaughn Vernon-inspired implementation DDD rules when building aggregates, domain events, repositories, application services, or context integrations.

ciembor/agent-rules-books · 31 tokens

patterns-of-enterprise-application-architecture

Apply Martin Fowler-inspired enterprise architecture rules when choosing layers, service layers, transaction scripts, domain models, repositories, mappers, or DTOs.

ciembor/agent-rules-books · 38 tokens

ring:using-lib-systemplane

Using lib-systemplane, the hot-reload runtime-config plane (Postgres LISTEN/NOTIFY or MongoDB change streams), in two modes. Sweep Mode detects DIY config reload (SIGHUP, fsnotify, viper, pgx LISTEN), manual tenant-scoping, hand-built admin CRUD, and v4 residue. Reference Mode catalogs client lifecycle and…

LerianStudio/ring · 106 tokens

ring:using-outbox

Using the transactional-outbox pattern across lib-streaming (writer) and lib-commons/v5/commons/outbox (repository + relay), in two modes. Sweep Mode detects DIY outbox tables, hand-rolled relay loops, send-and-pray emits, missing WithOutboxTx wrapping, and broker calls inside DB transactions. Reference Mode catalogs…

LerianStudio/ring · 98 tokens