truss-schema

truss-schema is a skill for Claude Code, Codex from albertoarena/laravel-truss. It costs 63 tokens per session (920 once invoked), scanned A, original, MIT.

A database-structure guide for Laravel applications using Truss. Laravel is a PHP web framework, and Truss reads tables, columns, indexes, and relationships without reading stored records.

In plain words
What is it for?
Use it before changing tables, columns, indexes, or foreign keys, and afterward to confirm the intended structure was created.
Why use it?
Migration files describe changes over time but may not match the database as it exists now. Reading the live structure helps prevent migrations that conflict with existing tables or relationships.

Skill for Claude CodeCodex

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

Good fit Use it before changing tables, columns, indexes, or foreign keys, and afterward to confirm the intended structure was created.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/albertoarena/laravel-truss/truss-schema
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 albertoarena/laravel-truss --skill truss-schema
Clone the repo
git clone --depth 1 https://github.com/albertoarena/laravel-truss

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 truss-schema

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/albertoarena/laravel-truss/truss-schema"><img src="https://agentmods.dev/badge/skills/albertoarena/laravel-truss/truss-schema.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 920 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.00063 $0.00920
Opus 5.5 $0.00025 $0.00368
Sonnet 5.5 $0.00013 $0.00184
Haiku 4.5 $0.00006 $0.00092

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

Security

Grade A, and why

truss-schema 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.

resources/boost/skills/truss-schema/SKILL.md · 87 lines

How it starts

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

Grounding a schema change with Truss

Truss reads the live database structure: tables, columns, types, indexes, and foreign keys. It never returns row data. Read the structure before you change it, and confirm the change after you make it.

1. Read the structure you are about to change

Migration files are a history, not a state. They can be edited, squashed, or run out of order, and they do not show you what the database actually holds now. Read the database instead:

php artisan truss:export --format=llm --focus=orders --depth=1

--focus narrows to one table and its foreign-key neighbourhood, and --depth controls how many hops of that neighbourhood come with it. Prefer this to a whole-schema dump: on a large schema the full structure crowds out the task, and the tables you need are almost always the focused table and its immediate relations.

Use the whole schema only when the change genuinely spans it:

php artisan truss:export --format=llm --compact

--compact drops defaults and non-unique indexes. Add --connection= when the application has more than one database and the change is not on the default.

Tables and columns may carry business meaning, declared in config or read from database comments. It arrives with the export, and it is often the difference between a plausible column name and the right one.

The llm format is for your own reading. When the export is for something else, --format=dbml|json|csv|markdown|mermaid writes it in a form that tool understands. Send it to a file with --output=, and --check writes nothing and exits non-zero when that file is out of date, which is how a CI job catches a schema that has drifted from its committed export.

When the reader is a person rather than a tool, --format=html --output=x.html writes the whole diagram as one file that opens with no server and no install. It is around 3.6 MB, --output is required, and it is a poor thing to read yourself: use llm for that.

2. Check the ground before you build on it

Read the full file on GitHub · 87 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 Changed · +5 lines b1dae6b4ea8a
  2. 1mo ago First seen · 82 lines · 63 tokens per session scan A 3d0d31485473

Subscribe to this mod's changes

truss-schema is a skill published in the GitHub repository albertoarena/laravel-truss (292 stars, last pushed 7d ago), licensed MIT. It adds 63 tokens to every session and 920 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

eloquent-patterns

Eloquent ORM best practices: query builders, scopes, relations, N+1 prevention, batch operations, soft deletes, model events, raw queries when needed. Apply when: writing or reviewing Eloquent queries and model interactions. Activated automatically by laravel-plugin/stack.md as a convention skill for the development…

AratKruglik/claude-sdlc · 68 tokens

laravel-migrations

Use when designing a database schema or managing Laravel 13 migrations — Schema Builder, columns, indexes, foreign keys, or seeders.

fusengine/agents · 32 tokens

laravel-database-optimization

Laravel database optimization patterns. Use when writing Eloquent queries, creating migrations, configuring caching, debugging slow queries, or optimizing database performance. Triggers on tasks involving N+1 queries, indexing, Redis caching, pagination, or database transactions.

AsyrafHussin/agent-skills · 55 tokens

superpowers-sage:acorn-eloquent

Eloquent, model, migration, relationship, hasMany, belongsTo, belongsToMany, Acorn Eloquent, custom table, wpposts, wpusers, wppostmeta, factory, query scope, scopePublished, global scope, make:model, make:migration, lando acorn migrate, $fillable, $casts, $timestamps, $primaryKey, HasFactory, db:seed, seeder …

hekivo/superpowers-sage · 108 tokens

check-batch-processing

Analyzes PHP code for batch processing issues. Detects single-item vs bulk operations, missing batch inserts, individual API calls in loops, transaction overhead.

dykyi-roman/awesome-claude-code · 35 tokens

Laravel Migration Safety Review

Reviews Laravel migrations for destructive operations, change() dropping modifiers, locking index creation on large tables (PostgreSQL), and asymmetric down().

s977043/river-review · 32 tokens