truss-schema

truss-schema is a skill for Claude Code, Codex from albertoarena/laravel-truss. It costs 63 tokens per session (847 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 847 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.00847
Opus 5 $0.00032 $0.00424
Sonnet 5 $0.00013 $0.00169
Haiku 4.5 $0.00006 $0.00085

Measured 11d ago against content hash 3d0d31485473, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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 · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 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.

2. Check the ground before you build on it

php artisan truss:doctor

This reports problems visible from structure alone: a table with no primary key, a foreign key with no index behind it, a type mismatch across a foreign key, money stored as a float. Read it before writing the migration, not after.

Read the full file on GitHub · 82 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. 11d 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 (275 stars, last pushed today), licensed MIT. It adds 63 tokens to every session and 847 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-30.

Related

Other skills, from other repositories

jpa-patterns

JPA/Hibernate patterns for entity design, relationships, query optimization, transactions, auditing, indexing, pagination, and pooling in Spring Boot.

affaan-m/ECC · 33 tokens

jpa-patterns

JPA/Hibernate patterns and common pitfalls (N+1, lazy loading, transactions, queries). Use when user has JPA performance issues, LazyInitializationException, or asks about entity relationships and fetching strategies.

decebals/claude-code-java · 47 tokens

mvc-expert

Expert guidelines to refactor legacy PHP codebases into clean, modern, and scalable MVC-structured projects / Pedoman ahli untuk merefaktor codebase PHP lama menjadi proyek terstruktur MVC yang bersih, modern, dan skalabel.

roedyrustam/vibes-plug · 51 tokens

database-orm-expert

Expert guide for database schema design, ORM tools (Prisma 6, Drizzle ORM, TypeORM), migrations, query optimization, and type-safe SQL patterns in TypeScript / Panduan ahli untuk desain skema database, ORM tools (Prisma 6, Drizzle ORM, TypeORM), migrasi, optimasi query, dan pola SQL type-safe di TypeScript.

roedyrustam/vibes-plug · 82 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

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