create-grid-definition

create-grid-definition is a skill for Claude Code, Codex from jeffsenso/prestashop-skills. It costs 61 tokens per session (1,343 once invoked), scanned A, original, MIT.

A PHP definition for an entity listing, such as a table of products or manufacturers in an admin panel. It describes the columns, filters, row actions, bulk actions, and service registration used by the listing.

In plain words
What is it for?
Use it when defining an admin grid for an entity, including what users can see, filter, sort, export, or do to one or many rows.
Why use it?
It removes the need to assemble the listing structure and its available actions from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it when defining an admin grid for an entity, including what users can see, filter, sort, export, or do to one or many rows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jeffsenso/prestashop-skills/create-grid-definition
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 jeffsenso/prestashop-skills --skill create-grid-definition
Clone the repo
git clone --depth 1 https://github.com/jeffsenso/prestashop-skills

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 create-grid-definition

README.md
[![agentmods](https://agentmods.dev/badge/skills/jeffsenso/prestashop-skills/create-grid-definition/github.svg)](https://agentmods.dev/skills/jeffsenso/prestashop-skills/create-grid-definition)
Your own site
<a href="https://agentmods.dev/skills/jeffsenso/prestashop-skills/create-grid-definition"><img src="https://agentmods.dev/badge/skills/jeffsenso/prestashop-skills/create-grid-definition/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 create-grid-definition

Your own site · 80×15
<a href="https://agentmods.dev/skills/jeffsenso/prestashop-skills/create-grid-definition"><img src="https://agentmods.dev/badge/skills/jeffsenso/prestashop-skills/create-grid-definition.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,343 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.
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.00061 $0.01343
Opus 5 $0.00030 $0.00672
Sonnet 5 $0.00012 $0.00269
Haiku 4.5 $0.00006 $0.00134

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

Security

Grade A, and why

create-grid-definition 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 10d 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.

skills/prestashop-module-development/ps9-core-ai/Component/Grid/skills/create-grid-definition/SKILL.md · 134 lines

How it starts

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

create-grid-definition

Read @.ai/Component/Grid/CONTEXT.md for the factory trilogy (GridDefinitionFactory → GridDataFactory → GridFactory) and SearchCriteria patterns.

1. Grid Definition Factory

Create src/Core/Grid/Definition/Factory/{Domain}GridDefinitionFactory.php extending AbstractGridDefinitionFactory:

  • Define a public const GRID_ID = '{domain}' constant — this is the single source of truth for the grid identifier, shared with the {Domain}Filters class to ensure the filter persistence in DB maps to the correct grid
  • getId(): string — return self::GRID_ID
  • getName(): string — translatable grid name
  • getColumns(): ColumnCollection — all columns (see section 2)
  • getFilters(): FilterCollection — filterable columns (see section 4)
  • getGridActions(): GridActionCollection — grid-level actions (e.g. export)
  • getRowActions(): RowActionCollection — per-row actions (see section 3)
  • getBulkActions(): BulkActionCollection — multi-select actions (see section 3)

Reference: src/Core/Grid/Definition/Factory/TaxGridDefinitionFactory.php (simple), src/Core/Grid/Definition/Factory/ManufacturerGridDefinitionFactory.php (two grids)

2. Column types

Column type When to use Notes
BulkActionColumn Row selection checkbox Always first column
DataColumn Plain text (name, email, date) Most common
ToggleColumn Clickable boolean toggle (active status) Requires AJAX toggle route
ImageColumn Image thumbnail (logo)
LinkColumn Text with hyperlink
PositionColumn Drag handle for reordering See create-position-column skill
ActionColumn Row actions dropdown Always last column

See Grid/CONTEXT.md for column ordering and naming conventions.

3. Row actions and bulk actions

Row actions

Add in getRowActions():

  • LinkRowAction for edit — links to admin_{domain}s_edit route with {id} parameter
  • For delete, use the DeleteActionTrait::buildDeleteAction() helper — it returns a SubmitRowAction pre-wired with the standard delete confirmation modal (translatable title, confirm/cancel buttons, danger styling). Prefer it over building the action manually:
    use PrestaShop\PrestaShop\Core\Grid\Definition\Factory\DeleteActionTrait;
    
    class {Domain}GridDefinitionFactory extends AbstractGridDefinitionFactory
    {
        use DeleteActionTrait;
    
        protected function getRowActions(): RowActionCollection
        {
            return (new RowActionCollection())
                ->add(/* edit LinkRowAction */)
                ->add($this->buildDeleteAction(
                    'admin_{domain}s_delete',  // route
                    '{domain}Id',              // route param name
                    '{domain}Id',              // row field providing the value
                ));
        }
    }
    
  • Order: edit first, delete last

Read the full file on GitHub · 134 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. 10d ago First seen · 134 lines · 61 tokens per session scan A ddf0c18ae36e

Subscribe to this mod's changes

create-grid-definition is a skill published in the GitHub repository jeffsenso/prestashop-skills (5 stars, last pushed 15d ago), licensed MIT. It adds 61 tokens to every session and 1,343 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-31.

Related

Other skills, from other repositories

806-regulations-eu-data-act

Use when reviewing, designing, or modifying Java enterprise systems that expose, exchange, store, process, export, or port data across users, businesses, connected products, cloud providers, APIs, event streams, AI data pipelines, data spaces, or SaaS platforms and need EU Data Act engineering controls. This should…

jabrena/plinth · 139 tokens

123-java-design-patterns

Use when you need to select, review, or implement Java design and integration patterns — including classic Java design patterns, REST API patterns, Kafka and event-driven patterns, database and persistence patterns, and cross-cutting integration patterns. This should trigger for requests such as Apply Java design…

jabrena/plinth · 89 tokens

125-java-concurrency

Use when you need to apply Java concurrency best practices — including thread safety fundamentals, ExecutorService thread pool management, concurrent design patterns like Producer-Consumer, asynchronous programming with CompletableFuture, immutability and safe publication, deadlock avoidance, virtual threads…

jabrena/plinth · 133 tokens

031-architecture-adr-functional-requirements

Facilitates conversational discovery to create Architectural Decision Records (ADRs) for functional requirements covering CLI, REST/HTTP APIs, or both. Use when the user wants to document command-line or HTTP service architecture, capture functional requirements, create ADRs for CLI or API projects, or design…

jabrena/plinth · 115 tokens

300-frameworks-spring-boot-create-project

Use when you need to create a new Maven-based Spring Boot 4.0.x project using SDKMAN-managed Java and Spring Boot CLI tooling. This should trigger for requests such as Create a Spring Boot Maven project; Bootstrap Spring Boot project with SDKMAN; Generate a new Spring Boot service; Create Spring Boot 4 Maven project…

jabrena/plinth · 90 tokens

301-frameworks-spring-boot-core

Use when you need to review, improve, or build Spring Boot 4.0.x applications — including proper usage of @SpringBootApplication, component annotations (@Controller, @Service, @Repository), bean definition and scoping, configuration classes and @ConfigurationProperties (with @Validated), component scanning…

jabrena/plinth · 165 tokens