slate: Instructions file for Codex

AGENTS.md

slate AGENTS.md is an instructions file for Codex, OpenCode from electrikhq/slate. It costs 486 tokens per session, scanned A, original, MIT.

A set of project instructions for Electrik Slate, a library of Laravel Blade interface components. Laravel Blade is the templating system used to build page layouts in Laravel applications.

In plain words
What is it for?
Use it when creating or changing Slate-based forms, buttons, overlays, notifications, themes, and other Blade interface elements.
Why use it?
It gives an AI coding agent the repository's UI rules, so generated components follow the project's existing structure and styling.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is electrikhq/slate's own configuration. It tells Codex and OpenCode how to work on slate itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything slate configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is @import '../../vendor/electrik/slate/resources/css/slate.css';.

Reuse

Borrowing it

Nothing to install: this file belongs to electrikhq/slate. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/electrikhq/slate/3.x/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/electrikhq/slate

Made for: Codex, OpenCode.

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 slate AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/electrikhq/slate/agents-md/github.svg)](https://agentmods.dev/instructions/electrikhq/slate/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/electrikhq/slate/agents-md"><img src="https://agentmods.dev/badge/instructions/electrikhq/slate/agents-md/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 slate AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/electrikhq/slate/agents-md"><img src="https://agentmods.dev/badge/instructions/electrikhq/slate/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 486 This file is loaded in full into every session.
When invoked 486 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00486 $0.00486
Opus 5.5 $0.00194 $0.00194
Sonnet 5.5 $0.00097 $0.00097
Haiku 4.5 $0.00049 $0.00049

Measured 15d ago against content hash 7492e2bf392e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

slate AGENTS.md 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 15d 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.

AGENTS.md · 48 lines

What it actually says

Electrik Slate — agent notes

Use these rules when generating Laravel Blade UI with Electrik Slate (electrik/slate 3.x).

Stack

  • Anonymous Blade components: <x-slate::name />
  • Tailwind CSS v4 + Slate OKLCH tokens (--slate-*)
  • Alpine.js only when interactivity is required
  • Livewire-friendly forms (do not invent React/shadcn or a CLI add command)

Install reminder

composer require electrik/slate:^3.0

Import after Tailwind:

@import 'tailwindcss';
@import '../../vendor/electrik/slate/resources/css/slate.css';

Authoring rules

  1. Prefer progressive props: label, description, errorMessage on form controls.
  2. Do not nest the same Blade component inside itself.
  3. Do not put @if inside <x-slate::*> opening tags — compute classes in @php first.
  4. Use logical CSS (start / end) over left / right when touching layout.
  5. Mount <x-slate::toaster /> once in the layout; dispatch slate-toast browser events.
  6. For busy buttons: loading / loadingText (static/Alpine) or Livewire wire:loading.
  7. Theme via CSS variables (--slate-primary, etc.), not hardcoded hex in components.
  8. Compose overlays from documented parts (dialog + dialog-trigger + dialog-content, …).

AI sources

Good prompts for agents

  • “Build a settings form with Slate progressive field props and a destructive alert.”
  • “Use the login block pattern from slate.electrik.dev/blocks/login.”
  • “Drop <x-slate-illustration::deploy /> into a landing page and pass jobs/messages. Decorative, not a live screen — see slate.electrik.dev/docs/illustrations.”
  • “Fetch dialog docs via MCP and wire Alpine open state.”
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. 15d ago Changed · +11 tokens per session 7492e2bf392e
  2. 16d ago Changed · +1 lines · +30 tokens per session 77969d06f179
  3. 2mo ago First seen · 47 lines · 445 tokens per session scan A 96b71b8c6a2e

Subscribe to this mod's changes

slate AGENTS.md is an instructions file published in the GitHub repository electrikhq/slate (37 stars, last pushed 15d ago), licensed MIT. It adds 486 tokens to every session, about $0.0019 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

slate AGENTS.md compared with instructions from other repositories

slate AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
slate AGENTS.mdelectrikhq/slateInstructions file3715d agoMITA486Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode