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.
npx skills add event4u-app/agent-config --skill eloquentgit clone --depth 1 https://github.com/event4u-app/agent-configWrote 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.
[](https://agentmods.dev/skills/event4u-app/agent-config/eloquent)<a href="https://agentmods.dev/skills/event4u-app/agent-config/eloquent"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/eloquent/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.
<a href="https://agentmods.dev/skills/event4u-app/agent-config/eloquent"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/eloquent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00043 | $0.00813 |
| Opus 5 | $0.00022 | $0.00407 |
| Sonnet 5 | $0.00009 | $0.00163 |
| Haiku 4.5 | $0.00004 | $0.00081 |
Grade A, and why
eloquent 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.
eloquent
When to use
Use when creating/modifying Eloquent models, relationships, scopes, or writing database queries.
Do NOT use when:
- Schema design or query optimization (use
databaseskill) - Creating migrations only (use
laravel-migrationskill)
Procedure: Create or modify a model
Step 0: Inspect
- Check existing models — match property declarations, cast patterns, relationship style, scope naming.
- Check for repositories — some projects use repository interfaces.
- Understand the schema — check migrations for column names, types, constraints.
- Check for multi-tenancy — which
$connectionto use?
Step 1: Read attribute access style
Read eloquent.access_style from .agent-settings.yml. Default: getters_setters.
| Value | Inside model | Outside model |
|---|---|---|
getters_setters |
getAttribute() / setAttribute() |
Typed getters/setters |
get_attribute |
getAttribute() / setAttribute() |
Same |
magic_properties |
$this->column |
$model->column |
→ See guideline php/eloquent.md and php-coding rule for full conventions.
Step 2: Build the model
- Set
$connection,$table,$fillable/$guarded,$casts,$attributes(defaults). - Add typed getters + fluent setters for each attribute (if
getters_settersstyle). - Add relationship getter above each relationship method.
- Add scopes for reusable query constraints.
- Register Observer via
#[ObservedBy]— never usebooted().
Step 3: Write queries
- Always eager load relationships accessed in loops:
->with(['customer']). - Always paginate list queries:
->paginate(15). - Use
exists()overcount() > 0. - Use
chunk()/lazy()for large datasets. - Constrain eager loads when only a subset is needed.
Conventions
→ See guideline php/eloquent.md for getter/setter examples, relationship getters, observers, casts.
→ See guideline php/database.md for indexing, transactions, migrations.
Validate
- Run PHPStan on model — must pass.
- Verify no N+1: check that all relationship access in loops uses eager loading.
- Confirm typed getters exist for every relationship.
- Run affected tests — must pass.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 7d ago First seen · 105 lines · 43 tokens per session scan A dc7c8a6dbe40
eloquent is a skill published in the GitHub repository event4u-app/agent-config (10 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 813 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-09-03.
Other skills, from other repositories
event-store-design
Design and implement event stores for event-sourced systems. Use when building event sourcing infrastructure, choosing event store technologies, or implementing event persistence patterns.
cqrs-implementation
Implement Command Query Responsibility Segregation for scalable architectures. Use when separating read and write models, optimizing query performance, or building event-sourced systems.
supabase-cli
This skill should be used when user asks to "use supabase CLI", "supabase init", "supabase start", "run migrations", "deploy edge functions", "manage Supabase project", or works with the supabase command-line tool for local development and project management.
supabase-js
This skill should be used when user asks to "use supabase-js", "query Supabase database", "supabase auth", "supabase storage", "supabase realtime", "supabase edge functions", or works with the @supabase/supabase-js JavaScript/TypeScript SDK.
durable-objects
Build, debug, or review Cloudflare Durable Objects code for persistent state and coordination.
architect/data-api-design
A guide to designing data models and application programming interfaces (APIs), which are the rules software uses to exchange data.