livewire-powergrid: Instructions file for Claude Code

CLAUDE.md

livewire-powergrid CLAUDE.md is an instructions file for Claude Code from Power-Components/livewire-powergrid. It costs 1,329 tokens per session, scanned A, original, MIT.

Project instructions for building PowerGrid 7.x interfaces with PHP, Livewire, and Tailwind CSS. Livewire connects server-side PHP components to interactive web pages, while Tailwind provides utility-based styling.

In plain words
What is it for?
Use them when creating PowerGrid tables, Blade views, themes, and server-side actions for projects using PHP 8.3+, Livewire 4, and Tailwind CSS 4.
Why use it?
They keep components consistent with the project’s required versions, file structure, theming rules, and separation between page markup and visual styles.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is Power-Components/livewire-powergrid's own configuration. It tells Claude Code how to work on livewire-powergrid 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 livewire-powergrid configures →

About the project

Livewire PowerGrid is a Laravel package for creating configurable data tables in web applications. Laravel developers use it for tables with searching, filtering, sorting, editing, bulk actions, pagination, and data export. The catalogue add-ons support work with this package.

Power-Components/livewire-powergrid · 1,696 stars · on GitHub · livewire-powergrid.com

Reuse

Borrowing it

Nothing to install: this file belongs to Power-Components/livewire-powergrid. 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/Power-Components/livewire-powergrid/7.x/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Power-Components/livewire-powergrid

Made for: Claude Code.

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 livewire-powergrid CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/power-components/livewire-powergrid/claude-md/github.svg)](https://agentmods.dev/instructions/power-components/livewire-powergrid/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/power-components/livewire-powergrid/claude-md"><img src="https://agentmods.dev/badge/instructions/power-components/livewire-powergrid/claude-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 livewire-powergrid CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/power-components/livewire-powergrid/claude-md"><img src="https://agentmods.dev/badge/instructions/power-components/livewire-powergrid/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,329 This file is loaded in full into every session.
When invoked 1,329 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.01329 $0.01329
Opus 5.5 $0.00532 $0.00532
Sonnet 5.5 $0.00266 $0.00266
Haiku 4.5 $0.00133 $0.00133

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

Security

Grade A, and why

livewire-powergrid CLAUDE.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 9d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

CLAUDE.md · 101 lines

How it starts

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

PowerGrid 7.x AI Guidelines

This document outlines the architectural guidelines for AI agents working with PowerGrid 7.x.

1. Core Principles

The 7.x version prioritizes simplicity, an adaptable native skeleton, and independent test components, discarding legacy dependencies.

  • PHP: 8.3+
  • Livewire: 4.0+
  • Tailwind CSS: 4.x+
  • Removed Legacy Dependencies: Bootstrap, third-party select integrations, Lazy components, and Pulse files.
  • New Required Package: power-components/partials (imported locally).

2. Architecture & Theming

  • Theme classes (src/Themes): Tailwind (root), DaisyUI and Flux extend it via parentTheme.
  • Section-based authoring: A theme exposes per-section methods (layout(), header(), table(), footer(), cols(), tabs(), plus filter()/editable()/toggleable()), each returning a token slice; they are auto-merged by themeTokenMethods(). struct() only sets baseView(). Write a slice as a plain nested array (6.x style) or with the fluent builder via the section() helper. ArrayTheme builds a whole theme from an array.
  • Selection & registry: config('livewire-powergrid.theme') accepts a registered name ('tailwind'|'daisyui'|'flux') or an FQCN, resolved through PowerGridManager::$themes / registerTheme().
  • No-code overrides: config('livewire-powergrid.theme_overrides') merges token overrides at the highest precedence — restyle any token without a Theme class.
  • Absolute Separation: HTML structure is separated from visual styles; classes live in tokens read by the theme() helper.

3. Views

  • No Theme Conditionals: Do not use logic like @if($theme == 'bootstrap') in Blade files.
  • Micro-files Strategy: Table views are single-purpose micro-files under resources/views/components/structure/ (e.g. table.blade.php, partials/tbody.blade.php, table/row.blade.php).
  • Token-driven, minimal overrides: A theme ships a blade only when the HTML structure genuinely differs; class-only differences live in tokens. DaisyUI ships zero blades (fully token-driven, inheriting Tailwind's views); Flux keeps blades that use <flux:*> components.
  • Helpers: Read tokens with theme('key') (or @theme('key')) and resolve views with theme_view('alias').

Read the full file on GitHub · 101 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. 9d ago Changed · +1 lines · +25 tokens per session 95771b90831a
  2. 2mo ago Changed · +4 lines · +306 tokens per session cda22356564d
  3. 2mo ago First seen · 96 lines · 998 tokens per session scan A e6cd4f7ca2b6

Subscribe to this mod's changes

livewire-powergrid CLAUDE.md is an instructions file published in the GitHub repository Power-Components/livewire-powergrid (1,696 stars, last pushed 6d ago), licensed MIT. It adds 1,329 tokens to every session, about $0.0053 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

livewire-powergrid CLAUDE.md compared with instructions from other repositories

livewire-powergrid CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
livewire-powergrid CLAUDE.mdPower-Components/livewire-powergridInstructions file1.7k6d agoMITA1,329Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,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