livewire-powergrid GEMINI.md

livewire-powergrid GEMINI.md is an instructions file for Gemini CLI from Power-Components/livewire-powergrid. It costs 998 tokens per session, scanned A, a copy of livewire-powergrid CLAUDE.md, MIT.

Coding instructions for PowerGrid 7.x, a Laravel Livewire component for displaying interactive data tables. They describe its PHP, Livewire, Tailwind CSS, and theming structure.

In plain words
What is it for?
Use them when changing PowerGrid themes, table views, Blade templates, styling, or server-side table actions.
Why use it?
They clarify the newer architecture and prevent agents from relying on removed dependencies or mixing visual logic into table markup.

Instructions file for Gemini CLI

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.

agentmods
npx agentmods add instructions/power-components/livewire-powergrid/gemini-md
Clone the repo
git clone --depth 1 https://github.com/Power-Components/livewire-powergrid

Made for: Gemini CLI.

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 GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/power-components/livewire-powergrid/gemini-md.svg)](https://agentmods.dev/instructions/power-components/livewire-powergrid/gemini-md)
Your own site
<a href="https://agentmods.dev/instructions/power-components/livewire-powergrid/gemini-md"><img src="https://agentmods.dev/badge/instructions/power-components/livewire-powergrid/gemini-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 998 This file is loaded in full into every session.
When invoked 998 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00998 $0.00998
Opus 5 $0.00499 $0.00499
Sonnet 5 $0.00200 $0.00200
Haiku 4.5 $0.00100 $0.00100

Measured 4d ago against content hash e6cd4f7ca2b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

livewire-powergrid GEMINI.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 4d 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

This is a copy

100% identical to livewire-powergrid CLAUDE.md — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

GEMINI.md · 96 lines

How it starts

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

  • Root /themes Directory: This folder is strictly for PHP classes (Tailwind, DaisyUI, Flux).
  • Strict Key Mapping: All CSS/theme logic is managed through a new unified struct() method.
  • Absolute Separation: HTML structure is completely separated from visual styles.

3. Views

  • No Theme Conditionals: Do not use logic like @if($theme == 'bootstrap') in Blade files.
  • Micro-files Strategy: Table views are divided into single-purpose micro-files (e.g., index.blade.php, tbody.blade.php, td.blade.php).
  • Directives: Rely strictly on @theme() directives.

4. Server-Side Actions

  • No Cache or JS processing for Actions: Action logic and buttons are no longer processed via JavaScript or cached.
  • Full Blade Rendering: Actions are fully rendered as server-side Blade components/fragments via renderActions().

5. Performance & Partials

  • Livewire DOM Isolation: Use the power-components/partials fragments to isolate DOM updates and boost performance.
  • Hot Zones: There are three demarcated Hot Zones for updates:
    1. pg-tbody
    2. pg-pagination
    3. pg-filters

6. Testing Strategy

  • Self-sufficient Tests: Tests must be independent and immune to themes.
  • Core Focus: Focus testing strictly on core engine capabilities: Search, Filters, Order, and Pagination.
  • No Global Fixtures: Build mini-components at runtime within the test files instead of using global fixtures.

Read the full file on GitHub · 96 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. 4d ago First seen · 96 lines · 998 tokens per session scan A e6cd4f7ca2b6

Subscribe to this mod's changes

livewire-powergrid GEMINI.md is an instructions file published in the GitHub repository Power-Components/livewire-powergrid (1,693 stars, last pushed 2d ago), licensed MIT. It adds 998 tokens to every session, about $0.0050 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to livewire-powergrid CLAUDE.md, differing in 0 lines, and is treated as a copy.

Related

Other instructions, from other repositories